vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   The Date + Time User Was Last Active In Profile! (https://vborg.vbsupport.ru/showthread.php?t=48848)

N9ne 02-11-2003 10:00 PM

The Date + Time User Was Last Active In Profile!
 
This hack has been updated!

https://vborg.vbsupport.ru/attachmen...&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/attachmen...&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

Quote:

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

Quote:

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

Quote:

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
Code:

<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

Quote:

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

Quote:

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


All times are GMT. The time now is 04:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01316 seconds
  • Memory Usage 1,807KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete