The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Countdown Timer for your users Details »» | |||||||||||||||||||||||||
(inspired by this thread: https://vborg.vbsupport.ru/showthread.php?t=107226)
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 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)
[high]If the usergroup permissions do not work, or even don't show up at all, you might need to rebuild the bitfield using this URL:[/high] http://yourdomain.tld/pathtoforum/ad...buildbitfields Show Your Support
|
Благодарность от: | ||
kraghen |
Comments |
#122
|
|||
|
|||
The new version did the trick! Thanks a bunch hellcat!!!
|
#123
|
|||
|
|||
I uploaded the file and iimported "product-hc_usercountdown112.xml" in the "Manage Products" section, but still nothing changes under "Edit Options" in the UserCP .. am I missing something?
|
#124
|
|||
|
|||
Okay, I admit it, I'm picky. I really like this hack, but there were a few things I wanted to change. First, I wanted to change it in the user CP so that the dropdown menu to select the month came before the day. I guess that's an American thing to prefer that. Anyway, I managed to do that. But the other thing that I wanted to change was the actual display in the posts so that there would be a space between the number and the measure of time and add commas where appropriate.
For example, currently the countdown would appear like this in a signature: 19days 1hours 20minutes I would want it to appear like this: 19 days, 1 hour(s), 20 minutes Is that possible? |
#125
|
|||
|
|||
Quote:
Quote:
It the.... erhm..... [high]* Hellcat checks [/high] Ah, it's the "usercountdown_display" template - that hods the markup for the counter display, just edit this to your needs. But the actual time display comes from the plugin itself.... [high]* Hellcat checks again [/high] Open ".../includes/plugins_usercountd.php", the actual time/counter display is constructed from line 209 to 219, you can change it there and add the commas and/or change positions and such..... |
#126
|
|||
|
|||
Thanks. I knew it wasn't in the template, and I figured it would be in one of the xml files, but I didn't know which one or where.
Hm...I'm not sure how to add spaces and commas where I want them. Can you help me out here? |
#127
|
|||
|
|||
To add the commas, in plugin_usercountd.php change:
Line 213: Code:
$counter = $remain["hours"] . $vbphrase["countdown_hours"] . " " . $counter; Code:
$counter = $remain["hours"] . $vbphrase["countdown_hours"] . ", " . $counter; Code:
$counter = $remain["days"] . $vbphrase["countdown_days"] . " " . $counter; Code:
$counter = $remain["days"] . $vbphrase["countdown_days"] . ", " . $counter; |
#128
|
|||
|
|||
Nice update
|
#129
|
|||
|
|||
When importing the XML file I get this error "XML Error: unknown at Line 0"
|
#130
|
|||
|
|||
Quote:
|
#131
|
|||
|
|||
Quote:
Anyway, nice hack. I like the idea. I'm just going to edit some things to make it look like I want. I think another thing that at least I'm going to attempt to do is show the countdown on the main User CP page. Is there a way to display the current countdown on the main User CP page without it being in the signature? I'm just thinking especially if it'll be possible to make multiple countdowns in the future, it would be cool to show them all on the main User CP page for the user's sake. Okay, I'm done babbling now. Just some ideas. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|