PDA

View Full Version : Adding New Members


Spidey
Thu 4th Oct '01, 9:11pm
I think it would be great to have the "user group" select box on the screen to validation of new members.

This would cut down on then having to go to the find users and change it there.

tubedogg
Thu 4th Oct '01, 9:15pm
Please enter your license information in your profile (http://www.vbulletin.com/forum/member.php?action=editprofile). See the link in my sig for more info. Thanks! :)

Spidey
Mon 8th Oct '01, 7:28pm
Ok, I put my customer number and password in.

I hope that i'm able to get some replies now.

orca
Tue 9th Oct '01, 3:26am
Yes, it would be a useful feature if you have many user groups. If you only have the default ones, then it's not that hard.

Spidey
Tue 9th Oct '01, 10:58am
Well, on my board we have about 18 different groups. So it would be a big help for me.

Wayne Luke
Tue 9th Oct '01, 1:16pm
We will review the suggestion for a future release.

Chen
Tue 9th Oct '01, 1:34pm
Hope this is what you wanted.

In user.php, replace this code:
$DB_site->query("UPDATE user SET usergroupid=2 WHERE userid=$key");
with this code:
$DB_site->query("UPDATE user SET usergroupid=$usergroup[$key] WHERE userid=$key");

And instead of that big block, that looks like this:
// ###################### Start moderate + coppa #######################
if ($action=="moderate") {

/*
// delete coppa entries older than 30 days
$datecut=time()-(30*60*60*24);
$DB_site->query("DELETE FROM user WHERE joindate<$datecut AND usergroupid=4");
*/

// more PHP code here

doformfooter("Process Users","Reset",4);
}
}
use the contents of usergroup_moderate.txt (in the zip file).
Also added a screen shot so you could see this.

Spidey
Tue 9th Oct '01, 3:04pm
Thanks Firefly. That's exactly what I was talking about.

Now if I can just find where to put this code.

Sorry, I'm really new at the vBulletin thing.

I assume that your talking about modifing a template right?

Chen
Tue 9th Oct '01, 3:37pm
No no, I'm talking about a file - user.php in your 'admin' folder.
Open it in Notepad or any other text editor, and do what I said.

If you PM me with your FTP info (preferably with a temp password you will change after I'm done), I'll be happy to do everything for you.

Spidey
Mon 22nd Oct '01, 8:09pm
Ok, I've gotten that part working. I even added a totally new field to the user table and got that one working.

But now I need to put the last name of the person that wants to register on that same page.

I've got the table ready. But I can't get the data from the table. Could you please help me with this.

Last name is a required custom user profile field.

I've attached a picture of what I have so far.

Thanx in advance