vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - Sort Who's Online directly on Who's Online box (https://vborg.vbsupport.ru/showthread.php?t=214944)

Sofia 05-30-2009 10:00 PM

Sort Who's Online directly on Who's Online box
 
1 Attachment(s)
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_mis...hreadid=214944




Installation

In the template "forumhome",

Find:


HTML Code:

<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:

HTML Code:

<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


All times are GMT. The time now is 10:37 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01175 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete