vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   BB Code Enhancements - Countdown BB Code (https://vborg.vbsupport.ru/showthread.php?t=171691)

MoT3rror 02-28-2008 10:00 PM

Countdown BB Code
 
Description

This is a countdown hack that allows users to put a custom countdown using BB Code.

Example:
Quote:

[countdown=12/31/2020 5:00 AM;It is finally here]Count down:[/countdown]
The countdown will count down till it reaches the date then it will show the text in the option after the date. The param is the text before the countdown.

The date is in the format of m/d/yyyy h:mm AM.
m is for month.
d is for day.
y is for Year with 4 digits like 2008 not 08.
h is for the hour.
The last m is for minute and needs to be 2 digits.
The AM can be AM or PM.

Features


* Processing is done by Javascript.
* There can be multiple countdowns on a page without effecting the other countdowns on the page.

Installation With Product


1. Upload everything in the upload folder.
2. Login to your Admin Control Panel
3. Go to Plugins & Products -> Manage products
4. Click on Add/Import product
5. Browse for product-countdown37.xml and click import.
6. Edit your headinclude template and put this code at the bottom.
Quote:

<!-- Begin Countdown Javascript code -->

<script type="text/javascript" src="clientscript/countdown.js"></script>

<!-- End Countdown Javascript code -->
Installation without Product
  1. Upload everything in the upload folder.
  2. Login to your Admin Control Panel
  3. Edit your headinclude template and put this code at the bottom.
    Quote:

    <!-- Begin Countdown Javascript code -->

    <script type="text/javascript" src="clientscript/countdown.js"></script>

    <!-- End Countdown Javascript code -->
  4. Create new BB Code with these settings.
    Title: Countdown (You can make this whatever you want)
    Tag: countdown
    Replacement:
    Code:

    <span id="cntdwn"></span>
    <script type="text/javascript">
    init_countdown("{param}", "{option}");
    </script>

    Example:
    Quote:

    [countdown=12/31/2020 5:00 AM;It is finally here]Count down:[/countdown]
    Use {option}: Yes

Version Changes
  • 1.1 Fix countdown only showing when using quick reply.

Mum 02-29-2008 01:12 AM

Installing it now!

Mum 02-29-2008 01:16 AM

Sorry, problem with this instruction
Quote:

6. Edit your headerinclude template and put this code at the bottom.
I can't find that template? I've done a search and manually looked and can't find it.

Mum 02-29-2008 01:16 AM

I can however find headinclude. Is it that one?

Mum 02-29-2008 01:25 AM

Woohoo! It's perfect!!! Thank you so much :)

Mum 02-29-2008 01:36 AM

Is there a way to remove the '.' after the seconds please? I'd rather it wasn't there for my particular usage.

Mum 02-29-2008 01:56 AM

Ok, have to uninstall for now. If i have it in my signature, and use Quick Post, every time you enter a message and hit post/ok (to submit the message) the next page it shows is the ticker countdown (blank page, with just the ticker code on it).

Can't wait for an update though to fix this!

G0F0RBR0KE 02-29-2008 02:40 AM

Very interesting. Can we see a screenshot of this?

MoT3rror 02-29-2008 03:52 AM

Quote:

Originally Posted by Mum (Post 1453328)
Ok, have to uninstall for now. If i have it in my signature, and use Quick Post, every time you enter a message and hit post/ok (to submit the message) the next page it shows is the ticker countdown (blank page, with just the ticker code on it).

Can't wait for an update though to fix this!


I notice soon after I release this. I will try to get a fix out for it soon but you should just be able to refresh your page and it should work.

Quote:

Originally Posted by EvilAkuma (Post 1453345)
Very interesting. Can we see a screenshot of this?

I added a screenshot.

G0F0RBR0KE 02-29-2008 04:31 AM

Actually, there is another one. I have it somewhere on my test forum running.


All times are GMT. The time now is 07:30 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
  • Page Generation 0.01182 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete