View Single Post
  #5  
Old 06-17-2014, 05:29 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 130,304
Kyttias is on a distinguished road
Default

Awesome! Very soon I'll have replaced the entire sidebar. Added this, too:
Code:
$online = $mysidia->db->select("online", array(), "username != 'Visitor'")->rowCount();
$offline = $mysidia->db->select("online", array(), "username = 'Visitor'")->rowCount();
$this->assign("population","{$online} Users Online, {$offline} Guests");
I've always wanted this in the footer, now I finally can.
Code:
<a href="{$home}/online">{$population}</a>
And as a follow up to something we had done in another thread, and in case anyone is paying attention to this one, this will allow one to display the current server time with {$time} and it will show up as, for example, 07:37 PM:
Code:
$now = new DateTime();		
$display = $now->format('h:i A');		
$this->assign("time",$display);

Also~!!

I almost forgot Mysidia had a friend's list system. The 'send friend request' button is currently on the last tab of the profile... I'll be moving that to the front where it's easier to find. However, Is there a table in the database that may be able to help me make a notification system for unaccepted/new friend requests? And I seem to be overlooking where I can link users to a list of their own friends, other than their profile...

Last edited by Kyttias; 06-17-2014 at 06:37 PM.
Reply With Quote