vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   "correct" way to include a custom template? (https://vborg.vbsupport.ru/showthread.php?t=216246)

DetroitYES 06-16-2009 12:38 AM

"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,

Attitude5ire 06-16-2009 11:56 AM

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..

DetroitYES 06-16-2009 02:01 PM

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

Quote:

Originally Posted by Attitude5ire (Post 1830667)
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 (Post 1830667)
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?


All times are GMT. The time now is 01:37 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.02334 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)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