Welcome to Geeklog, Anonymous Sunday, September 24 2023 @ 01:25 pm EDT
Geeklog Forums
Newsfeeds for news portal
jeremy
Anonymous
I'm trying to create a news portal using geeklog. I have the news block working great. However, I would like to make the center of the page news from the various feeds. Any suggestions on how to accomplish this?
2
2
Quote
Status: offline
Tony
Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
Create a custom function, something like CUST_getNews($rdf_url) in lib-custom.php.
The basic logic would be:
function CUST_getNews($rdf_url);
// Here you part the feed using the GL function(s) in
// lib-common.php
$retval = COM_startBlock($feedTitle);
$retval .= {parsed RDF feed};
$retval = COM_endBlock();
return $retval;
}
Then call that from index.php.
The reason people blame things on previous generations is that there's only one other choice.
Text Formatted Code
function CUST_getNews($rdf_url);
// Here you part the feed using the GL function(s) in
// lib-common.php
$retval = COM_startBlock($feedTitle);
$retval .= {parsed RDF feed};
$retval = COM_endBlock();
return $retval;
}
---
The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
2
1
Quote
All times are EDT. The time is now 01:25 pm.
- 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