vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Signature Display for Additional Usergroups

ResaleBroker
12-02-2005, 10:21 AM
I have it set up so that the primary usergroup does not use signatures.

I have a promotion set up so that once a user's post count reaches 20 posts that user is added to an additional usergroup [Signature] where signatures are used.

For some reason this isn't working. Only when the usergroup "Signature" is the primary usergroup will signatures display. Any ideas on why?

noppid
12-02-2005, 01:02 PM
show us the condition code.

ResaleBroker
12-02-2005, 01:54 PM
show us the condition code.
<if condition="$post['signature'] AND $bbuserinfo[userid] != 0 AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">

ResaleBroker
12-02-2005, 01:55 PM
show us the condition code.

<if condition="$post['signature'] AND $bbuserinfo[userid] != 0 AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">

theMusicMan
12-02-2005, 03:37 PM
Hi Resalebroker

I am thinking here that your condition is only looking at Primary Usergroups. You need to check for your members belonging to a secondary usergroup. You can use the following code to check for membership of secondary usergroups.

NB: please note that the function in_array is only valid in vB3.5.
<if condition="in_array($bbuserinfo[usergroupid], array(x,y,z))">
Place signature code here
</if>
Make x,y,z the USergroupID's of your Signature usergroups.

ResaleBroker
12-02-2005, 03:41 PM
Hi Resalebroker

I am thinking here that your condition is only looking at Primary Usergroups. You need to check for your members belonging to a secondary usergroup. You can use the following code to check for membership of secondary usergroups.

NB: please note that the function in_array is only valid in vB3.5.
<if condition="in_array($bbuserinfo[usergroupid], array(x,y,z))">
Place signature code here
</if>
Make x,y,z the USergroupID's of your Signature usergroups.I can see the logic in that. Any idea on the syntax for 3.07?

theMusicMan
12-02-2005, 03:47 PM
Sure... I believe you need to use the is_member_of function

<if condition="is_member_of($bbuserinfo,x) OR is_member_of($bbuserinfo,y)">
Insert signature code here
</if>
Again changing x,y to the USergroupID's of your Signature usergroups.

theMusicMan
12-02-2005, 03:48 PM
PS: I think you can also use multiple UsergroupID's in the is_member_of list too... not 100% sure of that though.
<if condition="is_member_of($bbuserinfo, x,y,z)>
Sig code here
</if>
... but I am not sure if that returns a TRUE in the case above if the forum member belongs to usergroups x AND y AND z - or if the forum member belongs to the usergroups x OR y OR z

if you get my drift...;)

noppid
12-02-2005, 04:27 PM
Yes you can overload is_member_of().

That's the way I'd have done it I think too.

ResaleBroker
12-02-2005, 04:35 PM
Bummer, that didn't work. :(

That seems to only control who can "view" the signatures. I'm looking for something that would control who can "post" a signature.

Any ideas?

noppid
12-02-2005, 05:19 PM
There's an HTML in sigs for groups at vbulletin.org I think that would serve your purpose for comparision on how and where to pull that off. I'm not familiar with it off hand.

ResaleBroker
12-02-2005, 05:40 PM
I'll check out vb.org, thanks. :)

ResaleBroker
12-02-2005, 07:13 PM
Ok, I figured out the problem. In the "Usergroup Options" I had "Allow Users to have Member Groups" set to "No." :o

Thanks everyone for the help. :)

noppid
12-03-2005, 08:04 AM
Cool, glad it worked out.

Joeychgo
12-03-2005, 07:46 PM
Why not just do this the easy way?

Make a second usergroup. When a registered user attains 20 posts, use a promotion to move him to the next level group - then set your signature permissions accordingly.

-


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum