PDA

View Full Version : Modifying the RSS Feed in 1.6.x


jeremy
10-12-2007, 02:04 AM
I tried searching through the archives, but both "rss" and "1.6" are too short for the search engine.

What I am looking at doing is modify the RSS feed from my blog so that the ONLY thing coming from the RSS is the image. Is this possible to do? Any tips on how or where to start? Or is there a way to parse the RSS feed I am getting and remove this info?

I am not wanting the title or the info from the current post. The reason for this is I want to embed the latest image from my blog on the front page of my photo portfolio site instead of just doing a "random image" from a folder, but I don't want any of the text which currently accompanies the RSS feed.

I already have the RSS feed set to send full images.

Dkozikowski
10-12-2007, 02:40 AM
Yes, you can do this quite easily.

Goto your administration panel and scroll towards the bottom of the options pane.

You will see some RSS options. One of those options will allow you to remove the text and display images only.

jeremy
10-12-2007, 02:47 AM
I see "Select the style of the RSS/ATOM feed:" and am given the options:

Show fullsize pictures
Show thumbnails
Show thumbnails only
Show text only

but no option to show fullsize pictures only. I don't want to just pull the thumbnail, but the larger image.

Dkozikowski
10-12-2007, 03:14 AM
Ahh, you're right. I added that for the next release.

If you're comfortable, here is how you can add it quickly:

open includes/functions_feeds.php

Find:

$rsspicdir = (($cfgrow['rsstype'] == 'T' || $cfgrow['rsstype'] == 'O') ? 'thumbnails/thumb_' : (($cfgrow['rsstype'] == 'F') ? 'images/' : ''));


Find the following within

'thumbnails/thumb_'


Change it to

'images/'


And select "show thumbs only" in the admin panel.

It's not pretty but it should get the job done for you.