friend_count

Summary
friend_count
AuthorJaybill McCarthy
Licensehttp://communit.as/docs/license
Functions
smarty_function_new_messagesReturns the number of messages of a given type for a given username

Author

Jaybill McCarthy

Functions

smarty_function_new_messages

Returns the number of messages of a given type for a given username

Arguments

$paramsAn array of variables.
&$smartyTBD

Params

username (string)Username to get friend counts for
type (optional string)requests|total|pending - defaults to total

Returns

The number of messages

Execution Example

<!-- as used in a Smarty view template -->
{if $module_friends}
    {friend_count type="total" username="jaybill"}
{/if}
Close