PDA

View Full Version : Vbulletin help



ChaosMinionX
05-15-2009, 07:25 PM
Anyone here help me customizing this code? Basically it adds buttons with links to the header of a vbulletin template, and I need to customize the buttons for Member List / Calendar / Contact Us

<td>
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td align="center" width="10" style="background-image:url('images/ambient_lighting_blue/misc/images/menu_m.png')"><img width="10" height="30" src="$stylevar[imgdir_misc]/images/menu_l.png" alt="" /></td>
<!-- Home -->
<if condition="THIS_SCRIPT=='adv_index'">
<td class="homevisited" width="60"><a href="$vboptions[homeurl]">Home</a></td>
<else />
<td class="homelink" style="width:60px; cursor:hand;" onmouseover="this.className='homehover';" onmouseout="this.className='homelink';" onclick="window.location.href='$vboptions[homeurl]';"><a href="$vboptions[homeurl]">Home</a></td>
</if>
<!-- /Home -->
<!-- Forum -->
<if condition="THIS_SCRIPT=='adv_index' OR THIS_SCRIPT=='sendmessage' OR THIS_SCRIPT=='memberlist' OR THIS_SCRIPT=='calendar'">
<td class="homelink" style="width:60px; cursor:hand;" onmouseover="this.className='homehover';" onmouseout="this.className='homelink';" onclick="window.location.href='$vboptions[forumhome].php$session[sessionurl_q]';"><a href="$vboptions[forumhome].php$session[sessionurl_q]">Forum</a></td>
<else />
<td class="homevisited" width="60"><a href="$vboptions[forumhome].php$session[sessionurl_q]">Forum</a></td>
</if>
<!-- /Forum -->
<!-- Member List -->
<if condition="THIS_SCRIPT=='memberlist'">
<td class="homevisited" width="100"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<else />
<td class="homelink" style="width:100px; cursor:hand;" onmouseover="this.className='homehover';" onmouseout="this.className='homelink';" onclick="window.location.href='memberlist.php$session[sessionurl_q]';"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>
<!-- /Member List -->
<!-- Calendar -->
<if condition="THIS_SCRIPT=='calendar'">
<td class="homevisited" width="70"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<else />
<td class="homelink" style="width:70px; cursor:hand;" onmouseover="this.className='homehover';" onmouseout="this.className='homelink';" onclick="window.location.href='calendar.php$session[sessionurl_q]';"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
</if>
<!-- /Calendar -->
<!-- Contact Us -->
<if condition="THIS_SCRIPT=='sendmessage'">
<td class="homevisited" width="80"><a href="$vboptions[contactuslink]" rel="nofollow" accesskey="9">$vbphrase[contact_us]</a></td>
<else />
<td class="homelink" style="width:80px; cursor:hand;" onmouseover="this.className='homehover';" onmouseout="this.className='homelink';" onclick="window.location.href='$vboptions[contactuslink]';"><a href="$vboptions[contactuslink]" rel="nofollow" accesskey="9">$vbphrase[contact_us]</a></td>
</if>
<!-- /Contact Us -->
<td width="50" align="left" style="background-image:url('images/ambient_lighting_blue/misc/images/menu_b.png')"><img width="50" height="30" src="$stylevar[imgdir_misc]/images/menu_r.png" alt="" /></td>
<td align="left" style="background-image:url('images/ambient_lighting_blue/misc/images/menu_b.png')">&nbsp;</td>
<td align="center" width="8" style="background-image:url('images/ambient_lighting_blue/misc/images/menu_b.png')"><img width="8" height="30" src="$stylevar[imgdir_misc]/images/clear.gif" alt="" /></td>
</tr>
</table>
</td>

faster3200
05-17-2009, 06:59 AM
I can, what exactly do you need to do? Also, why is </td> after </table>? Is it nested?