Back to vBulletin 3.6 Template Modifications

Adsense after first post in postbit_legacy
Mod Version: 1.00, by vietfancy

This modification is in the archives.
vB Version: 3.6.x Rating: (0 vote - 0 average) Installs: 10
Released: 27 Oct 2006 Last Update: Never Downloads: 3
Not Supported  

this is how it going to look like:

if you want to have the same thing:

add this code at the end of your "postbit_legacy" template

Code:
<!-- Start Google Ads -->
<if condition="$show['registerbutton']">
<if condition="!$GLOBALS['FIRSTPOSTID']">
<div style="padding-top: 6px;"></div>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
	<tr>
		<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">        
        Sponsored Links
    	</td>
	</tr>
<tr valign="top">
		<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
			<div id="postmenu_$post[postid]" align="center">
				<a class="bigusername" href="#">inHandy.com</a>
			</div>
    	</td>
	<td class="alt1" id="td_post_$post[postid]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-left: 0px">
    	<if condition="$show['messageicon'] OR $post['title']">
            <div class="smallfont">
                <if condition="$post['title']"><strong>Sponsored links</strong></if>
            </div>
            <hr size="1" style="border-top: 1px #ff6e45 dotted"; />
        </if>
 		<!-- message -->
		<div id="post_message_$post[postid]">
<table>
<tr align=center>
<td align=center>
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXXX";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
&nbsp;
<td align=center>
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXXX";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
		</div>
		<!-- / message -->       
 		<!-- sig -->
			<div>
				__________________<br />
				This is a revenue sharing forum.<br />
Please <a href="login.php"><strong>log-in</strong></a> or <a href="register.php"><strong>register</strong></a> now to hide these posts.
			</div>
<br />
		<!-- / sig -->
  </td>      
	</tr>
</table>
</if> 
</if>
<!-- End Google Ads -->
The codes above is only show ads to guests. if you want to have ads visible to everyone then use this instead

Code:
<!-- Start Google Ads -->
<if condition="!$GLOBALS['FIRSTPOSTID']">
<div style="padding-top: 6px;"></div>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
	<tr>
		<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">        
        Sponsored Links
    	</td>
	</tr>
<tr valign="top">
		<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
			<div id="postmenu_$post[postid]" align="center">
				<a class="bigusername" href="#">inHandy.com</a>
			</div>
    	</td>
	<td class="alt1" id="td_post_$post[postid]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-left: 0px">
    	<if condition="$show['messageicon'] OR $post['title']">
            <div class="smallfont">
                <if condition="$post['title']"><strong>Sponsored links</strong></if>
            </div>
            <hr size="1" style="border-top: 1px #ff6e45 dotted"; />
        </if>
 		<!-- message -->
		<div id="post_message_$post[postid]">
<table>
<tr align=center>
<td align=center>
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXXX";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
&nbsp;
<td align=center>
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXXX";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
		</div>
		<!-- / message -->             
  </td>      
	</tr>
</table>
</if> 
<!-- End Google Ads -->

Remember to replace pub-XXXXXXXXXXXXXXXX with your id #

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024