miniBB ® 


Support Forums
 | Start | Register | Search | Statistics | File Bank | Manual |
Master Class miniBB Support Forums / Master Class /  

Handling custom email field, named differently

Author Denre
#1 | Posted: 12 Nov 2005 18:51 
Hello there,

I was just working on a customised installation of miniBB RC4 and found that when I change the array in setup_options.php to match my DB structure the show email is not working corectly. I have tried this several times and can't find any other reason why this is nog working other than it being a bug.

If someone can please check this and let me know would be great

Thanks and regards,


This is the array as used by me:

$dbUserDate='joined'; $dbUserDateKey=2;

Author Team
#2 | Posted: 13 Nov 2005 18:57 
What do you mean by "show email"? In user's profile? Email will be shown public only if user has specified it ('user_viewemail' value is set to 1).

Author Anonymous
#3 | Posted: 14 Nov 2005 01:27 
What I mean is, install minibb, change the names of the columns in the usertable to the once mentioned in the array shown above, than change the setup_options.php with the above array and check a profile (statistics) You will see the email address displayed, no mather if you set (1) or unset (0) the show_email option.

The email adres is shown as text and not as link meaning there might be something wrong with bb_func_usernfo.php,


But like I said, try the above and see what happens.
When filling in the profile, the email adres and the show_email columns are set correctly, just when viewing profiles the show_email option is not working correctly when customising the user table.

Thanks and regards,


Author Team
#4 | Posted: 14 Nov 2005 10:28 
Hmm... maybe I've got the problem. Try to copy function parseUserInfo_user_email() from bb_func_usernfo.php to bb_plugins.php, for example, but rename it to parseUserInfo_email(), because function is named accordingly to the table field's name, not table's definition.

Author Denre
#5 | Posted: 14 Nov 2005 12:17 
Hmm... I think you did :D
Thanks for the help.

Best regards,


Author Guest
#6 | Posted: 11 Jul 2012 17:39 
Thanks a lot for the post on Handling custom email field, named differently. This is very helpful.

Master Class miniBB Support Forums / Master Class /
 Handling custom email field, named differently
 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.