miniBB ®

miniBB

®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · File Bank · Manual ·
Re-cycled miniBB Support Forums / Re-cycled /  
 

Problems displaying custom field

 
Author Denre
Partaker
#1 · Posted: 1 Feb 2006 01:36Reply Quote
Hi there,

I have problems displaying custom fields in de user profile. Displaying, information in posts, is not a problem, also updating of the information works fine, just displaying in userinfo.

I did add the $l_usrInfo to my language file, without any result.

Running latest version of minibb with file upload, avatar, pmail, smilies, custom rank and some other things.

I also noticed, menu options specified in the bb_plugins.php are not displayed when certain actoins are done and the way to overcome this was by adding these functions to the bb_functions.php. Adding function parseUserInfo_user to the bb_functions.php did not make a difference.

Hope someone can help me solve this problem, it is drving me mad!

Thanks in advance.

Best regards,


Denre

Author Team
8-)
#2 · Posted: 1 Feb 2006 08:46Reply Quote
Hopefully this article covers almost everything you need to know about adding new fields.

Author Denre
Partaker
#3 · Posted: 1 Feb 2006 11:47Reply Quote
Thanks team,

Unfortunately I already followed instructions (problably nog correct else it would work) and don't see where I am going wrong. Everything works fine except displaying user profiles.

Any idea is welcome!!

Author Team
8-)
#4 · Posted: 1 Feb 2006 15:48Reply Quote
It's very difficult to imagine what you have done and what you have not done; this is very custom problem.

Most probably the index of $l_usrInfo variable is wrong. You can play with various indexes, increasing them.

Also, specifying $customProfileList array in options is more better idea than hang up on $l_usrInfo.

Author Denre
Partaker
#5 · Posted: 1 Feb 2006 21:06Reply Quote
Found the problem!

In first instance I added the new fields just under l_usrInfo[11] and this gives problems. Adding the new fields add the end of the language file solved the problem.

Thanks for your help

regards,


Denre

Author mcasano
Guest
#6 · Posted: 11 Aug 2006 04:26Reply Quote
Hi! How can I get the correct indexes for $l_usrInfo customs fields? I tried with numbers 15 to 50 but I still can get the custom fields on the Public User Profile page.
Thanks!

Author Paul
Lead Lead Developer
#7 · Posted: 11 Aug 2006 07:53Reply Quote
mcasano
It very depends on how many custom fields you have, how many default miniBB fields etc. Accordingly to manual:

For viewing new or custom fields on User Info page, you need to set corresponding $l_usrInfo variable. Keys of this array are the same as keys for table fields (for example, if key for user_icq is 5, ICQ language definition is $l_usrInfo[5]). user_custom1, user_custom2, user_custom3 database fields can be displayed on the user info page as well you will need to add corresponding values for these to the language pack though: $l_usrInfo[12], $l_usrInfo[13] and $l_usrInfo[14] ,- accordingly. You may also add additional custom fields, naming them so they contain 'user_custom' in the system key definition. In that case, set corresponding $l_usrInfo so it begins from 15. For example, if you have 'user_custom1', 'user_custom2', 'user_custom_name', 'user_custom_surname' listed in order one by one, $l_usrInfo keys are 12, 13, 14, 15.

Re-cycled miniBB Support Forums / Re-cycled /
 Problems displaying custom field
 Share Topic's Link

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

BB code for the Bold StyleBB code for the Italic StyleBB Code for the PictureBB code for the URLUpload a File

  ?
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
Proceed with the Private Messaging add-on: allow your miniBB-forums members to communicate with each other.