How do I insert Adsense after the 1st post?

Discussion in 'vBulletin' started by C-E-O, Feb 4, 2008.

  1. #1
    C-E-O, Feb 4, 2008 IP
  2. moneytalkpro

    moneytalkpro Banned

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    where do you want to insert your adsense ?
     
    moneytalkpro, Feb 4, 2008 IP
  3. C-E-O

    C-E-O Active Member

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Under the first post
     
    C-E-O, Feb 4, 2008 IP
  4. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #4
    Brandon Sheley, Feb 4, 2008 IP
  5. Cheap SEO Services

    Cheap SEO Services <------DoFollow Backlinks

    Messages:
    16,664
    Likes Received:
    1,318
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I added VB Ad Management 4 and set it all up but can't get it to show. Time to read some more.
     
    Cheap SEO Services, Feb 4, 2008 IP
  6. C-E-O

    C-E-O Active Member

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Sorry bro, that did me no good
     
    C-E-O, Feb 4, 2008 IP
  7. FoxyFLS

    FoxyFLS Peon

    Messages:
    234
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Just place it at the bottom of your postbit or postbit_legacy template

    <if condition="$post[postcount] % $vboptions[maxposts] == 1">
        <div style="padding:6px 0px 0px 0px;margin-top:4px;">
    
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
            <td class="thead" align="left">Sponsored Links</td>
        </tr>
        <tr>
            <td class="alt1" align="center">
            <br />
    <script type="text/javascript"><!--
    google_ad_client = "pub-//your id goes here";
    google_alternate_color = "444466";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text_image";
    google_ad_channel ="YOUR CHANNEL ID";
    google_color_border = "EBE7DA";
    google_color_bg = "EBE7DA";
    google_color_link = "000000";
    google_color_text = "000000";
    google_color_url = "000000";
    //--></script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
            </td>
        </tr>
        </table>
    
        </div>
    </if>
    PHP:
     
    FoxyFLS, Feb 6, 2008 IP
  8. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #8
    yes it does if you would just look :rolleyes:

    Place Information After x Post On Every Page

    this is exactly what your asking, but then again, it would require you to look.


    oh well, good luck anyways

    \btw.. cheap seo services, you shouldn't post the whole template of a paid script :mad: I would of assumed you knew that...:rolleyes:
     
    Brandon Sheley, Feb 6, 2008 IP
  9. Cheap SEO Services

    Cheap SEO Services <------DoFollow Backlinks

    Messages:
    16,664
    Likes Received:
    1,318
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I arranged for mods to remove it. BAH! I still don't know where to put the hook.

    It says this:

    To have the advertisement added to the top or bottom of a template, or enter any other text which appears in the template, template hooks included. The text will be searched for and your adcode will be placed immediately after it.

    If you are not using automatic insertion, paste $postbit_advertisement into the appropriate template.

    Examples:
    bottom
    <strong><br />
    $template_hook[this_hook]

    $postbit_advertisement
    $GLOBALS[postbit_advertisement]


    and then it has this in the box:

    $template_hook[postbit_end]
     
    Cheap SEO Services, Feb 17, 2008 IP
  10. ksb2050

    ksb2050 Well-Known Member

    Messages:
    906
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #10
    You could do all that coding........


    ...........or you could just install a VBulletin Product that'll do it.

    Try: http://www.vbulletin.org/forum/showthread.php?t=148061

    If that mod doesnt work, search Vbulletin.org , theres about 7 mods that will do this for your forum.
     
    ksb2050, Feb 17, 2008 IP
  11. Cheap SEO Services

    Cheap SEO Services <------DoFollow Backlinks

    Messages:
    16,664
    Likes Received:
    1,318
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Will this work on 3.6.8 Patch 2 ??
     
    Cheap SEO Services, Feb 17, 2008 IP