Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 + 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: News RSS Feed "full"
by Mamba on 2010/4/30 0:28:36

Quote:
Many thanks to the XOOPS Team/Project for creating a great platform! This site gets several million unique visitors per year, has 8,000 members and has over 12,000 articles in the stories table...and it runs flawlessly!

We LOVE to hear such stories!

Thanks for sharing!!!
Re: News RSS Feed "full"
by turnerrw on 2010/4/30 0:13:37

Ghia - Thanks for your help.

Your last suggestion was exactly what was needed to create a "full" rss feed.

To add a linkback at the end of each story I added some code inside a CDATA callout in the system_rss.html template.

I should have thought of this sooner. Unfortunately, I'm not a professional coder and even after working with XOOPS for 6 years I'm still not completely up to speed on the architecture and which files you need to edit to get certain results.

Many thanks to the XOOPS Team/Project for creating a great platform! This site gets several million unique visitors per year, has 8,000 members and has over 12,000 articles in the stories table...and it runs flawlessly!

Cheers,
-Robert
Re: News RSS Feed "full"
by ghia on 2010/4/29 22:44:39

By replacing
le="color: #000000"><?php $story->hometext()
with
le="color: #000000"><?php $story->hometext().$story->bodytext()
?
Re: News RSS Feed "full"
by turnerrw on 2010/4/29 16:51:09

You know, you're right and I pushed back on them re: the full RSS feed.

Now what I'd like to do is to add content to the bottom of the feed that includes two hyperlinks:

1) Read more ... that links to the article; and

2) Another link to the article that displays the full URL.

--

Now for the newbie question... "how do I do this?"

I've analyzed the backend.php script and my first guess is that I add code to this section:

le="color: #000000"><?php foreach ($sarray as $story) { $tpl->append('items', array('title' => xoops_utf8_encode(htmlspecialchars($story->title(), ENT_QUOTES)), 'link' => XOOPS_URL.'/modules/news/article.php?storyid='.$story->storyid(), 'guid' => XOOPS_URL.'/modules/news/article.php?storyid='.$story->storyid(), 'pubdate' => formatTimestamp($story->published(), 'rss'), 'description' => xoops_utf8_encode(htmlspecialchars($story->hometext(), ENT_QUOTES)))); }


Am I correct. Is there another place I need to edit? I tried adding a reference to bodytext in this section with no luck.

Re: News RSS Feed "full"
by ghia on 2010/4/29 7:16:00

Just add the bodytext field to the query and result string.

However, you defeat the system of RSS being a teaser and luring people to your site, when they click on the article link to read the article in full.

Who's Online

385 user(s) are online (326 user(s) are browsing Support Forums)


Members: 0


Guests: 385


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits