View Single Post
  #4  
Old 06-17-2014, 05:21 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,566
IntoRain is on a distinguished road
Default

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.
Reply With Quote