Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2008, 02:19 PM
sava700 sava700 is offline
 
Join Date: Mar 2008
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 04-29-2008, 02:52 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You do something like this:

HTML Code:
 <a href="linktosite.php"><img src="banner.jpg" /></a>
Reply With Quote
  #3  
Old 04-29-2008, 02:57 PM
sava700 sava700 is offline
 
Join Date: Mar 2008
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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?
Reply With Quote
  #4  
Old 04-29-2008, 03:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 04-29-2008, 03:45 PM
sava700 sava700 is offline
 
Join Date: Mar 2008
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 
Reply With Quote
  #6  
Old 04-29-2008, 04:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-29-2008, 04:43 PM
sava700 sava700 is offline
 
Join Date: Mar 2008
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 04-29-2008, 05:12 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 04-29-2008, 06:12 PM
sava700 sava700 is offline
 
Join Date: Mar 2008
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
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.
Reply With Quote
  #10  
Old 04-29-2008, 06:35 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04916 seconds
  • Memory Usage 2,326KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_html
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete