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.

John3971 03-01-2008 08:14 AM

thanks for this modification..

OrionsMom 03-10-2008 02:11 AM

This is very kewl I have been looking for something like this! I just have one question. I placed this in my signature box and it works fine when I am posting a thread or reply using the New Thread or Post Reply buttons. However if I use the quick reply box it does not show and bottom of browswer window says "done but with errors on page." If I refresh the page the timer then shows in my signature area and no error is noted in the browser window. Do you know why this happens or have a way to fix that minor issue?

MoT3rror 03-10-2008 04:25 AM

Quote:

Originally Posted by OrionsMom (Post 1461151)
This is very kewl I have been looking for something like this! I just have one question. I placed this in my signature box and it works fine when I am posting a thread or reply using the New Thread or Post Reply buttons. However if I use the quick reply box it does not show and bottom of browswer window says "done but with errors on page." If I refresh the page the timer then shows in my signature area and no error is noted in the browser window. Do you know why this happens or have a way to fix that minor issue?

Yeah I know about the issue but currently going through some crazy times at my website. When it starts to cool down again, I will fix it.

OrionsMom 03-10-2008 10:07 AM

kewl I look forward to the fix...hope things settle with your site soon ;) Let me note however that even with this minor error I am THRILLED to have this countdown and love how we can have more than one at a time. Many of my members are mothers of more than one child and now they can countdown to each ones birthday instead of just the next birthday! Thanks again!

MoT3rror 03-12-2008 09:59 PM

Version 1.1 has been released and includes the fix. Make sure to reupload all the files including the mod in the Admin CP.

OrionsMom 03-13-2008 01:24 PM

Do I need to uninstall the other one first? I uploaded the clientscript to the clientscript file, uploaded the xml file and copied and pasted that same text into head includes area. Now it shows the countdown but no text telling what I am counting down to and still does not show on quick reply. What did I do wrong or is something missing from the zip file?

OrionsMom 03-13-2008 01:31 PM

reverting back to 1.0 for now just so we know what we are counting down to.

OrionsMom 03-13-2008 01:32 PM

BTW I did uninstall and then re-install it still did not fix the issue so not sure what happened.

MoT3rror 03-13-2008 09:09 PM

Quote:

Originally Posted by OrionsMom (Post 1463807)
BTW I did uninstall and then re-install it still did not fix the issue so not sure what happened.

Compare your BB code setup to the instructions that was just added.

Xanlamin 03-14-2008 12:23 AM

Tagged for reference....been looking for something like this, will come in handy for alot of aspects on two sites I run for gaming.

Zebra 03-21-2008 07:34 AM

Great it works, but what must i do with "Use {option}: Yes" ?

Jikdor 03-21-2008 04:03 PM

Cool, thanks. Installed.

MoT3rror 03-22-2008 06:21 PM

Quote:

Originally Posted by Zebra (Post 1470501)
Great it works, but what must i do with "Use {option}: Yes" ?

That is a option when you add BB Code. You must set this to yes.

imported_martyjp 03-23-2008 11:20 PM

Great idea and installed with out any issues. Unfortunately didnt really work on my site as have members from all over the world so the countdowns didnt really work as it is done from the users pc time :(

maidos 04-10-2008 12:35 PM

how does it really work, i mean theres different timezones

Bounce 04-10-2008 06:15 PM

Is it possibly to add the username of the user and what he/she is counting down too?

{user} is counting down: to his birthday 7 days 4 hours 7 secs :erm:

MoT3rror 04-12-2008 04:14 AM

Quote:

Originally Posted by hIBEES (Post 1487672)
Is it possibly to add the username of the user and what he/she is counting down too?

{user} is counting down: to his birthday 7 days 4 hours 7 secs :erm:

The user can put whatever text in from of the countdown and when the countdown is over.

Does that answer your question?

Mum 05-05-2008 01:09 AM

Who's timezone does this use? The member currently viewing? Or the timezone of the board?

MoT3rror 05-11-2008 02:55 AM

Quote:

Originally Posted by Mum (Post 1508797)
Who's timezone does this use? The member currently viewing? Or the timezone of the board?

The timezone of the current user's machine.

sdavis2702 05-24-2008 09:56 AM

I really like this hack. I have installed it and I am using it... only thing is... I'm concerned with my member. How will they know what format to put the information in? I can ofcourse make a thread or something but they won't all be able to see that. Any suggestions? Or am I missing something?

Mum 05-25-2008 06:55 AM

I have uninstalled this. It doesn't matter what you write on [countdown=12/31/2020 5:00 AM;It is finally here]THIS SPACE[/countdown] - it doesn't show :(

LisaJH 05-27-2008 02:14 PM

I have to click uninstall aswell.. because it shows in preview siggy but it wont show up in posts???

RickyG 06-26-2008 10:34 PM

How can this be used in the header and not in sig? I am looking to have the timers on the frontpage to advertise an event.

RickyG

MoT3rror 06-28-2008 01:29 AM

Quote:

Originally Posted by RickyG (Post 1559957)
How can this be used in the header and not in sig? I am looking to have the timers on the frontpage to advertise an event.

RickyG

This mod was based off of this. You can use that on any page through the template system or on another page. The mod was made to be used as bb code not as something to add on to a template or page.

RedTrinity 06-29-2008 01:46 AM

Works great here, thanks :)

Daisyboo 08-28-2008 07:40 AM

Doesn't show for me either :(

bananalive 08-28-2008 01:09 PM

Does this take into account time zones?

For instance if I'm in America and another user is in New Zealand will they count down to same time despite the time differences?

Cheers

Cigarcritic 08-29-2008 04:31 AM

This is incomplete, text does not work and there is no child.

lenzo 02-06-2009 06:33 PM

Can you write better instructions about what the following and what the parameters do?

Code:

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

Your description is vague and it seems a lot of people are confused by this. I understand that {option} is set to "Yes", but what do we put in the {param} part? Or do we even need this?

An actual example code with the fields put in there would be great...

xyzmary2001 07-17-2009 01:11 PM

Anyone knows if it still works on vBulletin 3.8.2?


All times are GMT. The time now is 05:50 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.01405 seconds
  • Memory Usage 1,818KB
  • 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
  • (2)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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