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)
-   -   Show useronline on memberlist (https://vborg.vbsupport.ru/showthread.php?t=32109)

Scott MacVicar 11-03-2001 10:00 PM

A hack which shows if the user is online or not within a column on the memberlist. Pretty simple.

Hack suggested by Ifrani.

Last updated on 05th of November 2001 08:20 GMT

I had hoped to just add to the original SQL query to make this hack work, obviously this didn't seem possible with the errors that people have been having with sessions.

Redocumented adding an extra query.

Admin 11-04-2001 02:19 PM

Installed here, with a little twist. :)

Scott MacVicar 11-04-2001 02:28 PM

btw to show time instead of the little icon.

Like 12:13pm etc

Do the following

instead of using this

PHP Code:

    if($userinfo[lastactivity]>$datecut) {
      eval(
"\$userinfo[online] = \"".gettemplate("postbit_online")."\";");
    }
    else {
      eval(
"\$userinfo[online] = \"".gettemplate("postbit_offline")."\";");
    } 

use this

PHP Code:

$userinfo[online] = vbdate($timeformat,$userinfo[lastactivity]); 


|DarkManX| 11-04-2001 03:13 PM

demo or SS?

thanks

eva2000 11-04-2001 03:33 PM

Quote:

Originally posted by |DarkManX|
demo or SS?

thanks

https://vborg.vbsupport.ru/memberlist.php?s= ;)

JJR512 11-04-2001 04:11 PM

I installed this, but I noticed that for each of the two users who were online at the time I tested it, one showed up twice in the member list, and the other showed up three times. Those are duplicate entries, as seen in the attached image. The entire row was repeated right below the first row.

|DarkManX| 11-04-2001 04:22 PM

Quote:

Originally posted by eva2000


https://vborg.vbsupport.ru/memberlist.php?s= ;)



oh ok, thanks ;)

Ifrani 11-04-2001 06:57 PM

@PPN

Thank you, it works great for me !!! Thats what I'am looking for...

Syphin 11-04-2001 07:30 PM

Wroks great.. ^^

-Syphin

Syphin 11-04-2001 08:04 PM

er... uuh... its showing multiple sessions for me... O.o i have the updated one installed too... O.o

:lost:

-Syphin


All times are GMT. The time now is 01:37 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.00989 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete