vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - [Scandal's] Countdown Timer BBCode (https://vborg.vbsupport.ru/showthread.php?t=319983)

Scandal 08-22-2015 09:00 PM

[Scandal's] Countdown Timer BBCode
 
1 Attachment(s)
Description
This product add two new BBCodes as follows:
Quote:

[COUNTDOWN]00:00:00:00[/COUNTDOWN]
... and
Quote:

[ECOUNTDOWN]00:00:00:00[/ECOUNTDOWN]
The string inside the BBCode is:
DAYS:HOURS:MINUTES:SECONDS, that you specify when make a post.

The results is a live countdown timer based on a specified Timezone! See screenshots!

But what's the difference between [COUNTDOWN] and [ECOUNTDOWN]?
COUNTDOWN has a start date-time, the date-time the item is posted.
As many times you edit the message, countdown timer will not change its start date.

ECOUNTDOWN is a countdown timer which will restart each time you edit a post! See it in action!


::EXAMPLE::

Quote:

Let's say you make a post at: 1:00PM with bbcode:
Quote:

[COUNTDOWN]00:02:00:00[/COUNTDOWN]

When the post saved, the countdown timer will start from:
00:02:00:00
and will countdown...
00:01:59:59...
00:01:59:58... etc
and will end at 3:00PM.

So the countdown timer will run at post time + the value you set inside the bbcode.
As times you edit the post, the countdown timer will end at 3:00PM 'cause is [COUNTDOWN], not [ECOUNTDOWN].



The same if at 1:00PM you make a post with bbcode:
Quote:

[ECOUNTDOWN]00:02:00:00[/ECOUNTDOWN]
.. but if for example you edit the post at 2:00PM and hit save, the countdown timer will start again:
00:01:59:59...
00:01:59:58... etc
... and will end at 4:00PM

So in "E" case, we have the edit time (if an edit exists, otherwise we have the initial post time) + the value you set inside the bbcode. As many times you edit a post with "E", the timer will start again.
This bbcode can work on display of:
  • Forum Posts
  • Forum Announcements
  • Social Group Messages
  • Private Messages
  • Profile Visitor Messages

Installation
1. Upload all files of /upload folder to your forum root.
2. Import *xml product and check Settings.
Done!!

Credits to akz645 on vbulletin.org for his idea and his paid support for the development of this product!!

akz645 08-23-2015 08:46 PM

Thanks for the Mod :)
Works on vBulletin 4.2.3

@Members
If the countdown timer is a few hours off from what you intended when you post, that means you have to adjust the timezone from the adminCP settings until it is correct.

Note:
I tried it on 2 different servers. One of them isn't very fast, so the timer often doesn't work properly- it shows sometimes when I refresh, but most of the times it doesn't. However, it did work most of the time on VM. I'm assuming that's because the thread has too many images (design/post heavy), so the timer stays stuck at 00:00:00:00 due to the server not processing the page cache correctly (something along those lines).
Edit: It turns out it was because I had activated cloudflare on my webhost, which doubled the cache of the entire forum. Hence that caused the entire forum to slow down/not load correctly.

However on my quicker webhost server, it worked without any problems. I doubt anybody here will have any problems, if you aren't a free user on a webhost. Just thought I'd mention it, incase somebody has this problem in the future.

Alan_SP 08-24-2015 12:04 PM

When you write about start time, do you mean end time, time when timer will reach end (ie. 00:00:00:00)?

Scandal 08-24-2015 12:55 PM

Quote:

Originally Posted by Alan_SP (Post 2553543)
When you write about start time, do you mean end time, time when timer will reach end (ie. 00:00:00:00)?

hmm yes,
let's say you make a post at: 1:00PM with bbcode:
Quote:

[COUNTDOWN]00:02:00:00[/COUNTDOWN]
When the post saved, the countdown timer will start from:
00:02:00:00
and will countdown...
00:01:59:59...
00:01:59:58... etc
and will end at 3:00PM.

So the countdown timer will run at post time + the value you set inside the bbcode.
As times you edit the post, the countdown timer will end at 3:00PM 'cause is [COUNTDOWN], not [ECOUNTDOWN].



The same if at 1:00PM you make a post with bbcode:
Quote:

[ECOUNTDOWN]00:02:00:00[/ECOUNTDOWN]
.. but if for example you edit the post at 2:00PM and hit save, the countdown timer will start again:
00:01:59:59...
00:01:59:58... etc
... and will end at 4:00PM

So in "E" case, we have the edit time (if an edit exists, otherwise we have the initial post time) + the value you set inside the bbcode. As many times you edit a post with "E", the timer will start again.

Hope now its more clear. :)

Bastien 08-24-2015 01:40 PM

If activated on my board, I can't post any new thread/post because the texatarea disappear (WYSIWYG mode activated !) :eek:

Scandal 08-24-2015 02:03 PM

Quote:

Originally Posted by Bastien (Post 2553552)
If activated on my board, I can't post any new thread/post because the texatarea disappear (WYSIWYG mode activated !) :eek:

Be sure you have upload all necessary files. There are an *xml product to import and a /upload folder, on the package with files. You do not upload the "upload" folder as it is, but its contents, to your forum root. :up:

Bastien 08-24-2015 02:42 PM

It seems Filezilla didn't upload the content whereas I asked it to do ...

Sorry for the unpleasantness and thank you for your answer :)
It works ;)

Scandal 08-24-2015 02:51 PM

Great!

No prob :)

SkepticalGaming 09-06-2015 07:37 PM

can i put any code into a forum block to work in there?

tim.liton 12-10-2015 11:46 AM

@scandal thank you for the great plugin. Is there a option to show the ecounter in the threads where are listed? This will be perfect!

Mangahaven 12-12-2015 12:15 AM

How much server impact does this have on CPU executions?

Mark.uG 12-12-2015 01:05 AM

When i post the timer i can see it counting down but no one else is this how it supposed to be everyone had permission to see it

Seems as it wont go across skins so if you have a site with multi skins it wont work for some reason.

tim.liton 12-13-2015 05:27 PM

I have made a ecounter to run for 10 days and STOPPED working after 2 days. Am adding now another ecounter but is not working anymore. I have not changed nothing. Someone else facing the same issue?

Just hitted the uninstall button is not worth to add something that is not supported.

akz645 12-13-2015 05:56 PM

Still works fine for me. (vBulletin 4.2.3 & 4.2.2).

Quote:

Originally Posted by tim.liton (Post 2560351)
I have made a ecounter to run for 10 days and STOPPED working after 2 days. Am adding now another ecounter but is not working anymore. I have not changed nothing. Someone else facing the same issue?

Just hitted the uninstall button is not worth to add something that is not supported.

I'll make a 11 day timer now (Ecountdown & Countdown) and see what happens.

tim.liton 12-15-2015 01:00 PM

Quote:

Originally Posted by akz645 (Post 2560353)
Still works fine for me. (vBulletin 4.2.3 & 4.2.2).



I'll make a 11 day timer now (Ecountdown & Countdown) and see what happens.

Any news?

akz645 12-15-2015 01:04 PM

Quote:

Originally Posted by tim.liton (Post 2560520)
Any news?

https://vborg.vbsupport.ru/external/2016/01/23.png
Wait for 11 days to pass lol.

Still working fine.

tim.liton 01-04-2016 12:19 PM

Quote:

Originally Posted by akz645 (Post 2560521)
https://vborg.vbsupport.ru/external/2016/01/23.png
Wait for 11 days to pass lol.

Still working fine.

Still working?

akz645 01-04-2016 04:26 PM

Quote:

Originally Posted by tim.liton (Post 2561931)
Still working?

Yes, it successfully hit 0.
https://vborg.vbsupport.ru/external/2016/01/20.png


I just created a new one, this time as the thread starter:
https://vborg.vbsupport.ru/external/2016/01/21.png

-------------

Make sure you have CloudFlare turned OFF.
That causes an issue with this Mod.


Note: If something goes wrong, I will report it here. Otherwise assume it is still working fine.

Edit: Still working fine.
https://vborg.vbsupport.ru/external/2016/01/22.png

tim.liton 01-11-2016 03:24 PM

Strange. No am not with cloud flare. I have installed the mod when SSL was installed in my domain but now I have remove SSL. Can this cause the outage?

Dave 01-11-2016 03:58 PM

One of the few plugins I use, useful to show an event countdown when you have users of all around the world.

IggyP 02-06-2018 02:38 AM

hmm...incompatible with cloudflare all together? really??
seems like a big and odd limitation...would be a great code to have tho if it works smoothly

Dude Mike 03-06-2019 04:32 PM

anyone have one that works on vb5?

I am being told That VB5 is a mistake. I spent over $400 on vb5 and have been getting told that I should not have bought it because VB5 is dead and no one is making mods for it. can't even get a simple countdown timer to work on it.


All times are GMT. The time now is 05:21 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.01287 seconds
  • Memory Usage 1,773KB
  • 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
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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