View Full Version : how do I fix the width of my adsense ad post after the 1st post
David Lama
07-08-2007, 03:54 PM
i want the post with my adsense code to match the other posts. same size. how do i do that
my site (http://www.bragginwrites.com/forums/showthread.php?t=8627)
^check it there. post after the first post
Brandon Sheley
07-08-2007, 03:58 PM
did you add the code for "ads randomly in post" hack ?
David Lama
07-08-2007, 04:01 PM
no. i only added this
https://vborg.vbsupport.ru/showthread.php?t=122010&highlight=adsense+post
Brandon Sheley
07-08-2007, 04:04 PM
ah, well I would ask in that thread then ;)
That will give you the quickest results.
cheers
David Lama
07-08-2007, 06:42 PM
someone already asked the same thing in that thread but never got a response :(
i asked it too. doesnt seem like that mod is active these days though :(. hopefully someone responds there or here. I am patient. just felt like updating and upping one last time to see if someone can save me :)
snakes1100
07-08-2007, 07:48 PM
Here, spiffed it up a bit, added the icon and border to more resemble a real post.
The added br tag will give all the posts more spacing between each post, but it will also break the ad off from the post.
<br />
<!-- START ADSENSE REVENUE -->
<if condition="THIS_SCRIPT == 'showthread'AND ($post[postid] == $GLOBALS['qrlastpostid']) AND (!in_array($forum[forumid], array(2,6,7)))">
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px" width="175">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="#">Focused.ORG</a>
<else />
Focused.ORG
</if>
<br><br><script type="text/javascript"><!--
google_ad_client = "YOUR ADSENSE ID HERE!";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as_rimg";
google_cpa_choice = "CAAQ8OCIlAIaCP1TkEVpn_IYKITHrYMB";
google_ad_channel = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="">
<else />
<td class="alt1" id="">
</if>
<if condition="$show['messageicon'] OR $post['title']">
<div class="smallfont">
<img class="inlineimg" src="images/icons/icon1.gif" alt="GoogleAds" border="0" />
<if condition="$post['title']"><strong>Sponsored links</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
</if>
<!-- message -->
<div id="post_message_$post[postid]">
<if condition="$show['spacer']">
</if>
<div align="left">
<script type="text/javascript"><!--
google_ad_client = "YOUR ADSENSE ID GOES HERE!";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "D0DFE4";
google_color_bg = "E2ECEF";
google_color_link = "85868F";
google_color_text = "85868F";
google_color_url = "85868F";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<if condition="$show['spacer']">
</if>
</div>
<!-- / message -->
</td>
</tr>
</table><br>
<!-- / post $post[postid] popup menu -->
</div>
</if>
David Lama
07-08-2007, 08:00 PM
all you added to the code was the <br />?
cause that didnt help all it did was make a space in between. like you said. but it didnt make it look like a regular post. just made it stand out even more =/ thanks for trying to help though. but not what i was looking for =/
snakes1100
07-08-2007, 08:05 PM
It works fine on my site and does EXACTLY as i stated in my post.
David Lama
07-08-2007, 08:15 PM
wow. so what am i doing wrong? i didnt do anything wrong im pretty sure. did you add anything other than the <br /> tag?
oh seems like you did. nevermind. let me see if i can get this to work. thanks man!
yea thanks a ton man. that did the job. i took the <br /> at the top and bottom off though to eliminate the extra space. but i like how its looking now :), THANKS!!!!!!!!!
snakes1100
07-08-2007, 09:04 PM
Your Welcome...
I didn't add the break at the bottom, only the one at the top.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.