The Arcive of vBulletin Modifications Site. |
|
Countdown to Dates Plugin Details »»
|
||||||||||||||||||||||||||
Based on Sinclair's hack: https://vborg.vbsupport.ru/showthread.php?t=40557
I modified it to make it a plug-in for 3.6 + Usage: Users enter the code [countdown]y,m,d[/countdown] Example: [countdown]2007,12,25[/countdown] Christmas! ONLY ONE STEP: EASY! Go to your admin panel and CREATE NEW PLUGIN. - Hook Location: BBCODE_PARSE_COMPLETE - Enter this code in the PHP code box: Quote:
Show Your Support
|
||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
interesting stuff, will have to try it and see.
thanks. |
|
#3
|
||||
|
||||
|
Installed and working.
Just difficult to explain use as [countdown] still works inside [code] Thanks |
|
#4
|
||||
|
||||
|
how hard you think it is to make this a vba module?
|
|
#5
|
|||
|
|||
|
Small question, if I visit the thread where [countdown] has been used a few days later, will it then say instead of 14 days until October ... 12 days until october? Or is it a one time thing?
|
|
#6
|
|||
|
|||
|
When I go back to the thread at a later time, it stops working .. it becomes plaintext again. I think this mod is super alpha, and hasn't been fully tested, I am sorry .. but I feel I have to uninstall it right now and wait a few updates before using it again.
|
|
#7
|
||||
|
||||
|
I'm uninstalling too.
Sorry it's no good if it doesn't keep changing the countdown. |
|
#8
|
|||
|
|||
|
looks a good prospect i just use the sig countdown timer at the moment but will use this if it gets sorted
|
|
#9
|
|||
|
|||
|
can anyone provide a screeshot or demolink?
thank you |
|
#10
|
|||
|
|||
|
Why isn't this a bb-code? That would fix a lot of issues, and I would install it if it was.
Check out /includes/class_bbcode.php (particularly the end) for some ideas. You would make this a function and add it to the bbcode_create hook (trust me, don't use the bbcode_fetch_tags hook -- it would conflict with many mods). Then use the 'external_callback' field to connect the function to your bbcode. Oh, and you will need to disable post caching (even in your current code). Add to your bbcode function: $parser->options['cachable'] = false; |
![]() |
|
|