miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Files Bank for miniBB Enrich your miniBB-forums content, creating public files storage with the File Bank add-on!
Custom Tutorials and Modifications miniBB Community Forum / Custom Tutorials and Modifications /
Short link for this topic:

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

Author Insane
Forums Member
#1 | Posted: 29 Mar 2009 03:58
in the Registration page the default on View Email is "no".
how i can make the default will be "yes"?
Author kuopassa
Forums Member
#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
Forums Member
#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
CEO
#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 Community Forum / 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

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


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 Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts