Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Time/Days spent on board Details »»
Time/Days spent on board
Version: 1.1.3, by hurik hurik is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.4 Rating:
Released: 12-15-2006 Last Update: 01-25-2007 Installs: 244
DB Changes Uses Plugins Template Edits
Re-useable Code  
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-23-2007, 06:24 PM
kelekian kelekian is offline
 
Join Date: Jun 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed in vb 3.6.4 and dont work too ;S
Reply With Quote
  #23  
Old 01-23-2007, 10:59 PM
hurik hurik is offline
 
Join Date: Aug 2005
Location: Konstanz (Germany)
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 01-24-2007, 12:10 AM
davis31b davis31b is offline
 
Join Date: Feb 2006
Location: Texas
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yup.. still doesn't work on 3.6.4, thats like 3 people its not working for
Reply With Quote
  #25  
Old 01-24-2007, 11:58 AM
hurik hurik is offline
 
Join Date: Aug 2005
Location: Konstanz (Germany)
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by davis31b View Post
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 ...
Reply With Quote
  #26  
Old 01-26-2007, 12:53 PM
hurik hurik is offline
 
Join Date: Aug 2005
Location: Konstanz (Germany)
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 01-26-2007, 02:24 PM
davis31b davis31b is offline
 
Join Date: Feb 2006
Location: Texas
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 01-26-2007, 05:43 PM
BOLT BOLT is offline
 
Join Date: Dec 2006
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like I asked in the other thread, how do I make it so only admins can see this feature?
Reply With Quote
  #29  
Old 01-26-2007, 06:30 PM
hurik hurik is offline
 
Join Date: Aug 2005
Location: Konstanz (Germany)
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BOLT View Post
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.
Reply With Quote
  #30  
Old 01-27-2007, 02:23 AM
Rickie3's Avatar
Rickie3 Rickie3 is offline
 
Join Date: Nov 2004
Location: Australia/Tasmania
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed but same for me wont show in postbit nor legacy even after activating Thread Display Options (showthread)
Reply With Quote
  #31  
Old 01-29-2007, 07:15 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04747 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete