Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Invalid]: Rss Feed Errors  (Read 4546 times)

0 Members and 1 Guest are viewing this topic.

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
[Invalid]: Rss Feed Errors
« 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.
« Last Edit: February 17, 2009, 01:37:29 pm by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Rss Feed Errors
« Reply #1 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.