Countdown to Christmas / Newyear

Status
Not open for further replies.

Vincent_imported

Trusted Member
Dec 1, 2010
747
0
100
28
Belgium
www.hlxbans.net
[Notice: This release has been discontinued]

Countdown to Christmas:

Hello y'all.

I thought I'd create a countdown until christmas to add at your forum, so I did it :)

Here's a preview:
http://www.hlxbans.net/

How to install?
Go to the template called: PAGE_CONTAINER

Before
Code:
<!-- top breadcrumb, top ctrl -->

Add:
Code:
	<p class="importantMessage">
		<script type="text/javascript">
		TargetDate = "12/25/2010 0:00 AM";
		BackColor = "#fff4e5";
		ForeColor = "#a51c0e";
		CountActive = true;
		CountStepper = -1;
		LeadingZero = true;
		DisplayFormat = "%%D%% days, %%H%% hours, %%M%% minutes and %%S%% seconds remaining until christmas!";
		FinishMessage = "The Staff wishes everyone a merry christmas and a happy newyear!";
		</script>
<script type="text/javascript" src="/js/xenforo/countdown.js"></script>
	</p>


And upload the attached script (source, and yes, I got permission) to forum_root/js/xenfor:wave:

Countdown to Newyear:
Hello y'all.
This is a remake of my "Countdown to Christmas" modification because some people just don't celebrate christmas.
Here's a preview (of the Christmas version):
http://www.hlxbans.net/
How to install?
Go to the template called: PAGE_CONTAINER
Before
Code:
<!-- top breadcrumb, top ctrl -->
Add:
Code:
	<p class="importantMessage">
		<script type="text/javascript">
		TargetDate = "01/01/2011 0:00 AM";
		BackColor = "#fff4e5";
		ForeColor = "white";
		CountActive = true;
		CountStepper = -1;
		LeadingZero = true;
		DisplayFormat = "%%D%% days, %%H%% hours, %%M%% minutes and %%S%% seconds remaining until 2011!";
		FinishMessage = "The Staff wishes everyone a happy newyear!";
		</script>
		<script type="text/javascript" src="/js/xenforo/countdown.js"></script>
	</p>

And upload the attached script (source, and yes, I got permission) to forum_root/js/xenfor:wave:
 

Attachments

  • js.zip
    1.4 KB · Views: 10
  • Like
Reactions: 3 people

ragtek

OMG Member
Jul 4, 2007
149
0
55
39
Code:
<script language="JavaScript">

This should be
Code:
<script type="text/javascript">

2. you should use a object for your "custom value"
Code:
TargetDate = "01/01/2011 0:00 AM";
		BackColor = "#fff4e5";
		ForeColor = "white";
		CountActive = true;
		CountStepper = -1;
		LeadingZero = true;
		DisplayFormat = "%%D%% days, %%H%% hours, %%M%% minutes and %%S%% seconds remaining until 2011!";
		FinishMessage = "The Staff wishes everyone a happy newyear!";
instead of having tons of global variables, it's much cleaner and better;)
 

Vincent_imported

Trusted Member
Dec 1, 2010
747
0
100
28
Belgium
www.hlxbans.net
Code:
<script language="JavaScript">

This should be
Code:
<script type="text/javascript">

2. you should use a object for your "custom value"
Code:
TargetDate = "01/01/2011 0:00 AM";
		BackColor = "#fff4e5";
		ForeColor = "white";
		CountActive = true;
		CountStepper = -1;
		LeadingZero = true;
		DisplayFormat = "%%D%% days, %%H%% hours, %%M%% minutes and %%S%% seconds remaining until 2011!";
		FinishMessage = "The Staff wishes everyone a happy newyear!";
instead of having tons of global variables, it's much cleaner and better;)
Wow, what a coïncidence, I was just validating my XenForo and I just fixed that too :)

But yeah, you're right ;)
 
Status
Not open for further replies.