vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - IWT - Time Spent Online (https://vborg.vbsupport.ru/showthread.php?t=238154)

War.Frog 03-15-2010 01:42 PM

I think some of my members have already figured out they can just leave their browser sitting on the Who's Online screen and rack up the hours. LOL.

Hmm...any way to exclude javascript refreshes from this?

EastCarolina 03-15-2010 04:04 PM

I get a 404 page error when I click the leader board link. Any ideas?

War.Frog 03-15-2010 04:50 PM

Quote:

Originally Posted by EastCarolina (Post 2004153)
I get a 404 page error when I click the leader board link. Any ideas?

It sounds like it can't find your tsoleaderboard.php file. Did you upload it to the root of your forum?

Ideal Web Tech 03-15-2010 04:53 PM

We will see about a toggle for bypassing whosonline.

pjaco 03-15-2010 07:49 PM

Thanks

War.Frog 03-16-2010 03:19 PM

My only problem with this mod is the "Average Time Online Per Day" statistic. It appears that it uses either the member's registration date or date forums came online as the numerator.

Unfortunately, for long-standing boards this makes for nearly useless information. For instance, my online time since installation two days ago is a whopping 26+ hours, yet my average time online is 8 minutes.

Can we please have an option to change that numerator to install date? This would normalize that number and make it always right. Alternatively, if there a place in the code I can go to change it?

Ideal Web Tech 03-16-2010 05:10 PM

Quote:

Originally Posted by War.Frog (Post 2004842)
My only problem with this mod is the "Average Time Online Per Day" statistic. It appears that it uses either the member's registration date or date forums came online as the numerator.

Unfortunately, for long-standing boards this makes for nearly useless information. For instance, my online time since installation two days ago is a whopping 26+ hours, yet my average time online is 8 minutes.

Can we please have an option to change that numerator to install date? This would normalize that number and make it always right. Alternatively, if there a place in the code I can go to change it?

War.Frog, it does the Average Time Online calculation based on the following:
  1. The timestamp of when the script was installed
  2. The timestamp of when the user registered if they registered after the script was installed

Now I did look though the code again, and as far as I can tell it's working just fine. If you are positive its not working still, maybe try un-installing and re-installing, but be warned doing that will clear the total time for all your users.

If anyone else believes they are having this problem please let me know and I'll see about having our Lead Developer look over the code again.

War.Frog 03-16-2010 05:25 PM

Quote:

Originally Posted by Ideal Web Tech (Post 2004903)
War.Frog, it does the Average Time Online calculation based on the following:
  1. The timestamp of when the script was installed
  2. The timestamp of when the user registered if they registered after the script was installed

Now I did look though the code again, and as far as I can tell it's working just fine. If you are positive its not working still, maybe try un-installing and re-installing, but be warned doing that will clear the total time for all your users.

If anyone else believes they are having this problem please let me know and I'll see about having our Lead Developer look over the code again.

Yes sorry I didn't mean to suggest it wasn't working - it's a great mod and working as designed. I just wanted the option of changing the numerator from registration date to installation date.

By using installation date and registration date, it's looking at two very different variables for calculating average time spent online. If user XYZ has been registered for two years it will take weeks before his average time online begins to look remotely correct or informational.

For me, I'd rather the formula calculate the average time online starting at install time (not registration date)...or both if that's preferable or easier. That way users won't be writing me saying, "c'mon that's ridiculous...I spend way more than 8 seconds a day on here!". :)

Ideal Web Tech 03-16-2010 05:29 PM

Quote:

Originally Posted by War.Frog (Post 2004911)
Yes sorry I didn't mean to suggest it wasn't working - it's a great mod and working as designed. I just wanted the option of changing the numerator from registration date to installation date.

By using installation date and registration date, it's looking at two very different variables for calculating average time spent online. If user XYZ has been registered for two years it will take weeks before his average time online begins to look remotely correct or informational.

For me, I'd rather the formula calculate the average time online starting at install time (not registration date)...or both if that's preferable or easier. That way users won't be writing me saying, "c'mon that's ridiculous...I spend way more than 8 seconds a day on here!". :)

No its supposed to use which ever of the 2 checks is newer so for people who registered before it installed it should be using the installed timestamp (why we had to clear the stats because of a bug this creates with time existing before install) and if they registered after then it should use their registration date. It was done like this to try and be as accurate as possible in the calculations.

War.Frog 03-16-2010 05:35 PM

Oh!!! Thank you for that. Hmm...ok, then something got funky in my upgrade. I'll uninstall and reinstall.

Ideal Web Tech 03-16-2010 05:47 PM

Quote:

Originally Posted by War.Frog (Post 2004917)
Oh!!! Thank you for that. Hmm...ok, then something got funky in my upgrade. I'll uninstall and reinstall.

If you still continue to notice funny statistics please let me know. I know this mod is not officially supported, but we would still like to make sure its working as best we can in our free time.

War.Frog 03-16-2010 06:46 PM

Quote:

Originally Posted by Ideal Web Tech (Post 2004924)
If you still continue to notice funny statistics please let me know. I know this mod is not officially supported, but we would still like to make sure its working as best we can in our free time.

Thanks so much. I uninstalled and reinstalled at 2:40 today and got this board stat at the one hour mark so far:

https://vborg.vbsupport.ru/external/2010/03/41.png

It looks like it's still using the registration date of approx 200 days. Any way I can correct this?

Ideal Web Tech 03-16-2010 06:55 PM

Quote:

Originally Posted by War.Frog (Post 2004962)
Thanks so much. I uninstalled and reinstalled at 2:40 today and got this board stat at the one hour mark so far:

https://vborg.vbsupport.ru/external/2010/03/41.png

It looks like it's still using the registration date of approx 200 days. Any way I can correct this?

Hmm... I will see about having our lead developer look into it if he has the time to.

Ideal Web Tech 03-17-2010 01:02 AM

Okay, we have found the problem and have uploaded a new version that will fix the problem. If anyone notices this problem after this date please let me know. Now for the bad news, you will once again have to purge all your user's current total times online. Sorry :( but hopefully this will be the last time that is needed to be done, although it was caught quickly so you wont lose too much hopefully.

War.Frog 03-17-2010 01:18 AM

Awesome. I just installed it and it's working! Thanks so much for your help!

gsmlover4u 03-17-2010 03:23 PM

installed and working fine

aaronrand 03-17-2010 04:52 PM

1 Attachment(s)
got a bit of a spacing issue on 4.0.1 , as shown below, on both "Use Short Phrases", yes and no. same error occurs.
seems to be missing a <br> or something when installed
with the post thanks hack.

Ideal Web Tech 03-18-2010 03:44 AM

Quote:

Originally Posted by aaronrand (Post 2005682)
got a bit of a spacing issue on 4.0.1 , as shown below, on both "Use Short Phrases", yes and no. same error occurs.
seems to be missing a <br> or something when installed
with the post thanks hack.

A fix to that issue is included in the new version posted.

sulasno 03-18-2010 04:50 AM

not sure whether this is a bug
but the Average Time Online (Per Day) exceeds the total Time Online

Ideal Web Tech 03-18-2010 12:35 PM

Quote:

Originally Posted by sulasno (Post 2005840)
not sure whether this is a bug
but the Average Time Online (Per Day) exceeds the total Time Online

Its basic math, for the first 24 hours it will be more, because you have time/days, were days would be less than 1.

In other words if you spend 2 hours online and the script has only been installed for 4 hours you would get the following:

2 hrs / ( 4 hrs / 24 hrs ) = 12 hrs

aaronrand 03-18-2010 07:52 PM

1 Attachment(s)
I still get the same issue after the new version.
Well, the spacing changed a bit , but still not accurate

Ideal Web Tech 03-18-2010 08:38 PM

Quote:

Originally Posted by aaronrand (Post 2006035)
I still get the same issue after the new version.
Well, the spacing changed a bit , but still not accurate

I wasn't positive the update we did would fix it for you, but the code we updated could have in a few cases caused that.

As far as your one goes, I'm going to have to assume its a problem with the other script. If you would like to post a link to your board, I will look into it more when I get the time.

aaronrand 03-18-2010 08:42 PM

sure, i appreciate it. it seems closer, but just one break off i think?
its http://www.sharingebooks.com

Ideal Web Tech 03-18-2010 08:53 PM

HTML Code:

<dt>Thanks</dt> <dd>12</dd>
<dd style="white-space: nowrap; display: inline; float: left;">Thanked 6 Times in 6 Posts</dd>
<dt>Time Online</dt> <dd>19 Mins 36 Secs</dd>
<dt>Avg. Time Online</dt> <dd>16 Mins 49 Secs</dd>

The code above is taken from your postbit, and if you notice, one of the <dd> tags for the Thanked Hack has "display: inline; float: left;" within it, that is what is causing the problem.

That block of code should look like this:

HTML Code:

<dt>Thanks</dt> <dd>12</dd>
<dd style="white-space: nowrap;">Thanked 6 Times in 6 Posts</dd>
<dt>Time Online</dt> <dd>19 Mins 36 Secs</dd>
<dt>Avg. Time Online</dt> <dd>16 Mins 49 Secs</dd>

Hope this helps.

aaronrand 03-18-2010 10:51 PM

ok, stupid question time, where do i find that code from postbit to change the thanked mod?

Ideal Web Tech 03-18-2010 11:07 PM

Quote:

Originally Posted by aaronrand (Post 2006140)
ok, stupid question time, where do i find that code from postbit to change?

Personally I don't know exactly where it would be, I'm not using that product, however it should be in one of these places:
  • A template made by the product (Would most likely have the name of the of the product in the template name)
  • The plugin code for the product
  • If worst case, which I highly doubt, the code could be in the postbit/postbit_legacy template

I would think it would be in the first location, but without looking at the code or the product I can't be sure. If you can't find it, I may be able to make the time to do it myself if you send me a login.

War.Frog 03-19-2010 12:49 AM

Will the 1.2.2 update reset the clock?

Ideal Web Tech 03-19-2010 12:51 AM

Quote:

Originally Posted by War.Frog (Post 2006202)
Will the 1.2.2 update reset the clock?

Shouldn't, but if for some reason it does, let me know.

War.Frog 03-19-2010 01:08 AM

Nope! Worked perfectly. :)

