vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Last Seen Online (https://vborg.vbsupport.ru/showthread.php?t=66872)

Jordeh 07-04-2004 10:00 PM

Last Seen Online
 
The Last Seen indicator shows the date and time when a user was last
online (and active) on your forum.

Original idea by DjSap (https://vborg.vbsupport.ru/showthread.php?t=37201)

Screenshot and instructions attached!

SnowBot 07-05-2004 06:12 PM

Nice idea, how many queries does it run?

AN-net 07-05-2004 08:10 PM

from the looks of it does not require any extra queries to be run;)

Jordeh 07-05-2004 08:50 PM

That's right, it's a pretty simple hack... no queries involved :)

MrNase 07-06-2004 10:33 AM

That's cool :)


*install

SnowBot 07-06-2004 05:21 PM

sounds good to me :)

The Realist 07-06-2004 05:26 PM

installed, thanks.

Musicpill 07-06-2004 08:59 PM

*Installs

Nice little hack! :tired:

turbidblue 07-06-2004 09:32 PM

very nice, thank you! :)


*clicks install

ranger2kxlt 07-07-2004 12:23 AM

I requested this! THANKS ALOT!

weitalia 07-07-2004 01:09 AM

Fantastic,a long awaited hack for me ;)

Berethorn 07-07-2004 06:50 PM

This is great, thanks! :) I set it so it displays Last Seen Online when you move the cursor over the username. This is nice if you don't want to add another line to the postbit. :)

Holidazed 07-08-2004 07:03 PM

Very cool. How do I add the same info to the user's profile?

Jordeh 07-08-2004 09:45 PM

It should already be there. It should say something like Last Activity: Today 22:36

Holidazed 07-08-2004 09:50 PM

Oh!! Duh!!

Thanks

Michael Morris 07-11-2004 07:15 PM

I just noticed that this hack sorta defeats the purpose of giving your users the option to be "invisible." Several of my users have complained, so I need to slide a template conditional into this hack to not display this line if the user is invisible.

Cold Steel 07-11-2004 07:57 PM

Can you share that conditional?

Michael Morris 07-12-2004 05:21 AM

Certainly, when I find it.

Michael Morris 07-12-2004 04:34 PM

It apparently doesn't exist :(

The closest thing is functions_bigthree.php which passes a variable to the postbit_onlinestatus template to chose which icon gets used. I suppose it could be modified to pass the variable we need, but before I go muking with it I need to know if it is called for each post or if it uses some sort of array.

dubumb 07-18-2004 12:29 AM

I love it! thanks!

Reece D 07-26-2004 06:21 PM

very nice hack .. going to install this one

Datenpapst 07-27-2004 07:44 AM

Quote:

Originally Posted by Jordeh
It should already be there. It should say something like Last Activity: Today 22:36

nice and simpel :)

Jordeh 08-09-2004 04:31 PM

That conditional would be:

Code:

<if condition="$post['invisible']==0"> ... </if>
This will only show it if the user is not invisible

So this:

Code:

<if condition="$post['lastactivity']"><div>$vbphrase[last_seen_online]: $post[lso_date] ($post[lso_time])</div></if>
would become this:

Code:

<if condition="$post['invisible']==0"><if condition="$post['lastactivity']"><div>$vbphrase[last_seen_online]: $post[lso_date] ($post[lso_time])</div></if></if>

dfdems 02-02-2005 06:56 AM

I followed the instructions, all I get is this

Last Seen: ()

Sorry if it sounds stupid, I am clueless on coding, I just installed this board yesterday. Any help would be appreciated

Mike

dfdems 02-02-2005 10:35 AM

Fixed it, forgot to edit functions_showthread.php, told you i'm a dope

I like the hack

Soto 02-08-2005 07:26 PM

Great hack, really easy peasy install, thanks for this.

BTW - something I've never really understood - why would some people want to remain hidden? Why would saying when they were last seen make a difference. Surely they still don't show up in Who's Online?

Reece D 03-01-2005 10:11 AM

is there anyway to make it just show the date they were last online and leave out the exact time in brackets ..

*installed* anyway

Reece D 03-01-2005 10:14 AM

nevermind i tried doing it myself and it worked ! :)

Vampyre 03-10-2005 11:50 AM

Good job, Jordeh.
Thank you. :)

Dennis Olson 03-29-2005 03:27 PM

What would be the conditional to only display if the user is not invisible, UNLESS the person viewing is an Admin (in which case it would be visible)...?

PurrFect 04-01-2005 07:02 AM

Quote:

Originally Posted by Dennis Olson
What would be the conditional to only display if the user is not invisible, UNLESS the person viewing is an Admin (in which case it would be visible)...?

I'd be interested in getting the answer to this question too. :)

xtreme-mobile 04-05-2005 07:55 PM

works great at http://www.extreme-mobile.com on vb 3.0.6 :)

thanks

Kirk Y 07-16-2005 04:14 AM

Ahh... excellent, I've been looking for this. Many thanks Jordeh! :classic:

folkish 07-25-2005 09:33 PM

Installed today. Quick question, what do I need to do to get the text: "Last Seen" to be bold in the postbit?

kregger 07-26-2005 04:16 PM

Quote:

Originally Posted by Dennis Olson
What would be the conditional to only display if the user is not invisible, UNLESS the person viewing is an Admin (in which case it would be visible)...?

That would make it a little nicer. Anybody know?

Craig

SlipNslide281 07-26-2005 05:48 PM

don't mean to sound silly but where it says:
## NEW PHRASES ################################################## #########
################################################## ########################

Phrase Type: GLOBAL
Varname: last_seen_online
Text: Last Seen

Where do you edit Phrases???

Edited::: Ok I figured it out. I was getting frustrated and decided to do a search on the Vbulletin manual and found it. for those who have the same noobish problem as me, its: "Languages and Phrases" tab in your admin cp.

"installed" Works great. Nice hack.

hotwheels 08-20-2005 02:20 AM

awesome

slim cutty 08-23-2005 07:41 PM

is there a conditional that would disallow this to show when users are online?

"Last Seen" seems like user would be away... so when users are online, this wouldn't show...

help please..lol thanks

ReZ 09-09-2005 02:37 PM

Does this work with 3.0.7?

HollyD 08-20-2007 01:00 AM

Hi, sorry to exhume such an old thread, but does this work with 3.6.8?
I can't find the functions_showthread.php file to modify...

- -

Oh, duh, never mind. I found "last visit" in the settings and that's perfect.


All times are GMT. The time now is 02:50 AM.

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.01250 seconds
  • Memory Usage 1,780KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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