[Invalid]: Rss Feed Errors [Invalid]: Rss Feed Errors
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Invalid]: Rss Feed Errors

Started by hozyali, January 21, 2009, 09:33:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hozyali

I spent more than 2 hours in searching this board, but couldn't find the solution.

My feed is
http://www.labedzki-art.com/cpmfetch/rss_lastadded.php

On IE7 it shows me all text like garbage, means no fomatting and just html etc.
It works fine in FF3.x but doesn't show any images in the feed.

When I take source of image path, it searches for albums dirs under cpmfetch.

Please help. I am using the latest version of cpmFetch and here is the code of rss_lastadded.php
<?php
//
// cfrssget example file that returns the last added images
//  RELEASE VERSION: 2.0.0
//

$ENABLED true;

if (
$ENABLED) {

include "cfrssget.php";

// THESE SPECIFY THE INFORMATION USED IN YOUR FEED

$rssFeedTitle "Labedzki-art.com";
$rssFeedDescription "The last 25 photos added to Labedzki-art.com.";
$rssFeedSiteUrl "http://www.xfistfullofcode.com";
$rssFeedProviderUrl "http://www.labedzki-art.com/";
$rssFeedImageTitle "Labedzki-art";
$rssFeedImageURL 'http://www.xfistfullofcode.com/images/ffoc_logo.gif';
$rssFeedImageLink "http://www.labedzki-art.com";

$rssFeedImageAlt "logo";

$rssItemTitle "%a :: %t";
$rssItemAlternateTitle "%a :: %f";

$rssItemDescription "%f from album %a<br/>Filesize %S kb<br/>%c<br/>Rated %V / 5 stars (%v votes total)";
$rssItemAlternateDescription "%f from %a<br/>Filesize %S kb<br/>%a: %d<br/>Rated %V / 5 stars (%v votes total)";
$totalToShow 5;

///// END OF USER SETTINGS /////////

$cfrss = new cfrss();
$cfrss->startFeed($rssFeedTitle$rssFeedDescription$rssFeedSiteUrl$rssFeedProviderUrl);
$cfrss->setFeedImage($rssFeedImageTitle,$rssFeedImageURL,$rssFeedImageLink,$rssFeedImageAlt);
$cfrss->setItemTitle($rssItemTitle,$rssItemAlternateTitle);
$cfrss->setItemDescription($rssItemDescription,$rssItemAlternateDescription);
$cfrss->addLastAddedMedia($totalToShow);
$cfrss->endFeed();
}

?>



Another problem is, I want the feed url to end with .xml instead of php, how would I do that?

Thanks for your help.

Joachim Müller

Quote from: hozyali on January 21, 2009, 09:33:03 AM
On IE7 it shows me all text like garbage, means no fomatting and just html etc.
That's expected behaviour. Complain in Redmond that they don't ship their browser with a feed reader.

Your request is invalid. Marking thread accordingly.

Quote from: hozyali on January 21, 2009, 09:33:03 AM
Another problem is, I want the feed url to end with .xml instead of php, how would I do that?
We have a strict "One question per thread" policy that you have been told very often about. You have been warned as well that you have to stop posting threads in the manner you do. Respect board rules! Last warning!
If you need that file named accordingly, just rename it using your FTP app and then set up your server to parse files that end with xml as PHP files as well. Would be silly though, and I don't think that your webhost will let you.