RedHacker 03-19-2010 06:29 AM

This: Cumulative User Time Online are time who online all users?

Ideal Web Tech 03-19-2010 05:33 PM

Quote:

Originally Posted by RedHacker (Post 2006309)
This: Cumulative User Time Online are time who online all users?

Could you restate that?

I think you were trying to ask if the "Cumulative User Time Online" was the total of all user online times, which is yes.

RedHacker 03-20-2010 01:54 PM

Quote:

Originally Posted by Ideal Web Tech (Post 2006615)
Could you restate that?

I think you were trying to ask if the "Cumulative User Time Online" was the total of all user online times, which is yes.

Yes thank you....

-=Leb=- 03-20-2010 08:58 PM

thx for the update

flapjack 03-21-2010 08:17 AM

Nice to see some more things from you, IdealWebTech. :)

Great release. Will recommend to others.

Ideal Web Tech 03-21-2010 05:14 PM

Quote:

Originally Posted by flapjack (Post 2007448)
Nice to see some more things from you, IdealWebTech. :)

Great release. Will recommend to others.

Thanks, expect many more in the weeks to come.

axix20xx 03-22-2010 06:57 PM

1 Attachment(s)
how can i fix it ? when i translate time online to my languege its goes like this and use that big space how can i fix that write the result in new line like the one in profile ? or delete that big space between online and the result ?

