vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Where To Place Adsense Code In My Header? (https://vborg.vbsupport.ru/showthread.php?t=174716)

yaskevic 03-31-2008 05:38 PM

Where To Place Adsense Code In My Header?
 
https://vborg.vbsupport.ru/external/2008/03/1.jpg

Please take a look at the above image. I'd like to replace a blue rectangle with an adsense ad. Below is my header. Could you tell me please what should I replace with adsense code in order for adsense ad to be shown instead of a blue rectangle? Thank you in advance. Here is my header code :

HTML Code:

<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="background: url($stylevar[imgdir_misc]/nav_bg.gif) repeat-x center center;">$header_advertisement</td>
      </tr>
      </table>
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" style="background: url(images/bigred/gradients/gradient_nav.gif) repeat-x;">
        <tr>
          <td><a href="index.php"><img src="$stylevar[imgdir_misc]/home.gif" alt="" border="0" /></a></td>
          <td><a href="usercp.php"><img src="$stylevar[imgdir_misc]/usercp.gif" alt="" border="0" /></a></td>
          <td><a href="memberlist.php"><img src="$stylevar[imgdir_misc]/members.gif" alt="" border="0" /></a></td>
          <td><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img src="$stylevar[imgdir_misc]/search.gif" alt="" border="0" /></a></td>
          <if condition="$bbuserinfo['userid']">
      <td id="usercptools"><img src="$stylevar[imgdir_misc]/quick.gif" alt="" border="0" /><script type="text/javascript">vbmenu_register("usercptools", true); </script></td></if>
          <if condition="$show['registerbutton']">
      <td><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/register.gif" alt="" border="0" /></a></td>
        </if>
        </tr>
      </table>
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
    <tr style="height: 15px;">
        <td colspan="3" style="background: #610000;">$header_advertisement</td>
    </tr>
    <tr style="height: 110px;" valign="top">
        <td width="191"><img src="$stylevar[imgdir_misc]/logo.gif" alt="" /></td>
        <td style="background: url('$stylevar[imgdir_misc]/ad_bkg.gif') no-repeat;" width="542"><img src="$stylevar[imgdir_misc]/banner.gif" alt="banner" style="display: block; margin: 29px 0px 0px 40px;" /></td>
<td style="background: url(images/bigred/gradients/gradient_banner.gif) repeat-x;">$header_advertisement</td></tr>
                </tr>
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="$stylevar[imgdir_misc]/nav_bg.gif"><img src="$stylevar[imgdir_misc]/nav_bg.gif" alt="" width="738" height="38"></td>
  </tr>
</table>
<!-- content table -->
$spacer_open
$leftcolumn_advertisement
$_phpinclude_output

Waiting for your help

hellrider 04-03-2008 12:34 AM

Ok you see the blue image?..go to style manager > edit template > Header and click Ctrl + F and search for what the image is named. Example if it is in yoursite.com/forum/misc/ad.png folder then search up ad.png. Then delete the ad.png picture and instead add your code in the located area.

Hope it helps.

SEOvB 04-03-2008 12:40 AM

I suggest asking at the place you bought the skin

<img src="$stylevar[imgdir_misc]/banner.gif" alt="banner" style="display: block; margin: 29px 0px 0px 40px;" />

remove that line, and palce your adsense code there, you'll have to figure out how to add the style back to the code


All times are GMT. The time now is 04:10 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.01036 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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