vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Time/Days spent on board (https://vborg.vbsupport.ru/showthread.php?t=134091)

hurik 12-15-2006 10:00 PM

Time/Days spent on board
 
Please don't use this hack with Time Spent On Board from tnguy3n!

My hack doesn't need any code changes. :)

The capture function doesn't need any extra query!

Description:

This hack adds to the profile:
- the time a user spend on board,
- the count of days a user spend on board,
- the average time he spent a day he has visited (time/day)
- and it shows when it was installed. The date and time is automatically added into the phrase.
More features:
- When you want you can activate the postbit indicator.
- A Statistic site:
- - Shows the time/days spent on board of all users.
- - Top Ten of the user how had spent the most time on board.
- - User sees her own place.
- When an user is invisible only user can see her time which have the rigt to see invisible users.

The time/days capturing starts with the installation. It is not possible to get any time befor the installation, it can't look in the past. :)


Sorry for the German screenshot!

Live Demo:
Profil: http://www.portablegaming.de/member.php?u=1
Statisticsite: http://www.portablegaming.de/misc.php?do=tdobstats

Thanks go to Andreas for his help!

German Version:
http://www.vbhacks-germany.org/showthread.php?t=6704

Details:
1 Produkt XML (8 plugins, 13 phrasen, 7 templates und 4 template modification)


History:
1.1.3
Again a stats fix.
Small changes in the template changes.
Who's Online display now working.

1.1.2
Small bug corrected in the stats.

1.1.1
The stats where optimized.

1.1.0
Added the statistic.
Included the Postbit addon. 1.0.5
Again a little update for the time capture function. Now it is working without problem.

1.0.4
The time capture function was updatet!

1.0.3
The day capture function was updatet! Now it is working without problem.

1.0.2
Little updates in the code.

1.0.1
Small update in the template changes (When an user is invisible his time/days isn't shown to other user, only user can see their time/days and user who can see invisible people).

1.0.0
First version.


Installation:
1) Import the product.
2) Make the template changes which you find in the templateedits-timedaysonboard.txt file. (When you have the TMS installed you don't have to make the template changes ... :) )
3) When you want you can activate the postbit display in "vBulletin Options" -> "Thread Display Options (showthread)".

Update:
1) Import the product and overwrite the old on.
2) Check the template changes and make the new ones.

Sorry for my bad English. When there is something wrong or in bad English than please say it that I can correct it.

DementedMindz 12-16-2006 03:47 AM

hurik very nice thank you... only thing that would be nice i can suggest is maybe wrap the member info in a conditional this way if you do for some reason shut the product down in admincp it will also remove the code from the profile too if not its left there empty.

jedisct1 12-16-2006 10:00 AM

Installed, thank you !

hurik 12-16-2006 12:11 PM

i have uploaded an little addon:
when you want to have the "spent time on board" display in the postbit, install it.

Hornstar 12-17-2006 04:08 AM

Nice work, This is looking real nice.

hurik 12-18-2006 02:51 AM

i have uploaded version 1.0.5. please update.
there where some bugs in the time and day capture function. now they are working fine.

in the next version witch come in some days will have some fine new features:
- a statistic page where you can see the top 10 of user witch where the most time and most days online.
- the postbit addon will be included into the main product. but there will be options to turn it on or off.

jerrygad 12-19-2006 05:03 PM

Installed. Thanks

serg472 12-23-2006 05:27 PM

Was waiting for this mod, thanks a lot!

And this would be awesome:
Quote:

in the next version witch come in some days will have some fine new features:
- a statistic page where you can see the top 10 of user witch where the most time and most days online.
- the postbit addon will be included into the main product. but there will be options to turn it on or off.

serg472 12-24-2006 02:06 AM

And some feature request:

Add a "time spent on the board today" field to users and display somewhere at the bottom of the forum homepage users that spent most time on the forum today. It would be possible then to integrate this data with Members who have visited Today or Cyb - Advanced Forum Statistics or similar mods.

grazianno 01-18-2007 09:27 AM

installed on vb 3.5.4 :)

hurik 01-22-2007 07:00 PM

hi,

i have uploaded the new version 1.1.2.

it has some nice new features:

- postbit addon is now included!
- it adds a statistic site! demo: http://www.portablegaming.de/misc.php?do=tdobstats or look in the screenshots!

there a some new phrases and i hope i have translate it correct. please let me know when there is an error or something sounds not good!

jonty 01-22-2007 07:26 PM

Version 1.1.2 error when importing XML file :

XML Error: not well-formed (invalid token) at Line 8

hurik 01-22-2007 08:01 PM

Quote:

Originally Posted by jonty (Post 1165238)
Version 1.1.2 error when importing XML file :

XML Error: not well-formed (invalid token) at Line 8

i'm very sorry. now it's corrected and working.

RavenSteve 01-22-2007 11:03 PM

Interesting. Dumb question (probably): does it count from the moment of install or is the time spent online value already kept in vB?

hurik 01-22-2007 11:37 PM

Quote:

Originally Posted by RavenSteve (Post 1165360)
Interesting. Dumb question (probably): does it count from the moment of install or is the time spent online value already kept in vB?

no, time capturing starts with the installation of the hack. but the hack shows when it was installed.

davis31b 01-23-2007 12:07 AM

everything seems to be working except postbit_legacy

I have the following code:
Code:

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div class="pbitspacer"><div class="pbit" align="left">$vbphrase[join_date]: $post[joindate]</div></div></if>
<if condition="$post['field2']"><div class="pbitspacer"><div class="pbit" align="left">$vbphrase[location_perm]: $post[field2]</div></div></if>
<if condition="$post['age']"><div class="pbitspacer"><div class="pbit" align="left">$vbphrase[age]: $post[age]</div></div></if>

<div class="pbitspacer"><div class="pbit" align="left">
$vbphrase[posts]: $post[posts]
</div></div>

<if condition="$show['infraction']"><div class="pbitspacer"><div class="pbit" align="left">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></div></if>


I have tried to stick it every sort of way & every combination. It shows up under my member profile just fine. Wouldn't you want to add it above $vbphrase[posts]: $post[posts] anyways? Also I have an extra /div in there for some reason. Thanks.

hurik 01-23-2007 12:14 AM

Quote:

Originally Posted by davis31b (Post 1165380)
everything seems to be working except postbit_legacy

I have the following code:
Code:

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div class="pbitspacer"><div class="pbit" align="left">$vbphrase[join_date]: $post[joindate]</div></div></if>
<if condition="$post['field2']"><div class="pbitspacer"><div class="pbit" align="left">$vbphrase[location_perm]: $post[field2]</div></div></if>
<if condition="$post['age']"><div class="pbitspacer"><div class="pbit" align="left">$vbphrase[age]: $post[age]</div></div></if>

<div class="pbitspacer"><div class="pbit" align="left">
$vbphrase[posts]: $post[posts]
</div></div>

<if condition="$show['infraction']"><div class="pbitspacer"><div class="pbit" align="left">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></div></if>


I have tried to stick it every sort of way & every combination. It shows up under my member profile just fine. Wouldn't you want to add it above $vbphrase[posts]: $post[posts] anyways? Also I have an extra /div in there for some reason. Thanks.

hi,
you have to activate it in the admin controll panel -> "vBulletin Options" -> "Thread Display Options (showthread)" -> the last option. :)

davis31b 01-23-2007 12:18 AM

did that already.. thanks :confused:

Nazarath 01-23-2007 12:30 AM

Umm I have enabled it in my options and it still doesn't display for me. I have everything correct.

Also do you think you could modify it to where the usergroup permissions are in effect.. like if you have a usergroup that doesn't show its members on the member list to have it not display here unless they are an admin or moderator?

hurik 01-23-2007 05:08 PM

i don't know where is the problem. its working fine on my board.

the usergroup rights will come in the next version.

kelekian 01-23-2007 06:24 PM

installed in vb 3.6.4 and dont work too ;S

hurik 01-23-2007 10:59 PM

hmmm ... have you checked the template changes?

1.
Search in the postbit_legacy template for:
--------------------------------------------------------------------------------
HTML Code:

                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>

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

and replace it with:
--------------------------------------------------------------------------------
HTML Code:

                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>
                                <if condition="$show_p_tdob">
                                        <div>
                                                $vbphrase[tdob_time_on_board]: <if condition="$post['timeonboard'] >= 1"><if condition="$show['timespentyears']">$timeboardspent[year] <if condition="$timeboardspent[year] == 1">$vbphrase[year]<else />$vbphrase[years]</if>, </if><if condition="$show['timespentmonths']">$timeboardspent[month] <if condition="$timeboardspent[month] == 1">$vbphrase[month]<else />$vbphrase[months]</if>, </if><if condition="$show['timespentweeks']">$timeboardspent[week] <if condition="$timeboardspent[week] == 1">$vbphrase[week]<else />$vbphrase[weeks]</if>, </if><if condition="$show['timespentdays']">$timeboardspent[day] <if condition="$timeboardspent[day] == 1">$vbphrase[day]<else />$vbphrase[days]</if> $vbphrase[tdob_and] </if>$timeboardspent[hour]:<if condition="$timeboardspent[min]<10">0$timeboardspent[min]<else />$timeboardspent[min]</if>:<if condition="$timeboardspent[sec]<10">0$timeboardspent[sec]<else />$timeboardspent[sec]</if> $vbphrase[hours]<else />$vbphrase[tdob_nodata]</if>
                                        </div>
                                </if>

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

2.
Search in the postbit template for:
--------------------------------------------------------------------------------
HTML Code:

                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>

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

