Welcome to Geeklog, Anonymous Tuesday, April 16 2024 @ 01:28 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?
 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:
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;

}
 
Then call that from index.php.

---
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.
 Quote

All times are EDT. The time is now 01:28 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