View Full Version : New Component In RSS Feed That Does Not Work
gorin-images
01-18-2008, 05:34 AM
I worked on my feeds today and i noticed that a new component is showing up at the bottom of each feed. It is a link that looks like it is supposed to go to the full-size image file for the post and looks like this:
20080105231305_20071021hbaw00001_web.jpg
When you click it, you just get a 404 error.
A) I don't want people to hyperlink directly to the image file itself, and
B) The link does not work
How can I checnge the RSS code to just get rid of this?
Dkozikowski
01-18-2008, 05:46 AM
A) It's called an RSS enclosure (http://en.wikipedia.org/wiki/RSS_Enclosures).
B) Change your image path to ../
C) Open includes/functions_feeds.php and find $output .= "\t<enclosure type=\"image/jpeg\" length=\"".$filesize."\" url=\"".$enclosure."\" />\n";
Add // to the front of $output .= "\t<enclosure type=\"image/jpeg\" length=\"".$filesize."\" url=\"".$enclosure."\" />\n"; so it looks like this in the end: //$output .= "\t<enclosure type=\"image/jpeg\" length=\"".$filesize."\" url=\"".$enclosure."\" />\n";
austriaka
01-18-2008, 06:18 AM
you say you "worked on your feeds", did you change something in the code?
gorin-images
01-18-2008, 06:27 PM
you say you "worked on your feeds", did you change something in the code?
The only "work" I did was to add the <a> code to the correct line so that hyperlinks in my actual photoblog posts show up as active hyperlinks in my feeds. This worked perfectly. I had the problem described in the original post both before, and after, I enabled hyperlinks in my feeds.
dwilkinsjr+ has this right. This looks like an RSS enclosure. I don't want to have an RSS enclosure in either of my feeds. Which code do I delete in my functions_feeds file to get rid of these enclosures?
dhdesign
01-18-2008, 06:35 PM
Read dwilkinsjr+'s post (#2) again - he told you which line to go in and comment out to remove the enclosure from your feed.
gorin-images
01-19-2008, 02:30 AM
Read dwilkinsjr+'s post (#2) again - he told you which line to go in and comment out to remove the enclosure from your feed.
Got it. Thanks. I didn't look carefully at the code. I thought he was showing me how to make the feature work...but I wanted to remove it. I now see he was showing me how to simply exclude the code.
I just decided to delete that code and it accomplished what I was looking for.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.