The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Header images modification
I'm trying to fix the two trike images in my header on my forum that should be all on the same row, with it being - left image, tpc trikes banner, right image.
Here is my code for my header; Code:
<!-- content table --> $spacer_open $_phpinclude_output <!-- logo --> <a name="top"></a> <div id="header"> <div id="nav"> <ul> <if condition="$show['member']"> <li><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></li> </if> <if condition="$show['registerbutton']"> <li><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li> </if> <li><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li> <li><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li> <if condition="!$show['member']"> <li><a href="search.php?do=getdaily$session[sessionurl_q]">$vbphrase[todays_posts]</a></li> </if> <li id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></if></li> <if condition="$show['member']"> <li id="usercptools"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools", true); </script></li> <li><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out ('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></li> </if> </ul> </div> <table> <tr> <td align="left" > <img height="96" src="http://www.tpctrikes.com/forum/images/IMG_1545.jpg" style="border-style: none" alt="" /></A> <div style="clear: </td><td align = "center"> <A HREF="http://www.tpctrikes.com"><center><img height="96" src="images/banner.jpg" style="border-style: none" alt="" /></center></A> <div </td><td align = "right"> <img height="96" src="http://www.tpctrikes.com/forum/images/TPC Air.jpg" style="border-style: none" alt="" /></A> <!-- /logo --> </td> </tr> </table> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr valign="top"> <td class="main_cell" style="padding: 10px $stylevar[spacersize]px"> $ad_location[ad_header_end] Thanks for helping me since I'm still learning vbulletin. |
#2
|
|||
|
|||
Can you put the above in code brackets
|
#3
|
|||
|
|||
Like I said before, I'm still learning vbulletin and coding.
What do you mean by putting it in code brackets? Thanks. |
#4
|
||||
|
||||
Does that actually work? you have two malformed DIVs with no conclusion? you also have misplaced and malformed <a>'s
Replace all of HTML Code:
<table> <tr> <td align="left" > <img height="96" src="http://www.tpctrikes.com/forum/images/IMG_1545.jpg" style="border-style: none" alt="" /></A> <div style="clear: </td><td align = "center"> <A HREF="http://www.tpctrikes.com"><center><img height="96" src="images/banner.jpg" style="border-style: none" alt="" /></center></A> <div </td><td align = "right"> <img height="96" src="http://www.tpctrikes.com/forum/images/TPC Air.jpg" style="border-style: none" alt="" /></A> <!-- /logo --> </td> </tr> </table> HTML Code:
<table align = "center"> <tr> <td> <a href="http://www.tpctrikes.com" border="0"><img height="96" src="images/IMG_1545.jpg" style="border-style: none" alt="" /> <img height="96" src="images/banner.jpg" style="border-style: none" alt="" /> <img height="96" src="images/TPC Air.jpg" style="border-style: none" alt="" /></a> <!-- /logo --> </td> </tr> </table> |
#5
|
|||
|
|||
The way Simon has just done as it is easier to read
|
#6
|
||||
|
||||
After you save a copy of your header template to have as a backup incase there is an issue, Replace your header template with the following:
You will have to edit your image width to fit the page... Code:
<!-- content table --> $spacer_open $_phpinclude_output <!-- logo --> <a name="top"></a> <div id="header"> <div id="nav"> <ul> <if condition="$show['member']"> <li><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></li> </if> <if condition="$show['registerbutton']"> <li><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li> </if> <li><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li> <li><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li> <if condition="!$show['member']"> <li><a href="search.php?do=getdaily$session[sessionurl_q]">$vbphrase[todays_posts]</a></li> </if> <li id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></if></li> <if condition="$show['member']"> <li id="usercptools"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools", true); </script></li> <li><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out ('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></li> </if> </ul> </div> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center"> <img height="96" src="http://www.tpctrikes.com/forum/images/IMG_1545.jpg" style="border-style: none" alt="" /> </td> <td align="center"> <a href="http://www.tpctrikes.com" border="0"><img height="96" src="http://www.tpctrikes.com/forum/images/banner.jpg" style="border-style: none" alt="" /> </td> <td align="center"> <img height="96" src="http://www.tpctrikes.com/forum/images/TPC Air.jpg" style="border-style: none" alt="" /></a> </td></tr></table> <!-- /logo --> </td> </tr> </table> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr valign="top"> <td class="main_cell" style="padding: 10px $stylevar[spacersize]px"> $ad_location[ad_header_end] |
#7
|
|||
|
|||
Thank you very much! I'm a Network Administrator and not a programmer. I'm still learning this stuff :-)
|
Благодарность от: | ||
TheLastSuperman |
#8
|
||||
|
||||
@blind-eddie it might be worth setting the table to Auto instead of 100% for fluidity (fluidity? is that a word? lol )
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|