Adding users as an administrator - bypassing user registrati

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785

Adding users as an administrator - bypassing user registrati

Postby mba124 » Sun Feb 11, 2007 2:43 pm

Hello!

I'm trying to set up a bulletin board to use in the classroom as a place where my students can post comments for their pen pals in France. I am not allowed to disclose student emails to anyone and some students don't even have email addresses.

For that reason, I want to have the accounts activated only by the administrator so that I can activate them by hand rather than having them sign in themselves and sending their emails out into cyberspace. I set the radio button in the configuration panel to "admin" for account activation, but I can't find any way to add the users myself ---- Please help!!!!!

Thanks!
mba124
Registered User
 
Posts: 2
Joined: Fri Feb 09, 2007 4:02 am

Postby karlsemple » Sun Feb 11, 2007 2:48 pm

there is no option to manually add user to your forum in a standard phpBB2. This would take some sort of modification to allow you to be able to do this :)

here is an api which can be used incorporated into a mod to registers users. http://www.phpbb.com/phpBB/viewtopic.php?t=456634
Image
User avatar
karlsemple
Support Team Member
Support Team Member
 
Posts: 39388
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK

about the email adresses....

Postby mba124 » Sun Feb 11, 2007 9:12 pm

Thanks for your response - I think that puts me one step closer to my goal, but not quite there yet

the readme file said that this mod would allow me to add the users in myself but that anything i added would still be subject to the same verification process, which means that if i omit the email adress, use a bogus email, or just use my own email for each student, the user will still be rejected.

i only have very basic knowledge of php, and i can't find anything in the code that verifies that the email hasn't already been used ...... if i could find that, i could just get rid of it. do you know how to get around this???

thanks so much!
mba124
Registered User
 
Posts: 2
Joined: Fri Feb 09, 2007 4:02 am

Postby geocator » Sun Feb 11, 2007 9:47 pm

// This function validates the userdata to ensure that the user can be inserted
// into the database. It checks for duplicate usernames, disallowed usernames,
// invalid email addresses and disallowed email addresses
//
// Returns true if the user can be inserted, false otherwise
function validate_user()
User avatar
geocator
Registered User
 
Posts: 16242
Joined: Fri Jan 09, 2004 11:56 pm
Location: On dry land


Return to 2.0.x Support Forum

Who is online

Users browsing this forum: No registered users and 6 guests