vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to center a banner (https://vborg.vbsupport.ru/showthread.php?t=150367)

katie hunter 06-22-2007 12:44 PM

How to center a banner
 
If i have a banner and I want to put it in the center of the header/forum not at the far left side, what should i edite inside the forum style ?

http://forum.nihonomaru.com/?styleid=4

I want to move that banner to be in the center of the forum. x3

Thanks (:

notrious 06-22-2007 12:48 PM

<TABLE WIDTH="213" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="center"> PLACE YOUR CODE HERE</table>

you can aslo use this place this <center>YOUR HEADER CODE </center>

katie hunter 06-22-2007 01:01 PM

Hmm ;/ this is my header, i can't find it in there.

Quote:

<!-- logo -->
<a name="top"></a>
<div class="side_borders">
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="tborder">
<tr>
<td align="center" valign="top">

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr class="header_bg">
<td align="$stylevar[left]" valign="middle"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>


<td align="$stylevar[right]">
$header_advertisement
<!-- banners --></td>


</tr>
<tr>
<td height="34" colspan="2" class="vb_navigation">

<!-- nav buttons bar -->
<div align="center">
<table cellpadding="0" cellspacing="0" border="0" align="left" class="vb_navigation">
<tr align="center">
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/memberlist.php$session[sessionurl_q]">Memberlist</td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]">Arcade</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/awards.php$session[sessionurl_q]">$vbphrase[award]</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/inferno.php?">RPG</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/chat.php?$session[sessionurl]" trager="_blank">Chat</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/billspaypal.php?">$vbphrase[billspp_donate]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<td id="navbar_search" width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></if></td>
</if>
<if condition="$show['member']">
<td id="usercptools" width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/$show[nojs_link]#usercptools">Quick links</a> <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
</if>
<if condition="$show['member']"> </if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><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]')">$vbphrase[log_out]</a></td>
</if>
<td width="8" height="34" align="left"><img src="$stylevar[imgdir_misc]/nav_final.gif" width="8" height="34" alt="" border="0" /></td>
</tr>
</table>
</div>

<!-- / nav buttons bar -->
</td></tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$leftcolumn_advertisement

$_phpinclude_output

notrious 06-22-2007 01:29 PM

not whole header code just your logo code put between these codes

katie hunter 06-22-2007 01:49 PM

Whare can I find the logo code =/ ?

dyna88 06-22-2007 01:51 PM

Removed unnecessary code

katie hunter 06-22-2007 01:53 PM

what should i do with this chunk of codes ?

dyna88 06-22-2007 01:55 PM

Quote:

Originally Posted by katie hunter (Post 1273934)
what should i do with this chunk of codes ?

That is your header template you posted with one small edit....just replace your current header template with this one....

katie hunter 06-22-2007 02:03 PM

I pasted it and it didn't work =/

dyna88 06-22-2007 02:09 PM

How about this.....
HTML Code:

<!-- logo -->
<a name="top"></a>
<div class="side_borders">
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="tborder">
<tr>
<td align="center" valign="top">

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr class="header_bg">
<td align="center" valign="middle"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>


<td align="$stylevar[right]">
$header_advertisement
<!-- banners --></td>


</tr>
<tr>
<td height="34" colspan="2" class="vb_navigation">

<!-- nav buttons bar -->
<div align="center">
<table cellpadding="0" cellspacing="0" border="0" align="left" class="vb_navigation">
<tr align="center">
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/memberlist.php$session[sessionurl_q]">Memberlist</td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]">Arcade</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/awards.php$session[sessionurl_q]">$vbphrase[award]</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/inferno.php?">RPG</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/chat.php?$session[sessionurl]" trager="_blank">Chat</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/billspaypal.php?">$vbphrase[billspp_donate]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<td id="navbar_search" width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></if></td>
</if>
<if condition="$show['member']">
<td id="usercptools" width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/$show[nojs_link]#usercptools">Quick links</a> <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
</if>
<if condition="$show['member']"> </if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><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]')">$vbphrase[log_out]</a></td>
</if>
<td width="8" height="34" align="left"><img src="$stylevar[imgdir_misc]/nav_final.gif" width="8" height="34" alt="" border="0" /></td>
</tr>
</table>
</div>

<!-- / nav buttons bar -->
</td></tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$leftcolumn_advertisement

$_phpinclude_output
Reply With Quote



All times are GMT. The time now is 11:48 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.01083 seconds
  • Memory Usage 1,784KB
  • 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_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete