Subject: RSS feeds in static pages

Posted on: 04/09/04 10:59am
By: Euan

If you want a quick and easy way to include an RSS feed in a static page, see here.

Examples are here and here.

Cheers,

Euan.

RSS feeds in static pages

Posted on: 05/09/04 09:28am
By: Anonymous

Doesn't work, you get T_VARIABLE error's.

RSS feeds in static pages

Posted on: 05/09/04 10:08am
By: Euan

[QUOTE BY= Bogus] Doesn't work, you get T_VARIABLE error's.[/QUOTE]

No, you get T_VARIABLE errors. I get a page of nicely formatted links.
If you post your errors, then we can get constructive...

Cheers,

Euan.

RSS feeds in static pages

Posted on: 05/09/04 10:52am
By: Anonymous

I had syntax error, it works great!

RSS feeds in static pages

Posted on: 05/09/04 08:52pm
By: Euan

Glad to hear it.

Cheers,

Euan.

RSS feeds in static pages

Posted on: 06/09/04 07:58am
By: adalia

Glad to fing this hack, guys....


Adalia
Filles

RSS feeds in static pages

Posted on: 06/09/04 11:25am
By: Anonymous

[QUOTE BY= adalia] Glad to fing this hack, guys....


Adalia
Filles[/QUOTE]

Is that you on the front page? Can we hook up?

RSS feeds in static pages

Posted on: 19/09/04 05:32pm
By: zemkat

Will this program make those .rdf files? My error log says "no such file or directory" when it is looking for test.rdf and the only file in my backend directory is geeklog.rdf, which is empty.

Any help would be greatly appreciated!

RSS feeds in static pages

Posted on: 20/09/04 05:56am
By: Euan

If you read teh explanation on my site, it mentions that the first time that you view the page, the rdf file does not exist so it generates an error. After that, there is no problem as the file is created the first view.

I know it would be better to have some sort of check first, but that would take time...

Cheers

Euan

[edit] that didn't answer your problem, did it. Sorry. You may have a problem with permissions on your backend directory if the file is not being created.

Cheers,

Euan.

RSS feeds in static pages

Posted on: 20/09/04 02:01pm
By: zemkat

Sorry, should've mentioned -- I did reload several times as your page suggested, but it had no effect.

I fixed the permisions problem on the backend directory, and it is working great now. Thanks!

RSS feeds in static pages

Posted on: 26/09/04 09:59pm
By: jnordquist

I try it and I get (on my site, not yours):




Parse error: parse error, unexpected '<' in /home2/kenosha/public_html/staticpages/index.php(80) : eval()'d code on line 1



I don't think it's anything in your instructions that are going wrong...

I do have PHP in static pages, etc.

RSS feeds in static pages

Posted on: 27/09/04 03:51am
By: Robin

Very nice one Works like a charm.
Thanks Euan

RSS feeds in static pages

Posted on: 29/09/04 11:28am
By: Robin

A question:
Is it posible to limit the number of news to be displayed using this solution?

RSS feeds in static pages

Posted on: 30/09/04 05:12pm
By: Anonymous

Is it possible to limit number of stories? I didn't see a hardcoded number in the code.

RSS feeds in static pages

Posted on: 09/04/06 06:24pm
By: Don

When I go to the page to grab the archived file, the formatting is weird. And instead of downloading the archived file, the code for the .tar file displays in my browser window (I tried it in both FireFox and IE).

Is there anywhere else to get a copy of the file? I tried the old geeknews.php page, but that doesn't seem to work with the latest GL release. Thanks!

On Edit: Euan, it looks like all the formatting on your download pages is b0rked. The icons and text are too small to read, and nothing is downloadable from here.

I just tried it on a third machine (Win XP Pro on all of them) and the pages all look the same. Thought you'd like to know.

Edit 2: Just checked it on the lone Mac here, and it looks the same.

- D

RSS feeds in static pages

Posted on: 10/04/06 10:49am
By: samstone

Both his forum and downloads are messed up. But you can still download the file by right clicking on it, if you can read those tiny prints, and saving on your computer.

You need to delete the .htm extension in order to extract the archive. I agree that things on his sites don't seems to follow the standard.

Sam

RSS feeds in static pages

Posted on: 14/04/06 07:49am
By: Infomundo

Here is how I do RSS in Static Pages:

1. Download the software from http://www.feedforall.com/more-php.htm (It is free)
2. Enable executing PHP from the static page (Groups->Static Page Admin-> staticpages.PHP)
3. Create a Static page
4. Select "Execute PHP"
5. Type something like the following in the static page:

require_once ('http://www.splix.com/rss/rss2html.php?XMLFILE=http://www.endi.com/feeds/ultimahora/ultimahora3.xml&TEMPLATE=http://www.splix.com/rss/sample-template.html&MAXITEMS=20');

Replace http://www.splix.com/rss/rss2html.php with the script you installed in your server.
Replace http://www.endi.com/feeds/ultimahora/ultimahora3.xml with the RSS feed you want.
Replace http://www.splix.com/rss/feedtemplate.html with the template you downloaded.
Replace 20 with the number of headlines you want to be displayed.

That is it!

Want to see it working???? Here you go!
http://www.bodas.com/staticpages/index.php?page=20060414063519517

Now, if I can only figure out how to make UTF-8 work !!!!!!! See all those weird characters?
It is Spanish... (no problem for English, I guess).

Richard
----------

RSS feeds in static pages

Posted on: 16/04/06 02:59pm
By: Don

Thanks, Info!

That'll give me something to play around with today. I'll let you know how I fare.

- D

RSS feeds in static pages

Posted on: 06/09/06 09:33am
By: jetshack

[QUOTE BY= euan] If you want a quick and easy way to include an RSS feed in a static page, see here.

Examples are here and here.

Cheers,

Euan.[/QUOTE]

Thanks Euan... worked like a charm.

RSS feeds in static pages

Posted on: 06/09/06 11:54am
By: beewee

Have a look over here, worked fine for me in a static PHP page.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=39887