Quote:
Originally Posted by Chris-777
If there was a way I could fedex you a cake right now, I would. You are absolutely AWESOME Lynne, that works - thank you VERY much as usual! 
|
Cheesecakes are a particular favorite of mine - no fruit on top, please. Just saying....
Quote:
Originally Posted by Chris-777
While I'm at it (though I should probably start a new thread) - how would I go about setting usergroup permissions on my shiny new on/off CPF?  The idea here is that contributers can turn something on/off, whilst regular registered users cannot.
|
As far as I know, you cannot put permissions on the option in the UserCP. But, what you may be able to do is in the 'text' for the setting, say it's a premium feature. That way, they can set it to whatever they want, but it shouldn't have an effect if you set a conditional with it like:
HTML Code:
<if condition="$vbulletin->userinfo[field18] == 'Yes' AND is_member_of($bbuserinfo,5,6)">
stuff for users who said Yes in field 18 and are members of usergroup 5 or 6
</if>
(I use that condition in the same template.... makes me wonder if you can use $bbuerinfo instead of $vbulletin->userinfo... I'll have to try that later.)