MyBB Community Forums

Full Version: Postbit sig edit?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to place adsense code in my sig (admin) for the first post only. I have done this on my VB board and I have also done it on mybb. The problem is that I only want it showing in my sig with out enabling html, so this is why I am adding it the postbit templates. Currently it shows for anyone that posts. The code I used on VB is:

<br /><if condition="$post[postcount] == 1 AND is_member_of($bbuserinfo, 0,1,2,3,4,5,6) AND $post[usergroupid] == 6">
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

</if>


The $bbuserinfo is the groups that see my sig. The usergroupid is the admin group that the sig is included in.

I am not sure what the code is for mybb. Any help would be appreciated.

Thanks.
I have a plugin which allows PHP in templates: http://community.mybboard.net/thread-318...+templates

The code would be something like this:
<if $post['uid'] == 1 then>
<div style="padding:0px 0px $stylevar[cellpadding]px 0px"></div>
</if>