vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Different forum order for different styles? (https://vborg.vbsupport.ru/showthread.php?t=151874)

Mark Hewitt 07-10-2007 11:41 AM

Different forum order for different styles?
 
I have two basic styles on my site, one which focuses on Racing (Car racing) and one on Rallying.

In the Rallying style I'd like to have the rallying forums appear at the top, is there a simple way to do this?

Mark Hewitt 09-17-2007 10:02 AM

*bump* I'm still trying to figure this out with no luck. It was so easy in vb2 :(

WhaLberg 09-17-2007 10:55 AM

This is not something that many vBulletin owners may need so you should better post this at paid services forum.

Mark Hewitt 09-19-2007 07:31 AM

If I could just get some understanding of how the code gets the forum ordering from the database and then uses it to display the main page, I'd be half way there.

In vb2 it was the "displayorder" field in the forum table, which is still there. But the only reference I can find to that in the code seemingly isn't used any more :confused:

Well I've finally figured it out..

I did it by going into the construct_forum_bit function and putting this in
Code:

foreach ($vbulletin->iforumcache["$parentid"] AS $forumid)
        {
 
          if($userStyle == 13) // If we are on rallyforum then swap the sections over
          {
                if($forumid == 118) {
                  $forumid = 120;
                } else {
           
                if($forumid == 120) {
                  $forumid = 118;
                }
              }
          } // end if rallyforum
etc...



All times are GMT. The time now is 11:19 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.01461 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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