![]() |
Profile Field Privacy on POSTBIT
I want to display the profile field $post['field10'] but only if the user does not want to have it choosen as private on profile.php?do=privacy. How can I check the privacy of $post['field10'] in postbit? Thank you very much!
--------------- Added [DATE]1248709199[/DATE] at [TIME]1248709199[/TIME] --------------- This checks for registered and unregistered privacy settings on postbit - you need to know your profile field number and the according database category name: hook: showthread_query Code:
$hook_query_fields .= ', IF(userfield.field10 AND requirement <' . iif(in_array($vbulletin->userinfo['usergroupid'], array(1)),'1','2') . ',userfield.field10,0) AS field10'; |
All times are GMT. The time now is 09:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|