Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
  #1  
Old 01-26-2007, 07:43 AM
ferrarislave ferrarislave is offline
 
Join Date: Jul 2005
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Vbulletin Skinners...

I have a question for you. I've skinned a few boards now. Most notibly my own www.exotixboard.com]Exotic Cars[/url]. Each time I get stuck on the forumhome_forumbit_level1_nopost and forumhome_forumbit_level1_post templates. I just don't get how they are laid out and how they are both connected to each other. For example on my forum now the catagory header over each catagory/forum. It took forever to do that and it still looks bad in Safari. What is the typical process? Is there a set of tables in those two templates that you need to re-arrange to add your own tables with the pieces you want to appear, or? I am pretty decent in HTML, so you may elaborate.



Picture of what im talking about:

Reply With Quote
  #2  
Old 01-26-2007, 10:16 AM
CyberAlien's Avatar
CyberAlien CyberAlien is offline
 
Join Date: Mar 2002
Posts: 438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its quite simple: every forum has a level. First is level 1, then level 2, etc... On index you see forums with level 1 and level 2. All forums on level 2 have parent lvl 1 forum. That lvl 1 forum might be a forum, or category.

Here is how templates for it are done: all forums are include in template "forumhome" via variable $forumbits. Variable $forumbits is list of compiled templates for lvl 1 forums. Every lvl 1 template has variable $childforumbits that includes lvl 2 subforums.

So for your screenshot it would be like this:
- forumhome template
- $forumbits:
- - forumhome_forumbit_level1_nopost template for "General Forums"
- - variable $childforumbits in that template includes:
- - - forumhome_forumbit_level2_post template for "Asian Exotics"
- - - forumhome_forumbit_level2_post template for "American Exotics"
... etc. All those templates are added one after another
- - the rest of forumhome_forumbit_level1_nopost template for "General Forums" after $childforumbits
- - forumhome_forumbit_level1_nopost template for "Other" category
- - variable $childforumbits in that template includes:
- - - forumhome_forumbit_level2_post template for "Off Topic"
... etc...

and so on.

Every template for one level is shown right after another template. All nested templates are in one variable that is shown in parent template.
Reply With Quote
  #3  
Old 01-28-2007, 04:24 AM
ferrarislave ferrarislave is offline
 
Join Date: Jul 2005
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see, my forum has changed a bit since, if you load it up now exotic cars you will see that it has subforums in some of the forums. Does that make any difference? Is it still level2_post?
Reply With Quote
  #4  
Old 01-28-2007, 08:02 AM
CyberAlien's Avatar
CyberAlien CyberAlien is offline
 
Join Date: Mar 2002
Posts: 438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those subforums are merged in variable $forum[subforums] inside forumhome_forumbit_level2_post template, and code for it is generated from forumhome_subforum* templates.
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 09:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03847 seconds
  • Memory Usage 2,183KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete