vb.org Archive

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

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.

ChurchMedia 02-29-2008 01:17 AM

It's installed and working. :) I put the countdown code in my signature. It shows up fine with "preview signature" but doesn't show up in my posts. Any ideas?

Thanks for the neat little mod!

lovelypk 02-29-2008 01:49 AM

I was looking for something like this.
thanks for this great mod

MoT3rror 02-29-2008 03:48 AM

Quote:

Originally Posted by ChurchMedia (Post 1453311)
It's installed and working. :) I put the countdown code in my signature. It shows up fine with "preview signature" but doesn't show up in my posts. Any ideas?

Thanks for the neat little mod!

Sorry, put the wrong template in the instructions. Did you add the code to your headinclude template?

ChurchMedia 02-29-2008 03:58 AM

I figured out the problem. I have another countdown mod in a CMPS module. I'll sort out the code and make it all work together. Thanks again!

projectego 02-29-2008 01:03 PM

/me clicks install. Thanks!

glenvw 02-29-2008 02:58 PM

Where do you upload the files you say to upload? Do we upload the entire folder called "clientscript" or just the java file?

MoT3rror 02-29-2008 07:09 PM

Quote:

Originally Posted by glenvw (Post 1453717)
Where do you upload the files you say to upload? Do we upload the entire folder called "clientscript" or just the java file?

There is a folder called upload that you upload to your main forum directory.

glenvw 02-29-2008 09:25 PM

Thanks, does this work in people's signatures?

MoT3rror 02-29-2008 10:29 PM

Quote:

Originally Posted by glenvw (Post 1454001)
Thanks, does this work in people's signatures?

Yes, this will work anywhere bb code is allowed.


All times are GMT. The time now is 02:52 PM.

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.01019 seconds
  • Memory Usage 1,739KB
  • 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