Opened 5 years ago

Last modified 4 years ago

#1839 new improve feature

Search results (last login time)

Reported by: shevek Owned by:
Priority: major Milestone: unassigned
Component: BW Search Keywords:
Cc:

Description

While the profile says last login less than a week ago the search results show something smaller (like 10 hours). This should be handled the same way.

When I checked the first result of one search it said last login 10 hours ago but the profile said member since 2 hours. Something's odd there as well.

Priority set to major as I believe that there was a conscious decision to not reveal login times less than a week ago.

Change History (7)

comment:1 Changed 5 years ago by crumbking

privacy issue could be solved with something like this from the profile:

                <?php
                    if (strtotime($member->LastLogin) > strtotime('-1 week'))
                    {
                        echo $words->get("LastLogin")?>: <?php echo $words->get("LastLoginPrivacy");
                    }
                    else
                    {
                        echo $words->get("LastLogin")?>: <?php echo $layoutbits->ago(strtotime($member->LastLogin));
                    }
                    ?>
            <?php endif; ?>

about the last login > member since: interesting bug ;-)

comment:2 Changed 5 years ago by beatnickgr

If you make a profile at 08:00 and i check your profile at 10:00, i will see the time that you created 2 hours ago (correct), and that your last login is 10:00 (which is the time now).

Also if you make a search and sort by last login, you will see on the top many people who logged in 10 hours ago, and then people who logged in 2 days ago. That's statisticaly impossible :D

comment:3 in reply to: ↑ description Changed 5 years ago by mahouni

Replying to shevek:

While the profile says last login less than a week ago the search results show something smaller (like 10 hours). This should be handled the same way.

When I checked the first result of one search it said last login 10 hours ago but the profile said member since 2 hours. Something's odd there as well.

Priority set to major as I believe that there was a conscious decision to not reveal login times less than a week ago.

I would also aggregate the loggins from the last week, and simulate a last login plus random sort for recent logged ins. As it is done now in the group members box.

comment:4 Changed 5 years ago by beatnickgr

Why the random sort? I think results should be sorted by last login, without random sorts. both for search and group members.

comment:5 Changed 5 years ago by beatnickgr

If we replace "last login XX hours ago" with "last login today" it will make more sence.

comment:6 Changed 4 years ago by sitatara

  • Component changed from unknown to BW Search

comment:7 Changed 4 years ago by beatnickgr

as a translator i've tried to fix at least the greek version, so that it shows "last login today", but this is affecting the messages also so i put it back as it was.

now we need to add a "last login today" separate from the messages.

Note: See TracTickets for help on using tickets.