The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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'; $hook_query_joins .= 'LEFT JOIN ' . TABLE_PREFIX . 'profileblockprivacy ON (profileblockprivacy.userid=post.userid AND profileblockprivacy.blockid="profile_cat1")'; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|