Last Active On MemberList

Started by Nathaniel, August 09, 2008, 06:02:03 AM

Previous topic - Next topic

ohioreef

I see the issue Morp mentioned, but how do I go about making that change in the package-info.xml file so I can install on 1.1.10?

Nathaniel

Version 1.02:
Added support for SMF 2 RC2 and curve. Also updated mod description.

Quote from: ohioreef on October 15, 2009, 10:35:20 PM
I see the issue Morp mentioned, but how do I go about making that change in the package-info.xml file so I can install on 1.1.10?
The issue with the installation for this mod and 1.1.10 was a bug with the SMF package manager. The newest version has a workaround for this issue.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

ohioreef

Thanks. I ended up getting it installed by dropping back to 1.1.09, installing this mod and then "reupgrading" my SMF.

thezkitten

i love this mod, but i was having a buttload of issues!
the last active was really long, too long to fit comfortable in the memberlist, and i had sql errors when i tried to sort by date, this may be due to all the mods i've done to my members list (lots of custom tweeking) and i have a pile of mods as well.
so, i tweeked it to the specs i liked myself!

if anyone else had the same problems i did, you may want to try this (image of final result attached)

With this way, no need to add and type of thing to load,
and your date format will be like this  "2009-11-16"
instead of like this "November 19, 2009, 12:56:34 AM"
and sort without any sql errors


./Sources/Memberlist.php

Find:
'registered' => array(
'label' => $txt[233]
),

Add After:
//last active thingy
'last_login' => array(
'label' => $txt[12399221]
),

      

Find:
'registered' => array(
'down' => 'mem.dateRegistered ASC',
'up' => 'mem.dateRegistered DESC'
),

Add After:
//last acative thingy
'last_login' => array(
'down' => 'mem.lastLogin ASC',
'up' => 'mem.lastLogin DESC'
),

now, i added an extra definition to the language file,
./Themes/default/languages/index.english.php
$txt[12399221] = 'Last Active';
to make it easier on yourself, you can just define it in this file if you want by changing the 'label'
'label' => 'Your Words Here'




-----------------------
      
./Themes/default/Memberlist.template.php

Find:
<td class="windowbg" align="left">', $member['registered_date'], '</td>

Add After:
//last active thingy
<td class="windowbg2" align="left">', $member['last_login_date'], '</td>


If this is your only memberlist mod, in memberlist.template.phpjust change all
colspan="12"
to
colspan="13"

if this is one of many, just add one to your colspan. (there's only 4 you need to change)
http://zkitten.com  :|:  http://chaoticlycreative.com  :|:  http://etsysteamteam.com [nofollow]

Lots O Smileys not working for you? This may be it!  Also, Need to Show Custom Fields in Memberlist? this could help! (for 1.1.x)

Nathaniel

v1.03 - 27 May 2010
Changed package info to work with SMF 2 RC3.
Removed official support for SMF versions below SMF 2 RC2.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

FireDitto

Will this be made RC4 friendly??
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Nathaniel

v1.4 - 5 November 2010
Updated for SMF 2 RC4.

Quote from: FireDitto on November 05, 2010, 06:17:07 AM
Will this be made RC4 friendly??

Yes. It is now. :D
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

FireDitto

Thank you! This is a very useful mod =D
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

FireDitto

Ah, you called the "Last Active" file "Last Post".

It installed the "Last Active", but was a little confusing trying to find the right file to upload.

=)
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Nathaniel

Apologies for the confusion caused, I updated a lot of mods last night, looks like I got that name wrong for that package. :S

Its the right mod though, which is a good. ;) I've updated it so that the package has the correct name.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

FireDitto

Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

GhostHunter

#31
This is a great mod, thanks to Nathaniel for creating it!

I am having a persistent problem that I am unable to solve. I get the following error when I try to sort the memberlist by the Last Active column:

DATABASE ERROR

Unknown column 'mem.last_login' in 'order clause'
File: /public_html/smf/Sources/Memberlist.php
Line: 360

I am using SMF 1.1.13, DilberMC theme. There are no other mods that alter the memberlist installed (that I know of). The mod works fine when sorting by other columns, and patches specific to 1.1.xx have been done. I have tried the tweaks posted by thezkitten in reply #23 of this thread, no joy.

Any clues?

Made the following changes:

./Sources/Memberlist.php

Find:
      'registered' => array(
         'label' => $txt['date_registered']
      ),

Replace with:
      'registered' => array(
         'label' => $txt[233]
      ),

(Fixed missing "Date Registered" text in column header)

./Themes/default/languages/index.english.php
Find:
$txt[233] = 'Date Registered';
Add after:
$txt['lastLoggedIn'] = 'Last Active';

This changed the error message when trying to sort on Last Active to:

Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 30' at line 5
File: /home/jimnu0c/public_html/NEBRASKAGHOSTS/smf/Sources/Memberlist.php
Line: 351

I also get this error when I try to sort on Date Registered:

Database Error
Unknown column 'mem.date_registered' in 'order clause'
File: /home/jimnu0c/public_html/NEBRASKAGHOSTS/smf/Sources/Memberlist.php
Line: 351

Other columns sort normally.

This one is a little beyond me at this point. Any help would be appreciated.

TIA

Jim

Markco

Please i would like to change the format of date "30-01-2011" in version 2.0Gold

Thank's

++
Sorry, I use the on-line translator ("Reverso") French / English

Nathaniel

Quote from: Markco on June 21, 2011, 04:47:02 AM
Please i would like to change the format of date "30-01-2011" in version 2.0Gold

Thank's

++

This mod depends only on SMF's date format, if you want to change the format then you will need to change the overall forum setting.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Markco

Sorry, I use the on-line translator ("Reverso") French / English

Senkusha

I suppose since this MOD is quite old, that there's very little hope of having it updated for SMF 2.1.x?
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Steve

You never know unless you ask. The @Nathaniel was here today so he should see your post on his next visit.
DO NOT pm me for support!

Advertisement: