miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

Changing the default value for "Email address displayed" profile field upon Registration

 
Author Insane
Partaker
#1 | Posted: 29 Mar 2009 04:58 
in the Registration page the default on View Email is "no".
how i can make the default will be "yes"?

Author kuopassa
Partaker
#2 | Posted: 29 Mar 2009 12:29 
I have not tested this, but it might be achieved by modifying file bb_func_regusr.php. In that file you see this code line:

$showemailDown=makeValuedDropDown(array(0=>$l_no,1=>$l_yes),'user_viewemail');

Perhaps the "Yes" option could be selected by default by changing code below to this:

$showemailDown=makeValuedDropDown(array(0=>$l_no,'1'=>$l_yes),'user_viewemail');

Author Rock
Partaker
#3 | Posted: 29 Mar 2009 20:00 
kuopassa:
Perhaps the "Yes" option could be selected by default by changing code below to this:

$showemailDown=makeValuedDropDown(array(0=>$l_no,'1'=>$l_yes),'user_viewemail');
I think it should be simple changed to:

$showemailDown=makeValuedDropDown(array(0=>$l_yes,1=>$l_no),'user_viewemail');

Author Paul
Lead Developer 
#4 | Posted: 30 Mar 2009 04:03 
Here is a non-destructive solution: modify bb_plugins.php and put:

if($action=='registernew' and !isset($_POST['user_viewemail'])) $_POST['user_viewemail']=1;

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 Changing the default value for "Email address displayed" profile field upon Registration
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