![]() |
IsFriend Conditional
With the friends feature now becoming part of 3.7, I have tried to integrate some new features into my board. One of these is showing content in the postbit only to friends.
In my postbit_legacy template, i have the following code: Code:
<if condition="$prepared['isfriend'] OR $post['userid'] == $bbuserinfo['userid']"> In case anyone is wondering, i added $post['userid'] == $bbuserinfo['userid'] which shows the content the original user aswell, rather than just to his/her friends. ==== EDIT: After doing some digging, I found this in the includes/class_userprofile.php file. Line 84 Code:
/** |
Any help on the matter would be appreciated, as I know a few others have requested a similar feature before.
|
All times are GMT. The time now is 04:59 PM. |
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:
|