miniBB ® 

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
Partaker
#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,

Denre


This is the array as used by me:

$dbUserSheme=array(
'username'=>array(1,'login','login'),
'user_password'=>array(3,'password','passwd'),
'user_email'=>array(4,'email','email'),
'user_icq'=>array(5,'photo','icq'),
'user_website'=>array(6,'user_website','website'),
'user_occ'=>array(7,'name','occupation'),
'user_from'=>array(8,'location','from'),
'user_interest'=>array(9,'about','interest'),
'user_viewemail'=>array(10,'hide_email','user_viewemail'),
'user_sorttopics'=>array(11,'user_sorttopics','user_sorttopics'),
'language'=>array(14,'language','language'),
'num_topics'=>array(16,'num_topics',''),
'num_posts'=>array(17,'num_posts',''),
'user_custom1'=>array(18,'zex','user_custom1'),
'user_custom2'=>array(19,'age','user_custom2'),
'user_custom3'=>array(20,'avatar','user_custom3')
);
$dbUserId='id';
$dbUserDate='joined'; $dbUserDateKey=2;
$dbUserAct='activity';
$dbUserNp='user_newpasswd';
$dbUserNk='user_newpwdkey';

Author Team
8-)
#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
Guest
#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,

if(!function_exists('parseUserInfo_user_email')){

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,


Denre

Author Team
8-)
#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
Partaker
#5 | Posted: 14 Nov 2005 12:17 
Hmm... I think you did :D
Thanks for the help.

Best regards,

Denre

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
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