Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Last Online on Memberlist for YaBB 2.4 - 0.2 (Read 4915 times)
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Last Online on Memberlist for YaBB 2.4 - 0.2
Feb 4th, 2010 at 3:43pm
Print Post  
Last Online on Memberlist - Version 0.2


Description:

This mod adds an additional column on the right side from your member list, which displays the date/time the members was last online. It's possible to set the option "Last Online" as default (Member List default sorting column) in your forum settings.
Special thanks goes to Deti. He helped with the sorting function.

Screenshot



Mod Package:

  • lastonline_in_memberlist_0_2.mod
  • lastonline_in_memberlist_0_2_german_du_patch.mod
  • lastonline_in_memberlist_0_2_german_patch.mod


Installation:

1) Modify YaBB files using BoardMod or manually.
2) Load modified files to your server in ASCII mode.

  • Admin/Modlist.pl
  • Admin/ViewMembers.pl
  • Admin/Settings_Main.pl
  • Languages/English/Memberlist.lng
  • Languages/English/Admin.lng
  • Sources/Memberlist.pl

Transfer all changed files in ascii format to your server.

Mod History:

Version 0.1 - February 04th, 2010 (Beta) for YaBB 2.4 (6 Downloads)
Version 0.2 - February 05th, 2010 (Beta) for YaBB 2.4 (changing the default sortorder)

Tested on a YaBB 2.4 board without other mods.

Feedback welcome .....  Wink
« Last Edit: Feb 5th, 2010 at 10:06pm by ThM »  

lastonline_in_memberlist_0_2.zip ( 28 KB | Downloads )

Greeting ThM
Back to top
 
IP Logged
 
Fps_Brian
Full Member
***
Offline



Posts: 130
Location: Beach Haven
Joined: Aug 14th, 2008
Gender: Male
Re: Last Online on Memberlist for YaBB 2.4 - 0.1
Reply #1 - Feb 4th, 2010 at 5:11pm
Print Post  
Looks great, I'll try to get it working on my 2.3.1 today!
  

www.omgot.org
65+ mods installed
Back to top
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Last Online on Memberlist for YaBB 2.4 - 0.1
Reply #2 - Feb 5th, 2010 at 5:46pm
Print Post  
Nice idea ThM, thanks!

I could be being silly here, but one thing I've noticed on a fresh install is, when I click on the Member List page and then click 'Last Online', the user who was last online is by default at the bottom of the list - shouldn't they be at the top of the list by default and then at the bottom of the list when clicking 'Reverse Result'?

Hope that makes sense - see attached image.
  

MLOnlineOrder.png ( 37 KB | Downloads )
MLOnlineOrder.png
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Last Online on Memberlist for YaBB 2.4 - 0.1
Reply #3 - Feb 5th, 2010 at 10:03pm
Print Post  
Thanks fpsbrian and Derek  Wink

New zip File in the first Post - Version 0.2 - Changing the default sortorder ...

If you don't want to reinstall this mod then open the Memberlist.pl

<search for>

Code
Select All
     # sort numerically descending
     if ( $INFO{'sortdesc'} ) {
 	    @x = sort { ${$uid.$b}{'lastonline'} <=> ${$uid.$a}{'lastonline'} } @memberlist;
     }
     # sort numerically ascending
     else {
 	    @x = sort { ${$uid.$a}{'lastonline'} <=> ${$uid.$b}{'lastonline'} } @memberlist;
     } 



</search for>

<replace>

Code
Select All
     # sort numerically descending
     if ( $INFO{'sortdesc'} ) {
 	    @x = sort { ${$uid.$a}{'lastonline'} <=> ${$uid.$b}{'lastonline'} } @memberlist;
     }
     # sort numerically ascending
     else {
 	    @x = sort { ${$uid.$b}{'lastonline'} <=> ${$uid.$a}{'lastonline'} } @memberlist;
     } 



</replace>
  

Greeting ThM
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Last Online on Memberlist for YaBB 2.4 - 0.2
Reply #4 - Feb 5th, 2010 at 10:25pm
Print Post  
Yep. That's done the trick. Thanks!
  
Back to top
 
IP Logged
 
pyragony
Junior Member
**
Offline


abgeschlafft und ausgebufft

Posts: 85
Location: Eichenau
Joined: Apr 26th, 2008
Gender: Male
Re: Last Online on Memberlist for YaBB 2.4 - 0.2
Reply #5 - Mar 11th, 2010 at 2:01pm
Print Post  
Hi ThM
Unfortunately, he was a nice mod does not work with YaMMS.
When I first install YaMMS, you can not install the mod.
I just install the mod, can not install YaMMS. Tested on a fresh forum.

For a manual postprocessing are my fault too much.

  

Back to top
WWW  
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Last Online on Memberlist for YaBB 2.4 - 0.2
Reply #6 - Mar 11th, 2010 at 4:36pm
Print Post  
Ok .... If i have a little bit more time i'll make it compatible with yamms.
  

Greeting ThM
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint