RSS Feed i made.

gorin / 2008-08-28 15:47:29   

Hi,

I know that RSS Feed is coming soon, but for those who can't wait, i made a little php page that creates a rss feed.

You can see it running on my webpage

Here is the archive. You need to customize the feed, change the connection info in the connect.php file, and put it at the root of your site. The update isn't auto, you need to run manually "maj-rss.php" when you add a new exhibit.

The code isn't really good, sorry, but i'm not a coder :p

Hope it will help some people !

Vaska A / 2008-08-28 17:43:21   

Cool gorin...I'm sorry I don't have time to verify the safety of this so it's definitely use at your own risk. I have my hands full with too many things...including the next version of Indexhibit.

;)

nils / 2008-08-28 18:35:38   

Works great man, thanks!

... the only problem is for me on line 36 where the path to the images are relative?

  1. $contenu .= '< img src="<strong>PUT HERE YOUR URL</strong>/files/gimgs/th-'.$fichier.'"></img> ';

... should be fullpath, right?

And on line 18 I would specify the Section Id ...

  1. $resultat_requete=mysql_query("SELECT * FROM ndxz_objects WHERE section_id='<strong>YOUR NEWS SECTION ID</strong>' ORDER BY id DESC limit 0, 10");
Vaska A / 2008-08-28 19:16:39   

Hi Nils!

gorin / 2008-08-28 20:11:11   

Hi Nils,

you're right, the path to the images should be fullpath, i changed this and reuploaded the zip.

And i want to put my exhibits into the rss, not only the news, this is why i query all the entries of the db.

tyggy / 2008-09-02 20:08:31   

Hey gorin,
It doesn't work with UTF-8 content in database

gorin / 2008-09-03 16:50:07   

Maybe because you need to add

in the header of the page ? I didn't tried, so i can't say if this is it or not.

(sorry for my poor english, i'm belgian, speaking french... and you know how french speaking people are bad in english :p)

gorin / 2008-09-03 16:50:28   

Oops, the code is :

  1. <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
simonnelli / 2008-11-26 14:23:23   

Using your code! Great to have a third party feed as long there is no official one.

Is there any possibility to exclude an exhibit category? I'd like to exclude all INFO and it's subcategories.

Best regards
Simon

talz / 2008-12-17 13:55:12   

thanks!

I am trying to use feedburner with this.

by "run manually "maj-rss.php"", what do you mean? simply enter my site URL with the "maj-rss.php" at the end to refresh?

I'll keep trying.

I assume if I get is set up correctly feedburner will be able to recognize the feed. FYI, I am trying to make a RSS feed for my news section.

talz / 2008-12-17 14:01:57   

in the connect file:

  1. .<?php
  2. mysql_connect"put here the server" "put here your login" "and your password"
  3. mysql_select_db"and put here the database name"
  4. ?>

do I put the FTP or database server and login? and how do I specify that I want the RSS for the news section?

...I keep going..

Vaska A / 2009-06-28 11:25:47   

I searched for 4 seconds and found this...this is nearly a year old as well. Hmmm...

mortenengel / 2009-06-28 15:10:18   

Thanks a lot for this.
Don't know how I missed it.

I am playing around with it now, so hopefully up and running very soon.
Thanks again sorry for the trouble.

Have a nice sunday.

scottu / 2009-10-10 08:16:31   

I'm really loving Indexhibit. Thanks so much for creating this.

The link gorin posted to his RSS zip archive is broken. Does anyone have a working link to this or perhaps an updated solution to creating an RSS feed?

Thanks in advance!

arsondpi / 2009-10-10 09:18:02   

oh cmon - you can do this... This is a page with links. I found it by simply typing How to Create RSS Feed in a google search box.

scottu / 2009-10-10 12:25:27   

Thanks for the response. I'm familiar with third-party HTML scraping services, but I want a php integrated option like gorin posted.

rocked / 2009-12-20 18:25:28   

hey everybody,

the link to the archive with the rss plugin is broken.
has someone this archive or an idea, how to generate a rss feed out of the news section?
i´m doing my site new and want to integrate a rss feed for the news.

thanks a lot for your answers and have a nice day

ALEX

LeslieOA / 2009-12-20 20:01:48   

@rocked: - Seems gorin's site/domains down (hopefully not indefinitely).
Here's a link to a copy dated 28.08.2008. Not sure if the file was updated since then.

@gorin: - If you'd like the links to your above post to be updated, post the new file locations below aand a mod/admin'll sort out the rest.

Peace.

siegmkaa / 2010-02-23 20:58:19   

hi all,

has anyone encountered problems like this when calling the maj-rss.php to genrate the rss.xml?

Warning: fopen(rss.xml) [function.fopen]: failed to open stream: Permission denied in /is/htdocs/wp1071075_17322PPCDB/www/maj-rss.php on line 64

Warning: fputs(): supplied argument is not a valid stream resource in /is/htdocs/wp1071075_17322PPCDB/www/maj-rss.php on line 65

Warning: fclose(): supplied argument is not a valid stream resource in /is/htdocs/wp1071075_17322PPCDB/www/maj-rss.php on line 66

permissions? server config? mmmh?

jan

siegmkaa / 2010-02-25 16:35:17   

... yes, it was about permissions. it's runing now.
>>> close.

This thread has been closed, thank you.