and replace it with:
--------------------------------------------------------------------------------
HTML Code:

                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>
                                <if condition="$show_p_tdob">
                                        <div>
                                                $vbphrase[tdob_time_on_board]: <if condition="$post['timeonboard'] >= 1"><if condition="$show['timespentyears']">$timeboardspent[year] <if condition="$timeboardspent[year] == 1">$vbphrase[year]<else />$vbphrase[years]</if>, </if><if condition="$show['timespentmonths']">$timeboardspent[month] <if condition="$timeboardspent[month] == 1">$vbphrase[month]<else />$vbphrase[months]</if>, </if><if condition="$show['timespentweeks']">$timeboardspent[week] <if condition="$timeboardspent[week] == 1">$vbphrase[week]<else />$vbphrase[weeks]</if>, </if><if condition="$show['timespentdays']">$timeboardspent[day] <if condition="$timeboardspent[day] == 1">$vbphrase[day]<else />$vbphrase[days]</if> $vbphrase[tdob_and] </if>$timeboardspent[hour]:<if condition="$timeboardspent[min]<10">0$timeboardspent[min]<else />$timeboardspent[min]</if>:<if condition="$timeboardspent[sec]<10">0$timeboardspent[sec]<else />$timeboardspent[sec]</if> $vbphrase[hours]<else />$vbphrase[tdob_nodata]</if>
                                        </div>
                                </if>

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

3. activate the postbit display: admin controll panel -> "vBulletin Options" -> "Thread Display Options (showthread)" -> the last option.

davis31b 01-24-2007 12:10 AM

yup.. still doesn't work on 3.6.4, thats like 3 people its not working for:(

hurik 01-24-2007 11:58 AM

Quote:

Originally Posted by davis31b (Post 1166112)
yup.. still doesn't work on 3.6.4, thats like 3 people its not working for:(

did you really activate the postbit display in the admin control panel? you find the option under "vBulletin Options" -> "Thread Display Options (showthread)" -> "Time/Days on board - Postbit time display" (the last option).

i have tested it on my board and on my testboard at it works fine ...

hurik 01-26-2007 12:53 PM

hi,

i have uploaded version 1.1.3.

it fixes this problems:
- Again a stats fix.
- Small changes in the template changes.
- Who's Online display now working.

is someone using the postbit display and it works for him?

next week i will include the usergroup managment.

davis31b 01-26-2007 02:24 PM

its unfortunately still not working..

however.. their is another Time Spent on Board thread for 3.6.4 & its working just fine for me. But thanks for your effort.

BOLT 01-26-2007 05:43 PM

Like I asked in the other thread, how do I make it so only admins can see this feature?

hurik 01-26-2007 06:30 PM

Quote:

Originally Posted by BOLT (Post 1167901)
Like I asked in the other thread, how do I make it so only admins can see this feature?

this feature will come in the next version.

Rickie3 01-27-2007 02:23 AM

installed but same for me wont show in postbit nor legacy even after activating Thread Display Options (showthread)

bada_bing 01-29-2007 07:15 PM

Will try once the next version is release with the usergroup options. also can you make it so the plugin changes the templates also rather then a manual edit?

cajunboy2208 02-09-2007 02:12 PM

Nice mod

bada_bing 02-09-2007 03:06 PM

I have added this hack Nice by the way... But I cant get it to show up in my postbit even though I did the template edits. Any idea why? im running vb 3.6.4

cajunboy2208 02-14-2007 01:42 PM

Um. Since yesterday, the times aren't updating. They are like frozen. Anyone else experiencing this?

PinkDaisy 02-14-2007 03:18 PM

Thanks!! Installed...

bada_bing 02-15-2007 02:46 PM

Quote:

Originally Posted by bada_bing (Post 1178436)
I have added this hack Nice by the way... But I cant get it to show up in my postbit even though I did the template edits. Any idea why? im running vb 3.6.4

Hello anyone?

Hammond 02-15-2007 05:15 PM

curious . but clean install + templates EDIT and what i get is Nothing. Table of 10 most Visited exists. but in SHow Thread I cant see time spended

http://img267.imageshack.us/img267/9201/49546275da0.png

SwissPegasus 02-20-2007 02:38 PM

I'am a little bit confused about the calculation in the stats page.

There a 2 collumns.

The left colummn ist no problem, ther ist the counting on spent time in Hours , Minutes and seconds.

But the right colummn is confusing. I just install this a few days ago. But there is one user spend one day more on board....longer than the hack is installed.

About the values in right colummn:
Days spent one board confuse me so much. I spend now 12 Hours on board. This is correct, but also shows a handfull of days.....this is not correct.

I think everyday is added one day to this values.

Can everybody help me?

cu
SwissPegasus

4x4 Mecca 02-24-2007 03:55 PM

Installed, activated in control panel and it's not working anywhere! Even the stat's page doesn't work.

superluks 02-24-2007 07:45 PM

Installed, i love all those little statistic tools.

jobbe 04-07-2007 10:45 AM

On memberinfo stats are showing 2 times. I checked the changes on memberinfo and I did it one time only. Any help will be appreciated, thanks a lot in advance


All times are GMT. The time now is 07:14 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.02025 seconds
  • Memory Usage 1,854KB
  • 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
  • (4)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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