ElkArte Community

Elk Development => Feature Discussion => Topic started by: meetdilip on August 18, 2016, 11:18:58 pm

Title: Profile visitors
Post by: meetdilip on August 18, 2016, 11:18:58 pm
Anyone like to have a listing of latest profile visitors on your profile ?
Title: Re: Profile visitors
Post by: niloc on August 19, 2016, 12:43:54 am
Reminds me of Linkedin, who's viewed your profile... Haha!
Title: Re: Profile visitors
Post by: Jorin on August 19, 2016, 01:02:20 am
Nope, thanks.  ;)
Title: Re: Profile visitors
Post by: emanuele on August 19, 2016, 06:53:06 am
Quote from: niloc – Reminds me of Linkedin, who's viewed your profile... Haha!
On that I still remember a discussion on linkedin with few people moaning because some of the visitors of their profiles were keeping their profile hidden and the general comment was that this behaviour was stupid, because they wanted to know who viewed their profiles, etc.
Really a sad discussion altogether. xD

On the topic at hand, not a fan but it shouldn't be too difficult to create an addon: a database table with three columns (id_member, id_visitor, last_visit) a couple of insert/deletes depending on visit and last visited, and a scheduled task to delete periodically the old entries (let's say last day).
Title: Re: Profile visitors
Post by: Bloc on August 20, 2016, 04:21:49 am
A bit on the side..but if it was an addon, would it be added through a hook on the profile page?
Title: Re: Profile visitors
Post by: emanuele on August 20, 2016, 09:41:30 am
Yes.
There should be enough hooks around to call the code without having to rely on code edits.
Title: Re: Profile visitors
Post by: ahrasis on August 20, 2016, 11:10:11 am
Last time I checked in 2.1 Beta 1, they have already included a lot more hooks that seems missing in here. I am so sure whether it is good to suggest identifying and suggesting them in here as well so that we can do more hooking and less edits to core.
Title: Re: Profile visitors
Post by: emanuele on August 20, 2016, 12:25:15 pm
Feel free to suggest. ;)
Not in this topic, of course. :P
Title: Re: Profile visitors
Post by: live627 on August 20, 2016, 06:52:06 pm
Quote from: ahrasis – Last time I checked in 2.1 Beta 1, they have already included a lot more hooks that seems missing in here. I am so sure whether it is good to suggest identifying and suggesting them in here as well so that we can do more hooking and less edits to core.
Indeed they have.