Welcome to Geeklog, Anonymous Wednesday, January 15 2025 @ 06:35 am EST

Geeklog Forums

Basic Headlines File


Status: offline

RichardTowler

Forum User
Chatty
Registered: 03/10/05
Posts: 49
Location:UK
I'd like to create a basic headlines file, for example, just a simple php file with the latest headlines and the url to the story, just to save some time I was wondering if anyone had already done something like this and would be willing to share the info and save me some time.

Thanks
GameFaction - For All Your Gaming Needs
 Quote

Status: offline

RichardTowler

Forum User
Chatty
Registered: 03/10/05
Posts: 49
Location:UK
anyone? Smile
GameFaction - For All Your Gaming Needs
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by RichardTowler: I'd like to create a basic headlines file, for example, just a simple php file with the latest headlines and the url to the story


AFAIU you you are talking about agregating headlines on your site, right?

If so, create an rdf file and make a portal block. That should do.
HTH
Geeklog Polish Support Team
 Quote

Status: offline

RichardTowler

Forum User
Chatty
Registered: 03/10/05
Posts: 49
Location:UK
I'd like to allow an external news source to read the news, but it requires a seperate headlines file, from the main page to be able to update.

http://www.newsnow.co.uk/publishers/specialpage.html
GameFaction - For All Your Gaming Needs
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
If a RSS feed doesn't work: make a static page, PHP-enabled (return), do not display as block or centerblock, with this code:
Text Formatted Code

$display .= COM_startBlock('Headlines');              
$display .= phpblock_StoriesByTopic();
$display .= COM_endBlock();

return $display;


 


And put the Stories by Topic block (here) in lib-custom.php.

You may have to change some settings in the code, but it's not that hard. Just tried it, and it works fine for a non-developer like me.

Here's the result (temp): http://www.watersporters.info/staticpages/index.php/20060222205406872
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

All times are EST. The time is now 06:35 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