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 11-03-2006, 08:03 PM
ChavMagnet's Avatar
ChavMagnet ChavMagnet is offline
 
Join Date: Sep 2006
Location: Leeds - England
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Getting Adsense In My Header

Can someone tell me how i can get adsense to display in my header here is my header template code of the skin im using.

Code:
<center>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="15" background="$stylevar[imgdir_misc]/border_left.gif"><img src="$stylevar[imgdir_misc]/border_left.gif" width="15" height="6"></td>
    <td>


<table width="100%" border="0" cellpadding="0" cellspacing="8" bgcolor="#FFFFFF">
  <tr>
    <td>
	<table style="border: 1px solid #8ca5ae;" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
		<table style="border: 1px solid #FFFFFF;" width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="322"><a href="index.php"><img src="$stylevar[imgdir_misc]/header_left.jpg" border="0" width="322" height="98"></a></td>
                <td width="26"><img src="$stylevar[imgdir_misc]/header_right_bg.gif" width="26" height="98"></td>
                <td bgcolor="#aac2cb"><div align="left"><img src="$stylevar[imgdir_misc]/forumstats_image.gif" width="163" height="36"><br>
                  <span class="headerstats"><strong>Members:</strong> $numbermembers<br>
                  <strong>Threads:</strong> $totalthreads<br>
                  <strong>Posts:</strong> $totalposts<br>
                  <strong>Newest Member:</strong> <a href="$vboptions[bburl]/member.php?u=$newuserid"> 
        $newusername</a></span></div></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
	</td>
  </tr>

  <tr>
    <td><table style="border: 1px solid #8ca5ae;" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table style="border: 1px solid #FFFFFF;" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td background="$stylevar[imgdir_misc]/links_bg.gif"><a href="index.php"><img src="$stylevar[imgdir_misc]/links_home.gif" width="71" height="33" border="0"></a><a href="usercp.php"><img src="$stylevar[imgdir_misc]/links_usercp.gif" width="75" height="33" border="0"></a><a href="register.php"><img src="$stylevar[imgdir_misc]/links_register.gif" width="88" height="33" border="0"></a><a href="memberlist.php"><img src="$stylevar[imgdir_misc]/links_members.gif" width="89" height="33" border="0"></a><a href="search.php"><img src="$stylevar[imgdir_misc]/links_search.gif" width="73" height="33" border="0"></a><a href="faq.php"><img src="$stylevar[imgdir_misc]/links_faq.gif" width="59" height="33" border="0"></a></td>
                </tr>
              </table></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table style="border: 1px solid #8ca5ae;" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table style="border: 1px solid #FFFFFF;" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="79"><img src="$stylevar[imgdir_misc]/topad_left.gif" width="79" height="79"></td>
                  <td background="$stylevar[imgdir_misc]/topad_bg.gif"><table width="474" height="66" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td background="$stylevar[imgdir_misc]/topad_adbg.gif"><div align="center"><a href="#"><img src="$stylevar[imgdir_misc]/adbanner.gif" width="468" height="60" border="0"></a></div></td>
                    </tr>
                  </table></td>
                  <td width="79"><img src="$stylevar[imgdir_misc]/topad_right.gif" width="79" height="79"></td>
                </tr>
              </table></td>
            </tr>
        </table></td>
      </tr>
    </table>
      <table style="border: 1px solid #8ca5ae;" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table style="border: 1px solid #FFFFFF;" width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td background="$stylevar[imgdir_misc]/topad_advertise_bg.gif"><div align="center"><a href="#"><img src="$stylevar[imgdir_misc]/topad_advertise.gif" width="318" height="27" border="0"></a></div></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>





<!-- content table -->
$spacer_open

$_phpinclude_output
Live Example Here : http://www.chavmagnet.com
Attached Images
File Type: gif adsense.gif (24.5 KB, 0 views)
Reply With Quote
  #2  
Old 11-04-2006, 12:42 AM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may want to do something like this:

Find this code:
Code:
<td bgcolor="#aac2cb"><div align="left"><img src="$stylevar[imgdir_misc]/forumstats_image.gif" width="163" height="36"><br>
                  <span class="headerstats"><strong>Members:</strong> $numbermembers<br>
                  <strong>Threads:</strong> $totalthreads<br>
                  <strong>Posts:</strong> $totalposts<br>
                  <strong>Newest Member:</strong> <a href="$vboptions[bburl]/member.php?u=$newuserid"> 
        $newusername</a></span></div></td>
Right after
Code:
<td bgcolor="#aac2cb">
put this in

Code:
<span style="float:right" valign="middle">Adsense code</span>
So, in essense, that part would look like this:

Code:
<td bgcolor="#aac2cb"><span style="float:right" valign="middle">Adsense code</span><div align="left"><img src="$stylevar[imgdir_misc]/forumstats_image.gif" width="163" height="36"><br>
                  <span class="headerstats"><strong>Members:</strong> $numbermembers<br>
                  <strong>Threads:</strong> $totalthreads<br>
                  <strong>Posts:</strong> $totalposts<br>
                  <strong>Newest Member:</strong> <a href="$vboptions[bburl]/member.php?u=$newuserid"> 
        $newusername</a></span></div></td>
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 01:56 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.03584 seconds
  • Memory Usage 2,212KB
  • Queries Executed 14 (?)
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
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (1)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete