vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to make Top Banner clickable? (https://vborg.vbsupport.ru/showthread.php?t=177500)

sava700 04-29-2008 02:19 PM

How to make Top Banner clickable?
 
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:

HTML Code:

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

sava700 04-29-2008 02:57 PM

Quote:

Originally Posted by Lynne (Post 1502373)
You do something like this:

HTML Code:

<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..

PHP Code:

<!-- 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:
HTML Code:

<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

Quote:

Originally Posted by snakes1100 (Post 1502515)
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.


All times are GMT. The time now is 02:17 AM.

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.01209 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete