Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2007, 12:44 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 (:
Reply With Quote
  #2  
Old 06-22-2007, 12:48 PM
notrious notrious is offline
 
Join Date: Mar 2007
Location: New York
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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>
Reply With Quote
  #3  
Old 06-22-2007, 01:01 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 06-22-2007, 01:29 PM
notrious notrious is offline
 
Join Date: Mar 2007
Location: New York
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not whole header code just your logo code put between these codes
Reply With Quote
  #5  
Old 06-22-2007, 01:49 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whare can I find the logo code =/ ?
Reply With Quote
  #6  
Old 06-22-2007, 01:51 PM
dyna88 dyna88 is offline
 
Join Date: Dec 2006
Location: Wisconsin
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Removed unnecessary code
Reply With Quote
  #7  
Old 06-22-2007, 01:53 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what should i do with this chunk of codes ?
Reply With Quote
  #8  
Old 06-22-2007, 01:55 PM
dyna88 dyna88 is offline
 
Join Date: Dec 2006
Location: Wisconsin
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by katie hunter View Post
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....
Reply With Quote
  #9  
Old 06-22-2007, 02:03 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I pasted it and it didn't work =/
Reply With Quote
  #10  
Old 06-22-2007, 02:09 PM
dyna88 dyna88 is offline
 
Join Date: Dec 2006
Location: Wisconsin
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:49 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.04601 seconds
  • Memory Usage 2,292KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete