![]() |
|
|
|
#1
|
||||
|
||||
|
Sorry! It's $mysidia->user->getgroup()! Which will return one of the groups available in your database (rootadmins, admins,registered,artists,banned,visitors).
Messages is an array containing multiple message objects, that's why I use foreach there, it goes through every "item" in the messages variable. Each Message contains a title, content, date, etc... To get just the number of new messages: $messages = $mysidia->db->select("messages", array(), "touser='{$mysidia->user->username}' and status='unread'")->rowCount(); $this->assign("messages",$messages);
__________________
![]() ![]() ![]() asp.net stole my soul. |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Smarty Tips: Things you can do with Templates | Kyttias | Tutorials and Tips | 5 | 04-03-2015 10:53 AM |
| Assigning array to smarty variables | IntoRain | Questions and Supports | 3 | 06-03-2014 02:06 PM |
| Smarty errors and WAMPP | Kesstryl | Questions and Supports | 15 | 01-29-2014 09:07 PM |
| Problem: smarty class 1.3.4 | draugluin | Questions and Supports | 8 | 11-15-2013 02:29 AM |
What's New? |
What's Hot? |
What's Popular? |