vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Create extra "Forum" tab (https://vborg.vbsupport.ru/showthread.php?t=281287)

michaelbang 04-08-2012 07:40 PM

Create extra "Forum" tab
 
Hi,

I would like to create an extra "Forum" tab. The reason why is that I want to devide my site into two forum.

Is that even possible?

Thanks,

//Michael

SEOvB 04-09-2012 10:13 PM

Yes, it's possible, but more difficult than you might think. This is due to the main "Forum" tab's subnavigation being displayed when the tab is selected.

First, you'd have to arrange your forum structure so that there are two top-level forums containing all other child forums.

Second, you'd have to make a clone of the first li in the navtabs ul of the navbar template. Then you'd have to change the links immediately inside of both li's from {vb:link forumhome} to the links of your two forums.

Third, you'd have to code a plugin so that your website can distinguish which tab should have the 'selected' status, which is usually done via THIS_SCRIPT, then edit the template accordingly.

Fourth, you'd have to debug the myriad problems that most likely arise from these changes.

I'm not aware of any mods that could do this in one step. Hopefully, someone will chime in with a link and save you all of this trouble.

-Nick, SEOvB Developer

michaelbang 04-16-2012 09:22 PM

Quote:

Originally Posted by SEOvB (Post 2318475)
Yes, it's possible, but more difficult than you might think. This is due to the main "Forum" tab's subnavigation being displayed when the tab is selected.

First, you'd have to arrange your forum structure so that there are two top-level forums containing all other child forums.

Second, you'd have to make a clone of the first li in the navtabs ul of the navbar template. Then you'd have to change the links immediately inside of both li's from {vb:link forumhome} to the links of your two forums.

Third, you'd have to code a plugin so that your website can distinguish which tab should have the 'selected' status, which is usually done via THIS_SCRIPT, then edit the template accordingly.

Fourth, you'd have to debug the myriad problems that most likely arise from these changes.

I'm not aware of any mods that could do this in one step. Hopefully, someone will chime in with a link and save you all of this trouble.

-Nick, SEOvB Developer

That's it!? ;)

Well, for now I have to pass. That's just too much for me (not being a programmer). But thank you very much for the input! :)


All times are GMT. The time now is 10:13 PM.

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.00939 seconds
  • Memory Usage 1,717KB
  • 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_quote_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