Welcome to Geeklog, Anonymous Tuesday, December 24 2024 @ 12:08 pm EST

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 EST. The time is now 12:08 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