Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 01-18-2008, 05:34 AM
gorin-images Offline
pp regular
 
Join Date: Dec 2005
Location: Santa Barbara, California, USA
Posts: 28
New Component In RSS Feed That Does Not Work

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?
Reply With Quote
  #2  
Old 01-18-2008, 05:46 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
A) It's called an RSS enclosure.

B) Change your image path to ../

C) Open includes/functions_feeds.php and find
Code:
$output .= "\t<enclosure type=\"image/jpeg\" length=\"".$filesize."\" url=\"".$enclosure."\" />\n";
Add
Code:
//
to the front of
Code:
$output .= "\t<enclosure type=\"image/jpeg\" length=\"".$filesize."\" url=\"".$enclosure."\" />\n";
so it looks like this in the end:
Code:
//$output .= "\t<enclosure type=\"image/jpeg\" length=\"".$filesize."\" url=\"".$enclosure."\" />\n";
Reply With Quote
  #3  
Old 01-18-2008, 06:18 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
you say you "worked on your feeds", did you change something in the code?
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #4  
Old 01-18-2008, 06:27 PM
gorin-images Offline
pp regular
 
Join Date: Dec 2005
Location: Santa Barbara, California, USA
Posts: 28
Quote:
Originally Posted by austriaka View Post
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?
Reply With Quote
  #5  
Old 01-18-2008, 06:35 PM
dhdesign's Avatar
dhdesign Offline
pixelpost guru
 
Join Date: Mar 2007
Location: Ohio
Posts: 431
Read dwilkinsjr+'s post (#2) again - he told you which line to go in and comment out to remove the enclosure from your feed.
__________________
My photoblog: KP Images
Reply With Quote
  #6  
Old 01-19-2008, 02:30 AM
gorin-images Offline
pp regular
 
Join Date: Dec 2005
Location: Santa Barbara, California, USA
Posts: 28
Quote:
Originally Posted by dhdesign View Post
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.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:00 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs