The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to centera skin navybar/header ?
Hi, I am trying to center the header, you know like usercp, memberlist etc..
How can i center them because currently they are on the right side Code:
<!-- Start vBGuides Season --> <if condition="$vboptions[guidesvbs_onoff] == 1"> <if condition="$vboptions[guidesvbs_area] == 0"> <script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script> </if></if> <!-- End vBGuides Season --> <!-- 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]/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]/calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td> <!—Mp3 Player Launch --> <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&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 |
#2
|
|||
|
|||
Provide a link and test account to your site if its closed to guests.
|
#3
|
||||
|
||||
Here is the skin demo
http://www.vbstyles.com/demo/?styleid=45 |
#4
|
|||
|
|||
A link to "YOUR" site is more helpful.
|
#5
|
|||
|
|||
If this is a style by another website, then i suggest you ask for support there.
|
#6
|
||||
|
||||
There support team is terrible, they barely come online
|
#7
|
|||
|
|||
ok, not that all the coding looks right to begin with, you should have this coding fixed as well ,but this will center the navbar buttons.
Code:
<!-- Start vBGuides Season --> <if condition="$vboptions[guidesvbs_onoff] == 1"> <if condition="$vboptions[guidesvbs_area] == 0"> <script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script> </if></if> <!-- End vBGuides Season --> <!-- 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 align="center" 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]/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]/calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td> <!—Mp3 Player Launch --> <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&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 |
#8
|
||||
|
||||
Quote:
|
#9
|
|||
|
|||
Well, you shouldnt try to wrap a div tag around a table tag, check below your div tag and compare it to the old one.
As i stated this template is mis-coded and should be fixed anyways. |
#10
|
||||
|
||||
I think i founded, thanks.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|