Announcement

Collapse
No announcement yet.

adding google ads after last post in thread

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • tony adams
    replied
    hi

    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

    tony

    Leave a comment:


  • Jose Amaral Rego
    replied
    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

    Leave a comment:


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

    Leave a comment:


  • tony adams
    replied
    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'


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

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


    <p>
    <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>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>


    </center>

    <br>
    <form action="https://www.paypal.com/cgi-bin/webscr" 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="https://www.paypal.com/en_US/i/btn/x...tcc-donate.gif" border="0" name="submit">
    </form>

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

    </td>
    </tr>
    </table>

    </div>

    $spacer_close
    thanks

    tony

    Leave a comment:


  • tony adams
    replied
    thanks both

    Leave a comment:


  • daemon
    replied
    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 -->
    </if>
    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)">

    Leave a comment:


  • Steve Machol
    replied
    This can be done with template conditionals. Here is the online documentation for using template conditionals:

    http://www.vbulletin.com/docs/html/m...e_conditionals

    Leave a comment:


  • tony adams
    started a topic adding google ads after last post in thread

    adding google ads after last post in thread

    have found the method here

    http://www.vbulletin.com/forum/showthread.php?t=123281

    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

    thanks

    tony
Loading...
Working...
X