Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Reply 
 
LinkBack Thread Tools Display Modes
Old 10-25-2006, 08:59 PM   #1
vBulletin Owner
 
Join Date: Sep 2006
Posts: 89
soultrader will become famous soon enough
Cool 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>
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
soultrader is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 10-26-2006, 11:23 AM   #2
Community Manager
Supporters
vBulletin Owner
vBSetup Mods
 
Brandon Sheley's Avatar
 
Join Date: Jul 2006
Location: Topeka, KS
Posts: 14,080
Blog Entries: 35
Brandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to behold
Send a message via AIM to Brandon Sheley Send a message via MSN to Brandon Sheley Send a message via Yahoo to Brandon Sheley
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 / vBulletinSetup Staff
Check the
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
&
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
for the latest deals.
Looking for a place to
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
?

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and other
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
/
Read the->
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Are you on Twitter?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
I'm offering a few
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
& here is my
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
experiment
Brandon Sheley is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Tags
coding

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
Need some coding help people! Caddyman Troubleshooting vBulletin Problems 15 10-01-2009 12:01 PM
Fix me up here...template coding....HALP! Caddyman vBulletin Skins, Styles and Templates 8 04-28-2009 07:00 PM
New to Vbulletin, how much do I need to know about coding? Luigi Troubleshooting vBulletin Problems 5 10-09-2007 04:37 PM
Dreamweaver Coding.. MyNameIsLee Photoshop Tutorials 1 04-23-2007 01:32 PM
[how] vBulletin Coding, where to start ? Brandon Sheley vBulletin Modifications 7 11-12-2006 02:24 PM


All times are GMT -8. The time now is 10:04 AM.