Blog details

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
ionrock
Posts: 279
Joined: Fri 20. Feb 2004, 17:04

Blog details

Post by ionrock »

For anyone who is using my blog hack (and it really is a hack ;) ) if you want to limit how many blogs you want on a page you need to edit your content.func.inc.php file. Look for {BLOG} and in the $sql variable just ad a

Code: Select all

 LIMIT 0,#

where # is the amount you want per page. The first part is where you want to start on the list. If you keep it at 0 then the latest will show up on top. If you make 5 then the 5th latest would be on top and the items older than that would afterward. This is most likely what no one would want but you never know. You can also look at the docs at mysql.com for more info on the LIMIT modifier.
Post Reply