Sheikah Posted September 3, 2013 Posted September 3, 2013 Ah right if it's just in a post then that's an easy one, I'll take a look when I get a mo. Sweet, thanks! Will be cool to see.
Shorty Posted September 4, 2013 Posted September 4, 2013 (edited) This countdown is a lot more of a pain in the ass than I thought it would be :p the custom bbcode builder on vbulletin is very limited, you can basically only take two strings, both inputted by the user (nothing else is provided...) and use them, and I need something to make each one unique. It would be nice if it called back something like your post number... but no.... So I'm close but it's not really ready to use, you need a random string of letters after the equals sign, eg: [noparse][countdown=abcdef]August 24, 2054 19:54:54[/countdown][/noparse] Makes: [countdown=abcdef]August 24, 2054 19:54:54[/countdown] (also not styled it yet or hidden empty values eg 0 years) Edit: Ah and it's not working all the time. Might disappear when you do quick saves/ edits... Might just scrap this and look for one on the vBulletin forums after all Edited September 4, 2013 by Shorty
Ashley Posted September 4, 2013 Author Posted September 4, 2013 (edited) This countdown is a lot more of a pain in the ass than I thought it would be :p the custom bbcode builder on vbulletin is very limited, you can basically only take two strings, both inputted by the user (nothing else is provided...) and use them, and I need something to make each one unique. It would be nice if it called back something like your post number... but no.... So I'm close but it's not really ready to use, you need a random string of letters after the equals sign, eg: [noparse][countdown=abcdef]August 24, 2054 19:54:54[/countdown][/noparse] Makes: [countdown=abcdef]August 24, 2054 19:54:54[/countdown] (also not styled it yet or hidden empty values eg 0 years) Edit: and it loads on DOM so might disappear when you do quick saves/ edits... Might just scrap this and look for one on the vBulletin forums after all Had a look and found the following: http://www.vbulletin.org/forum/showthread.php?t=171690 - Similar set up essentially. The option defines the date and the param is a 'default' "Countdown until" (obviously this can be changed, but its dummy text to please vB). Similarly, this one needs both an option and param: http://www.vbulletin.org/forum/showthread.php?t=38179 Could you work into the js that if the param is a null value, return "Countdown until: ", that way you'd just have to do [noparse][countdown="[date]"][/countdown][/noparse]? Edited September 5, 2013 by Ashley
Sheikah Posted September 4, 2013 Posted September 4, 2013 Cheers for the work on this guys, it is much appreciated.
Sheikah Posted September 19, 2013 Posted September 19, 2013 Did you manage to get this working by any chance?
Shorty Posted September 20, 2013 Posted September 20, 2013 Oh, Ashley edited his post with questions and suggestions, I thought he was just going to add one of those :p I can have a look tomorrow or we could just implement one of the pre-built ones listed up there ^ @Ashley ?
Ashley Posted September 21, 2013 Author Posted September 21, 2013 Yeah I was leaving it to you because of the js query and I ummm...forgot.
Sheikah Posted October 4, 2013 Posted October 4, 2013 Sooo :p. Not to sound like a nagging loser but did you guys manage to do this?
Ashley Posted November 14, 2013 Author Posted November 14, 2013 (edited) Well as it was a countdown, it felt right that we kept you waiting... Sorry, Shorty asked me to do this ages ago AND I DIDN'T. It's a bit of a fiddly one to do. The BB Code is 'countdown' and you have to do it like this: [noparse][countdown=<MM/DD/YYYY> <time AM/PM>; <Message once passed>]Count down:[/countdown][/noparse] So for example: [noparse][countdown=12/31/2020 5:00 AM;It is finally here]Count down:[/countdown][/noparse] [countdown=12/31/2020 5:00 AM;It is finally here]Count down:[/countdown] Or: [noparse][countdown=12/31/2012 5:00 AM;It is finally here]Count down:[/countdown][/noparse] [countdown=12/31/2012 5:00 AM;It is finally here]Count down:[/countdown] Note: It doesn't accept 24 hour time, it could probably be changed to DD, MM, YYYY but don't want to fiddle with the js in case I miss something and break everything. You have to refresh after posting. tl;dr its a bit balls but you wanted it Edited November 14, 2013 by Ashley
Diageo Posted November 14, 2013 Posted November 14, 2013 [countdown=11/16/2013 12:00 PM; Magnus is wrong!]Count down:[/countdown] until Magnus is wrong.* *Countdown may be off by 2 days or so.
The Peeps Posted November 14, 2013 Posted November 14, 2013 Or seeing as there's no 16th month, a few millennia? :p
Diageo Posted November 15, 2013 Posted November 15, 2013 Or seeing as there's no 16th month, a few millennia? :p What are you smoking. It ends on the 16/11/2013 but is written in MM/DD/YYYY. Do you see the date and not the countdown?
The Peeps Posted November 15, 2013 Posted November 15, 2013 I don't see a countdown at all but when I quote your post I can see the date is written as 11/16/2013. Didn't realise it had to be that way!
Diageo Posted November 15, 2013 Posted November 15, 2013 Well I can see a countdown. Summsrongwiffyoo
Magnus Posted November 15, 2013 Posted November 15, 2013 *Countdown may only exist in Diego's imagination.
Sheikah Posted November 15, 2013 Posted November 15, 2013 (edited) Well as it was a countdown, it felt right that we kept you waiting... Sorry, Shorty asked me to do this ages ago AND I DIDN'T. It's a bit of a fiddly one to do. The BB Code is 'countdown' and you have to do it like this: [noparse][countdown=<MM/DD/YYYY> <time AM/PM>; <Message once passed>]Count down:[/countdown][/noparse] So for example: [noparse][countdown=12/31/2020 5:00 AM;It is finally here]Count down:[/countdown] [countdown=12/31/2020 5:00 AM;It is finally here]Count down:[/countdown] Or: [noparse][countdown=12/31/2012 5:00 AM;It is finally here]Count down:[/countdown][/noparse] [countdown=12/31/2012 5:00 AM;It is finally here]Count down:[/countdown] Note: It doesn't accept 24 hour time, it could probably be changed to DD, MM, YYYY but don't want to fiddle with the js in case I miss something and break everything. You have to refresh after posting. tl;dr its a bit balls but you wanted it Thanks Ashley! Let's see if it works (can't seem to see one in Diageo's post)... [countdown=12/31/2013 5:00 AM;It is finally here]Count down:[/countdown] Can't seem to get it to work... Edited November 15, 2013 by Sheikah
Sheikah Posted November 15, 2013 Posted November 15, 2013 Weird that a lot of us don't see it. I use Chrome, if that helps.
Recommended Posts