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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-13-2007, 01:07 PM
killa101 killa101 is offline
 
Join Date: Aug 2004
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to get banner in header

Hello. I recently purchased a new vbulletin style for my forum and the way the header is coded I cannot figure out how to get a banner in there. It does not use tables, just div's. I want the banner to be to the right of the forum logo.

Here is my forum: www.pb-addict.com

And here is my header code:

Code:
<!-- logo -->
<a name="top"></a>
<div id="vbwrapper">
<div id="logostrip"><a href="./portal.php"><img src="$stylevar[imgdir_misc]/logostrip.gif" alt="" /></a></div>
<div id="submenu"><a href="portal.php" onmouseover="changeImages('image1', 'image1off')" onmouseout="changeImages('image1', 'image1on')"><img src="$stylevar[imgdir_misc]/submenu_home.gif" name="image1" alt="" /></a><a href="./" onmouseover="changeImages('image2', 'image2off')" onmouseout="changeImages('image2', 'image2on')"><img src="$stylevar[imgdir_misc]/submenu_forum.gif" name="image2" alt="" /></a><a href="memberlist.php?$session[sessionurl]" onmouseover="changeImages('image3', 'image3off')" onmouseout="changeImages('image3', 'image3on')"><img src="$stylevar[imgdir_misc]/submenu_members.gif" name="image3" alt="" /></a><a href="calendar.php?$session[sessionurl]" onmouseover="changeImages('image4', 'image4off')" onmouseout="changeImages('image4', 'image4on')"><img src="$stylevar[imgdir_misc]/submenu_calendar.gif" name="image4" alt="" /></a><a href="search.php?$session[sessionurl]" onmouseover="changeImages('image5', 'image5off')" onmouseout="changeImages('image5', 'image5on')"><img src="$stylevar[imgdir_misc]/submenu_search.gif" name="image5" alt="" /></a></div>
<div id="vbwrapper2">
<div class="b-middle"><div class="b-left"><img src="$stylevar[imgdir_misc]/border_top_l.gif" alt="" /></div><div class="b-right"><img src="$stylevar[imgdir_misc]/border_top_r.gif" alt="" /></div></div>
<div id="vbwrapper3">

<!-- content table -->
$spacer_open

$_phpinclude_output

<if condition="$show['guest']">
<!-- Sponsor Ads -->
<div align="center">
  <br /><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="730" align="center">
  <tr>
  <td class="tcat" colspan="6"><phrase 1="$vboptions[bbtitle]">Paintball Sponsors - Register/Login for ad free browsing.</phrase></td>
  </tr>
  <tr>
  <td bgcolor="#00113a" colspan="6">
  <div align="center">
  <script type="text/javascript"><!--
google ads code edited out
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
  </div>
  </td>
  </tr>
  </table>
  <br /><br />
</div>
<!-- Sponsor Ads Ends -->
</if>
Thanks for your help.
Reply With Quote
  #2  
Old 06-13-2007, 03:31 PM
Nutz's Avatar
Nutz Nutz is offline
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<!-- logo -->
<a name="top"></a>
<div id="vbwrapper">
<div id="logostrip"><a href="./portal.php"><img src="$stylevar[imgdir_misc]/logostrip.gif" alt="" /></a><div style="position: absolute; right: 25px; top: 20px;"><a href="http://google.com"><img src="http://www.simplygraphix.com/images/banner9.gif" alt="This is an ad"/></a></div></div>
<div id="submenu"><a href="portal.php" onmouseover="changeImages('image1', 'image1off')" onmouseout="changeImages('image1', 'image1on')"><img src="$stylevar[imgdir_misc]/submenu_home.gif" name="image1" alt="" /></a><a href="./" onmouseover="changeImages('image2', 'image2off')" onmouseout="changeImages('image2', 'image2on')"><img src="$stylevar[imgdir_misc]/submenu_forum.gif" name="image2" alt="" /></a><a href="memberlist.php?$session[sessionurl]" onmouseover="changeImages('image3', 'image3off')" onmouseout="changeImages('image3', 'image3on')"><img src="$stylevar[imgdir_misc]/submenu_members.gif" name="image3" alt="" /></a><a href="calendar.php?$session[sessionurl]" onmouseover="changeImages('image4', 'image4off')" onmouseout="changeImages('image4', 'image4on')"><img src="$stylevar[imgdir_misc]/submenu_calendar.gif" name="image4" alt="" /></a><a href="search.php?$session[sessionurl]" onmouseover="changeImages('image5', 'image5off')" onmouseout="changeImages('image5', 'image5on')"><img src="$stylevar[imgdir_misc]/submenu_search.gif" name="image5" alt="" /></a></div>
<div id="vbwrapper2">
<div class="b-middle"><div class="b-left"><img src="$stylevar[imgdir_misc]/border_top_l.gif" alt="" /></div><div class="b-right"><img src="$stylevar[imgdir_misc]/border_top_r.gif" alt="" /></div></div>
<div id="vbwrapper3">

<!-- content table -->
$spacer_open

$_phpinclude_output

<if condition="$show['guest']">
<!-- Sponsor Ads -->
<div align="center">
  <br /><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="730" align="center">
  <tr>
  <td class="tcat" colspan="6"><phrase 1="$vboptions[bbtitle]">Paintball Sponsors - Register/Login for ad free browsing.</phrase></td>
  </tr>
  <tr>
  <td bgcolor="#00113a" colspan="6">
  <div align="center">
  <script type="text/javascript"><!--
google ads code edited out
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
  </div>
  </td>
  </tr>
  </table>
  <br /><br />
</div>
<!-- Sponsor Ads Ends -->
</if>
Try that, and the bit added is:
Code:
<div style="position: absolute; right: 25px; top: 20px;"><a href="http://google.com"><img src="http://www.simplygraphix.com/images/banner9.gif" alt="This is an ad"/></a></div>
which should give you this:
Attachment 65602

Thanks,
Mat.
Reply With Quote
  #3  
Old 06-13-2007, 04:16 PM
UltimateOreo! UltimateOreo! is offline
 
Join Date: Nov 2006
Location: Missouri
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What addon for firefox do you have? That is a very cool one.
Reply With Quote
  #4  
Old 06-13-2007, 04:49 PM
Nutz's Avatar
Nutz Nutz is offline
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Web Developer, the feature you see there is 'edit HTML' part of the add-on

Thanks,
Mat
Reply With Quote
  #5  
Old 06-13-2007, 05:30 PM
killa101 killa101 is offline
 
Join Date: Aug 2004
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent. Thanks man.

And thanks for that web developer addon. That is wicked.

Ok tad bit of a problem here. People viewing the site with 800x600 resolution are going to see the banner overlapping the logo. Is there any way to make it so that they do not overlap but rather the window stops shrinking when the logo and banner touch and it just goes to side scrolling mode?
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 06:40 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.04079 seconds
  • Memory Usage 2,221KB
  • Queries Executed 12 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_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