Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
'Sort By' Options in "Who's Online" (online.php) Details »
'Sort By' Options in "Who's Online" (online.php)
Mod Version: 1.00, by bira (Member) bira is offline
Developer Last Online: Jun 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 18
Released: 31 Dec 2001 Last Update: Never Downloads: 0
Not Supported  

ok, I wrote this (very small) hack in online.php because I'd rather view the list
sorted by the Last Active time (latest first) than by the sorted by username a-z.
And, sometimes I want to view the list sorted by location - which gives
a very clear and nice picture of where people are currently crowding.

I went on and also added an option to sort by IP address - which allows me
to see if there are users from the same IP at the same time, etc.

This works exactly the same as the Forum Display sorting (where you can
click on "Threads" or "Replies" and the display listing gets sorted by that
field, and the sort/opposite sort arrow 'jumps' next to it).

Installation:

Open online.php and find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ABOVE it ADD:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

still in online.php, find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE this with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save and upload.

Templates:

ADD NEW templated called whosonline_sortarrow and place in it (remove spaces in { imagesfolder }):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

save.

OPEN template whosonline

Find (without the spaces in {}):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE it with (removes spaces in {}):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

save.

OPEN template whosonline_ip.

REPLACE the ENTIRE content of the template with (removes spaces in {}):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save.

That's it.

Cheers,

Bira

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 31 Dec 2001, 10:31
XiXora's Avatar
XiXora XiXora is offline
 
Join Date: Nov 2001
ohh /me installs
Reply With Quote
  #3  
Old 31 Dec 2001, 11:46
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
it's great bira~~~

but how to move the gif file to the red place??

see my attachment pic~~
Attached Images
File Type: jpg 6.jpg (2.1 KB, 229 views)
Reply With Quote
  #4  
Old 31 Dec 2001, 12:30
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Real name: Maurice
Thumbs up

Nice hack, thanks
Reply With Quote
  #5  
Old 31 Dec 2001, 15:11
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Originally posted by squawell
it's great bira~~~

but how to move the gif file to the red place??

see my attachment pic~~
You just need to move $sortarrow[XXXXX] to before the text.

For example, change this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #6  
Old 31 Dec 2001, 15:50
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Real name: Joe
Man Bira is da Woman LOL
__________________
I'll buy your forum!
Reply With Quote
  #7  
Old 31 Dec 2001, 16:28
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
great hack

very handy. Thanks
Reply With Quote
  #8  
Old 31 Dec 2001, 18:19
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
thankz bira~

it's look better now~~~
Reply With Quote
  #9  
Old 31 Dec 2001, 19:02
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
tx bira
__________________
Powered by: vBulletin
Reply With Quote
  #10  
Old 31 Dec 2001, 22:15
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Very nice, Bira. Another great one!
__________________
FWC
F5 Hosting
White Sox Interactive Forums
Reply With Quote
  #11  
Old 31 Dec 2001, 22:32
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Real name: Joe Velez
kewl ...thank you.
Reply With Quote
  #12  
Old 01 Jan 2002, 20:21
SirSteve SirSteve is offline
 
Join Date: Oct 2001
Excellent! Thanks!
Reply With Quote
  #13  
Old 08 Jun 2002, 19:53
Chris Blount Chris Blount is offline
 
Join Date: Mar 2002
Great hack but I notice that each time the who's online refreshes, it defaults to the names being in reverse alphabetical order. Is there a way to get them back to alphabetical order by default like they were before the hack?
Reply With Quote
  #14  
Old 10 Jun 2002, 13:59
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Real name: Karsten
Works nice!!
Thanx 4 this great Hack!! :-)
__________________
Funny eBay-Auctions: www.lustigeauktionen.de
Reply With Quote
  #15  
Old 10 Jun 2002, 20:14
inetd inetd is offline
 
Join Date: Nov 2001
/me install this hack

Good add-on to Who's Online, bira! :tup:
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:24.

Layout Options | Width: Wide Color: