PDA

View Full Version : How to make Top Banner clickable?


sava700
04-29-2008, 02:19 PM
What do I need to edit and put in to make my top banner clickable for example back to the main page?

I've looked in "header" and the coding doesn't exactly display the image name of the banner image I used/uploaded to the forums.

Lynne
04-29-2008, 02:52 PM
You do something like this:

<a href="linktosite.php"><img src="banner.jpg" /></a>

sava700
04-29-2008, 02:57 PM
You do something like this:

<a href="linktosite.php"><img src="banner.jpg" /></a>

ok but which template does it go in and what part of the template?

Lynne
04-29-2008, 03:30 PM
I believe the banner is usually in the "header" template. You can post the code here and we can help you with it.

You could also go to: vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

sava700
04-29-2008, 03:45 PM
Here is the header template that I'm using..

<!-- begin tren_z header-->
<link rel="shortcut icon" href="favicon1.ico" />
<div align="center">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
<td align="left" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="469" height="137" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_header_top_ls.jpg" width="469" height="137" alt="" /></td>
<td width="100%" height="137" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/tren_z_header_top_back.jpg)"><img src="$stylevar[imgdir_misc]/tren_z_header_top_back.jpg" width="100%" height="137" alt="" /></td>
<td width="40" height="137" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_header_rs.jpg" width="40" height="137" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="150" height="22" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_header_btm_forum_name.gif" width="150" height="22" alt="" /></td>
<td width="100%" height="22" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/tren_z_header_bot_expand.gif)"><img src="$stylevar[imgdir_misc]/tren_z_header_bot_expand.gif" width="100%" height="22" alt="" /></td>
<td width="77" height="22" align="left" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img src="$stylevar[imgdir_misc]/tren_z_header_home.gif" width="77" height="22" alt="" border="0" /></a></td>

<!-- Load Blog Link-->
<if condition="$vbulletin->products['vbblog']">
<td width="72" height="22" align="left" valign="top"><a href="blog.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/tren_z_header_blog.gif" width="72" height="22" alt="" border="0" /></a></td>
</if>
<!-- End Blog Link-->


<td width="70" height="22" align="left" valign="top"><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/tren_z_header_cp.gif" width="70" height="22" alt="" border="0" /></a></td>
<if condition="$show['registerbutton']">
<td width="70" height="22" align="left" valign="top"><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/tren_z_header_register.gif" width="70" height="22" alt="" border="0" /></a></td>
<else />
<td width="70" height="22" align="left" valign="top" id="usercptools"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/tren_z_header_links.gif" width="70" height="22" alt="" border="0" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>
<td width="71" height="22" align="left" valign="top"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/tren_z_header_calendar.gif" width="71" height="22" alt="" border="0" /></a></td>
<td width="70" height="22" align="left" valign="top"><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/tren_z_header_members.gif" width="70" height="22" alt="" border="0" /></a></td>
<td width="72" height="22" align="left" valign="top"><a href="faq.php$session[sessionurl_q]" accesskey="5"><img src="$stylevar[imgdir_misc]/tren_z_header_faq.gif" width="72" height="22" alt="" border="0" /></a></td>
<td width="74" height="22" align="left" valign="top" id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img src="$stylevar[imgdir_misc]/tren_z_header_search.gif" width="74" height="22" alt="" border="0" /></a><if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></if></td>
</tr>
</table>
<!-- end tren_z header-->



<!-- begin main inner table area-->
<!-- content table -->
<table bgcolor="#232D35" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>



$spacer_open
<br />
$jwfpss
<br />

$_phpinclude_output

Lynne
04-29-2008, 04:07 PM
It looks like you have navbar stuff in there also. I think this is the banner part, so add the <a> tags as suggested:
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="469" height="137" align="left" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/tren_z_header_top_ls.jpg" width="469" height="137" alt="" /></a></td>
<td width="100%" height="137" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/tren_z_header_top_back.jpg)"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/tren_z_header_top_back.jpg" width="100%" height="137" alt="" /></a></td>
<td width="40" height="137" align="left" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/tren_z_header_rs.jpg" width="40" height="137" alt="" /></a></td>
</tr>
</table>

Hopefully that is correct. It's hard to know without actually seeing and trying.

sava700
04-29-2008, 04:43 PM
something doesn't look the same?

Your suggesting I copy and paste that in the template? If so where in the template?

I guess I'm not following since none of that appears the same as in the template that I posted above.

snakes1100
04-29-2008, 05:12 PM
Thats because she didnt repost your entire template, compare what she did to your current template, if you cant visually see the difference, get something like beyond compare or araxis merge for file comparison.

sava700
04-29-2008, 06:12 PM
Thats because she didnt repost your entire template, compare what she did to your current template, if you cant visually see the difference, get something like beyond compare or araxis merge for file comparison.

Well the banner is named something else as in this template has it in a few different parts...that made it difficult to re do it in the first place through photo shop.

Lynne
04-29-2008, 06:35 PM
All I did was put links around the images in the table that is just a few lines from the top of your code. But, like I said, it's hard to tell without seeing the site, but it looked to me like that was the banner section.