rgauci rgauci
  • Not too shy to talk
  • Not too shy to talk
  • Joined: 2007/8/31 10:24
  • From Malta
  • Group: Registered Users
  • Posts: 173
  • Posted on: 2012/2/22 11:39
Full Text RSS for Publisher module #1
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
Be Set FREE!
rgauci rgauci
  • Not too shy to talk
  • Not too shy to talk
  • Joined: 2007/8/31 10:24
  • From Malta
  • Group: Registered Users
  • Posts: 173
  • Posted on: 2012/2/23 7:05
Re: Full Text RSS for Publisher module #2
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

Be Set FREE!
rgauci rgauci
  • Not too shy to talk
  • Not too shy to talk
  • Joined: 2007/8/31 10:24
  • From Malta
  • Group: Registered Users
  • Posts: 173
  • Posted on: 2012/2/24 9:51
Re: Full Text RSS for Publisher module #3
Any ideas Folks would be appreciated!!!!
Happy weekend to all xoopers.
Be Set FREE!
rgauci rgauci
  • Not too shy to talk
  • Not too shy to talk
  • Joined: 2007/8/31 10:24
  • From Malta
  • Group: Registered Users
  • Posts: 173
  • Posted on: 2012/2/25 11:59
Re: Full Text RSS for Publisher module #4
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.
Be Set FREE!
nmshah nmshah
  • Just can't stay away
  • Just can't stay away
  • Joined: 2007/7/2 4:24
  • From India
  • Group: Registered Users
  • Posts: 556
  • Posted on: 2012/2/25 14:44
Re: Full Text RSS for Publisher module #5
remove these lines and check if it works for you
iHackCode iHackCode
  • Module Developer
  • Module Developer
  • Joined: 2004/6/28 20:11
  • From Greater Seattle Area
  • Group: Registered Users Wiki Group
  • Posts: 1016
  • Posted on: 2012/2/25 20:08
Re: Full Text RSS for Publisher module #6
this will show the whole body.

'description' => htmlspecialchars(strip_tags($item->plain_maintext(),'<br></ br>'), ENT_QUOTES)));
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧
rgauci rgauci
  • Not too shy to talk
  • Not too shy to talk
  • Joined: 2007/8/31 10:24
  • From Malta
  • Group: Registered Users
  • Posts: 173
  • Posted on: 2012/2/26 3:21
Re: Full Text RSS for Publisher module #7
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
Be Set FREE!
rgauci rgauci
  • Not too shy to talk
  • Not too shy to talk
  • Joined: 2007/8/31 10:24
  • From Malta
  • Group: Registered Users
  • Posts: 173
  • Posted on: 2012/2/26 14:09
Re: Full Text RSS for Publisher module #8
Bump???
Be Set FREE!
bjuti bjuti
  • Just can't stay away
  • Just can't stay away
  • Joined: 2009/1/7 18:55
  • From Belgrade, Serbia
  • Group: Registered Users
  • Posts: 871
  • Posted on: 2012/2/27 8:43
Re: Full Text RSS for Publisher module #9
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.
rgauci rgauci
  • Not too shy to talk
  • Not too shy to talk
  • Joined: 2007/8/31 10:24
  • From Malta
  • Group: Registered Users
  • Posts: 173
  • Posted on: 2012/2/27 9:56
Re: Full Text RSS for Publisher module #10
the tag for the whole text I think is $item.maintext

so whats best to code it?
Be Set FREE!
How to effectively post a question in the Xoops forums? - Read here...
Design by: XOOPS UI/UX Team