vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   What file to modify to change the code for the header? (https://vborg.vbsupport.ru/showthread.php?t=225095)

PlayersBay 10-12-2009 06:12 PM

What file to modify to change the code for the header?
 
Beginner's question for sure but what file to I modify to change the header in vbulletin?

Thanks!

Lynne 10-12-2009 06:40 PM

Probably the header template.

PlayersBay 10-13-2009 05:01 PM

Thanks for the reply Lynne.

In the admincp I went to styles&templates >> style manager >> edit template >> header.

Now I would click edit or customize (not sure which).

Is this the right place to add some php custom code so that it will work site wide and work with php tags?

Thanks.

Jon1422 10-13-2009 05:15 PM

If its currently unedited - click the customised button.

If its already customised (in which case they usually display red), click the edit button.

Don't forget to take a copy before you start playing ;)

Lynne 10-13-2009 05:34 PM

You cannot add php code to templates - you may only add html to templates. If you need to add some php, you need to put that in a plugin and then you may put the output from that code into the header template. See this in the manual - Including External Files

Sid_pachi 10-13-2009 05:34 PM

I recommend using Andreas's Template modification system

https://vborg.vbsupport.ru/showthrea...ate+management

this way you dont actually mess with the templates its a life saver

PlayersBay 10-16-2009 12:24 PM

Thanks everybody! Really quick and good replies.

FYI We went with Lynne's solution in the end.


All times are GMT. The time now is 05: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.01041 seconds
  • Memory Usage 1,719KB
  • 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
  • (7)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