Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 05:36 am EST
Geeklog Forums
I found a quick fix for putting headlines into a centerblock in GL 1.4.1.
Status: offline
Don
Forum User
Full Member
Registered: 06/09/04
Posts: 153
I've been trying the code that's been posted here for turning story headlines into a static page centerblock. Unfortunately, none of the code I found in the forums seems to work with 1.4.1, and I don't know enough PHP to tear down the code and make it 1.4.1-compatible.
So I went looking and found a javascript app that uses Ajax and SimplePie to allow you to parse your own RSS and display it as headlines in a centerblock (that was the only way I could figure out how to do it, and luckily the php included with the app allows you to configure the javascript to only display headlines).
Anyway, the app is at http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/index.htm. Maybe someone brighter than I am can grab it and turn it into a real GL plugin.
I know it's a quick and dirty fix, but necessity is the mother of invention.
Thanks to everyone who tried to help with the older code. I appreciate it.
- Don
So I went looking and found a javascript app that uses Ajax and SimplePie to allow you to parse your own RSS and display it as headlines in a centerblock (that was the only way I could figure out how to do it, and luckily the php included with the app allows you to configure the javascript to only display headlines).
Anyway, the app is at http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/index.htm. Maybe someone brighter than I am can grab it and turn it into a real GL plugin.
I know it's a quick and dirty fix, but necessity is the mother of invention.
Thanks to everyone who tried to help with the older code. I appreciate it.
- Don
7
8
Quote
Status: offline
Benta
Forum User
Regular Poster
Registered: 03/11/05
Posts: 80
I missed your description, so I might be wrong, but what you are trying to do doesn't seem too difficult.
This is what I use in a static page:
global $_CONF;
include( $_CONF['path_system'] . "/lib-rss.php" );
$file = "csnews.rdf";
$feed = "http://compoundsemiconductor.net/rss/news.xml";
$time = time() - 3600;
print staticpageRSS ( $file, $feed, $time );
There shouldn't be any problems connecting it to your own feed.
The file lib-rss.php is something I found somewhere and placed in the systems directory. It is made by Euan on this site (geeklog.net)
This is what I use in a static page:
Text Formatted Code
global $_CONF;
include( $_CONF['path_system'] . "/lib-rss.php" );
$file = "csnews.rdf";
$feed = "http://compoundsemiconductor.net/rss/news.xml";
$time = time() - 3600;
print staticpageRSS ( $file, $feed, $time );
There shouldn't be any problems connecting it to your own feed.
The file lib-rss.php is something I found somewhere and placed in the systems directory. It is made by Euan on this site (geeklog.net)
8
8
Quote
All times are EST. The time is now 05:36 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content