HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

change memberslist to show last online instead of join date

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#77554 (In Topic #15958)
Avatar

Honoured member

Just something I wanted to do, as join date doesn't show me much of anything I want to know.

I modified the members.php in /site/pages/modules_custom and attached it to this message.  Pretty much the only change was changing m_join_time to m_last_visit_time in the routine to show the members list, and changing the reference from 'JOIN_DATE' to 'LAST_DATE'  for the language file.

If you are using english, then go into /lang/EN/ofc.ini   search for 'JOIN_DATE' and below it add:

LAST_DATE=Last Online

Save that file to /lang_custom/EN/ofc.ini

Now everything is in 'custom' folders as it should be so updates do not alter your changes.  And when you list members now it shows last time online instead of joined date.

Attachment
» Download: members.php (38 Kb, 11 downloads so far)


Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77562
Avatar

ocStaff (admin)

thanks for sharing :)



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: