PDA

View Full Version : Rss Feed Description Output


Lincolnpixel
05-05-2008, 10:20 PM
Hi,
How can i remove the <br /> tags from the rss output, it breaks my css page formatting,
<description>&lt;img src=&quot;http://frankydj.com/photoblog/thumbnails/thumb_20080427163912126_DSC_2860.jpg&quot;&gt;&lt;br/&gt;
</description>
I need a clean url like this http://frankydj.com/photoblog/thumbnails/thumb_20080427163912126_DSC_2860.jpg
Here is my link http://www.frankydj.com/index.php/dj/

Thanks

Lincolnpixel
05-06-2008, 06:53 AM
anybody in?

dhdesign
05-06-2008, 10:20 AM
The line break tags are in your RSS feed so that the feed displays properly in someone's feed reader. That does not affect the layout of your photoblog on your website.

The only formatting problem that I see on your photoblog right off is that the group of thumbnails to the right of the main image is dropped down just a bit. Upon looking at the source code, there is an empty h3 tag that is contributing to this issue. Open image_template.html and remove it if you aren't planning on displaying any text there.

Then you need to open your stylesheet and make the following changes indicated in bold:

.Flickr h3 {
display: none;
}

.Flickr ul {
margin: 0px;
padding: 0px;
}
That should bring that area back up in line with the image on the left.

If you are deleting the h3 tag, you could also remove the styling for .Flickr h3 completely, and make the change to .Flickr ul to achieve the same thing.

Lincolnpixel
05-06-2008, 10:52 AM
Hi,
Thanks for your help, i've done what you said...
my problem is on this part of my site http://www.frankydj.com/index.php/dj/
as you can see, i'm trying to pull in the latest 10 thumbnails using the rss feed with my CMS, if you look at the rss page source, you will notice that the description url is
<description>
&lt;img src=&quot;http://www.frankydj.com/photoblog/thumbnails/thumb_20080427163912126_DSC_2860.jpg&quot;&gt;&lt;br/&gt;
</description>
with the <br /> tag closing the unordered list,
what i would like to have in that field is a clean url like
<enclosure type="image/jpeg" length="277385" url="http://www.frankydj.com/photoblog/images/20080427163912126_DSC_2860.jpg" /> is outputting.

Hope you understand

dhdesign
05-06-2008, 11:06 AM
Are you using an addon to pull the images in to the main page? If so, which one?

I saw that you removed the h3 tag, but you still need to make the changes to the stylesheet to fix the other problem.

Lincolnpixel
05-06-2008, 11:29 AM
No, i'm not using any addon, just using a plugin of my CMS (Expression Engine) to pull in the thumbnails through my rss feed http://www.frankydj.com/photoblog/index.php?x=rss.
that's all

dhdesign
05-06-2008, 11:44 AM
Then you'll need to edit one of the PP core files to remove the line break.

Open includes/functions_feeds.php and change the following:

Around line 122 - this: $output .= "\t\t&lt;img src=&quot;".$image."&quot;&gt;&lt;br/&gt;\n";

To this: $output .= "\t\t&lt;img src=&quot;".$image."&quot;&gt;\n";

You'll find the same code around line 257 - make the same change there.

You'll have to remember to make this change again if PP releases a new version as the upgrade will overwrite this.

Lincolnpixel
05-06-2008, 11:52 AM
WOOOOOOOOW!!!!!
THANK YOU!!! JUST TOO HAPPY,
THANK YOU, THANK YOU
I've save this thread for future updates...
Thanks again for sharing your time.
Have a nice day