![]() |
Random Usergroup on registration
Ever wanted to randomly sort your new registrants into seperate usergroups?
Now you can! Good for Harry Potter themed forums. ;) Instructions: Create the usergroups you want to randomly sort between and record the usergroupid's for use when installing the hack. Further instructions in TXT file. File Modifications: 1 (register.php) Template Mods: 0 Time to install: >2 minutes Enjoy! Update: Version 2.0 released This version incorporates code by True.Rooster which fixes my half-assed attempts at getting the code right. (It's been a while... lol) To upgrade, reapply the hack. |
Nice:)
|
Pretty cool.
|
Would there then be an easy way for the user to change their group post registration? I could see something like this hack being fun for RPG type sites.
|
Nice indeed
but I don't want to do a random thningy :) I want to simply make new users register into a usergroup of my choosing, not the default usergroupID 2 , can I do that with this? :) thnx |
Do you have a script to automatically assign random usersgroups to existing members too (excluding moderators and admins)? :) So you can run the script once.... everyone would be assigned a certain group, then randomly add people to new groups as they register.
|
Quote:
Quote:
|
dstruct2k: what is the application of this hack on your site?
|
Coudl this be changed so that the user has some otions like
1 2 3 and whatever option he chooses when register he gets put into a specific usergroup ? |
This doesn't appear to be working. I put it on my site and signed up as a new member, but for some reason they were placed in 'COPPA users awaiting moderation' (group 4)
I had put the four usergroups as 2 (Gryffindor), 9 (Hufflepuff), 10 (Ravenclaw) and 11 (Slytherin). Maybe you need to check your code. I did a straight copy with the numbers changed. |
Quote:
|
Quote:
Quote:
|
Quote:
|
I don't require e-mail, COPPA registration, image verification, nor birthday's ro register. I just changed the not requiring birthday and am hoping that this alleviates the problem I'm having, but for some reason or other a few people have been thrown into that COPPA group up on registration. Any ideas?
Here's my PHP code verbatim from my DB: PHP Code:
|
Okay, since I'm wickedly impatient I decided to see about figuring this out on my own. After disabling virtually everything and still having the problem, I realized that the hack was rotating improperly and therefore throwing people into COPPA - problem is, they weren't IN the COPPA usergroup. The query had somehow created a NEW usergroup with no name and no id number that can't be modified. All as a result of a simple -1
So, change: PHP Code:
PHP Code:
I tested it no less than 5 times and was able to keep it working even with re-activating my image verification :) |
EXACTLY what I need--is this possible for 2.3.5?
|
Quote:
|
PHP Code:
|
Yep, your fix worked - thanks!
|
Quote:
|
I ended up having to change mine to -1 and it works perfectly now :) Sorry, I should have posted that a while back, but your problem is fixed so it really makes no difference how I fixed mine :p
edit: LMAO. And now I just looked at what the person after you posted that said and it's what I did. I'm so proud of myself, I figured it out on my own which is AMAZING considering how PHP illiterate I feel! @ Bexie - hello Bex, darling. This was originally a vB2 hack, so yes, they have it for 2 - check the forums, I know it's there. If not I can find it for you because I know someone who uses it. |
Quote:
|
Is this hack not supported if you have to moderate your members when they sign up?
I have tried all the different ways of doing this and nothing works :( |
Does this hack work for 3.5 boards?
|
Quote:
Yea i was wondering the same thing |
If this could work for moderating new registrations, that would be most excellent.
|
OMG IT WORKS FOR vB3.6.5 with a few tweaks! THANK YOU SO MUCH!
/me clicks install. |
Quote:
|
Does anyone have this working on 3.6.x?
|
All times are GMT. The time now is 02:45 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:
|