![]() |
Selct Group when Moderating Registration
This was a major time saver for me. My board uses custom user group to control access to different forum. All registrations are moderated and being able to set the group from the 'en masse' activation page is what I needed.
Edit user.php: Changes under "Start Moderate + coppa" about line 1180 1.) add usergroupid to the 1st $users query Code:
$users=$DB_site->query("SELECT userid,username,email,usergroupid FROM user WHERE usergroupid=4 ORDER BY username"); Code:
if ($DB_site->num_rows($users)==0) {..... 1.) Add the new data to the 'while' statement's $DB_site query Code:
while (list($key,$val)=each($validate)) {...... |
I am not moderating registrations, but I would like at registration time to insert group according to location.
|
You would have to create a query or array with the possible locations.
Then add the forumla to hash what the user's enter on the registration page and add this result to the post, replacing the default (2) with your value. Correct? You want group to be assigned dynamiclly and automaticlly from the external registration page. Not from the Admin CP. Which is where my hack takes effect. |
yes this is what I am looking for. I'd like to get a second copy of vb to create an alumni site. The way it would work, once people select their school (or city since it is a small country), they automatically exchange within that limit. But I would not know how to start what you are saying.
|
All times are GMT. The time now is 11:12 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:
|