[Beta] Xmas Counter

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
Locked
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

[Beta] Xmas Counter

Post by ChriZathens » Wed Dec 16, 2009 6:32 pm

MOD Title: Xmas counter
MOD Description: Adds a counter in your forum which displays how many days are left until Christmas.
Messages displayed:
Before Xmas --> How many days are left
At Xmas day --> Merry Xmas
After Xmas --> Happy holidays
(All messages are in the language files, so you can eventually have any message you like) The javascript code is very easy to alter so that you can also use it for New Year's eve, or even for next Easter :)
MOD Version: 0.0.1
MOD Download: Xmas Counter
Demo: Demo board
Additional info: The javascript code is from http://www.javascriptkit.com/script/scr ... irth.shtml
I altered it a bit to become XHTML 1.0 strict and multilingual
phpbb version: 3.0.6
Last edited by ChriZathens on Wed Dec 16, 2009 11:58 pm, edited 1 time in total.
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [Beta] Xmas Counter

Post by darkonia » Wed Dec 16, 2009 6:43 pm

a demo or screenshot?
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: [Beta] Xmas Counter

Post by ChriZathens » Wed Dec 16, 2009 11:58 pm

I added a link for a demo board in the first post.. ;)
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [Beta] Xmas Counter

Post by stokerpiller » Fri Dec 18, 2009 1:39 pm

Hi ChriZathens,

Nice idea.
Just hate to break this to you...
Christmas is on 24. december :D
I am done with phpBB

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [Beta] Xmas Counter

Post by RMcGirr83 » Fri Dec 18, 2009 1:49 pm

stokerpiller wrote:Christmas is on 24. december :D
Wrong!! XMas is December 25th. Always has been and always will be.

http://www.calendardate.com/christmas_day.htm

Unless you denmark types celebrate XMas on the 24th unlike the rest of the world. :P
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [Beta] Xmas Counter

Post by marian0810 » Fri Dec 18, 2009 8:01 pm

Nice :D Can it be set to count minutes and seconds for counting down to New Year?
You and me, time and space. You watch us run!

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: [Beta] Xmas Counter

Post by ChriZathens » Fri Dec 18, 2009 11:53 pm

stokerpiller wrote:Hi ChriZathens,

Nice idea.
Just hate to break this to you...
Christmas is on 24. december :D
Heh, since my name is Chris and I have my nominal feast (is this how it is translated in English???) at that day, I ensure you that I have been always celebrating it on the 25th of December... :P
But you can modify the javascript, and make it count for any day.. :P
marian0810 wrote:Nice :D Can it be set to count minutes and seconds for counting down to New Year?
This one, no...
But you can open header_count.html and replace the javascript with the following (just found it on a quick search - not tested)

Code: Select all

<script type="text/javascript">
TargetDate = "12/31/2010 00:00 AM";
BackColor = "palegreen";
ForeColor = "navy";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds until new Years eve!";
NewYearMessage = "Happy New Year 2010!";
</script>
:D
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

danielnguyen
Registered User
Posts: 287
Joined: Thu Jan 24, 2008 11:44 am
Location: Vietnam
Contact:

Re: [Beta] Xmas Counter

Post by danielnguyen » Mon Dec 21, 2009 5:03 pm

Nice idea! Thanks :)
My forum, for just teen only with many happy things
Cộng Đồng Teen Online - Cộng Đồng Teen Việt - Teen Việt Nam
Hội Ngộ - Giao Lưu - Học Hỏi - Giải Trí - Kết Bạn
http://www.congdongteenonline.net

User avatar
jpcatherine
Registered User
Posts: 37
Joined: Sun Feb 22, 2009 11:44 am

Re: [Beta] Xmas Counter

Post by jpcatherine » Sat Dec 26, 2009 7:58 am

how about for new year?

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: [Beta] Xmas Counter

Post by ChriZathens » Sun Dec 27, 2009 6:25 pm

In header_count.html you can replace

Code: Select all

var theoccasion=new Date(today.getFullYear(), 12, 25)
with

Code: Select all

var theoccasion=new Date((today.getFullYear()+1), 1, 1)
and change the language accordingly in common.php
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

Locked

Return to “[3.0.x] MODs in Development”