Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2001, 06:25 AM
Inzagi Inzagi is offline
 
Join Date: Nov 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

collapse forums in the "forums and moderators" "modify" page
Ok,
I have now entered the license number. Hoping you are satisied now with this

My problem ist the following:
I have about 500-1000 forums, don't know exactly how much.
Many of them aren't in use yet.

But our problem ist, it takes about to 6 minutes with dsl loading the "forums and moderators" "modify" page.

What can I do about this?
Is there a way to personate the forums like it is manged with the templates, meaning they are king of collapse and you can expand certain areas ??

Otherwise I will not be able to go to this area of the control panel anymore very soon.
Reply With Quote
  #2  
Old 10-04-2001, 06:32 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want, a "depth level" can be set, but it will only be gloablic.
So it will basicaly work like the depth in the forums themselves, that you can set in the control panel.

But you won't be able to just expand this group, and leave the others collapsed.

If you'd like that, I might be able to work something out.
Reply With Quote
  #3  
Old 10-04-2001, 09:03 AM
Inzagi Inzagi is offline
 
Join Date: Nov 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
So it will basicaly work like the depth in the forums themselves, that you can set in the control panel
So you needn't to show all forums and subforums at once on one screen anymore?

If so: This would be brillant because I could handle the huge amount of required fourms in the future!

Quote:
If you'd like that, I might be able to work something out.
Would be really great !!!!!!!!!
Reply With Quote
  #4  
Old 10-04-2001, 09:29 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I'll see what I can do.
Reply With Quote
  #5  
Old 10-05-2001, 07:00 AM
Inzagi Inzagi is offline
 
Join Date: Nov 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any progress yet ?

I really must have this hack because otherwise I can't control my "usercp forums and moderators" anymore ...
Reply With Quote
  #6  
Old 10-05-2001, 09:09 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not yet, you're gonna have to wait a while, sorry.
Reply With Quote
  #7  
Old 10-06-2001, 01:47 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This was actually surprisingly easy, now I got a whole afternoon with nothing to do.

In forum.php, replace this:
Code:
  displayforums(-1);
  echo "</ul>\n</td></tr>\n";

  doformfooter("Update order");
with this:
Code:
  if (isset($depthtoshow)==0)
    $depthtoshow="1000";
  displayforums(-1,$depthtoshow);
  echo "</ul>\n</td></tr>\n";

  doformfooter("Update order");
(almost end of file)

Now replace this:
Code:
// ###################### Start function displayforums #######################
function displayforums($parentid=-1) {
  global $DB_site,$session;
with this:
Code:
// ###################### Start function displayforums #######################
function displayforums($parentid=-1,$depth=1000) {
  global $DB_site,$session;

  $curdepth=$depth-1;
Now replace this:
Code:
    echo "<ul>\n";
    displayforums($forum[forumid]);
    echo "</ul>\n";
with this:
Code:
    echo "<ul>\n";
    if ($curdepth!=0)
      displayforums($forum[forumid],$curdepth);
    echo "</ul>\n";
And that's it!

Now you can go to:
http://www.forums.com/admin/forum.ph...&depthtoshow=3
http://www.forums.com/admin/forum.ph...&depthtoshow=1
http://www.forums.com/admin/forum.ph...&depthtoshow=5
http://www.forums.com/admin/forum.ph...&depthtoshow=9

Got it?
Reply With Quote
  #8  
Old 10-08-2001, 08:19 AM
Inzagi Inzagi is offline
 
Join Date: Nov 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very very much mate !!!
You are d'a MAN !!!!!!
I hope that I can now handle the high amout of boards in forums and moderators !
Reply With Quote
  #9  
Old 10-09-2001, 01:30 AM
justsomedude justsomedude is offline
 
Join Date: Nov 2001
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm a bit confused by these posts, but i think this is a feature i'd really like.

what i'm trying to accomplish is a collapsed category within my forums. I have multiple categories with multiple sub forums & i'd like the ability to collapse a single category while leaving the others expanded.

I checked out Inzagi's site & it looks as though that's what was accomplished. was that a result of this hack?
Reply With Quote
  #10  
Old 10-09-2001, 10:26 AM
Inzagi Inzagi is offline
 
Join Date: Nov 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you are not aware of the fact that these "collapse forums" is just for the admin panel !!
It has nothing to do with the look of the board or the categories there.

It's just made to handle the forums in the admin cp better.

[quote]
what i'm trying to accomplish is a collapsed category within my forums. I have multiple categories with multiple sub forums & i'd like the ability to collapse a single category while leaving the others expanded.
[/qoute]

This hack doen't exist I think.
I was searching for something like this too but I found nothing.
So I am really amazed that you have seen something like this on my forums ?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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
  • Page Generation 0.07670 seconds
  • Memory Usage 2,258KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete