forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: hozyali on January 21, 2009, 09:33:03 am

Title: [Invalid]: Rss Feed Errors
Post by: hozyali on January 21, 2009, 09:33:03 am
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
Code: [Select]
<?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.
Title: Re: Rss Feed Errors
Post by: Joachim Müller on February 17, 2009, 01:37:13 pm
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.

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.