• Welcome to Simple Machines Community Forum. Please login or sign up.

Login history code

Started by LunyMarcus, July 29, 2007, 11:30:43 PM

Previous topic - Next topic

LunyMarcus

Been digging thru the smf code and cant find it.  Where is the code for login history?  I'd like to add it to my website for users that dont goto the forum.  And yes for ppl that have login forever set, it recognizes them on the website thru ssi.

Joshua Dickerson

There is no login history. It stores the last time you were logged in and it isn't really accurate.
Come work with me at Promenade Group



Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

LunyMarcus

Quote from: groundup on July 30, 2007, 11:51:09 PM
There is no login history. It stores the last time you were logged in and it isn't really accurate.

Yeah, but where is that code?  So I can add it to my website.  Cause alot ppl just goto the website and see no new post or new messages, so they never go into the actual forum.

Joshua Dickerson

I think it is Load.php
// If it was *at least* five hours ago...
Come work with me at Promenade Group



Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

LunyMarcus

July 31, 2007, 11:50:59 PM #4 Last Edit: July 31, 2007, 11:52:30 PM by LunyMarcus
I c y it isnt working from the website.

if (SMF != 'SSI' && !isset($_REQUEST['xml']) && (!isset($_REQUEST['action']) || $_REQUEST['action'] != '.xml') && empty($_SESSION['ID_MSG_LAST_VISIT']) && (empty($modSettings['cache_enable']) || ($_SESSION['ID_MSG_LAST_VISIT'] = cache_get_data('user_last_visit-' . $ID_MEMBER, 5 * 3600)) === null))


Would it hurt to remove this condition -->  SMF != 'SSI'  ???

Advertisement: