vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Change forum depth per category - Please! (https://vborg.vbsupport.ru/showthread.php?t=45414)

Abbas 11-05-2002 01:05 PM

Change forum depth per category - Please!
 
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:

PHP Code:

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");

        if (
$depth<$forumhomedepth) {
          
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms); 

Replace it as
PHP Code:

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=$depth;}

        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?


All times are GMT. The time now is 07:04 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
  • Page Generation 0.00931 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete