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)

BaanFarsang 03-23-2011 03:54 PM

Error on VB4.1.2

PHP Code:

WarningUnexpected character in input''' (ASCII=39) state=1 in /home/baanfars/domains/baanfarsang.com/public_html/includes/class_core.php(4430) : eval()'d code on line 75

Parse error
syntax errorunexpected '<' in /home/baanfars/domains/baanfarsang.com/public_html/includes/class_core.php(4430) : eval()'d code on line 76 


SpeedyHire 04-06-2011 04:04 PM

installed on 4.1.2 all fine here.
had to make a few small edits to the post bit to line it all up.

Staxed 04-06-2011 04:27 PM

Just an idea of something i thought would be nice to have for a forum, a stats section that shows the total combined times/average times for all users.

Alan_SP 04-06-2011 11:12 PM

Is it possible to enable for some users to hide results from this mod?

I'd like to create user profile field, and depending on their answer (yes/no) the online time for them is shown or isn't. Default would be of course yes. And that goes only for showing online time, time is tracked and if user chooses so he could show it again.

Alan_SP 04-07-2011 06:43 AM

Ok, I managed to to enable disable showing online time in postbit.

In short, you need to create new user profile field, choose that it is single selection menu, and option set default should be set to None. In options you set only one: Off (or whatever you want to call it, it doesn't matter).

In postbit legacy (or postbit) you need to find:

{vb:raw template_hook.postbit_userinfo_right_after_posts}

After this add:

<vb:if condition="!$post['field8']">
{vb:raw template_hook.postbit_userinfo_right_after_posts2}
</vb:if>

If you don't add template hook with 2 at the end, you'll turn of all additional postbit info if you use it (and usually you do).

After this, you need to change hook that plugin "Postbit: Fetch Total & Average Time Online" uses (find it under Product : IWT - Time Spent Online)

At the very end just add to the hook plugin calls:

$template_hook['postbit_userinfo_right_after_posts2'] .= $templater->render();

That's it. Users now can disable online time in their postbits. But not in profile, or leaderboard.

-----------------------------------

Also, I found minor bug. If users online time is full hour (seconds doesn't matter), there's N/A after hours (mining, there's no minutes to be shown). It's if you use Use Micro Phrases (Postbit Only!) option. And maybe with other options, but I didn't test it. You need to have user who's time online is a round hour to see it.

mrbigandwonderf 04-11-2011 11:38 AM

I have had this running for a few days now and love it.

I am not sure if this is a bug or a lack of understanding but I am a bit confused.
In the postbit the Avg. Time Online is just showing Seconds and they are usually no more than 10 secs for all my user
s.

In post bit:
Here are my stats:
Time Online 6 Hrs 47 Mins 1 Sec
Avg. Time Online1 Secs

In my profile and leader board:
Time Online 6 Hrs 52 Mins 39 Secs
Avg. Time Online 1 Hr 47 Mins 27 Secs

In the settings the only thing that is ticked no is "Use Micro Phrases (Postbit Only!)"

Also is there anywhere on the board if a user leaves the board open on their screen it keeps logging time?
I have a couple users that their stats are huge and talking to them they are not active all of that time. My time out is set to 15min of no activity

thank you in advance for any help. I am just trying to get a better understanding

Alan_SP 04-13-2011 06:19 PM

I too saw this difference between postbit and profile. Not sure why, but there it is... :(

ExcelFox 05-15-2011 04:13 PM

1 Attachment(s)
A great mod, and I am already liking its use very much, and am thankful for developers like yourselves taking out time and effort, to provide us with such free modifications and add-ons.

With due respect, there is a small bug fix that would be nice (which should be a stroll in the park for coders like you). The issue is in the postbit, when this mod is used with Abe1's Post Thank You Hack. So what happens is that the time online is displayed along with the X Thanks in X Posts line which makes reading confusing. If this is not clear, I have posted an image. You could have a look. Thanks again for your time.

For the time being, I have disabled showing the Thank You, but I would really love to have this working.

Alan_SP 05-17-2011 02:04 AM

This is bug in Abe's mod, not in this one. As Abe stopped supporting his, you can forget about updates from him.

But, there's always hope. You could use DragonByte's pro version. Pro version enables importing data. Or wait for someone to make mod that uses information from Abe's.

Ideal Web Tech 06-14-2011 04:48 PM

Just wanted to let you all know if you didn't notice, we updated the plugin to fix the one Average Time issue in the postbit.

Also, thanks for give support to the others Alan_SP.


All times are GMT. The time now is 12: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.02775 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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