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

 
 
Thread Tools
Countdown Timer in signature Details »»
Countdown Timer in signature
Version: 1.12, by Hellcat Hellcat is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: End-User Options - Version: 3.6.0 Beta 1 Rating:
Released: 06-08-2006 Last Update: 06-08-2006 Installs: 175
Uses Plugins Template Edits
Additional Files  
No support by the author.

This is a port of my vB3.5.x "User Countdown Timer".
I had to change some parts of the install code to make it work with vB3.6, and here we go:

This little AddOn gives your users the option to show a custom countdown timer at the bottom of their signature.

Features:
  • Fully configurable via UserCP (see screenshot)
  • BB-Code can be used for eventname and overmessage
  • fully phrased/templated, nothing hardcoded and so fully customizable
  • leading days or hours with a value of "0" are not shown
    (so it shows "42minutes" rather then "0days 0hours 42minutes")

Installation:
Painless:
  • Upload "plugins_usercountd.php" to ".../forum/includes"
  • Import the product .XML

DONE
That's it.
No template edits, no nothing


Usage:
Go into your UserCP -> Edit Options
On the very bottom you will find the options for the Countdown Timer.
Set it to whatever you like, if "Enable" is set to "Yes" the timer will automatically be shown on the bottom of your sig, set to "No" will hide/disable the time display



Have fun

Show Your Support

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

Comments
  #42  
Old 09-07-2006, 11:25 PM
davelacey davelacey is offline
 
Join Date: Mar 2006
Location: UK
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and running sweetly.
Thankyou
Reply With Quote
  #43  
Old 09-08-2006, 12:28 AM
Hicksatpd Hicksatpd is offline
 
Join Date: Nov 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Antyrael
I can confirm this, after I saved a phrase, all the text appeared in both the Admin CP and the Edit Options page.
Help the idiot out: What do you mean by "saved a phrase"? Thanks.
Reply With Quote
  #44  
Old 09-11-2006, 07:37 PM
Spookysalem Spookysalem is offline
 
Join Date: Oct 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have finally got this to work thankyou....
Reply With Quote
  #45  
Old 09-13-2006, 04:21 AM
TomasDR TomasDR is offline
 
Join Date: Feb 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone can assist I would appreciate it greatly. I still cannot get the countdown to appear in the signature. I am not having the phrase issue.

I have tried everything to get the countdown to appear in the signature without luck on 3.6.

Everything else works, I can set the countdown, it shows in the database, but just not in the signature.

This worked fine in 3.5.4 but for the life of me I have no idea what's wrong with 3.6.

Note: This might be the most used hack on my board since I run a travel related board. (ie. Countdowns to the next trip)
Reply With Quote
  #46  
Old 09-13-2006, 08:26 PM
TomasDR TomasDR is offline
 
Join Date: Feb 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did a little research last night and for some reason the lines...

Code:
    $query = $vbulletin->db->query_read( "SELECT $cdfield FROM " . TABLE_PREFIX . "userfield WHERE userid='" . $post["userid"] . "';" );
    $result = mysql_fetch_array( $query );
    $cddata = unserialize( str_replace( """, '"', $result[$cdfield] ) );
Don't work and the statement.

Code:
if ( $cddata["enabled"] == "Yes" )
Fails. Actually all of the $cddata variables don't work.

This is what the raw data looks like in my SQL table.

Code:
a:8:{s:7:"enabled";s:3:"Yes";s:3:"day";s:1:"1";s:5:"month";s:1:"1";s:4:"year";s:4:"2007";s:4:"hour";s:1:"0";s:6:"minute";s:1:"0";s:5:"event";s:14:"Happy New Year";s:7:"overmsg";s:15:"Make Resolution";}
If anyone could set thier countdown for Jan 1st, 2007 "Happy New Year" and compare/post it I would appreciate it.

Thanks.
Reply With Quote
  #47  
Old 09-15-2006, 11:48 AM
Antyrael Antyrael is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hicksatpd
Help the idiot out: What do you mean by "saved a phrase"? Thanks.
In your admincp, goto Languages & Phrases -> Search in phrases, type 'countdown' in the findbox and click Find.
Click on Edit next to any of te phrases, in the next screen, just click Save.

That's all
Reply With Quote
  #48  
Old 09-26-2006, 01:16 PM
Gripemaster Gripemaster is offline
 
Join Date: Oct 2005
Location: MD
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed fine, but nothing is showing up at all, anywhere. No options or settings, nada.
Reply With Quote
  #49  
Old 09-26-2006, 01:28 PM
juan71287 juan71287 is offline
 
Join Date: Dec 2003
Location: New York
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not working with 3.6 so dont bother.. It would have been nice though
Reply With Quote
  #50  
Old 10-20-2006, 10:35 PM
Invalid ID's Avatar
Invalid ID Invalid ID is offline
 
Join Date: Apr 2006
Location: Karachi. Pakistan
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, but NOT working
Reply With Quote
  #51  
Old 10-26-2006, 12:23 PM
unixboard unixboard is offline
 
Join Date: Jul 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Hack is working fine on 3.6.2....
But the Signature is only shown on new posts...older posts are still without the countdown..

Any tips?
Reply With Quote
 


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 02:59 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.04168 seconds
  • Memory Usage 2,302KB
  • 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
  • (3)bbcode_code
  • (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
  • (1)pagenav_pagelinkrel
  • (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