Ideal Web Tech 03-22-2010 07:29 PM

Quote:

Originally Posted by axix20xx (Post 2008310)
how can i fix it ? when i translate time online to my languege its goes like this and use that big space how can i fix that write the result in new line like the one in profile ? or delete that big space between online and the result ?

To be completely honest, I'm not sure from that picture exactly what I'm looking at... I only know English and a little Spanish, so that doesn't help me a lot... However if you had a url I could go check out, I may be able to help you out a bit more.

Diablotic 04-17-2010 01:01 PM

This is great mod however I have one small request. Because it will not fit in one line when using postbit, would it be possible to change the format of the time display do something like: "33,8h"

marshal_ramdev 04-21-2010 04:28 AM

thanks .. will install it :) ..

Ideal Web Tech 05-06-2010 10:53 PM

Quote:

Originally Posted by Diablotic (Post 2022652)
This is great mod however I have one small request. Because it will not fit in one line when using postbit, would it be possible to change the format of the time display do something like: "33,8h"

Right now, we had no plans of releasing a new version just for that; however, you can change the phrases to make "hours" to "h" and so on. Sorry it took a while for us to respond, we don't check these forums very often... If in the future you need any more help, you can always stop by our website and ask, we check it quite often throughout the day.


All times are GMT. The time now is 09:22 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.01487 seconds
  • Memory Usage 1,840KB
  • 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_html_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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