| message_count | |
| Author | Jaybill McCarthy |
| License | http://communit.as/docs/license |
| Functions | |
| smarty_function_new_messages | Returns the number of messages of a given type for a given username |
Returns the number of messages of a given type for a given username
| $params | An array of variables. |
| &$smarty | TBD |
| username (string) | Username to check for new messages |
| type (optional string) | new|total|sent - defaults to new |
The number of messages
<!-- as used in a Smarty view template -->
{if $module_mail}
{t}You have{/t} {message_count username="jaybill"} {t}new messages.{/t}
{/if}