miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | 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
Registered
#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
Registered
#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
Registered
#3 | Posted: 29 Mar 2009 20:00 | Edited by: Rock 
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 Top

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

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB