PDA

View Full Version : The Date + Time User Was Last Active In Profile!


N9ne
02-11-2003, 10:00 PM
This hack has been updated!

https://vborg.vbsupport.ru/attachment.php?s=&postid=353901

Download that attachment for newest instructions, credit to Slynderdale!



For 2.2.x

Idea for hack by: bharvey42 (# days ago part my idea ;))

Description: This hack will add a row to the getinfo
page (a member's profile page), which shows when
they were last on the forums. It will show it to the
exact year, month, day, hour, minute. It also displays
how many days ago this was. (If it was less, it will
display 0 days ago.)

N9ne
02-12-2003, 08:50 PM
screenshot!

https://vborg.vbsupport.ru/attachment.php?s=&postid=353884

Dr Shark
02-12-2003, 08:55 PM
i notice you used my profile for the screen.:P

Nice hack N9ne this should be a very nice addon to any board.
good job.

Slynderdale
02-12-2003, 08:59 PM
Originally posted by N9ne
User last active in profile by N9ne, copyright 2003.
Hack created on Feb 12 2003.

For: 2.2.x

File modifications: 1 (member.php)
Template modifications: 1 (getinfo)

Description: This hack will add a row to the getinfo
page (a member's profile page), which shows when
they were last on the forums. It will show it to the
exact year, month, day, hour, minute. It also displays
how many days ago this was. (If it was less, it will
display 0 days ago.)

Open the attached file in a text editor to view instructions on installation!

Hmm, theres some problems with this, What if the users invisible? Others can tell when they were last at the board even if there invisible, and also if you add it so it doesnt show when there invisible then others will know that the person is in invisible, when I select to be invisible I like to browse the board without others knowing I'm on.

N9ne
02-12-2003, 09:02 PM
Well, then we definitely have a problem. Initially halfway through reading your post I thought, ah that's not a problem, ifinvisible, don't show, but then that's not an option either...what do you suggest?

Slynderdale
02-12-2003, 09:07 PM
Originally posted by N9ne
Well, then we definitely have a problem. Initially halfway through reading your post I thought, ah that's not a problem, ifinvisible, don't show, but then that's not an option either...what do you suggest?

Hmm theres a few ways, have an option in there user cp -> options that can enable ad disble this, or add a new field to the user table like lastactivevisible, there are other ways but these are some suggestions.
Nice hack though.

Dan_UPC
02-13-2003, 11:25 AM
Great Hack N9ne.

*Installs*

N9ne
02-13-2003, 03:03 PM
Originally posted by Slynderdale


Hmm theres a few ways, have an option in there user cp -> options that can enable ad disble this, or add a new field to the user table like lastactivevisible, there are other ways but these are some suggestions.
Nice hack though.

Well that's basically almost the same as not having the field show when user is invisible. Ie. say in your situation, you disable it, people will never see you online, and if they look in your profile to see that you're not showing when you were last active too, they'll definitely know that you're invisible.

However, I will attempt to make an addon which does what you suggest :). You and many others may have a use for it.

Gryphon
02-13-2003, 03:03 PM
This is great, I installed it. Now how about "The Date + Time User Was Last Active In Posts!"? ;)

N9ne
02-13-2003, 03:08 PM
I'll create a hack to display this on showthread in the postbit too if you wish. Any other places you'd like it? I can't really think of anywhere else appropriate.

Gryphon
02-13-2003, 03:13 PM
Not at the moment, I tossed this on thinking 'posts' rather than 'profile' originally, reading too fast ;)

bharvey42
02-13-2003, 04:58 PM
Nice to see I got credit for the idea :classic:

Thanks

N9ne
02-13-2003, 05:42 PM
Oops, I forgot, i'll edit my post now. I got so caught up in making the hack and releasing it that I forgot to give my usual credits.

Slynderdale
02-13-2003, 09:05 PM
Ok, I completly rewrote this hack, I fixed the problem if the user is invisible, I added a new fireld called lastvisible that records the last active time of the user when they were visible, but if admins view there profile they see the actual active time, also I have it so it displays the days, hours, minutes and seconds of the last activity.

This is a great hack though, If N9ne wants, I'll release my version (In this thread), all credit should go to N9ne though for first writing this hack.

N9ne
02-13-2003, 09:10 PM
you added a lot of detail :). Do release!

Slynderdale
02-13-2003, 09:30 PM
Ok here it is

Slynderdale
02-13-2003, 09:42 PM
Heres an example of what you can add to your getinfo template, its what im using in the demo image i posted before

<tr>
<td bgcolor="#13486D"><normalfont><b>Last Activity:</b></normalfont></td>
<td bgcolor="#13486D"><normalfont>$last[activity]<br>Last Visited: $last[days] days, $last[hours] hours, $last[minutes] minutes, $last[seconds] seconds ago</normalfont></td>
</tr>

SgtSling
03-05-2003, 09:20 AM
Originally posted by N9ne
I'll create a hack to display this on showthread in the postbit too if you wish. Any other places you'd like it? I can't really think of anywhere else appropriate.

please do.. and is this server intensive?
WHat if it is in the postbit (server intensive wise)

Boofo
03-05-2003, 09:44 AM
Sorry to burst anyone's bubble, but cditty released a "last site visit" hack quite a while ago that has the date and time of the users last visit in the profile. His just doesn't show the days and hours, etc., which I don't really need anyway. It also only shows up to Admins, SuperMods and Moderators. Has been working great for me for almost a year now. A lot less code, too. ;)

N9ne
03-05-2003, 03:11 PM
Originally posted by Boofo
Sorry to burst anyone's bubble, but cditty released a "last site visit" hack quite a while ago that has the date and time of the users last visit in the profile. His just doesn't show the days and hours, etc., which I don't really need anyway. It also only shows up to Admins, SuperMods and Moderators. Has been working great for me for almost a year now. A lot less code, too. ;)

Then it is different, as it only allows authoritcal figures to see it, and it doesn't show the extra details.

Boofo
03-05-2003, 03:16 PM
The only difference is that this hack here has a few more details. Allowing only Mods and Admins to see if requires adding one or two lines of code. To each their own, I guess. ;)

Slynderdale
03-05-2003, 03:22 PM
My version of this hack also adds a lastvisible field that comes in handy not just with this hack, It keeps track when the user was last visible on the forum, I use it in a couple other hacks.

SgtSling
03-06-2003, 04:44 AM
can we get this for postbit?

N9ne
03-06-2003, 05:47 AM
I'm currently too busy to do so, I might be able to do it on the weekend, unless Slynderdale can make it ;).

Zelda-King
03-07-2003, 03:47 PM
The text file could use a mention of what to put in the getinfo template.

Nice hack there!

N9ne
03-07-2003, 03:54 PM
If you're referring to Slynderdale's text file, well, on the post below where he posted the text file, there's some instructions on what you can put in your getinfo template.

Zelda-King
03-07-2003, 04:23 PM
I was refering to yours as this thread is really about your hack. However, anyone can get the information by reading the thread. It's just people might be lazy, just download the file in the first post then wonder where they're going wrong when nothing shows.

N9ne
03-07-2003, 04:43 PM
Well there's been no file in the first post for a long time, if you look at the first post, it has changed, and it was changed a while ago ;).

Zelda-King
03-07-2003, 06:07 PM
Yeah, I actually downloaded it today so I noticed that. What I mean is the link to get the download is there and the file doesn't mention that you need to edit templates and in the enterprise of being 'idiotproof' and 'professional' I'd recommend that be rectified, though most of us, myself included, have been just fine.

212rikanmofo
04-21-2003, 03:13 PM
N9ne or slynerdale, can you post the hack for the last seen in the postbit please... i want it to display just this ... Last Seen 4-20-03 12:00 PM, how would i put this in my post bit...

N!ck
04-22-2003, 02:13 AM
cditty's hack allows you to show the last visit information publicly if you so choose. :)

Areku
04-24-2003, 12:35 PM
N9ne,

Is it me or in the very first post, the link where the hack is downloaded, there' s no mention on how to make it appear on the profile?

Alien
04-26-2003, 07:21 PM
I seem to prefer this hack, however neither one shows you how to add it to postbit, I would like to do that... Can anyone help me figure this out? ...and if it is done, will it require +1 query on each showthread?

Thanks...
-Jason

Alien
04-27-2003, 11:07 PM
Btw, would just need the date and time display, not the countdown. ;)

212rikanmofo
04-28-2003, 03:19 AM
yes i would also like this in my postbit, please show us how to do it someone...

Alien
04-30-2003, 12:18 AM
Anyone? I'd really like to make this an alt text for site avatars in postbit...

-Jason

Alien
05-04-2003, 05:40 PM
Anyone have any clue on this? :D

I'd even gladly toss you a few bucks.

-Jason

Alien
05-12-2003, 04:20 AM
I guess noone is interested eh. :\

Keyser S?ze
05-12-2003, 05:10 AM
i like this hack BUT

shouldnt it be $lastactivetime (in the getinfo template) which would then display the days hours mins secs, IF they are there, i mean, i have alot of active members so most say 0 days 0 hours 4 mins 35 secs

or so on

then it would just put what is needed