message_count

Summary
message_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 check for new messages
type (optional string)new|total|sent - defaults to new

Returns

The number of messages

Execution Example

<!-- as used in a Smarty view template -->
{if $module_mail}
    {t}You have{/t} {message_count username="jaybill"} {t}new messages.{/t}
{/if}
Close