The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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']"> content </if> 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:
/**
* Array of variables to 'automatically' prepare for each profile view
*
* @var array
*/
var $auto_prepare = array(
'userid',
'username',
'musername',
'myprofile',
'usertitle',
'userperms',
'imicons',
'profilepic',
'rank',
'reputation',
'onlinestatus',
'lastactivity',
'wolocation',
'usernoteinfo',
'isfriend',
'canbefriend',
'show',
);
|
|
#2
|
||||
|
||||
|
Any help on the matter would be appreciated, as I know a few others have requested a similar feature before.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|