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
Update 1.10
[high]IF YOU UPDGRADE FROM A PREVIOUS VERSION, BE SURE TO UNISTALL THE CURRENTLY INSTALLED ONE BEFORE INSTALLING THE UPGRADE![/high]
(unfortunately all events will be lost)
[FIX] Phrased the last three things that were not (Yes/No of the enable radio and main description)
[NEW] Added Usergroup Permissions for the countdown!
In the usergroupmanager it now has an area "User Countdown Permissions" where the admin can allow/enable or disallow/disable the countdown timer for each usergroup.
One quick question. Is there any way I can keep the border around the countdown, but stop it from spanning the whole width of the signature? I'd like to have it around the text, but not span the whole width of the board.
I know this was a couple weeks ago, but to solve this, just use the style attribute inline for the fieldset.
in template usercountdown_display
FIND:
PHP Code:
<fieldset class="fieldset">
REPLACE WITH:
PHP Code:
<fieldset class="fieldset" style="width:300px;">
or whatever width you want. You can also use percentage.
REPLACE WITH:
PHP Code:
<fieldset class="fieldset" style="width:50%;">
You also may need to add a <br/> before the fieldset tag.
I somehow installed the product twice. Not sure how but now it's all messed up. After the second install it disappeared off the 'Manage Products' page.
I deleted most of the related parts in SQL but there's a few instances of the countdown that are mingled into certain tables that contain other stuff and I don't want to mess it up. Can you help me get rid of it completely? All in are in table 'datastore'. If you need the specific code LMK.
I somehow installed the product twice. Not sure how but now it's all messed up. After the second install it disappeared off the 'Manage Products' page.
I deleted most of the related parts in SQL but there's a few instances of the countdown that are mingled into certain tables that contain other stuff and I don't want to mess it up. Can you help me get rid of it completely? All in are in table 'datastore'. If you need the specific code LMK.
Read his replies to me, had the same problem and he helped\me get it straightened out.
i found my culprit. it was an extra "if" in the "modifyoptions" template after installing another hack.
it's all good! again, nice mod and thanks!! :up:
I've installed but can't see the countdown, also got a modified modifyoptions template ( user select new searches). what do I need to do to alter this to get countdown to show up please??
A safe uninstaller would be useful or can i just delete the product and remove the Includes/plugins_usercountd.php and includes/xml/bitfield_hc_countdown.xml files??
I only want a small user group to have access to this product so I'm hoping queries won't be too much.
Usually a uninstall via the Product Manager works fine.
Onyl sometimes, esp. when re-installed with "Allow Overwrite" things could get a bit messy - therefor the cleanup script.
Also ATM countdowns only show when a sig is present and displayed - I'm going to tweak that as well.