miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Master Class miniBB Support Forums / Master Class /   

certain profile fields viewable only for registered users

Author Reinhold
Guest
#1 | Posted: 13 Jan 2008 13:37 
Hi,

we'd like to use the "Interests & hobbies" field to store contact data like address, mobile phone number and so on. But then this field should only be viewable by registered users rather then for everybody.

How could this be managed?

Thanks
Reinhold

Author Paul
Lead Developer
#2 | Posted: 14 Jan 2008 03:53 
Download some add-ons based on the extra fields and see how the functions which are displaying their values on the profile page, are implemented.

You would need to implement the same function, which returns the value stored in database, but only if the condition $GLOBALS['user_id']>0 is working i.e. if the profile is visited by the registered forums member).

Also the conditon $GLOBALS['action']=='userinfo' could be used for the displaying data for profile page only.

Master Class miniBB Support Forums / Master Class / certain profile fields viewable only for registered users 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