Welcome to Geeklog, Anonymous Thursday, September 19 2024 @ 07:55 pm EDT

Geeklog Forums

More stories in 'Older Stories' ?


Big

Anonymous
How do I change the 'Older Stories' block to show more than 10 articles? Lets say 20. Thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The number of entries in the Older Stories block depends on the value of $_CONF['limitnews'], which is also the default number of stories on the front page.

The idea was that if you have, say, 10 stories on the front page, then the Older Stories block would list the next 10.

If you want to change that, you would have to edit the SQL request in function COM_olderStuff() in lib-common.php so that it ends in e.g.
Text Formatted Code
LIMIT 20, {$_CONF['limitnews']}
 
which would translate to "limit to 20 posts, starting after the $_CONF['limitnews']th post".

You will also have to edit and save a story to force an update of the Older Stories block.

bye, Dirk
 Quote

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