Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2011, 02:34 PM
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Location: Dengoku
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How To Split HTML For Header+Footer Tempaltes

ok so i'm designing a template from scratch because i can't get used to this new vbulletin style and have a few questions.


QUESTION 1: the order is

header
headinclude
headinclude_bottom
forumhome/forumdisplay/showtrhead/whatever
footer


right? what actually defines this?
(is there a container template or such that calls for all this?)


QUESTION 2: so now if i want to create a completely new style how would i split up my 3 tables, for example lets say my code is:

Code:
<table id="MyOwnFixedContainer" width="1088" align="center" border="0">
<tr>
<td id="header">&nbsp;</td>
</tr>
<tr>
<td id="forumbit or whatever">&nbsp;</td>
</tr>
<tr>
<td id="footer">&nbsp;</td>
</tr>
</table>
would this be split into:

HEADER TEMPLATE
Code:
<table width="1088" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="header">&nbsp;</td>
</tr>
<tr><td id="forumbit or whatever">


FOOTER TEMPLATE
Code:
</td>
</tr>
<tr>
<td id="footer">&nbsp;</td>
</tr>
</table>

and well whatever i want to actually be between header and footer would just be in showthread/forumdisplay/memberinfo or whatever.

would this work?
Reply With Quote
  #2  
Old 03-14-2011, 04:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That should work assuming all the stuff in the middle is formatted correctly.

Your order is a bit off. If you look at a template like FORUMHOME or FORUMDISPLAY, you can see the whole <head> tag is in there which includes a call to the template headinclude at the top and headinclude_bottom at the bottom. Then you see the <body> tag which starts right out calling the header and navbar template. The footer is then at the very bottom.
Reply With Quote
  #3  
Old 03-14-2011, 05:14 PM
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Location: Dengoku
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello lynne, thanks a lot for replying!

so forumhome, showthread, usercp etc are actually the "container like" templates that call the header etc and place them?

interesting, i hadn't gotten to forumdisplay etc yet. but that makes excellent sense. thanks a lot that was very helpful!

i do have one final question, every vbulletin page calls the header, navbar, headinclude, headinclude_bottom and footer right? so if i take everything out of the headinclude and navbar and just place it all in the header, it'll still work practically teh same right?
Reply With Quote
  #4  
Old 03-14-2011, 06:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wordplay View Post
i do have one final question, every vbulletin page calls the header, navbar, headinclude, headinclude_bottom and footer right? so if i take everything out of the headinclude and navbar and just place it all in the header, it'll still work practically teh same right?
Yes and No.

You cannot just move everything into the header template because every templates needs to have the variables registered for use in it. So, if you move a variable $my_headinclude_variable into the header template and it's not registered for use, then you will get nothing.
Reply With Quote
  #5  
Old 03-14-2011, 06:40 PM
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Location: Dengoku
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got it, thanks again! enjoy your day.
Reply With Quote
Reply


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 07:14 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.07657 seconds
  • Memory Usage 2,198KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_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