PDA

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


Sofia
31 May 2009, 00:22
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 :)

http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=214944

https://www.vbulletin.org/forum/




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
31 May 2009, 00:56
nice mod, thanks for sharing it :)

Shaheen
01 Jun 2009, 03:17
kool work
thankx

Feanor_87
13 Jul 2009, 10:14
Thanks for this!! :)

COL NIL SATIS
20 Dec 2009, 20:52
Nice little mod..nice work Sofia..installed