Subject: HOWTO activate Older Stories Block

Posted on: 04/05/02 02:55am
By: rocteur

First set this line in config.php $_CONF['olderstuff'] = 1; Then create a new block: Block Title: Older Stories Block Name: older_stories Block Type: Normal Block Content 'type anything in here' Save block. Edit any story. That is it. Someone please put this in FAQ and/or Docs. Regards, // Jerry

Better idea ...

Posted on: 04/05/02 04:03am
By: Dirk

I've got an even better idea: We are going to fix this in the next release of Geeklog ;-)

Two additional notes:

bye, Dirk


Better idea ...

Posted on: 04/05/02 08:19am
By: rocteur

Thanks Dirk.. This is what it looks like now: if ($day != $daycheck) { if ($day != 'noday') { $daylist = COM_makeList ($oldnews); $daylist = preg_replace ("/(\015\012)|(\015)|(\012)/", "", $daylist); $string .= $daylist; } $day2 = strftime("%m/%d",$A['day']); $string .= '<br><b>' . $daycheck . '</b> <small>' . $day2 . '</small><br>' . LB; $oldnews = array (); $day = $daycheck; } Sorry this looks odd but you don't support the <pre> tag!

Better idea ...

Posted on: 05/05/02 09:27pm
By: Anonymous

is there a way to only have stories that are between the last 10-20? That way, stories already on the front page do no get listed there as well.

limitnews

Posted on: 06/05/02 12:36am
By: Dirk

As I tried to explain in my comment above, it all depends on the variable $_CONF['limitnews'] in your config.php.

Let's say, this variable has a value of 10. Then Geeklog would show 10 stories on the front page and the Older Stories block would show the next (i.e. older) 10 stories.

Now, of course, since every user can set the amount of stories to be displayed on the front page in his/her user preferences, this will not always work out. If you have limitnews set to 8 (as it is currently here on www.geeklog.net), but you have 10 stories displayed on the front page, then you will have two 'overlapping' stories which are displayed both on the front page and in the Older Stories block.

The problem here is that the Older Stories are actually stored in the database and not displayed individually for every user. So other than setting your defaults accordingly, there currently is no really satisfying solution to this.

bye, Dirk


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