![]() |
Signature postbit edit?
I am trying to place adsense in my signature (on my board). I found this code works well...except only I can see it and no other user groups can. I really only want it to show in the first post and to guests and registered groups. I would prefer it not visible to myself so I do not drive up impressions.Any help would be appreciated.
Code:
<if condition="$post[postcount] == 1 AND $bbuserinfo[userid] == 1"> |
You have used code $bbuserinfo which is the Current User Browsing the forum, which is you as the ID is 1. To use the code in the first post only and to Guest and Registered user then use this instead. is_member_of($bbuseruserinfo, 12)
Code:
<if condition="$post[postcount] == 1 AND is_member_of($bbuserinfo, 0,2)"> Shishir |
If you're using the latest release I do beleive there is an ad_location template for the first post now as well.
|
Quote:
Quote:
I would however like to achieve that this sig is only attached to admins post. The first post works perfect, however my test registered accounts also show the adsense sig and thus anyone who starts a thread would also have an adsense sig. I want to control this so adsense only shows in threads that I start or other admins start. |
I guess to do so, just add post usergroupid check.
Code:
<if condition="$post[postcount] == 1 AND is_member_of($bbuserinfo, 0,2) AND $post[usergroupid] == 6"> |
Thank you so much it worked perfect..... I wish i new how to make it a real mod as I am sure some peeps would like to use it.
One last question I am using the rss feed manager and the signatures do not show I have to run a query to update and show the signature. If I post manually the sig shows perfectly. |
All times are GMT. The time now is 11:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|