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)

matthepepe 09-09-2002 04:54 AM

Quote:

Originally posted by g-force2k2


the fix is included in the zip... and on the first post...

matthepepe did you make sure to use the function? also you have to define it in the query...

regards...

g-force2k2

Im not quite sure what i did or needs to be done ... ... ill keep tinkering w/ it.

g-force2k2 09-09-2002 11:44 AM

okay thanks Dave H. i'll look at the hack through ie today and see what i can find...

mattthepepe try using the dotimeonline function in conjunction with $userinfo[timeonline]

in the memberlist.php should include this

PHP Code:

$userinfo[onlinetime] = dotimeonline($userinfo[timeonline]; 

within the

PHP Code:

$userinfo=$DB_site->fetch_array($users)) { 

then in the memberlistbit template put the variable $userinfo[onlinetime]

regards...

g-force2k2

matthepepe 09-09-2002 03:27 PM

no luck there .... only brings up a blank memberlist page is all white.

chad777 09-14-2002 03:35 AM

I am looking at timeonline.php?&action=view_leader

and when I look at it the Total Time Online and the Time Online Per Day are the same.

it has been installed for 3 days and those to are exactly the same....

how do you fix it to make Total time online the total time online and time online per day the time online per day ?

Join Date :09-10-2002
Total Time Online: 12 Hours, 44 Minutes, 16 Seconds Online
Time Online Per Day :12 Hours, 44 Minutes, 16 Seconds Online

This is what it reads ...

Is it getting the time wrong ??

PHiXTiT 09-14-2002 10:55 AM

This is a great hacK!!! (5 StArZ)

jUst Wondering about this.?..

The initial zip file installed just great.

However, I want all the extra features so I went ahead and did all the other modifications that are chopped up throughout this thread....

- All users can see the time for all but admins on all pages.

- For all users (Admins too) viewing posts they see the time for all but admins. For admins they see a Time Online: link. They cant view the time online for an admin so why is it still a link in the postbit for admins. But admins can view the time on all other pages.

The only part that I think that is not clarified is what goes in the postbit_timeonline template and where the call for the postbit_timeonline template is exactly in the showthread.php. I put it in the showpost area of the showthread.php file.

I went through all the updates in this thread and created an updated txt file.

Can you please go through this and make sure it is all right. Or if you know of anything I missed out!

I have a feeling that I am not doing something right with the new template postbit_timeonline

Thanks in advance, I notice you are doing a great job on backing up your hacks to us, so I made sure to give a big 5, and a :D

g-force2k2 09-14-2002 04:21 PM

PHiXTiT it looks good... but if you're wondering about whats up with the postbit stuff because its not looking correct just make $post[usergroupid] to $bbuserinfo[usergroupid] im not sure if you wanted it your way though... nice job though and thanks for the compliments :)

chad what formula do you currently have for calculating the time per day? regards...

g-force2k2

chad777 09-14-2002 04:38 PM

Not sure what you are saying :)

here is the file..

g-force2k2 09-15-2002 04:43 AM

chad777 it looks fine here O_o did you make any modifications or no? if not did you by chance edit the template? regards...

g-force2k2

chad777 09-15-2002 05:29 AM

time_leader template
PHP Code:

<tr><td bgcolor="#13486D" width="20%"><smallfont color="#000000"><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">
$username</a></smallfont></td>
<
td bgcolor="#1C5780" width="20%"><smallfont color="#000000">$joindate</smallfont></td>
<
td bgcolor="#13486D" width="30%"><smallfont color="#000000">$timeonline</smallfont></td>
<
td bgcolor="#1C5780" width="30%"><smallfont color="#000000">$timeperday</smallfont></td></tr


DiscussAnything 09-15-2002 10:47 AM

just one quick note: I removed the $refreshheader or something from the Whosonline template because my users would goto who's online whenever they werent using their computers, since this will refresh every minute, and keep em active. It's a great way to cheat to get to the top of the list....

Also, instead of average time online per day, would it be possible to make the column display the online time for that week or so?


All times are GMT. The time now is 04:43 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.01339 seconds
  • Memory Usage 1,755KB
  • 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)bbcode_quote_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