vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   countdown vb code (https://vborg.vbsupport.ru/showthread.php?t=49457)

Mutt 02-28-2003 12:06 AM

countdown vb code
 
1 Attachment(s)
I've seen several countdown hacks, but they all seemed like way too much. here's a simple countdown vb tag for ya. It requires 1 template edit.

the countdown tag displays the number of days until or since a given date. It displays the date by default but has the option of giving the day a name. it's smart enough to handle the date in many formats like Feb 27 2003 or Feb 27th 2003 or Feb 27, 2003 or February 27th, 2003, or .... ah you get the point

Rose 02-28-2003 12:49 AM

:s Sounds nifty - I've installed. But I'm not getting anything. I've added both "countdown" vBcodes as you stated and added the ...function... to the java tags in showthread template...

Maybe I'm not using it right?

Mutt 02-28-2003 01:29 AM

what do yo mena youa re getting nothing? blank post or you can see the tag and it isn't doing anything

Rose 02-28-2003 01:12 PM

I see nothing in the tags. I may be using it wrong, but i enter the following in a post:
Quote:

Test
[countdown]January 1 2004[/countdown]
I see the "test", obviously, as it's not in tags. But beyond that I see nothing. however, I'm unsure of whether my method of using the tag is wrong. Should it be something like:

[countdown=january 1 2004]January 1 2004[/countdown]

?

Mutt 02-28-2003 07:59 PM

no, you have it right but it sounds like the vb code is off. I'll check and see if i missed something. In the meantime, I changed it to a textfile. maybe it will work for you now

Rose 02-28-2003 08:41 PM

I'm getting a runtime error when I post (with the code)

7harmonicz 03-25-2003 05:59 PM

Same thing has happend to me.

Sadie Frost 04-10-2003 01:56 PM

works for me in 2.30 :)

leviw 04-24-2003 11:42 PM

Nice! Installed.

Any ideas on having it count minutes and possibly seconds as well? If needed, it could use only the first minute/second of that day, OR a specific time if that would be possible.

Usage could be: January 1 2004 14:01

wyzzor 05-16-2003 02:57 PM

thankx :)

xug 06-15-2003 03:53 AM

2 tags with the same title ?

VampireMan 06-19-2003 11:44 AM

I would like to suggest a mod for this , how about having the countdown appear in sig lines using public calendar events for the persons birthday.

I think it's possible , but have no idea how to do this.

Intex 06-19-2003 04:22 PM

Works great. Nice work Mutt.

zsmom 10-04-2003 03:40 PM

I see nothing in the tags as well. I would love to use this!

ashley53680 01-03-2004 02:46 PM

Okay I am working of 3.0.0 RC2... in the showthread there is no :
// -->
</script>

So where do I edit the showthread file on the 3.0.0 RC2?

Thanks!!

ashley53680 01-20-2004 07:13 PM

Also does anyone have it on their 3 Rc2?

VampireMan 01-20-2004 07:55 PM

in showthread template find

Code:

<td class="vbmenu_control" id="threadtools">
                <a href="#threadtools">$vbphrase[thread_tools]</a>
                <if condition="$vboptions['usepopups']"><script type="text/javascript"> vbmenu_register("threadtools");

add below the code as mentioned in the file. ignoring the //-->

and carry on following instructions .

It "should" work .. all of mine do

ashley53680 01-20-2004 08:55 PM

I couldn't find that code on my showthread...

is there another showthread?

I am looking in forum/showthread.php

VampireMan 01-20-2004 09:10 PM

it's not a php file -> it's a template in the admin cp

ashley53680 01-20-2004 09:29 PM

Okay... I am in the admincp... and I only have these options...

_vit_cnf
control_examples
importers

The rest are php files...

ashley53680 01-20-2004 09:30 PM

wait a sec... I think I know what's wrong.. DUH!

ashley53680 01-20-2004 09:37 PM

I got it, works perfectly!! THANKS GREAT CODE!!!!

ashley53680 01-28-2004 12:26 AM

Another question... the code is working fine... however is there anyway to switch from how many days.. to years, months, & days? (like some things say 730 days, I find that confusing to figure out! :lol: )

Boofo 01-28-2004 09:19 AM

Can someone post the exact instructions for adding this to RC3?


All times are GMT. The time now is 07:16 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.01079 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete