vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Centering the header banner (https://vborg.vbsupport.ru/showthread.php?t=181789)

Veneti 06-07-2008 02:09 PM

Centering the header banner
 
Does anyone know where to go in the files to insert the banner code and make it center?

I know the initial vbulletin icon calls up from images/misc/vbulletin3_logo_white.gif

And the second question, is there logical templates for insertion of adsense into 3.7 or do I need to go into that adsense deep tutorial and start playing around with template code?

Thanks in advance to anyone that replies, appreciated.

(Note to vbulletin, you should have a basic implementation framework that board users can follow, its obvious that high numbers of board owners want to put header banners in, and its obvious that most will want to monitize their boards so they pay for themselves, why not have a user friendly manual).

theOZer 06-07-2008 02:46 PM

From just dinkin' around in Style Manager, which you, too, are empowered to do, in the header template if I pop entirely the $stylevar[right] td, then change the remaining td tag align=$stylevar[left] to align="center" that puts the logo in the middle. This is just a how-I-did-it and may be totally unrecommended by anyone knowledgeable in vB. There is an extensive, well-put-together write up on Styles & Templates in the vB Manual.
Code:

In the header template:
Pop the right td tag ->
        <td align="$stylevar[right]" id="header_right_cell">  … </td>
Change remaining left td tag from:
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
Change to:
        <td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>



All times are GMT. The time now is 07:27 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.00984 seconds
  • Memory Usage 1,710KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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