Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Countdowns & Countups Details »»
User Countdowns & Countups
Version: 1.1, by Jafo232 Jafo232 is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.1 Rating:
Released: 02-17-2009 Last Update: 02-25-2009 Installs: 160
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

Got the inspiration for this mod here. Problem is, that mod does not work anymore. We decided to write our own.

This product allows users to set up a countdown timer or countup timer. The timer can run in real time with the javascript counter, or just static. Admin can choose to show the timer in users sigs or in the postbit user info area.

Usergroup permissions are handled in the options area so you do not have to modify many usergroups one at a time.

This product was developed for Andy R from Social Knowledge and released here for others to enjoy.

Enjoy!

DON'T FORGET TO:

CLICK INSTALL!

Download Now

File Type: zip countdown.zip (7.8 KB, 246 views)
File Type: zip countdown1.1.zip (7.8 KB, 567 views)

Screenshots

File Type: jpg screenie1.jpg (23.6 KB, 0 views)
File Type: jpg screenie2.jpg (24.1 KB, 0 views)
File Type: jpg screenie3.jpg (35.2 KB, 0 views)

Show Your Support

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

Comments
  #102  
Old 07-05-2010, 01:32 AM
trueoak trueoak is offline
 
Join Date: Aug 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know how to show a preview of the countdown timer on the creation page? That way someone can see the actual time of their current timer? You can't use the same script as it's post specific, but I've been unable to figure out how to show it on the create page.
Reply With Quote
  #103  
Old 07-24-2010, 12:25 AM
AndrewRich's Avatar
AndrewRich AndrewRich is offline
 
Join Date: Dec 2007
Location: Palo Alto, CA
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed this [S]but am having some difficulty (things which have been reported up-thread). I tried to remove the unnecessary line-breaks, but when I made those changes (only removing some <br /> tags) the live countdown stops and the numbers only change on a page reload. What is the code looking for as far as the live update?[/S]

vB 3.8.6 PL1.

I uninstalled the product completely (including dropping the "sktimer" table, see next post) and reinstalled from scratch. I checked in between each step to see if the countdown was still working.

Plugin Manager -> Edit "Handle timer in postbit"
Before:
PHP Code:
if ($puser['skformat'] == 'dh') { $puser['skformat'] = '%%D%% Days, %%H%% Hours'; } else { $puser['skformat'] = '%%D%% Days, %%H%% Hours <br /> %%M%% Minutes, %%S%% Seconds.'; } 
After:
PHP Code:
if ($puser['skformat'] == 'dh') { $puser['skformat'] = '%%D%% Days, %%H%% Hours'; } else { $puser['skformat'] = '%%D%% Days, %%H%% Hours %%M%% Minutes, %%S%% Seconds.'; } 
Change:
Remove " <br />"

Reload page with countdown: Countdown works.

Style Manager -> Edit "sk-timer_countdownbit"
Before:
PHP Code:
<if condition="$puser[skunixdate] > TIMENOW">$puser[sktitle]<else />$puser[skdescription]</if> <br /> 
After:
PHP Code:
<if condition="$puser[skunixdate] > TIMENOW">$puser[sktitle]<else />$puser[skdescription]</if> 
Change:
Remove "<br />"

Reload page with countdown: Countdown works.

Style Manager -> Edit "sk-timer_countdownbit"
Remove first line consisting of "<br />".

Reload page with countdown: Countdown works.

vBulletin Options -> SK - Countdown/Countup Settings -> Event Location
Switched back and forth between Signature and User Info, reloading page with countdown each time: Countdown works.

I can only guess that I must have typoed something the first time through and later, on being more careful while doing things step-by-step, didn't mess it up.

Result: Countdown works, no line breaks.
Attached Files
File Type: xml product-sk_timer-modified.by.andrewrich.xml (17.7 KB, 11 views)
Reply With Quote
  #104  
Old 07-26-2010, 12:58 AM
AndrewRich's Avatar
AndrewRich AndrewRich is offline
 
Join Date: Dec 2007
Location: Palo Alto, CA
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The "uninstallcode" section of the product XML is blank. That means that when uninstalling, the product's SQL changes are left behind. This is rather poor practice. Can it be updated? Seems like all you'd need is to drop the "sktimer" table.


Code:
			<installcode><![CDATA[$vbulletin->db->query("CREATE TABLE IF NOT EXISTS " . TABLE_PREFIX . "sktimer (
  skuserid int(11) NOT NULL default '0',
  sktitle text,
  skdescription text,
  skdateline int(11) default NULL,
  skactive tinyint(4) default NULL,
  skformat enum('dhms','dh') default 'dhms',
  PRIMARY KEY  (skuserid)
)");]]></installcode>
			<uninstallcode />
Edit: The updated product XML in my post above includes uninstall code which drops the "sktimer" table.
Reply With Quote
  #105  
Old 07-31-2010, 12:25 PM
ascender ascender is offline
 
Join Date: Feb 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wondering if anyone is able to update this to be compatible with VB4? Its a brilliant mod and one that our users are missing now we've upgraded.

Thanks.
Reply With Quote
  #106  
Old 08-01-2010, 12:37 PM
boomcar68 boomcar68 is offline
 
Join Date: Feb 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on Version 3.7.3
1 issue that there is no text displayed after the countdown.
I have write something in the Message to display after specified time,but there is just no text in ucer info nor under sig.
How can i change this,or what's wrong?
Reply With Quote
  #107  
Old 08-10-2010, 08:21 AM
kolibrii kolibrii is offline
 
Join Date: May 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, i am alreddy using vB 3.6.8. Installation works, administration too. But no chance to set countup in Profile (no option seen). Can anyone help me to run this mod under 3.6.8?!
Reply With Quote
  #108  
Old 08-23-2010, 09:15 PM
AndrewRich's Avatar
AndrewRich AndrewRich is offline
 
Join Date: Dec 2007
Location: Palo Alto, CA
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've identified a bug in this script; when a user includes an apostrophe or single quote in their "countdown finished" message, the countdown will not actively decrement. It looks like the single quote should be escaped. I'm looking at the script code now and will update when I have a fix.

Update:

In sktimer.js, I added the following as the first two lines in the CountBack function:

HTML Code:
FinishMessage = FinishMessage.replace ( "'", "& #39;" );
FinishMessage = FinishMessage.replace ( '"', '& #34;' );
(There are extra spaces in the above code between the "&" and the "#" because vB kept helpfully rendering the entities in the post. It should be "ampersand pound 39 semicolon" for single quote and "ampersand pound 34 semicolon" for colon, with no spaces.)

This just replaces single and double quotes with their HTML entity representations. I've attached the updated sktimer.js.

*** This solves the reported problem of only some user countdowns actively counting! ***
Attached Files
File Type: zip sktimer.js.zip (1.5 KB, 9 views)
Reply With Quote
Reply


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 01:33 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.04623 seconds
  • Memory Usage 2,327KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete