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-04-2002 01:22 PM

hmm... D. Hollingworth what this situation about moderated members? i will look into it if deemed necessary... sounds wierd... regards...

g-force2k2

D. Hollingworth 09-04-2002 09:20 PM

Sorry about that... All seems to have stabilized now, and everything is showing up as it should. Maybe it needed a break in period?:p I'll continue to watch it, but I think all will be fine.

The only real issue is linking off any page, and or within any page the online tracker generates. It still keeps coming up with blank pages, and you have to refresh to view the page. Looks like something pretty minor, but that?s really the only problem right now.

Thanks again,

Dave H

Matt87 09-06-2002 08:48 PM

You say that I can't modify anything, that means that I can't even modify postbit, so that it doesn't say this information there?!

NTLDR 09-06-2002 08:50 PM

Quote:

Originally posted by Matt87
You say that I can't modify anything, that means that I can't even modify postbit, so that it doesn't say this information there?!
See my post in the warnings hack ;)

Modifying the post bit won't be any problem.

Matt87 09-06-2002 09:18 PM

Yes, I saw it, I posted this before I posted that :p

g-force2k2 09-06-2002 11:22 PM

thanks as always NTLDR ;) regards... hope you enjoy it Matt87 :)

g-force2k2

410 09-09-2002 12:08 AM

I am getting this error...

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

?

matthepepe 09-09-2002 12:59 AM

Alright guys i have been trying and trying to get this to list in the memberlist but i cant seem to get it ... i have it showing up but everything is zeros.... any suggestions as to waht codes i need to add to anyfiles or whatever?

g-force2k2 09-09-2002 01:58 AM

Quote:

Originally posted by 410
I am getting this error...

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

?

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

D. Hollingworth 09-09-2002 03:49 AM

Everything’s working well here, except for that link problem. It only seems to be a problem for MS Explorer. I tried all versions of Netscape from 3.0 to 7.0, and no problems, so this blank page issue seems to be limited to ‘Explorer’ only. I’m not rushing you for a fix or anything, but just thought you’d want my updated findings.

Dave H

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?

wolfe 09-15-2002 04:42 PM

just updated to VBB 2.2.7 and getting this on the time online leader board

Call to undefined function: dotimeonline() in /usr/local/psa/home/vhosts/mysite.com/httpdocs/forums/timeonline.php on line 39

NTLDR 09-15-2002 05:47 PM

You NEED to re-apply all your hacks, they won't work otherwise :rolleyes:

In particular you don't have the dotimeonline() function in functions.php which this hack requires. Follow the instructions and re-apply the hack

wolfe 09-15-2002 09:01 PM

d00d i have got the bit in my functions.php and still not working :(

NTLDR 09-15-2002 09:07 PM

Well you can't have done it correctly, check to make sure.

As the error message states, theres no dotimeonline() function avalible. This hack works fine on 2.2.7.

wolfe 09-15-2002 09:10 PM

oh **** made a mistake works great now thanx d00d :D

NTLDR 09-15-2002 09:11 PM

No problem, we all make silly little mistakes ;)

pjgoncalves 09-16-2002 03:58 AM

this is a really cool hack!

i'm having a problem :(

this line:

Code:

  $DB_site->query("UPDATE user SET timeonline=timeonline+$newtime WHERE userid='$bbuserinfo[userid]'");
is causing this:

Code:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: UPDATE user SET timeonline=timeonline+94 WHERE userid='1'
mysql error: Unknown column 'timeonline' in 'field list'

mysql error number: 1054

and i have the timeonline in the field list as shown on the pic in attach.. any idea to fix this 'little' prob?

greets,
paulo

g-force2k2 09-16-2002 01:47 PM

pjgoncalves,

did you run the query? regards...

PHP Code:

ALTER TABLE user ADD timeonline int(10NOT NULL DEFAULT '0' 

g-force2k2

NSeXcellent 09-17-2002 01:02 AM

Quote:

Originally posted by g-force2k2
pjgoncalves,

did you run the query? regards...

PHP Code:

ALTER TABLE user ADD timeonline int(10NOT NULL DEFAULT '0' 

g-force2k2

Im stuck on doing that. Can you explain to me what that means? I cannot figure out what you mean by 'Run Query'... Thanks G

g-force2k2 09-17-2002 01:17 AM

NSeXcellent

just download the file i attached and place it in your admin folder... then run the url...

ie: ...forum/admin/test.php

and it should run the query for you ;) regards... haven't tested it but it should work :) regards...

g-force2k2

NSeXcellent 09-17-2002 01:33 AM

Ok i'm not sure if i've missed something or not. I've followed the instructions in 'install_timeonline' to the T. Uploaded the 3 php files that were edited, added all the templates, ran the query. My problem is a small one. I cannot see where the Time Online is supposed to show up. I dont see it anywhere. I guess I have missed something. At least I am getting no errors :D ... Any idea what I might have missed?

g-force2k2 09-17-2002 04:48 PM

did you make the postbit edit ;) regards...

g-force2k2

Bison 09-18-2002 06:34 AM

Some of my members aren't showing a time in their profiles and some are. I see then on the board and they've been online longer that some of the members who's time IS showing up.

What am I doing wrong here?

g-force2k2 09-18-2002 01:13 PM

Rolodex did you make any kind of restrictions to any usergroups? regards...

g-force2k2

Bison 09-18-2002 05:20 PM

None ... but never mind "G" ... for some unknown reason, it started working!

While I got you here, I want to tell you that you put togetther the MOST "smoothly" installed hacks on this board!!!

Do you have a PayPal account? I'd pay you in a heart beat! :)

Thank you for you excellent work M8! :)

bouncer18 09-19-2002 04:15 PM

im an idiot

post removed cause you answered it 532895934 times now

Bison 09-19-2002 04:18 PM

Use this ( I cleaned up the one g-force2k2 added in the zipfile):

bouncer18 09-19-2002 04:22 PM

DAMNIT

Sorry guys..
i am a fool

maybe if i readthe first thread i wouldnt have to feel so stupid.

Great hack, i like it

GoTTi 09-19-2002 10:36 PM

g-force, can you combine the edits to the hack into a new .zip file and upload it for us, 14 pages of downloading and editing is getting confusin..

maybe because i am tired ;)

Bison 09-19-2002 11:26 PM

Nothing confusing about it ... install the app and refer to this page while doing it. The guy does this stuff for free ... what else do you want?


All times are GMT. The time now is 05:42 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.01570 seconds
  • Memory Usage 1,833KB
  • 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_code_printable
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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