The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Can I allow users to add themselves to certain change usergroups? i.e liverpool fans
The Idea:
Lets say i have a football website (i dont really but this is easiest analogy). I want users to be able to choose their favourite club. They can choose to be liverpool, man utd, or both. Once they choose liverpool their usergroup, they can see only the latest liverpool news, and vice versa with man utd. if they choose all they can see all news. I know how to give them the permissions to see/hide this by editing the usergroups permissions and i guess the html for style options would be something like this HTML Code:
if (is_member_of($vbulletin->userinfo, 1)) $styleid = x; Q: Can you give users the option to be add/remove themselves from specific usergroups? Like a simple tickbox to change their usergroup. Meaning you specify certain usergroups the user can choose to be part of which has same permissions as registered users just different display options so their screen is not so cluttered. And this is all automated by themselves and you dont have to move them manually or wait for the usergroup promotion scheduler to run. Any help would be much appreciated, thanks! |
#2
|
|||
|
|||
What you could do is create custom profile fields, then check those fields instead of the user group, like:
HTML Code:
if ($vbulletin->userinfo['fieldX'] == something) $styleid = x; To answer your original question, you could use usergroups if you wanted. You could create a page with the options, then have a script to change the user's group based on what they choose. |
#3
|
|||
|
|||
hey kh99, that custom profile field is an awesome idea, and clean fix thanks for that
its not just the style tho, im using vBa i dont wish certain news modules to be shown if a user chooses a usegroup for e.g Man Utd News not to be displayed for liverpool fans. and vBa has the option to display the modules or not depending on their usergroups. im not sure if its the most efficient way to do it but it looks like the easiest one. the custom script thing seems hard could you point me in the direction on how to do it? thanks alot! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|