Tilmanitou
05-06-2004, 04:40 PM
I am searching for a way to order ALL sub-forums in my forum in alphabetical order.
in vB2 it was done like that:
in forumdisplay.php:
find:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder,forumid');
and replace with:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,title,forumid');
pretty easy and small hack, just one word to change. is there anyone out there who knows how to do that in vB3?
Thanks!
in vB2 it was done like that:
in forumdisplay.php:
find:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder,forumid');
and replace with:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,title,forumid');
pretty easy and small hack, just one word to change. is there anyone out there who knows how to do that in vB3?
Thanks!