[RevCMS][Plugin]Last Online script

Mitchul

Sledmoresux
Feb 18, 2012
371
46
Hey guys, Just a quick script update that I made for my hotel.
PHP:
<div id="habbo-feed">
                                    <ul id="feed-items">
                                        <li class="small" id="feed-lastlogin"><strong>You last logged in on:</strong>
                                        <?php
                                        $query = mysql_query("SELECT * FROM users") or die(mysql_error());
                                        $username = mysql_fetch_assoc($query) or die(mysql_error());
                                        echo "<small>Last Online: ". date("D, d F Y H:i (P)", $username['last_online']) ."</small>";
?></li>
                                    </ul>
                                </div>


What you need to find on /me is

PHP:
<div id="habbo-feed">
                                    <ul id="feed-items">
                                        <li class="small" id="feed-lastlogin">Last signed in: {lastSignedIn}</li>
                                    </ul>
                                </div>

and change it with the above.


SCREENSHOT:
 

Navigation

Posting Freak
Feb 15, 2012
715
137
There's a fix for {lastsignedin}.

It's easier than this.

--------------------------------------
wwwroot.

App>class.template.php open in noteie.

Find this link in class.template.php.

Code:
$this->setParams('ip_last', $users->getInfo($_SESSION['user']['id'], 'ip_last'));

Under that line add this code.

Code:
$this->setParams('lastSignedIn',  date('M j, Y H:i:s A', $users->getInfo($_SESSION['user']['id'],  'last_online')));
 

Jeffrey

Devbest Indian Tech Support
FindRetros Moderator
Feb 5, 2013
1,180
412
@Authra Why did you bump a year old thread

ONT:
its basically that..
 

Users who are viewing this thread

Top