![]() |
Countdown to Dates Plugin
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:
|
interesting stuff, will have to try it and see.
thanks. |
Installed and working.
Just difficult to explain use as [countdown] still works inside [code] Thanks |
how hard you think it is to make this a vba module?
|
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?
|
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.
|
I'm uninstalling too.
Sorry it's no good if it doesn't keep changing the countdown. |
looks a good prospect i just use the sig countdown timer at the moment but will use this if it gets sorted
|
can anyone provide a screeshot or demolink?
thank you |
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; |
All times are GMT. The time now is 01:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|