UseBB Community

The official board for UseBB help and discussion

UseBB Community » Resources & Customization » Modifications in registration form

Modifications in registration form

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: May 2008
Posts: 4
Hi all,

For some reason I want to make some modifications in the registration form, so that one has to fill in his full name as well.

Searching the fora is found the next topic:
http://www.usebb.net/community/topic-906.html

Which in fact is what I need. My only question is: Is there a reason to believe that this trick doesn't work any longer, or is there a better solution than the one described?

The topic is more than 2.5 years old, so that is why I started this topic.
Thanks in avdance!
Moderator
Registered: Oct 2005
Posts: 462
Location: canada
It should still work. If you have any troubles with it, just post em up.
Member
Registered: May 2008
Posts: 4
Ok, thanks, I will give it a try, let you know.
Member
Registered: May 2008
Posts: 4
Yes, it seems to work, thank you vary much!
Member
Registered: May 2008
Posts: 4
It worked for e-mailactivation, but not for adminactivation, because the variable $active_key did not exist jet. I solved the problem by putting
if(!isset($active_key)){$active_key=$active_key_md5;}

In front of:
		//
// Create a new row in the user table
//

$result = $db->query("INSERT INTO ".TABLE_PREFIX."members ( id, name, email, passwd, regdate, level, active, active_key, template, language, date_format, enable_quickreply, return_to_topic_after_posting, target_blank, hide_avatars, hide_userinfo, hide_signatures, displayed_name, real_name, location ) VALUES ( NULL, '".$_POST['user']."', '".$_POST['email']."', '".md5($_POST['passwd1'])."', ".time().", ".$level.", ".$active.", '".md5($active_key)."', '".$functions->get_config('template')."', '".$functions->get_config('language')."', '".$functions->get_config('date_format')."', ".$functions->get_config('enable_quickreply').", ".$functions->get_config('return_to_topic_after_posting').", ".$functions->get_config('target_blank').", ".$functions->get_config('hide_avatars').", ".$functions->get_config('hide_userinfo').", ".$functions->get_config('hide_signatures').", '".$_POST['user']."', '".unhtml(stripslashes($_POST['real_name']))."','".unhtml(stripslashes($_POST['location']))."' )");
if ( intval($functions->get_config('activation_mode')) === 1 && $level < LEVEL_ADMIN ) {

I assume there won't pop up problems in admin activation mode, nor in e-mail activation mode, since the variable is then set properly.

Edit: The only little bug is that the newly registered user appear in the E-mailactivation category instead of admin-activation category in ACP. Any ideas of how to cope with that?
« Last edit by Mirax on Sun Jun 15, 2008 5:37 pm. »

Page: 1

UseBB Community » Resources & Customization » Modifications in registration form

UseBB Community is powered by UseBB 1 Forum Software