vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

How to get adsense on right side of first post ?

This is a discussion on How to get adsense on right side of first post ? within the Google Adsense, YPN, & Other Ad Networks forums, part of the Monetizing category; How to add adsense square box 336 x 280 pixel size on right side of first post ? I am ...

Go Back   vBulletin SEO Forums > Monetizing > Google Adsense, YPN, & Other Ad Networks

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-13-2008, 07:48 AM
Senior Member
Big Board Administrator
 
Real Name: Future
Join Date: Mar 2006
Posts: 440
How to get adsense on right side of first post ?

How to add adsense square box 336 x 280 pixel size on right side of first post ?

I am using this code.
Code:
<!-- message -->
<if condition="!is_member_of($bbuserinfo, 2, 5, 6)">
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and ($show['guest'])">
<span style="margin: 2px; float: right; width: 336px; height: 280px;"> 
<script type="text/javascript"><!--
google_ad_client = "pub-121212121212121212";
/* Style 2 - Box 1 */
google_ad_slot = "121212121212";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</span>
</if>
</if>
<div id="post_message_$post[postid]">
<!-- google_ad_section_start -->
$post[message]</div>
<!-- google_ad_section_end -->
<!-- / message -->
I am getting following results (attached image).
My quote box is messed up.

Please help me fix this ASAP.
Attached Thumbnails
adsense.jpg  

Last edited by Future; 05-13-2008 at 08:20 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 05-13-2008, 08:16 AM
Senior Member
Big Board Administrator
 
Real Name: Future
Join Date: Mar 2006
Posts: 440
Quote box in above image appears only when there are couple of lines in first post, if there are many lines in first post quote box is aligned properly.

What should be done ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 05-13-2008, 12:26 PM
mabe38's Avatar
Senior Member
 
Real Name: Martin Behrsing
Join Date: Jan 2008
Posts: 101
-hello,

better you take divs


Quote:
<!-- message -->
<!-- Google -->
<div id="post_message_$post[postid]">
<if condition="........."> <div style="float: right; margin: 0 0 5px 5px;">
google-code
</div>
</if>
$post[message] </div>
<!-- / message --><br />
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 05-13-2008, 12:29 PM
Senior Member
Big Board Administrator
 
Real Name: Future
Join Date: Mar 2006
Posts: 440
thank you for the reply, I am unable to understand your code above, can you kindly include the code above in my first post and re-post the same with required changes ?

Did you meant to use <div> tag instead of <span> ?
and
move <div id="post_message_$post[postid]"> before <if> condition ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 05-13-2008, 12:42 PM
mabe38's Avatar
Senior Member
 
Real Name: Martin Behrsing
Join Date: Jan 2008
Posts: 101
Yes, I mean div-tags

If you take a look at our forum you will see, that the code work very well. Only guests can see the code in the thread.

Trainingsmaßnahme
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 05-14-2008, 04:16 PM
Senior Member
Big Board Administrator
 
Real Name: Future
Join Date: Mar 2006
Posts: 440
I did what you asked above.. but it still wont work. this is my entire postbit code.

Code:
<!-- message -->
<div id="post_message_$post[postid]">
<if condition="!is_member_of($bbuserinfo, 2,5,6)">
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))">
<div style="float: right; margin: 0 0 5px 5px;">
<script type="text/javascript"><!--
google_ad_client = "pub-34534534534516";
/* 123123*/
google_ad_slot = "123123123000";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</if>
</if>
<!-- google_ad_section_start -->
$post[message]</div>
<!-- google_ad_section_end -->
<!-- / message -->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 05-16-2008, 06:34 AM
Senior Member
Big Board Administrator
 
Real Name: Future
Join Date: Mar 2006
Posts: 440
bumping back, anyone from vbseo team can help me out here ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 05-16-2008, 01:18 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,532
see:
How do I get google adsense to right on top?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #9  
Old 05-16-2008, 01:26 PM
Michael Biddle's Avatar
vBSEO Staff
vBSEO Total Customer Support
 
Real Name: Michael Biddle
Join Date: Jan 2007
Location: Southern California
Posts: 3,003
Blog Entries: 5
Note on their, that will only show for guests.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Side Column Help BamaStangGuy Template Modifications 0 10-17-2007 01:04 AM
Adsense last post on page beastybob Google Adsense, YPN, & Other Ad Networks 34 10-01-2007 05:53 PM
"Email this Page" and Google Adsense in post. dealcrasher Custom Rewrite Rules 0 05-26-2007 02:20 PM
Adsense 1st Post - Firefox Issue sfc Google Adsense, YPN, & Other Ad Networks 1 04-30-2007 03:20 PM
a side benefit: stats sure are more useful now Island vBSEO Reviews 1 03-10-2007 12:18 AM


All times are GMT -4. The time now is 01:23 PM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.