Log in

View Full Version : Forum Home Enhancements - Sort Who's Online directly on Who's Online box


Sofia
05-30-2009, 10:00 PM
Just a simple and little modification that allows you to add sorting option of currently active users, below "Most users ever online" in "What's Going On?" box.
You can sort by username, last activity and location :)

https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=214944

https://vborg.vbsupport.ru/




Installation

In the template "forumhome",

Find:

<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>Add below:

<div class="smallfont">
<strong>Sort by:</strong> <a href="online.php?order=asc&sort=username&pp=20&page=1">$vbphrase[username]</a>, <a href="online.php?order=desc&sort=time&pp=20&page=1">$vbphrase[last_activity]</a>, <a href="online.php?order=asc&sort=location&pp=20&page=1">Location</a>
</div>

Brandon Sheley
05-30-2009, 10:56 PM
nice mod, thanks for sharing it :)

Shaheen
06-01-2009, 01:17 AM
kool work
thankx

Feanor_87
07-13-2009, 08:14 AM
Thanks for this!! :)

COL NIL SATIS
12-20-2009, 06:52 PM
Nice little mod..nice work Sofia..installed