xoops forums

rgauci

Not too shy to talk
Posted on: 2012/2/22 16:39
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#1

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
Be Set FREE!

rgauci

Not too shy to talk
Posted on: 2012/2/23 12:05
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#2

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

Be Set FREE!

rgauci

Not too shy to talk
Posted on: 2012/2/24 14:51
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#3

Re: Full Text RSS for Publisher module

Any ideas Folks would be appreciated!!!!
Happy weekend to all xoopers.
Be Set FREE!

rgauci

Not too shy to talk
Posted on: 2012/2/25 16:59
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#4

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.
Be Set FREE!

nmshah

Just can't stay away
Posted on: 2012/2/25 19:44
nmshah
nmshah (Show more)
Just can't stay away
Posts: 556
Since: 2007/7/2 8
#5

Re: Full Text RSS for Publisher module

remove these lines and check if it works for you

iHackCode

Module Developer
Posted on: 2012/2/26 1:08
iHackCode
iHackCode (Show more)
Module Developer
Posts: 1022
Since: 2004/6/29
#6

Re: Full Text RSS for Publisher module

this will show the whole body.

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

(ノ◕ヮ◕)ノ*:・゚✧

rgauci

Not too shy to talk
Posted on: 2012/2/26 8:21
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#7

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
Be Set FREE!

rgauci

Not too shy to talk
Posted on: 2012/2/26 19:09
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#8

Re: Full Text RSS for Publisher module

Bump???
Be Set FREE!

bjuti

Just can't stay away
Posted on: 2012/2/27 13:43
bjuti
bjuti (Show more)
Just can't stay away
Posts: 871
Since: 2009/1/7 2
#9

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.

rgauci

Not too shy to talk
Posted on: 2012/2/27 14:56
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#10

Re: Full Text RSS for Publisher module

the tag for the whole text I think is $item.maintext

so whats best to code it?
Be Set FREE!