View Full Version : Change forum depth per category - Please!
Abbas
11-05-2002, 01:05 PM
Anyone? This would be one amazing hack, it really would. Can anyone do it?
This has been requested before but to no luck...
Please! :)
Logician
11-05-2002, 09:34 PM
I dont know how much help this would be to you but I'll give you a "raw code" that you can play with:
edit index.php, find:
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
if ($depth<$forumhomedepth) {
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
Replace it as
if ($forum[forumid]==A) {$forumhomedepth_log=X;$depth_log=Y;}
elseif ($forum[forumid]==B) {$forumhomedepth_log=Z;$depth_log=W;}
else {$forumhomedepth_log=$forumhomedepth;$depth_log=$d epth;}
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth_log$tempext")."\";");
if ($depth_log<$forumhomedepth_log) {
$forumbits.=makeforumbit($forum['forumid'],$depth_log+1,$forumperms);
Now play with A, B, X, Y, Z and W and you'll see how it works..
Abbas
11-06-2002, 02:56 PM
Cheers Logician! I'll have to try this it out soon. Is there anyway it can be added to the control panel, so it can just be set to a value in the modify forum options menu? Or is that too complicated?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.