Fork me on GitHub
Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Nominate XOOPS!

Learn XOOPS Core

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $25.00
Net Balance: $23.97
Left to go: $76.03

Donations
Anonymous ($25)Aug-11

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 4 6 Abuse adslight Android AntiHarvesting AntiSpam API Apple Battlefield billige Blocks Bootstrap Captcha cell cent chronolabs CHUNG Clicks content CĂN demo docek download Dresses evden facebook Fat floor for free Gateway Google Guide herre Honeypot HP html5 Human HỘ iPhone jQuery Language List log Loss module modules Monster new newbb news NHÀ online PARK Payment phone PHP Prevention profile project Protector publisher RESIDENCE responsive review Rights rmcommon Room security Sentry site Smartphone Smarty Smoking Spam stem Studio support tag tags tdmcreate template The Theme themes User userlog web weight xoops Xortify XPayment ZendFramework

New Users

Registering user

# 137702

Gamercury

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post



#1 Posted on: 2012/2/22 10:39 Full Text RSS for Publisher module
I have a client asking for a "full-text" RSS feed from our site. We publish sports news using Publisher module.

As you know the RSS Icon is on the Publisher Categories page so all the Headlines, Image and scoop come up. If one wants to read the full article one has to click on the headline and it takes him straight to the whole article onto our website.

Is there a hack or easy way to extend backend.php to include the ability to read the whole article and not just the teaser? Also there might need to hack the publisher_rss.html file to?

Thanks in advance
Ray

Top


Be Set FREE!
rgauci
Not too shy to talk
Not too shy to talk
Joined:
2007/8/31 9:24
From Malta
Group:
Registered Users
Posts: 173
(Show More) (Show Less)


#2 Posted on: 2012/2/23 6:05 Re: Full Text RSS for Publisher module
I have managed to locate this code in /publisher/backend.php

'description' => htmlspecialchars($item->getBlockSummary(300, true), ENT_QUOTES)));

which picks up the Summany of each particular articles, so I think if I can change BlockSummary to ItemText or similar might work for the Full RSS to show the whole article instead just the teaser.

Perhaps Trabis could look at this!

I need a solution asap please. Thanks



Top


Be Set FREE!
rgauci
Not too shy to talk
Not too shy to talk
Joined:
2007/8/31 9:24
From Malta
Group:
Registered Users
Posts: 173
(Show More) (Show Less)


#3 Posted on: 2012/2/24 8:51 Re: Full Text RSS for Publisher module
Any ideas Folks would be appreciated!!!!
Happy weekend to all xoopers.

Top


Be Set FREE!
rgauci
Not too shy to talk
Not too shy to talk
Joined:
2007/8/31 9:24
From Malta
Group:
Registered Users
Posts: 173
(Show More) (Show Less)


#4 Posted on: 2012/2/25 10:59 Re: Full Text RSS for Publisher module
I need this to be sorted by Monday or else I loose it all!
Help please especially those who are good at Publisher Module

Just a reminder of my needs:

'description' => htmlspecialchars($item->getBlockSummary(300, true), ENT_QUOTES)));

which picks up the Summany of each particular articles, so I think if I can change BlockSummary to ItemText or similar might work for the Full RSS to show the whole article instead just the teaser. What is that part of code???? to replace.

Top


Be Set FREE!
rgauci
Not too shy to talk
Not too shy to talk
Joined:
2007/8/31 9:24
From Malta
Group:
Registered Users
Posts: 173
(Show More) (Show Less)


#5 Posted on: 2012/2/25 13:44 Re: Full Text RSS for Publisher module
remove these lines and check if it works for you

Top


Nitin Shah
Most problems in world are result of poor communication
nmshah
Just can't stay away
Just can't stay away
Joined:
2007/7/2 3:24
Group:
Registered Users
Posts: 544
(Show More) (Show Less)


#6 Posted on: 2012/2/25 19:08 Re: Full Text RSS for Publisher module
this will show the whole body.

'description' => htmlspecialchars(strip_tags($item->plain_maintext(),'<br></ br>'), ENT_QUOTES)));

Top


CBB / LatestNews / Publisher / XM-Spotlight
iHackCode
Module Developer
Module Developer
Joined:
2004/6/28 19:11
From Greater Seattle Area
Group:
Registered Users
Wiki Group
Posts: 993
(Show More) (Show Less)


#7 Posted on: 2012/2/26 2:21 Re: Full Text RSS for Publisher module
Many thanks iHackCode as your code did show the full body but it is also showing the text as with no paragraph breaks at all something like this:

Quote:
Dr Morse was the first to publish in medical journals the phenomena of near-death experiences in children. <br /><br />Lazarus is the first recorded near-death experiences by Jesus in the Bible.<br /><br />Luke 16 New International Version<br /><br />The Rich Man and Lazarus<br /> <br />

..Instead of:

Quote:
Dr Morse was the first to publish in medical journals the phenomena of near-death experiences in children.

Lazarus is the first recorded near-death experiences by Jesus in the Bible.
Luke 16 New International Version

The Rich Man and Lazarus

and no bold type etc comes up

Many thanks again as for your continuous help.
Ray

Top


Be Set FREE!
rgauci
Not too shy to talk
Not too shy to talk
Joined:
2007/8/31 9:24
From Malta
Group:
Registered Users
Posts: 173
(Show More) (Show Less)


#8 Posted on: 2012/2/26 13:09 Re: Full Text RSS for Publisher module
Bump???

Top


Be Set FREE!
rgauci
Not too shy to talk
Not too shy to talk
Joined:
2007/8/31 9:24
From Malta
Group:
Registered Users
Posts: 173
(Show More) (Show Less)


#9 Posted on: 2012/2/27 7:43 Re: Full Text RSS for Publisher module
Try something like this

<description><![CDATA[<p><{$item}></p>]]></description>

or try inestead of $item somethinlike $item.text $item.body (check in templates what's the tag for whole text). Sorry I'm writing you inna hurry.

Top


Docek Nove godine 2014
Drug addict rehab & help
Car owners manuals
bjuti
Just can't stay away
Just can't stay away
Joined:
2009/1/7 17:55
From Belgrade, Serbia
Group:
Registered Users
Posts: 859
(Show More) (Show Less)


#10 Posted on: 2012/2/27 8:56 Re: Full Text RSS for Publisher module
the tag for the whole text I think is $item.maintext

so whats best to code it?

Top


Be Set FREE!
rgauci
Not too shy to talk
Not too shy to talk
Joined:
2007/8/31 9:24
From Malta
Group:
Registered Users
Posts: 173
(Show More) (Show Less)







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You can post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]