View Full Version : Customize RSS feed page
HavePh8
12-06-2007, 09:31 PM
Hello,
I was wondering if it was possible to customize the RSS Feed page beyond what is offered in the admin panel? On my site, I added a custom field that shows pertinent information to the posted photograph and I would like to add this info to the feed as well as some exif info.
If the only way of doing that is through hacking one of the php files, I'm okay with that. Just point me towards the right file.
Thank you.
dakwegmo
12-06-2007, 11:13 PM
What you're looking for will be in /includes/functions_feeds.php
I suggest separate pice of code like addon :)
I too am looking to customize my RSS feed. I am running pp1.7 and am having a problem with the current RSS feed. The feed works, however whatever setting I choose via the options panel, in admin, the feed will always attach a full size image. Any ideas?
The other thing I'd like to be able to do is add some more details to my feed. I have looked through the function_feed.php file but don't want to touch anything as I am not really sure what I'm doing when it comes to php. Is there any tutorials on the Funtions_Feed.php anywhere? I have done a light search but haven't found anything yet. Any help would greatly be appreciated.
Cheers
Ben
www.bengeldreich.com
dakwegmo
12-20-2007, 09:15 PM
I don't know of any tutorials on hacking PixelPost. It's such a non-complex program that anyone with enough know-how to write new code for it would be able to do so without explanation.
I just pulled your RSS feed and it's only displaying thumbnails.
Edit: Are you talking about the enclosure? An enclosure isn't actually a binary attachment (like in email) it's just a link to the original file. If you want to remove it, you can probably just comment out, or delete line 122 of the function_feeds.php.
That line looks like this.
$output .= "\t<enclosure type=\"image/jpeg\" length=\"".$filesize."\" url=\"".$enclosure."\" />\n";
Edit: I noticed this is also on line 252 of the function_feeds.php in 1.7RC1. You should delete or comment it out from both lines.
The feed works, however whatever setting I choose via the options panel, in admin, the feed will always attach a full size image. Any ideas?
Refresh your cache or something. I dont see other explanation, maybe except non complete update of PP files (if you had previous version).
Geos,
I did have 1.6 originally installed, and updated to 1.7. What file would cause this? Or in other words any idea what file I should try and update?
Cheers
ben
dakwegmo,
Thank you I removed line 122 and that did the trick. No tutorials then?
Cheers
Ben
Can't seem to see where I change the thumbnail size for the rss feed.
Cheers
Ben
austriaka
12-21-2007, 08:54 AM
it is the same thumbnail size you have set for your blog.
Using any other size would mean that you need another thumbnail just for RSS, what is not so easy to do
austriaka,
Arggg, ok I like the thumbnails at 50 by 50 on my site, but I wanted them to be 100 by 100 for the rss feed. Oh well, maybe I'll have to meet in the middle. LOL!
Thanks again.
Ben
I have subscribed via rss of to http://www.lightinfusion.de/. I found that his thumbnails are larger in the rss feed than on the website. So I can be done. This gives me hope.
Cheers
austriaka
12-22-2007, 12:22 PM
you should just ask him...
dakwegmo
12-26-2007, 02:03 AM
I have subscribed via rss of to http://www.lightinfusion.de/. I found that his thumbnails are larger in the rss feed than on the website. So I can be done. This gives me hope.
Cheers
Check his about page though; he's running Movable Type, not PP. What you want to do IS possible with PP, but will require some creativity.
kulayphoto
12-29-2007, 04:04 AM
Hi
My feed is at http://feeds.feedburner.com/kulayblog
How do I remove the link that opens the image in a window on it's own, ie, outwith the blog.
I have attatched a picture with the offending bit inside a red rectangle!
http://farm3.static.flickr.com/2334/2144960711_b57f6de059_b.jpg
Thanks!
Paul
dakwegmo
12-29-2007, 04:25 AM
Paul,
That's almost certainly the enclosure tag. Look at comment #5 above for instructions on how to remove it.
kulayphoto
12-29-2007, 04:52 AM
Hi
Thanks, that did it. I removed the code from both lines and it worked a treat.
Thank you!
Paul
theMezz
03-19-2008, 02:51 AM
I don't know of any tutorials on hacking PixelPost. It's such a non-complex program that anyone with enough know-how to write new code for it would be able to do so without explanation.
I just pulled your RSS feed and it's only displaying thumbnails.
Edit: Are you talking about the enclosure? An enclosure isn't actually a binary attachment (like in email) it's just a link to the original file. If you want to remove it, you can probably just comment out, or delete line 122 of the function_feeds.php.
That line looks like this.
$output .= "\t<enclosure type=\"image/jpeg\" length=\"".$filesize."\" url=\"".$enclosure."\" />\n";
Edit: I noticed this is also on line 252 of the function_feeds.php in 1.7RC1. You should delete or comment it out from both lines.
I am using V 1.7 and line 122 and 252 is not the same as yours.
I am trying to remove the ORIGINAL ENCLOSURE line from showing in RSS feeds.
As an example I want the RSS feed to link to
http://photos.themezz.com/index.php?showimage=1204
NOT to this
http://photos.themezz.com/images/2008031118444720_Peace.jpg
help anyone???
Thanks,
Joe
theMezz
03-19-2008, 03:02 AM
Refresh your cache or something. I dont see other explanation, maybe except non complete update of PP files (if you had previous version).
Anyone know what line #'s to remove in V 1.71
It's not the same
THANKS
dakwegmo
03-19-2008, 11:53 AM
In PP 1.71 the correct line numbers to comment out are as follows:
RSS: 131 & 266
ATOM: 527 & 686
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.