Description

This event trigger after a friend request had been made.

@since 1.2

Params

  • request - object consisting of the profile owner id and the id of the user he/she requested to be friend with.
{code}request Object
(
[profileOwnerId] => 63
[friendId] => 64
){/code}

Examples

{code}
function onFriendRequest( $request ) 
{
echo $request->profileOwnerId;
echo '<br />';
echo $request->friendId;
 
return true;
}
 
result:
63
64
{/code}

Description

This event trigger when a friend is rejected.

@since 1.2

Params

  • reject - object consisting of the profile owner id and the id of the user he/she that is going to be rejected.

e.g.

reject Object (

   [profileOwnerId] => 63
[friendId] => 64

)

Examples

{code}

function onFriendReject( $reject ) 
{
echo $reject->profileOwnerId;
echo '<br />';
echo $reject->friendId;
 
return true;
}
 
result:
63
64

{/code}

Description

This event trigger after a the user has approved a friend request.

@since 1.2

Params

  • approve - object consisting of the profile owner id and the id of the user he/she accepted to be friend with.

{code}

approve Object
(
[profileOwnerId] => 64
[friendId] => 63
)

{/code}

Examples

{code}

function onFriendApprove( $approve ) 
{
echo $request->profileOwnerId;
echo '<br />';
echo $request->friendId;
 
return true;
}
 
result:
64
63

{/code}

Description

Once a friend is removed from user's list, this event will be triggered.

@since 1.2

Params

  • eventObject - Stdclass object, passed by reference, consists of the following properties:
  1. profileOwnerId - int, owner id that wants to remove the friend.
  2. friendId - int, user id that is being removed.

Examples

{code}

function onFriendRemove( $eventObject ) 
{
echo $eventObject->profileOwnerId;
echo '<br />';
echo $eventObject->friendId;
 
return true;
}
 
result:
64
63

{/code}

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW