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)
-   -   Getting the header image " Centerd " (https://vborg.vbsupport.ru/showthread.php?t=194499)

e-power 10-25-2008 08:02 AM

Getting the header image " Centerd "
 
As title how do i go about getting the header image in center of page.
Thanks

misuzuu 10-25-2008 10:56 AM

So you want your banner to be centered?

e-power 10-25-2008 11:03 AM

yes .. im running non standard theme where the header txt is already altered i tryed using the tut found on here but just messes the header more

misuzuu 10-25-2008 01:43 PM

could you give us the code and a screen shot or something ?
it can help maybe if you just add <center> on the code where the img is located, but would be the simplest way

e-power 10-25-2008 04:32 PM

Code:

<!-- logo -->
<a name="top"></a>
<table width="$stylevar[outertablewidth]" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="24" colspan="2" class="header_top"></td>
  </tr>
</table>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]" class="logo_bg"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td width="100%" align="$stylevar[left]" valign="bottom" class="logo_bg" id="header_right_cell"><if condition="THIS_SCRIPT == 'adv_index'"><div id="menu_forums"><a href="$vboptions[bburl]/"></a></div><else /><div id="menu_home"><a href="$vboptions[homeurl]/"></a></div></if><if condition="$vbulletin->products['vbprojecttools']"><div id="menu_projects"><a href="$vboptions[bburl]/project.php"></a></div></if><if condition="$vbulletin->products['vbblog']"><div id="menu_blog"><a id="vbbloglinks" href="$show[nojs_link]#blogs" accesskey="3"></a> <script type="text/javascript"> vbmenu_register("vbbloglinks",1); </script></div></if><if condition="$show['registerbutton']"> <div id="menu_register"><a href="$vboptions[bburl]/register.php"></a></div></if><if condition="$show['member']"><div id="menu_login"><a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"></a></div></if></td>
</tr>
<tr>
        <td height="15" colspan="2" class="header_sub"></td>
  </tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]


misuzuu 10-26-2008 10:54 AM

Code:

<!-- logo -->
<a name="top"></a>
<table width="$stylevar[outertablewidth]" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="24" colspan="2" class="header_top"></td>
  </tr>
</table>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="center" class="logo_bg"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td width="100%" align="$stylevar[left]" valign="bottom" class="logo_bg" id="header_right_cell"><if condition="THIS_SCRIPT == 'adv_index'"><div id="menu_forums"><a href="$vboptions[bburl]/"></a></div><else /><div id="menu_home"><a href="$vboptions[homeurl]/"></a></div></if><if condition="$vbulletin->products['vbprojecttools']"><div id="menu_projects"><a href="$vboptions[bburl]/project.php"></a></div></if><if condition="$vbulletin->products['vbblog']"><div id="menu_blog"><a id="vbbloglinks" href="$show[nojs_link]#blogs" accesskey="3"></a> <script type="text/javascript"> vbmenu_register("vbbloglinks",1); </script></div></if><if condition="$show['registerbutton']"> <div id="menu_register"><a href="$vboptions[bburl]/register.php"></a></div></if><if condition="$show['member']"><div id="menu_login"><a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"></a></div></if></td>
</tr>
<tr>
        <td height="15" colspan="2" class="header_sub"></td>
  </tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]


see if that works for you

e-power 10-27-2008 06:38 PM

Alright bud just got round to trying it didnt work :(

Lynne 10-27-2008 06:59 PM

A link to your site where it isn't working may help. (If it's the site in your profile, then it looks centered to me.)


All times are GMT. The time now is 03:34 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.00950 seconds
  • Memory Usage 1,730KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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