vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Results 1 to 9 of 9

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 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 ...

  1. #1
    Senior Member
    Real Name
    Future
    Join Date
    Mar 2006
    Posts
    550
    Blog Entries
    1

    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 07:20 AM.
    | F | U | T | U | R | E |

  2. #2
    Senior Member
    Real Name
    Future
    Join Date
    Mar 2006
    Posts
    550
    Blog Entries
    1
    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 ?
    | F | U | T | U | R | E |

  3. #3
    Senior Member mabe38's Avatar
    Real Name
    Martin Behrsing
    Join Date
    Jan 2008
    Posts
    109
    -hello,

    better you take divs


    <!-- 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 />

  4. #4
    Senior Member
    Real Name
    Future
    Join Date
    Mar 2006
    Posts
    550
    Blog Entries
    1
    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 ?
    | F | U | T | U | R | E |

  5. #5
    Senior Member mabe38's Avatar
    Real Name
    Martin Behrsing
    Join Date
    Jan 2008
    Posts
    109
    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

  6. #6
    Senior Member
    Real Name
    Future
    Join Date
    Mar 2006
    Posts
    550
    Blog Entries
    1
    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 -->
    
    | F | U | T | U | R | E |

  7. #7
    Senior Member
    Real Name
    Future
    Join Date
    Mar 2006
    Posts
    550
    Blog Entries
    1
    bumping back, anyone from vbseo team can help me out here ?
    | F | U | T | U | R | E |

  8. #8
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,983

  9. #9
    vBSEO Staff Michael Biddle's Avatar
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    6,574
    Note on their, that will only show for guests.
    Michael Biddle / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


Similar Threads

  1. Side Column Help
    By BamaStangGuy in forum Template Modifications
    Replies: 0
    Last Post: 10-17-2007, 12:04 AM
  2. Adsense last post on page
    By beastybob in forum Ad Networks
    Replies: 34
    Last Post: 10-01-2007, 04:53 PM
  3. "Email this Page" and Google Adsense in post.
    By dealcrasher in forum Custom Rewrite Rules
    Replies: 0
    Last Post: 05-26-2007, 01:20 PM
  4. Adsense 1st Post - Firefox Issue
    By sfc in forum Ad Networks
    Replies: 1
    Last Post: 04-30-2007, 02:20 PM
  5. a side benefit: stats sure are more useful now
    By Island in forum Analysis: Traffic & SERPS
    Replies: 1
    Last Post: 03-09-2007, 11:18 PM