Ok I see, place the code back in socialbuttons and delete the code in countdownheader I adjusted this post viewtopic.php?p=13420#p13420
Extensions Database 3.2 / 3.3 / 4.0 ⇒ 4.0.x Countdown Header
-
dmzx
- Founder

- Posts: 6815
- Joined: Jan 13th, '14, 20:45
Re: Countdown Header
-
moffacostanzo
- Users

- Posts: 151
- Joined: Oct 30th, '15, 09:34
Re: Countdown Header
Thank you very much
-
caju
- Users

- Posts: 26
- Joined: Dec 2nd, '16, 20:32
Re: Countdown Header
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):
Any idea to fix this?
Kind regards,
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)Kind regards,
-
martin
- Admin

- Posts: 5144
- Joined: Apr 6th, '14, 14:12
-
caju
- Users

- Posts: 26
- Joined: Dec 2nd, '16, 20:32
Re: Countdown Header
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.
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.
-
martin
- Admin

- Posts: 5144
- Joined: Apr 6th, '14, 14:12
Re: Countdown Header
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
purge the boards cache and your browser this will make it run on the index only.
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 -->-
miri4ever
- Users

- Posts: 71
- Joined: Jan 22nd, '17, 14:39
Re: Countdown Header
I'm more having the problem the counter is display nowhere at any kind of style I'm testing.
-
Funny
- New user

- Posts: 126
- Joined: Mar 6th, '17, 15:39
Re: Countdown Header
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
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
-
Scrugio
- Users

- Posts: 2
- Joined: Aug 3rd, '17, 14:21
Re: Countdown Header
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
have changed the style using Hexagon style and all users can see is the numbers
-
martin
- Admin

- Posts: 5144
- Joined: Apr 6th, '14, 14:12
Re: Countdown Header
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
-
Scrugio
- Users

- Posts: 2
- Joined: Aug 3rd, '17, 14:21
Re: Countdown Header
Thanks will have a crack at it next week when im off work againmartin wrote: Aug 3rd, '17, 15: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
-
ivailo95
- Donator

- Posts: 945
- Joined: Feb 2nd, '18, 11:04
-
el torro
- Users

- Posts: 7
- Joined: Nov 25th, '14, 09:25
Re: Countdown Header
Hi, is it difficult to put the bar above the footer?
-
AHartenheer

