3.1 & 3.2 & 3.3 Extensions Database 3.1 / 3.2Countdown Header

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Countdown Header

Post by dmzx »

moffacostanzo wrote: 19 Dec 2016, 12:37 first.JPG

ok function but i see it in this mode
Ok I see, place the code back in socialbuttons and delete the code in countdownheader I adjusted this post Countdown Header

User avatar

moffacostanzo
Users
Users
Posts: 151
Joined: 30 Oct 2015, 10:34
    Windows 7 Firefox

Re: Countdown Header

Post by moffacostanzo »

Thank you very much

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Countdown Header

Post by dmzx »

First post updated

User avatar

caju
Users
Users
Posts: 26
Joined: 02 Dec 2016, 21:32
    Mac OS X Chrome

Re: Countdown Header

Post by caju »

Hello dmzx, thanks for this great extension :)

After updating to 1.0.2, when I try to enable the countdown, I get the following error in my javascript console (Google Chrome):

Code: Select all

jquery.min.js:2
Uncaught Error: Method 1494428400000 does not exist in the jCountdown Plugin
    at Function.error (jquery.min.js:2)
    at n.fn.init.a.fn.countdown (eval at <anonymous> (index.php:1), <anonymous>:1:4783)
    at HTMLDocument.<anonymous> (index.php:1936)
    at j (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at Function.ready (jquery.min.js:2)
    at HTMLDocument.K (jquery.min.js:2)
Any idea to fix this?

Kind regards,

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Ubuntu Chrome

Re: Countdown Header

Post by martin »

What other ext's are you using that has jquery in ? ie any other conters.
Image

User avatar

caju
Users
Users
Posts: 26
Joined: 02 Dec 2016, 21:32
    Mac OS X Chrome

Re: Countdown Header

Post by caju »

Good guess!! :)

Just searched for extensions with "count" on name, and realized that the one called "Member time counter" was the culprit.

Thanks, martin, for the guess.

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Ubuntu Chrome

Re: Countdown Header

Post by martin »

If you want to run both ext's do this

open /ext/dmzx/countdownheader/styles/prosilver/template/event/overall_footer_after.html
Now replace the code in the file with this

Code: Select all

<!-- IF SCRIPT_NAME == "index" and COUNTDOWNHEADER_ENABLE -->
<!-- INCLUDEJS jquery.jcountdownheader.min.js -->
<script type="text/javascript">
	$(function() {
		var $timerBox = $('#countdown-timer');
		$timerBox.html('<span class="timer-big"></span><span class="timer-small"></span>');
		var $timerBig = $timerBox.find('.timer-big');
		var $timerSmall = $timerBox.find('.timer-small');
		var number = '';
		var unit = '';

		var utc = new Date('{COUNTDOWNHEADER_DATE}').getTime();

		$timerBox.countdown(utc).on('update.countdown', function(event) {
			if (event.offset.totalDays > 0) {
				number = event.strftime('%D');
				unit = '{LA_COUNTDOWNHEADER_COUNT_DAYS}';
			} else if (event.offset.hours > 0) {
				number = event.strftime('%H');
				unit = '{LA_COUNTDOWNHEADER_COUNT_HOURS}';
			} else if (event.offset.minutes > 0) {
				number = event.strftime('%M');
				unit = '{LA_COUNTDOWNHEADER_COUNT_MINUTES}';
			} else if (event.offset.seconds > 0) {
				number = event.strftime('%S');
				unit = '{LA_COUNTDOWNHEADER_COUNT_SECONDS}';
			}
			$timerBig.html(number);
			$timerSmall.html(unit);
		}).on('finish.countdown', function() {
			$timerBig.html('{COUNTDOWNHEADER_TEXT_BIG}');
			$timerSmall.html('{COUNTDOWNHEADER_TEXT_SMALL}');
			$timerBox.attr('href', '{COUNTDOWNHEADER_URL}');
		});

		$timerBox.show();
	});
</script>
<!-- ENDIF -->
purge the boards cache and your browser this will make it run on the index only.

User avatar

miri4ever
Users
Users
Posts: 71
Joined: 22 Jan 2017, 15:39
    Windows 10 Opera

Re: Countdown Header

Post by miri4ever »

I'm more having the problem the counter is display nowhere at any kind of style I'm testing.

User avatar

Funny
New user
New user
Posts: 126
Joined: 06 Mar 2017, 16:39
    Windows 10 Chrome

Re: Countdown Header

Post by Funny »

Hi
I use the XMAS counter because you can adjust a whole lot.
The counter header I have also installed but prefer the XMAS

mg Funny :eyes2:

User avatar

Scrugio
Users
Users
Posts: 2
Joined: 03 Aug 2017, 16:21
    Windows 10 Chrome

Re: Countdown Header

Post by Scrugio »

Is it possible to add an option in configeration to change the colours ?

have changed the style using Hexagon style and all users can see is the numbers

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Countdown Header

Post by martin »

Its default for prosilver but you can add a folder in styles call All and then a theme folder then a css file for it and copy the porsilver css into it then change the colours to your liking

User avatar

Scrugio
Users
Users
Posts: 2
Joined: 03 Aug 2017, 16:21
    Windows 10 Chrome

Re: Countdown Header

Post by Scrugio »

martin wrote: 03 Aug 2017, 17:34 Its default for prosilver but you can add a folder in styles call All and then a theme folder then a css file for it and copy the porsilver css into it then change the colours to your liking
Thanks will have a crack at it next week when im off work again

User avatar

ivailo95
Users
Users
Posts: 918
Joined: 02 Feb 2018, 12:04
    Windows 7 Opera

Re: Countdown Header

Post by ivailo95 »

Image
Feed like a disease
And bring them to their knees
They'll pay for their deceit

User avatar

el torro
Users
Users
Posts: 7
Joined: 25 Nov 2014, 10:25
    Ubuntu Firefox

Re: Countdown Header

Post by el torro »

Hi, is it difficult to put the bar above the footer?


Hartenheer
    Windows 10 Chrome

Re: Countdown Header

Post by Hartenheer »

el torro wrote: 25 Feb 2018, 20:00 Hi, is it difficult to put the bar above the footer?

That was why I downloaded it. phpBB Countdown
He did have the option, but is now gone

Post Reply Previous topicNext topic