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)
-   -   Total Time Online Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=42864)

Velocd 08-28-2002 09:50 PM

Very cool hack g-force, I'll think about installing this later. ;)

bommelchen 08-28-2002 10:06 PM

How can i display the user with the most online time on Forumhome ?

The Hack is nice :)

THX Bommelchen

PsYc 08-28-2002 10:16 PM

great hack :)


works like a charm

good work, very good :D


[high]* PsYc clicks *install*[/high]

g-force2k2 08-28-2002 10:22 PM

Quote:

Originally posted by bommelchen
How can i display the user with the most online time on Forumhome ?

The Hack is nice :)

THX Bommelchen

open index.php (root folder)

find:

PHP Code:

// get total posts 

before it add:

PHP Code:

$tuser $DB_site->query_first("SELECT username,userid,timeonline FROM user ORDER BY timeonline DESC LIMIT 1");
$ttime dotime($tuser[timeonline]);
$bestonline "<b>User Most Online:</b> <a href='member.php?s=&action=getinfo&userid=$tuser[userid]>$tuser[username]</a> - $ttime"

then in the forumhome template where you want to appear place the variable ::

PHP Code:

$bestonline 

i think that should work ;) haven't tested yet... but regards :)

g-force2k2

bommelchen 08-28-2002 10:37 PM

Sorry this is not working ! i get a blank page.
Any idears ?

bommelchen

NTLDR 08-28-2002 10:44 PM

PHP Code:

$ttime dotime($tuser[timeonline]); 

Should be:

PHP Code:

$ttime dotimeonline($tuser[timeonline]); 

;)

g-force2k2 08-28-2002 10:49 PM

:p thanks NTLDR i said i didn't test it :p didn't even remember my own function name ;) thanks for backing me up as usual :) regards...

g-force2k2

bommelchen 08-28-2002 10:54 PM

Big thanks work perfect !!

bommelchen

[D]Vincent 08-29-2002 01:14 AM

Great hack, I will install it soon.

Gohan 08-29-2002 01:19 AM

Great Hack, g-force2k2!

I'll install it tommorrow :D


All times are GMT. The time now is 08:52 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.02024 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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