No announcement yet.

adding google ads after last post in thread

  • Filter
  • Time
  • Show
Clear All
new posts

  • adding google ads after last post in thread

    have found the method here

    If you want the banner to show only after the last post on every page of a thread, then don't modify the postbit. Edit this template instead:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Show Thread Templates -> SHOWTHREAD
    is it possible to make it so only certain user groups see it, would prefer admin not to see it and maybe one other registered group



  • #2
    This can be done with template conditionals. Here is the online documentation for using template conditionals:
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography

    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    • #3
      Sure; wrap the code in Jake's 3rd post with this:

      HTML Code:
      <if conditional="!is_member_of($bbuserinfo, X)">
      <!-- code in Jake's post goes here -->
      Where "X" is the usergroup ID of the administrators usergroup. If you want one or more usergroups to not see the ads, use this instead--replacing "Y" with another usergroup ID:

      HTML Code:
      <if conditional="!is_member_of($bbuserinfo, X) OR !is_member_of($bbuserinfo, Y)">
      Bugdar: PHP bug tracking software that is beautiful, fast, and robust.


      • #4
        thanks both


        • #5
          am using the code below to show google ads and add a donate button on each page after the last post

          would like only certain usergroups to see it, have tried the code above but i get an error, am i missing something or do i need more code

          modification is to 'show group templates/SHOWTHREAD'

          <div style="padding:0px 0px $stylevar[cellpadding]px 0px">

          <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
          <td class="thead" align="left">Sponsored Links</td>
          <td class="alt1" align="center">

          <script type="text/javascript"><!--
          google_ad_client = "pub-65786454968339";
          google_ad_width = 728;
          google_ad_height = 78;
          google_ad_format = "728x90_as";
          google_ad_channel ="";
          google_color_border = "336699";
          google_color_bg = "FFFFFF";
          google_color_link = "0000FF";
          google_color_url = "008000";
          google_color_text = "000000";
          <script type="text/javascript"


          <form action="" method="post">
          <input type="hidden" name="cmd" value="_xclick">
          <input type="hidden" name="business" value="[email protected]">
          <input type="hidden" name="item_name" value="the Witterings">
          <input type="hidden" name="item_number" value="001">
          <input type="hidden" name="no_note" value="1">
          <input type="hidden" name="currency_code" value="GBP">
          <input type="hidden" name="tax" value="0">
          <input type="image" src="" border="0" name="submit">

          <div class="smallfont" >
          Please help with the cost of running 'the Witterings' - have a look at the ads or press the 'Donate' button






          • #6
            anybody any ideas on this, am reading all i can but cannot seem to understand what i need to do


            • #7
              Originally posted by tony adams
              anybody any ideas on this, am reading all i can but cannot seem to understand what i need to do
              edit your post & get rid of pub# or someone could have u banned from Googles Ads just by spamming the # around


              • #8

                thanks for the concern, the pub # is edited already, as is my email addy

                no intension of spamming anything, if i have made a mistake then happy for mods here to edit anything