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)
-   -   What template changes what? (https://vborg.vbsupport.ru/showthread.php?t=215453)

bL@De 06-06-2009 02:14 AM

What template changes what?
 
Hi Guys,
Been a long time vB user and have always done upgrades pretty much blind, when reverting templates it's always been a bit of hit and miss to see whether it works however what I'm wanting to know is if I edit a template how do I know where it's going to change on the site?

Perhaps not the clearest way so far but let me see if I can explain a little further.

The footer for instance covers right down the bottom, what do others cover ie FORUMDISPLAY, postbit, SHOWTHREAD etc? Obviously that isn't all of them but I'm wanting to get the bigger picture so I can understand it a little more as it's only a matter of time before something goes pear shaped.

I am sure I found a site a while back, can't remember whether it was here it not which basically said if you changed the header for instance all of this content can be changed.

At present I use something like examdiff to see the visual differences between what I had previously before the upgrade and then grab the reverted file and put in what I believe is required.

Can anyone point me in the right direction, please :)

Thanks

Cheers

Lynne 06-06-2009 02:33 AM

The only thing I can think of is to do a search in the files for the template name and look for where it is evaled. That should give you a good idea of where it is used.

It is very easy to take a look at a page and then see what templates are used in it (so, kinda the opposite of what you are saying). Just do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.

bL@De 06-06-2009 09:50 PM

Thanks for that Lynne, wasn't what I was after but that will do just nicely and perhaps even learn a little more along the way.

Thanks again!


All times are GMT. The time now is 01:25 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.01056 seconds
  • Memory Usage 1,708KB
  • 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)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