Thread: Forum Links
View Single Post
  #20  
Old 08-10-2002, 02:49 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
The more forums you have the query count would probably go up, right? Did you check the function out that Firefly posted on getting permissions from the db? That might help.
I don't know what you're talking about; can you give me a link to what FireFly posted?

Quote:
Originally posted by Boofo
Also, it doesn't display in the same order my forums are listed. Any way to get that displaying in the same order?
The order of the links is based on the displayorder number you give each forum in the admin cp. However, the forums home page doesn't exactly list the forums in the same order, because the forums are grouped by category.

Say you have CategoryA, with a displayorder of 1. Then you have CategoryB, with a displayorder of 10. Then you have two forums, Forum1 with a displayorder of 2, and Forum2, with a displayorder of 3. If Forum2 is a subforum in CategoryA, on your forums home page, it will appear higher up that Forum1, even though it has a higher displayorder, because it's part of a category with a lower forumdisplay. I think that's probably a little confusing; I hope it makes sense.

What I did to get everything in the right order is this. For all categories, I gave them displayorders of 100, 200, 300, etc., in the order they should appear on the forums home page. Then for each main forum, I gave them a number like 110, 120, 130, etc., if the forum is in the first category (which has a displayorder of 100); for forums in the second category, they were numbered like 210, 220, etc., and so on, you get the idea. If any main forum has a subforum, say a forum with a displayorder of 110 has a subforum, the subforum displayorder is 111, and another would be 112, and so on. Make sense? If you renumber the displayorders of all your forums like this, they should show up on the board itself the same way they always have, but will also be in the correct order in the forumlinks.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01157 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete