Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2009, 01:38 AM
DetroitYES's Avatar
DetroitYES DetroitYES is offline
 
Join Date: Mar 2009
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "correct" way to include a custom template?

I've been working on a particular skin for our site Detroityes.com that will include sidebar navigation to the rest of the site (the non forum sections) and google ads... You can see the testing server here:

http://www.atdetroit.com/testvb/forumdisplay.php?f=2

I was able to constuct this fairly easily by following the "How To Include a Custom Template via Plugins" Thread:

https://vborg.vbsupport.ru/showthread.php?t=119933

My question relates to a comment someone made about this not being the most efficient method of including a custom template. Which is the most efficient way?

My understanding of php is rudimentary but my instinct tells me that the template names need to be added to the array elsewhere, instead of running the function every time a page is loaded? In other words, how or where would I alter the php to as to tell the software to load these templates as it would the non custom ones? Would this be in cache_templates and global_start? Seems logical enough but I'm a little timid to fart with the php until I atleast know that I'm in the right spot...

Thanks in advance,
Reply With Quote
  #2  
Old 06-16-2009, 12:56 PM
Attitude5ire's Avatar
Attitude5ire Attitude5ire is offline
 
Join Date: Feb 2006
Posts: 791
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uhm i can tell you creating siderbar for your Forum and its global elements can be done without editing plugins. You need to edit forumhome, showthread, forumdisplay and profile templates which basically covers most of it.

I think there are some mods available for this maybe ultimate siderbar etc.. not exactly sure but you probably need to post this in coding section for help perhaps if you are going the plugins way..
Reply With Quote
  #3  
Old 06-16-2009, 03:01 PM
DetroitYES's Avatar
DetroitYES DetroitYES is offline
 
Join Date: Mar 2009
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure I understand... I guess I'm a little ignorant to the vbulletin architecture...

Quote:
Originally Posted by Attitude5ire View Post
Uhm i can tell you creating siderbar for your Forum and its global elements can be done without editing plugins. You need to edit forumhome, showthread, forumdisplay and profile templates which basically covers most of it.
I edited all of those to get a unanimous look already, so i have a new header (the flash isnt working atm) a right and left sidebar and a new footer. I prefer templates as opposed to hard coding the blocks into each page for edibility... Are you suggesting there is an easier more efficient way to do this whilst maintaining the edibility? Thanks.

Quote:
Originally Posted by Attitude5ire View Post
I think there are some mods available for this maybe ultimate siderbar etc.. not exactly sure but you probably need to post this in coding section for help perhaps if you are going the plugins way..
I realized that after posting, is there a way to request a mod move the thread or should I just repost?
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 03:52 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.03667 seconds
  • Memory Usage 2,179KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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