Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Haun tulos hakusanalle: registration fields

Tuloksien järjestys
......  have one table which is userinfo and the only two fields I have are - username and password.  What I would  ......
#662
#663
SMF Coding Discussion / editing Profile template
elokuu 28, 2006, 01:21:01 IP tekijältä KitTen55
......  would like to know how to delete icq, msn, yim fields from the profile to be viewed in the member  ............  and also in the registration form?  Thanks in advance.  ......
#664
SMF 1.1.x Support / Requiring more information at registration?
kesäkuu 19, 2006, 02:09:43 IP tekijältä Lunenburg
...... : SMF 1.0.7 Is there an easy way to require more fields at registration time (like location, Custom Title, ......
#665
......  that is Ok  when i want to register with the registration buttom of the forum and i fill in the fields and  ......
......  checkbox that lets us require input of certain fields at registration would be nice.    Well can we  ............  for membergroups to be able to access specified fields and mass PM/email to generate user lists that  ......
#667
SMF 1.1.x Support / alternate registration screen for membergroups?
syyskuu 08, 2005, 03:10:15 IP tekijältä MrE
......  send them a link for, and then, ideally, that registration page would set two settings when they registered:  ............  and theme.  I've read lots of posts on modifying registration pages by adding custom fields, but nothing quite  ............  the scenes, and I can't do it from the "real" registration screen, because most of my members will not be in  ............  group.  So, can I make a duplicate registration screen that I can make a direct link to, but  ............  them in the index and routing that membergroup's registration requests through the new functions. However,  ............  the board default until they've completed their registration......
......  it still confuses people to have 2 different name fields on the user registration form.  I want to know if  ............  is possible to somehow edit the my registration form so that new members only have to fill out  ......
...... . I've read some topics how to add extra mandatory fields to registration form and I guess I should handle  ............  8000 users from phpBB without these mandatory fields filled. And there's also thousands of users which  ............  updated their profile and added the mandatory fields? So those users which have not done this would be  ......
#670
......  to allow people to give these informations at registration. It works great, the new informations are  ............  stocked in the new fields.  The problem is that I want to recover those  ......
......  guys and girls,  I have been editing the bridged registration for quite some time now to include some extra  ............  fields for users to fill out and some extra validation  ............  from the SMF registration (Register.php). I have gone into this in some  ............  and I have a fair idea how the bridged registration works. Through careful comparison of the original  ............  and Mambo registrations I have discovered there are a number of little  ............  with the bridged registration;  It check's to make sure Mambo registration is  ............  options into the themes table-i..e all registration fields must be existing in smf_members SMF has an  ............  'admin' registration, I can't see how this ties in with the bridge   ............  issues, along with including some of the extra fields I would like in the registration. I haven't fully  ............  "Added:" comments  Cheers  <br /><?php<br />//smf_registration.php<br />/**<br />* @version $Id: registration............  );<br /> break;<br /><br /> case "saveRegistration":<br /> saveRegistration( $option );<br /> break;< ............ ->SetPageTitle(_PROMPT_PASSWORD);<br /> HTML_smf_registration::lostPassForm($option);<br />}<br /><br /> ............ ;<br /><br /> if (!$mainframe->getCfg( 'allowUserRegistration' )) {<br /> mosNotAuth();<br /> return;<br /> }< ............ ->SetPageTitle(_REGISTER_TITLE);<br /> HTML_smf_registration::registerForm($option, $useractivation, $context); ............ <br />}<br /><br />function saveRegistration( $option ) {<br /><br /> global $modSettings,$ ............ , $mosConfig_useractivation, $mosConfig_allowUserRegistration;<br /> global $mosConfig_mailfrom, $ ............ /><br /> //Added : make sure both Mambo & SMF have registration enabled, else return<br /> if ($ ............ =="0" || (!empty($modSettings['registration_method']) && $modSettings['registration_method'] = ............  coming from ? Can't see it being posted by smf_registration.html.php ?<br /> if (!$row->bind( $_POST, " ............ ]'",<br /> 'is_activated' => empty($modSettings['registration_method']) || (!isset($_POST['emailActivate']) && $ ............ ,<br /> 'validation_code' => !empty($modSettings['registration_method']) && $modSettings['registration_method'] = ............ , $mosConfig_live_site."/index.php?option=com_smf_registration&task=activate&activation=".$row->activation, $ ......
#672
Mambo Bridge Support / Registering + memberlist
helmikuu 03, 2005, 04:58:34 IP tekijältä stefanoe
...... ,  1. I would like to customize the registration fields 2.I want my users in usergroups , what's  ......
#673
......  2.0<br /> */<br /><br />// Before showing users a registration form, show them the registration agreement.<br /> ............  template_registration_agreement()<br />{<br /> global $context, $ ............ -charset="', $context['character_set'], '" id="registration"><br /> <div class="cat_bar"><br />  ............  <h3 class="catbg">', $txt['registration_agreement'], '</h3><br /> </div><br />  ............  - get their information.<br />function template_registration_form()<br />{<br /> global $context, $settings, ............ (currentAuthMethod == \'passwd\' && document.forms.registration.smf_autov_pwmain.value != document.forms. ............  true;<br /><br /> document.forms.registration.openid_url.disabled = currentAuthMethod == \' ............  false : true;<br /> document.forms.registration.smf_autov_pwmain.disabled = currentAuthMethod == \ ............  false : true;<br /> document.forms.registration.smf_autov_pwverify.disabled = currentAuthMethod == ............ ();<br /> document.forms.registration.openid_url.style.backgroundColor = \'\';<br />  ............  {<br /> document.forms.registration.smf_autov_pwmain.style.backgroundColor = \'\';<br  ............ /> document.forms.registration.smf_autov_pwverify.style.backgroundColor = \'\';< ............  /> document.forms.registration.openid_url.style.backgroundColor = \'#FFF0F0\';< ............ /> // Any errors?<br /> if (!empty($context['registration_errors']))<br /> {<br /> echo '<br />  ............ ="register_error"><br /> <span>', $txt['registration_errors_occurred'], '</span><br /> <ul  ............  an error message.<br /> foreach ($context['registration_errors'] as $error)<br /> echo '< ............ -charset="', $context['character_set'], '" name="registration" id="registration" onsubmit="return verifyAgree(); ............ "><br /> <h3 class="catbg">', $txt['registration_form'], '</h3><br /> </div><br />  ............ "><span></span></span><br /> <fieldset class="content"><br /> <dl  ............  }<br /><br /> echo '<br /> </fieldset><br /> <span class="botslice">< ............  group.<br /> if (!empty($context['profile_fields']) || !empty($context['custom_fields']))<br />  ............ "><span></span></span><br /> <fieldset class="content"><br /> <dl  ............ > }<br /><br /> if (!empty($context['profile_fields']))<br /> {<br /> // Any fields we  ............  want?<br /> foreach ($context['profile_fields'] as $key => $field)<br /> {<br />  ............ <br /> }<br /><br /> // Are there any custom fields?<br /> if (!empty($context['custom_fields']))< ............  /> {<br /> foreach ($context['custom_fields'] as $field)<br /> echo '<br />  ............  gent.<br /> if (!empty($context['profile_fields']) || !empty($context['custom_fields']))<br />  ............ /> </dl><br /> </fieldset><br /> <span class="botslice">< ............ "><span></span></span><br /> <fieldset class="content centertext"><br />  ............ '], 'all'), '<br /> </fieldset><br /> <span class="botslice">< ............ {<br /> "username_valid": "', $txt['registration_username_available'], '",<br /> " ............ ": "', $txt['registration_username_unavailable'], '",<br /> " ............ ": "', $txt['registration_username_check'], '",<br /> " ............ ": "', $txt['registration_password_short'], '",<br /> " ............ ": "', $txt['registration_password_reserved'], '",<br /> " ............ ": "', $txt['registration_password_numbercase'], '",<br /> " ............ ": "', $txt['registration_password_no_match'], '",<br /> " ............ ": "', $txt['registration_password_valid'], '"<br /> };<br />  ............  var verificationHandle = new smfRegister("registration", ', empty($modSettings['password_strength']) ? 0  ............  // ]]></script>';<br />}<br /><br />// After registration... all done.<br />function template_after()<br />{ ............  have you.<br /> echo '<br /> <div id="registration_success"><br /> <div class="cat_bar">< ............ ">';<br /><br /> if (!empty($context['registration_done']))<br /> echo '<br />  ............ "><br /> ', $context['registration_done'], '<br /> </div>';<br /><br / ............  $context['tabindex']++, '"', !empty($modSettings['registration_method']) && $modSettings['registration_method'] = ............ "><br /> <h3 class="catbg">', $txt['registration_agreement'], '</h3><br /> </div>';<br />< ............  echo '<br /> <div class="windowbg2" id="registration_agreement"><br /> <span class=" ......
#674
SMF 2.0.x Support / Re: Malware Found
joulukuu 15, 2016, 09:19:05 AP tekijältä Willie
...... , and it helps the administrator moderate member registrations.  Similarly, it handles account activation as  ............  RegisterCheckUsername()  // !!! */  // Begin the registration process. function Register($reg_errors = array())  ............  has it disabled.  if (!empty($modSettings['registration_method']) && $modSettings['registration_method'] = ............ = 3)  fatal_lang_error('registration_disabled', false);   // If this user is an admin - ............  redirect them to the admin registration page.  if (allowedTo('moderate_forum') && !$ ............ ('Register');   // Do we need them to agree to the registration agreement, first?  $context['require_agreement'] = ............ ($modSettings['requireAgreement']);  $context['registration_passed_agreement'] = !empty($_SESSION[' ............ $_POST['accept_agreement_coppa'])))  {  $context['registration_passed_agreement'] = $_SESSION[' ............  they saying they're under age, while under age registration is disabled?  if (empty($modSettings['coppaType' ............ ('Login');  fatal_lang_error('under_age_registration_prohibited', false, array($modSettings['coppaAge'] ............ > 1 && $context['require_agreement'] && !$context['registration_passed_agreement'])  $current_step = 1;   //  ............   $context['sub_template'] = $current_step == 1 ? 'registration_agreement' : 'registration_form';  $context[' ............ '] = $current_step == 1 ? $txt['registration_agreement'] : $txt['registration_form'];   // Add  ............ ][$key]['selected'] = true;  }  }   // Any custom fields we want filled in?  require_once($sourcedir . '/ ............ .php');  loadCustomFields(0, 'register');   // Or any standard ones?  if (! ............ ($modSettings['registration_fields']))  {  require_once($sourcedir . '/ ............ ', 'profile_extra_own'));  $reg_fields = explode(',', $modSettings['registration_fields'] ............  on this front - go check.  foreach ($reg_fields as $field)  if (isset($_POST[$field]))  $ ............ ']($_POST[$field]);   // Load all the fields in question.  setupProfileContext($reg_fields);   ............  operation?  // Were there any errors?  $context['registration_errors'] = array();  if (!empty($reg_errors))   ............  ($reg_errors as $error)  $context['registration_errors'][] = $error; }  // Actually register the  ............  = array();   // Did we save some open ID fields?  if ($verifiedOpenID && !empty($context[' ............ ']))  {  foreach ($context['openid_save_fields'] as $id => $value)  $_POST[$id] = $value;  }    ............  if it's disabled.  if (!empty($modSettings['registration_method']) && $modSettings['registration_method'] = ............ = 3)  fatal_lang_error('registration_disabled', false);   // Things we don't do for  ............ ['requireAgreement']) && empty($_SESSION['registration_agreed']))  redirectexit();   // Make sure  ............ ('Login');  fatal_lang_error('under_age_registration_prohibited', false, array($modSettings['coppaAge'] ............ "), '', $_POST[$key]));  }   // Collect all extra registration fields someone might have filled in.  $ ............   unset($_POST['lngfile']);   // Some of these fields we may not want.  if (!empty($modSettings[' ............  of them if the admin asks for them.  $standard_fields = array('icq', 'msn', 'aim', 'yim', 'location', ' ............ ');  $reg_fields = explode(',', $modSettings['registration_fields'] ............ );   $exclude_fields = array_diff($standard_fields, $reg_fields);   // ............  little different  if (!in_array('website', $reg_fields))  $exclude_fields = array_merge($ ............ '));   // We used to accept signature on registration but it's being abused by spammers these days, so  ............  more.  $exclude_fields[] = 'signature';  }  else  $exclude_fields =  ............  = array_diff($possible_strings, $exclude_fields);  $possible_ints = array_diff($possible_ints, $ ............  = array_diff($possible_floats, $exclude_fields);  $possible_bools = array_diff($possible_bools, $ ............ );    // Set the options needed for registration.  $regOptions = array(  'interface' => 'guest',   ............ ['skip_coppa']) ? 'coppa' : (empty($modSettings['registration_method']) ? 'nothing' : ($modSettings[' ............ '][$var] = empty($_POST[$var]) ? 0 : 1;   // Registration options are always default options...  if (isset($ ............ '] = 1;   // Check whether we have fields that simply MUST be displayed?  $request = $ ............ , mask, show_reg  FROM {db_prefix}custom_fields  WHERE active = {int:is_active}',  array(  ' ............ ['col_name']]) : '';   // We only care for text fields as the others are valid to be empty.  if (! ............   spamProtection('register');   // We'll do custom fields after as then we get to use the helper function!   ............  variable setup.  elseif (!empty($modSettings['registration_method']))  {  loadTemplate('Register');   $ ............ ' => $txt['register'],  'title' => $txt['registration_successful'],  'sub_template' => 'after',  ' ............ ' => $modSettings['registration_method'] == 2 ? $txt['approval_after_registration............ ] : $txt['activate_after_registration']  );  }  else  {  call_integration_hook(' ............ ($_POST['user']))  {  if (empty($modSettings['registration_method']) || $modSettings['registration_method'] = ............ ;  $context['can_activate'] = empty($modSettings['registration_method']) || $modSettings['registration_method'] = ............ '] == 2))  {  if (empty($modSettings['registration_method']) || $modSettings['registration_method'] = ............ {  loadLanguage('Profile');  fatal_error($txt['registration_not_approved'] . ' <a href="' . $scripturl . '? ............ );  }   $context += array(  'page_title' => $txt['registration_successful'],  'sub_template' => 'login',  ' ............ }', $modSettings['coppaAge'], $txt['coppa_after_registration']),  'many_options' => !empty($modSettings[' ......
#675
SMF 2.0.x Support / Re: Change Registration
joulukuu 12, 2016, 11:57:41 IP tekijältä Colin
...... .php  2. You can do this via advanced profile fields. You will need to enable this core feature   http: ......
#676
SMF 2.0.x Support / Re: Adding an item to the registration
lokakuu 07, 2016, 08:54:46 AP tekijältä vbgamer45
......  admin -> core features Enable "Advanced Profile Fields" And save  Then go to admin -> Features and  ............  -> Profile fields ......
#677
......  solution does not translate error messages in registration form. To translate these too search for this in  ......
#678
SMF 2.0.x Support / Re: Location
lokakuu 20, 2015, 10:24:20 AP tekijältä petewadey
......  doing something wrong? I just can't find"Show on Registration did you select yes, and require entry" on the  ............  "Location" under standard profile fields?   ......
...... , 07:44:02 AP1- why are you using custom profile fields when SMF already can collect and display "real  ......
#680
SMF 2.0.x Support / Re: Is their a simple way to repair this?
helmikuu 14, 2015, 11:24:50 AP tekijältä uth
......   indicators.    [code] // Collect all extra registration fields someone might have filled in.  $ ......
Advertisement: