Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Total Time Online Hack v1.0 Details »»
Total Time Online Hack v1.0
Version: 1.00, by g-force2k2 g-force2k2 is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-27-2002 Last Update: Never Installs: 99
 
No support by the author.

[ Click Here ] to download the latest update!

Nifty Addon by TECK:

[View TECK's Modification]

Yeah my first hack for vb2.2.7 but then again its compatible with vb2.2.6 as well tested on both

What does this hack do? Just as the title states it calculates the total time online for each user

Configurable::
The time limit before a user is considered inactive is configurable and is included in the install txt file... so if you want a user to be defined as inactive after 3 minutes then there'll be a variable in the script to limit that configure that

Also Configurable is the amount of users to show per page on the leader time online board That is also configurable in the timeonline.php included with the zip...

Features ::
Includes both viewable on the postbit and getinfo templates...
Includes a leader board for the top users time online

What to do? ::
Queries to Run (1)
File Modification (5)
Template Modificatiion (2)
Templates to Add (3)
Files to Upload (1) :: [ timeonline.php ] (forum directory)

It's an easy hack to install (took me a little time to configure) but it looks great imo... probably a hack that will use and that i can see every forum having... why not right Enjoy yet another release... And if you like this hack i would be greatful if you could click install thanks...

Edit ::
Viewable Demo [ Here ]

Note ::
If for some odd reason you get a division by zero error

find:

PHP Code:
$daysreg floor((time() - $lead[2]) / 86400); 
          
$daysreg iif($daysreg == 0,'1','$daysreg'); // checking to see if not registered for more then a day to prevent division by zero
        
$dotimeperday floor($lead[3] / $daysreg); 
replace with:

PHP Code:
$daysregs floor((time() - $lead[2]) / 86400); 
          if(
$daysregs == 0) { // checking to see if not registered for more then a day to prevent division by zero
            
$daysreg 1;
          } else {
            
$daysreg $daysregs;
          }
        
$dotimeperday floor($lead[3] / $daysreg); 
g-force2k2

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #242  
Old 10-24-2002, 12:13 AM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some unknow reason, my time counter isn't working ... would changing the permissions to who's time to show stop this hack from working?

All I did was prevented the admin and zero posters from showing up in the time leaders list, getinfo and the threads?
Reply With Quote
  #243  
Old 10-24-2002, 05:45 PM
snack snack is offline
 
Join Date: Dec 2001
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea i need help i keep getting that divsion zero error on the leader page? which file do i need to edit to fix it?
Reply With Quote
  #244  
Old 10-28-2002, 01:00 AM
girlzclan's Avatar
girlzclan girlzclan is offline
 
Join Date: Oct 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my is stuck at zero in the threads and 0 on the timeonline page. I had it working on a previous forum but now it's broke :/

lmao helps if i fully install the hack
<-- retard
Reply With Quote
  #245  
Old 10-28-2002, 11:07 AM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured out why the times stopped working ... I included a condition into the sesions.php file and it stopped recording time for everyone instead of the admin. I removed the condition and now everyone's time is being recorded again!
Reply With Quote
  #246  
Old 10-29-2002, 07:46 AM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack I installed it with the zero problem but thanx I fixed it too and working on 226 now

but what about guests? I love to have something works with whos online

I have a guest that seems to be stuck on my forum of 3 days now.. same IP never left.. jumpts from post to another, attempts to post, quote, edit post, mod. tools, add member to buddy, add member to ignore etc etc.. and hes been at it for 3 days non stop

even shut down the server and back up and hes was back the minute it returned

I am not sure whats going on.. my forum is kinda interesting.. but not that much to have someone on it 3 days and he is still there now.. I had watched him for many hours and had others watch him.. never seen him leave

can't be a bot as he was attempting to do things
his IP traced to Japan but that could verywell be proxy

I just wanted to make a record of his time online
and yes it worries me and wonder what the heck is he up to

first thought he could be a bored kid.. but 3 days and still going? hmmmmmm
Reply With Quote
  #247  
Old 11-12-2002, 08:09 AM
Mystic XL's Avatar
Mystic XL Mystic XL is offline
 
Join Date: Oct 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry but I can't read through all those pages heh, but I keep getting this error on the view leader page

Warning: Division by zero in /home/sjmadho/public_html/board/timeonline.php on line 42

Warning: Division by zero in /home/sjmadho/public_html/board/timeonline.php on line 42

Warning: Division by zero in /home/sjmadho/public_html/board/timeonline.php on line 42

Warning: Division by zero in /home/sjmadho/public_html/board/timeonline.php on line 42

Warning: Division by zero in /home/sjmadho/public_html/board/timeonline.php on line 42

Warning: Division by zero in /home/sjmadho/public_html/board/timeonline.php on line 42

Warning: Division by zero in /home/sjmadho/public_html/board/timeonline.php on line 42

Warning: Division by zero in /home/sjmadho/public_html/board/timeonline.php on line 42

Warning: Division by zero in /home/sjmadho/public_html/board/timeonline.php on line 42

Warning: Division by zero in /home/sjmadho/public_html/board/timeonline.php on line 42

you can view it at http://www.sjmadhouse.net/board/time...fo=view_leader
Reply With Quote
  #248  
Old 11-12-2002, 08:16 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Merjawy
I have a guest that seems to be stuck on my forum of 3 days now.. same IP never left.. jumpts from post to another, attempts to post, quote, edit post, mod. tools, add member to buddy, add member to ignore etc etc.. and hes been at it for 3 days non stop
That's a search engine spidering bot, probably from Google. Google is actively spidering at the moment.
Reply With Quote
  #249  
Old 11-12-2002, 08:18 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mystic XL
Sorry but I can't read through all those pages heh...
Use the "Search This Thread" box on the bottom right hand corner.
Reply With Quote
  #250  
Old 11-19-2002, 04:09 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mystic XL change is included in the zip... for fixing the division by zero error...

regards...

g-force2k2
Reply With Quote
  #251  
Old 11-21-2002, 04:30 AM
matthepepe matthepepe is offline
 
Join Date: Jan 2002
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im trying to find out what code i ahve to add where to get the online time to show in the postbit.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:31 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.05052 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete