Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   10-25-2006, 09:59 PM
soultrader will become famous soon enough Join Date: Sep 2006 Posts: 89
Coding Help


I have adsense showing after every first post. But I want to restrict this to certain usergroups only. What kind of changes should I make to this coding? Thanks

Code:
<if condition="(!$GLOBALS['FIRSTPOSTID'] and !$GLOBALS['vbulletin']->GPC['ajax'])">
 <br>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
    <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">        
        Sponsored Links
    </td>
</tr>
<tr>
    <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-1136192669264684";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
    </td>
</tr>
</table> 
</if>

--------------------
#1 Interactive Traders Forum
Quote   |  



#2   10-26-2006, 12:23 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 9,817 Location: Topeka, KS
Re: Coding Help


Code:
<if condition="$bbuserinfo['usergroupid'] != 6">google add here</if>
should work..

if not check this thread, I see a few different conditions posted

How to: Add a advertisement after first post? - vBulletin.org Forum
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.

Please do not PM me for support, that's what the forums are for.
Have you heard about Crowdgather?
Find it on Forums


Stay up to date by installing our Tool Bar
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Vbulletin, how much do I need to know about coding? Luigi vBulletin Questions 5 10-09-2007 05:37 PM
Coding vBulletin To Web Standards Brandon vBulletin Programming & Coding 5 04-16-2007 03:10 AM


All times are GMT -6. The time now is 04:41 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory