Page 1 of 2 1 2 LastLast
Results 1 to 15 of 26

How do I get google adsense to right on top?

This is a discussion on How do I get google adsense to right on top? within the Ad Networks forums, part of the Monetizing category; How do I get google adsense to right on top? Below code that I use. With that code adsense is ...

  1. #1
    Senior Member mabe38's Avatar
    Real Name
    Martin Behrsing
    Join Date
    Jan 2008
    Posts
    109
    Liked
    0 times

    How do I get google adsense to right on top?

    How do I get google adsense to right on top?

    Below code that I use. With that code adsense is always at the bottom right. (see here: http://www.elo-forum.org/news-diskus...erechtigt.html )It should be right on top and the text should wrapped around it. Like this:
    Who is your best friend on UNP ?

    Thank you
    Martin

    <!-- Google -->
    <if condition="($post[postcount]==1) and ($show['guest'])">
    <div align="right">
    google-script
    </div>
    </if>
    <if condition="($post[postcount]==1) and ($show['guest'])">
    <div align="right">
    <font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.elo-forum.org/register.php" target="_parent">Einloggen
    oder registrieren, um diese Werbung nicht zu sehen.</a></font>
    </div>
    </if>
    <br />
    <!-- / google -->

  2. #2
    Senior Member
    Real Name
    Dhillon
    Join Date
    Apr 2006
    Posts
    341
    Liked
    1 times

  3. #3
    Senior Member mabe38's Avatar
    Real Name
    Martin Behrsing
    Join Date
    Jan 2008
    Posts
    109
    Liked
    0 times
    Quote Originally Posted by Notorious View Post
    Sorry. It has the same effect

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    you need to float it to wrap.

    find:
    Code:
    <!-- message -->
            <div id="post_message_$post[postid]">$post[message]</div>
            <!-- / message -->
    in postbit or postbit_legacy (which ever you are using)

    replace with:

    Code:
    <!-- message -->
            <div id="post_message_$post[postid]">
    <if condition="($post[postcount]==1) and ($show['guest'])">
    <div style="float: right; margin: 0 0 5px 5px;">
    ////////google code here/////////////
    </div>
    </if>
    $post[message]
    </div>
            <!-- / message -->
    Last edited by briansol; 05-16-2008 at 01:18 PM.

  5. #5
    Senior Member mabe38's Avatar
    Real Name
    Martin Behrsing
    Join Date
    Jan 2008
    Posts
    109
    Liked
    0 times
    Hallo briansol,

    thank you very much. That works well.

    Martin

  6. #6
    Senior Member
    Real Name
    Future
    Join Date
    Mar 2006
    Posts
    579
    Liked
    0 times
    Blog Entries
    1
    I still have the same issue if there are more then 20 lines quote button appears properly but if there are 2 or 5 lines in first post my message is messed :/

    http://www.vbseo.com/attachments/f16...st-adsense.jpg
    | F | U | T | U | R | E |

  7. #7
    Senior Member
    Real Name
    Dhillon
    Join Date
    Apr 2006
    Posts
    341
    Liked
    1 times
    Just remove the quote button for guests,

  8. #8
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    try:

    <!-- message -->
    <div id="post_message_$post[postid]">
    <if condition="($post[postcount]==1) and ($show['guest'])">
    <div style="float: right; margin: 0 0 5px 5px;">
    ////////google code here/////////////
    </div>
    </if>
    $post[message]
    <br style="clear: both;" />
    </div>
    <!-- / message -->

  9. #9
    Senior Member
    Real Name
    Future
    Join Date
    Mar 2006
    Posts
    579
    Liked
    0 times
    Blog Entries
    1
    Quote Originally Posted by Notorious View Post
    Just remove the quote button for guests,
    how to do this ?
    I need the right code to remove/disable quote box only for guests.
    | F | U | T | U | R | E |

  10. #10
    Senior Member
    Real Name
    Future
    Join Date
    Mar 2006
    Posts
    579
    Liked
    0 times
    Blog Entries
    1
    Quote Originally Posted by briansol View Post
    try:

    <!-- message -->
    <div id="post_message_$post[postid]">
    <if condition="($post[postcount]==1) and ($show['guest'])">
    <div style="float: right; margin: 0 0 5px 5px;">
    ////////google code here/////////////
    </div>
    </if>
    $post[message]
    <br style="clear: both;" />
    </div>
    <!-- / message -->
    Thank you Sir,
    Its working fine now.. can you explain why it was not working earlier ?

    Can you also let me know how can i add another square box to right side of second post please ?
    | F | U | T | U | R | E |

  11. #11
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    I added the clear fix.
    that pushes content below a float to the next line, as floats are 'out of context' so to speak.

    to ad another to the second post, do the same thing.... but change postcount == 2




    <!-- message -->
    <div id="post_message_$post[postid]">
    <if condition="($post[postcount]==1) and ($show['guest'])">
    <div style="float: right; margin: 0 0 5px 5px;">
    ////////google code here/////////////
    </div>
    </if>
    <if condition="($post[postcount]==2) and ($show['guest'])">
    <div style="float: right; margin: 0 0 5px 5px;">
    ////////2nd code here/////////////
    </div>
    </if>
    $post[message]
    <br style="clear: both;" />
    </div>
    <!-- / message -->

  12. #12
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,999
    Liked
    11 times
    Quote Originally Posted by Future View Post
    Thank you Sir,
    Its working fine now.. can you explain why it was not working earlier ?

    Can you also let me know how can i add another square box to right side of second post please ?
    Reporting posts to get Staff to help you with a question is frowned-upon Future, please only use the Report Post feature for what it is designed for in the future.

  13. #13
    Junior Member
    Real Name
    Mark Marksson
    Join Date
    Jun 2008
    Posts
    25
    Liked
    0 times
    For some reason my Google ads does not show up but there is dedicated space for it?

  14. #14
    Senior Member
    Real Name
    Dhillon
    Join Date
    Apr 2006
    Posts
    341
    Liked
    1 times
    Few days back I received an emal from adsense support and they weren't very pleased with that placement.

  15. #15
    Junior Member
    Real Name
    Mark Marksson
    Join Date
    Jun 2008
    Posts
    25
    Liked
    0 times
    Oh, that is weird. Why as that? So you had to remove it?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Google Adsense
    By Exitilus in forum Ad Networks
    Replies: 3
    Last Post: 02-10-2007, 03:54 PM
  2. google adsense
    By hc.... in forum Ad Networks
    Replies: 37
    Last Post: 01-06-2006, 03:51 PM
  3. Google adsense need help/questions
    By hc.... in forum Ad Networks
    Replies: 3
    Last Post: 12-06-2005, 10:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •