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)

g-force2k2 09-02-2002 01:39 AM

you can run it through either phpmyadmin (if you know what that is) or you could simply find the runaquery hack by Firefly just search his profile... or i can just make you a auto installer that'll automatically run the queries for you... your call ;) regards...

g-force2k2

g-force2k2 09-02-2002 01:40 AM

wolfe i'll look into an addon if ppl are interested... i have alot to do at the moment... but i'll see what i can do in the future... regards...

g-force2k2

Boofo 09-02-2002 01:54 AM

How can we add the time online that is in the postbit to the private messages postbit (privmsg)?

wolfe 09-02-2002 01:56 AM

d00d have you got phpmyadmin

g-force2k2 09-02-2002 02:12 AM

Boofo :

open private.php

find:

PHP Code:

$fromuserinfo['username'] = "N/A";
  } 

under it add:

PHP Code:

  $fromuserinfo[onlinetime] = dotimeonline($fromuserinfo['timeonline']); 

then open privmsg template

place where you want:

PHP Code:

Time Online$fromuserinfo[onlinetime

regards...

g-force2k2

wolfe 09-02-2002 02:26 AM

thanx d00d

Boofo 09-02-2002 03:12 AM

Thanks, g-force2k2. ;)

Castel 09-02-2002 06:47 AM

Nice hack g-force2k2, love your forum design BTW. This hack could get pretty server intensive for heavy traffic forums however since it updates the user table at each page load.

You could move the user table update query into the updateuserforum function and get online time tracking done without any extra queries what so ever. It will lose a bit of it's 'real time' feel but not a bad compromise for a busy site.

If not that, moving up the code a few lines in sessions.php will at least exclude the non registered or non logged in users from generating the extra query on each page load.

TECK 09-02-2002 07:07 AM

great hack. i will install this one for sure. :)
now a question. i want it to display the top20 onliners. should i look into this mod? or can you write this up? thanks g-force.

hmm i noticed this on your first post:
"Please respect my hack and don't make any alterations unless permission is granted by me... thanks for respecting my hacks..."
what do you mean by this? well if i install your hack, rest assured i will modify it the way it suit best for my board.

g-force2k2 09-02-2002 07:18 AM

Nakkid(TECK) i don't mean template changes and looks... feel free to make it look they way you'd like... as for the top20 there's an option to configure for the amount per page you want to view... regards...

Edit:: there besides i just granted you permission to edit what you'd like :p enjoy... And just so you know it does come with a page navigation feature ;) hope all that helps somewhat...

g-force2k2


All times are GMT. The time now is 09:13 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.01185 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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