Advertisement:

Author Topic: Login history code  (Read 7153 times)

Offline LunyMarcus

  • Semi-Newbie
  • *
  • Posts: 32
  • Gender: Male
    • The Lunatic Fam
Login history code
« 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.

Offline Joshua Dickerson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,777
  • Gender: Male
    • joshuaadickerson on GitHub
    • joshuaadickerson on LinkedIn
Re: Login history code
« Reply #1 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.
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?

Offline LunyMarcus

  • Semi-Newbie
  • *
  • Posts: 32
  • Gender: Male
    • The Lunatic Fam
Re: Login history code
« Reply #2 on: July 31, 2007, 06:02:10 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.

Offline Joshua Dickerson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,777
  • Gender: Male
    • joshuaadickerson on GitHub
    • joshuaadickerson on LinkedIn
Re: Login history code
« Reply #3 on: July 31, 2007, 06:04:43 PM »
I think it is Load.php
Code: [Select]
// If it was *at least* five hours ago...
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?

Offline LunyMarcus

  • Semi-Newbie
  • *
  • Posts: 32
  • Gender: Male
    • The Lunatic Fam
Re: Login history code
« Reply #4 on: July 31, 2007, 11:50:59 PM »
I c y it isnt working from the website.

Code: [Select]
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'  ???
« Last Edit: July 31, 2007, 11:52:30 PM by LunyMarcus »