Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: LunyMarcus on July 29, 2007, 11:30:43 PM

Title: Login history code
Post by: LunyMarcus on July 29, 2007, 11:30:43 PM
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.
Title: Re: Login history code
Post by: Joshua Dickerson 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.
Title: Re: Login history code
Post by: LunyMarcus on July 31, 2007, 06:02:10 PM
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.
Title: Re: Login history code
Post by: Joshua Dickerson on July 31, 2007, 06:04:43 PM
I think it is Load.php
// If it was *at least* five hours ago...
Title: Re: Login history code
Post by: LunyMarcus on July 31, 2007, 11:50:59 PM
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'  ???