miniBB Support Forums | 15 years on The Web
miniBB ®

miniBB

®
  
 | Begin | 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
 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 our forum posting rules. If not, it may be locked or deleted 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.
↑ TOP