The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Countdown Timer in signature Details »» | |||||||||||||||||||||||||
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:
Installation: Painless:
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
|
Comments |
#112
|
||||
|
||||
Ok after facing some of the same problems most users experienced we took everyones suggestions an added something to get it to look and work a little better.
I made a couple of changes to the plugins_usercountd.php INSTALLED AND TESTED ON VB 3.67PL1 Corrected php file is attached at the bottom The fields are the width of the phrase and you cant see the day, month or year unless you change the text to something other than day, year or month. Find: Code:
$profilefield["title"] = $vbphrase["day"]; Code:
$profilefield["title"] = $vbphrase["Select a Day"]; Code:
$profilefield["title"] = $vbphrase["month"]; Code:
$profilefield["title"] = $vbphrase["Select a Month"]; Code:
$profilefield["title"] = $vbphrase["year"]; Code:
$profilefield["title"] = $vbphrase["Select a Year"]; Code:
for ( $i = 2006; $i <= 2010; $i++ ) Code:
for ( $i = 2007; $i <= 2010; $i++ ) Goto admincp/language phrases/phrase manager/ add phrase type = global product = user countdown varname = usercountdown text = usercountdown add phrase In order for this mod to show you MUST go to the Manage User Groups and edit each group you wish to have access to this feature. It is located at the very bottom of the User Group Permissions. And each user must go to their UserCP and enable the countdown timer and have a signature enabled (it can be simple text but I suggest you add a couple <BR><BR> to give a few spaces between you signature and the countdown timer) Enclosed are 3 screenshots of what it should look like in the UserCP, Group Permissions and the forum signature. I also included the fixed php file. <-- did not know if it was ok to do that and if not admin will remove I am sure. |
#113
|
|||
|
|||
thanks mtalks1
|
#114
|
|||
|
|||
Great, thanks. Is there a way to give a user a signature by default?
That way, when they set the countdown up it appears immediately. |
#115
|
|||
|
|||
mtalks1 - I followed your directions, i think, but still have the problem with setting the dates. Can't see anything in the dropdowns besides the slider bar. see pic.
Would also like an automatic space added before the "My Countdown" signature starts. I don't have html enabled in sigs, so users can't put <br> spaces in their sig. |
#116
|
||||
|
||||
edit
|
#117
|
||||
|
||||
Quote:
the post did quite make sense to me, it asked to edit the plugins_usercountd.php file and upload it then down load another plugins_usercountd.php file and upload that ? shouldnt your attached file be the product-hc_usercountdown_vb36b1.xml ? |
#118
|
|||
|
|||
I believe he applied the edits to the php file for us (even though he laid them out in his post) and attached that so we wouldn't have to do that. however, there appears to be a disconnect between it and the XML now or something. Something like the phrases aren't right anymore or something. I dunno - I'm a complete php noob.
But i would like to get this to work. It would be so useful for my forums, counting down to the end of a dieting cycle or something. |
#119
|
||||
|
||||
Ok I couldnt work out mtalks1 edit so I changed the edits back and went to the AdminCP - Languages & Phrases - Language Manager - Edit / Translate English (US) Phrases
and found the ones to change day - change to - Select a day month - change to - Select a month year - change to - Select a year that basicly did the same thing and fixed it perfect cheers |
#120
|
||||
|
||||
To put the gap between the signature and the countdown go to
Admin CP - Styles & Templates - Search in Templates Search for - usercountdown_display Change from; Code:
<fieldset class="fieldset"> <legend>$vbphrase[countdown_title]</legend> <strong>$vbphrase[countdown_counting_down_to]:</strong> $event <br /> <em>$counter</em> </fieldset> Code:
<br><br> <fieldset class="fieldset"> <legend>$vbphrase[countdown_title]</legend> <strong>$vbphrase[countdown_counting_down_to]:</strong> $event <br /> <em>$counter</em> </fieldset> |
#121
|
|||
|
|||
Awesome - you can ignore my PM. I sent it before seeing your post here. Let me try this tonight and see if that fixes it for me. I bet it does.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|