![]() |
What about listing all forums except hidden (moderators) forum?
Can that be done by uncommenting the $whereforum line & excluding a certain froum? |
Quote:
$allthreads=$DB_site->query("SELECT threadid,title FROM thread WHERE replycount='0' $whereforum ORDER BY dateline LIMIT $threadnum"); AS: $allthreads=$DB_site->query("SELECT threadid,title FROM thread WHERE replycount='0' AND (forumid=X OR forumid=Y OR forumid=Z) ORDER BY dateline LIMIT $threadnum"); (Replace X,Y,Z and if you need to add more forums use "OR forumid=N" format) |
Thanks all.
how would i modify this to specify the forumid in the url? i.e: http://yoursite/vb/new.php?&forumid=3 |
Quote:
$whereforum=""; AS: $whereforum="AND forumid='".$forumid."'"; However this may not be a good idea if your users are allowed to use this script since they can access hidden forums with this method.. |
SOrry i dont follow this, could someone please put it simply for me? I am quite lost :(
Thanks Matthew |
Please............... Someone
|
May I offer an alternative? This is the one I use, works great.
https://vborg.vbsupport.ru/showthrea...=virgin+topics |
All times are GMT. The time now is 11:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|