Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Theme Site Themes => Topic started by: Xarcell on December 16, 2007, 10:53:38 AM

Title: XMas
Post by: Xarcell on December 16, 2007, 10:53:38 AM
Link to the theme (http://custom.simplemachines.org/themes/index.php?lemma=423)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcustom.simplemachines.org%2Fthemes%2Findex.php%2Faction%2Cdownload%2Flemma%2C423%2Fimage%2Cthumb&hash=918ece9ba6b3313b645efdbc2b38fed8736c9b7f)

This is a Christmas theme I created for a TP/SMF theme contest in 11-25-2007.

UPDATE: this theme has been updated for the year 2008(version1.4).



The Basics:
1.| XHTML compliant.
2.| Supports 800x600 and above resolution.
3.| Supports browsers: Firefox, Internet Explorer and more...
4.| Theme already supported only for SMF and TP 1.0+ (not TP .98).
5.| Comes with fullsite PSD uncut. [found in: XMass/images/body/]
6.| Modified: index view, board view, topic view, post view, profile view, and some images and icons.

Important files that it includes:
1.| index.template.php (obliviously)
2.| BoardIndex.template.php
3.| MessageIndex.template.php
4.| Display.template.php
5.| Profile.template.php
6.| style.css (obliviously)
7.| snow.js
8.| languages/Settings.english.php

Things that still need working:
1.| Bottom scrollbar in 800x600 resolution. Don't know the cause yet.
2.| Up/Down tabs have no border on the sides in IE. Don't know the cause yet.
3.| Header upshrink needs work...
4.| Due to my limited coding skills, the countdown script is limited to English, and the date must be updated yearly. If anyone can help with this, please PM me...

Other Options:
1.| If you don't like the board layout, just rename the "BoardIndex.template.php" file, or delete.
2.| If you don't like the message layout, just rename the "MessageIndex.template.php" file, or delete.
3.| If you don't like the topic display layout, just rename the "Display.template.php" file, or delete.
4.| If you don't want the snow effect (sometimes may lag), just rename the "snow.js" file, or delete.
5.| If you don't like the profile layout, just rename the "Profile.template.php" file, or delete.
6.| If you wish to lessen, or increase the amount of snow, changes are made in the snow.js file.
7.| If you wish you change the graphics and such for your "own site", you may. However you may not redistribute your modified version of this theme, or claim it as your own. You may add your own name credit, you can add: "Modified by: YOURNAME", beside of my name credit, for your "own site".

Modifications:
1.| The countdown script will need to be updated to the upcoming Christmas after Christmas day, 2007. As an approval promise to SMF, I will upload an updated theme using the countdown date 12-25-2008. However, you can make the changes yourself by following the structions given.

In the "index.template.php" file of the X-Mas theme,

FIND (around line 269):
// Christmas Countdown Script
echo '
<script type="text/javascript">

today = new Date();

BigDay = new Date("December 25, 2007")
msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (BigDay.getTime() - today.getTime());
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
e_hrsLeft = (e_daysLeft - daysLeft)*24;
hrsLeft = Math.floor(e_hrsLeft);
minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
document.write("There are only " + daysLeft + " days " + hrsLeft +" hours and " + minsLeft + " minutes left  Until December 25th 2007 (Christmas)");

</script>';


REPLACE WITH:
// Christmas Countdown Script
echo '
<script type="text/javascript">

today = new Date();

BigDay = new Date("December 25, 2008")
msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (BigDay.getTime() - today.getTime());
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
e_hrsLeft = (e_daysLeft - daysLeft)*24;
hrsLeft = Math.floor(e_hrsLeft);
minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
document.write("There are only " + daysLeft + " days " + hrsLeft +" hours and " + minsLeft + " minutes left  Until December 25th 2008 (Christmas)");

</script>';

Title: Re: XMas
Post by: jossanaijr on December 16, 2007, 11:09:02 AM
Does counting down use admin's time changes (to local time)?
Title: Re: XMas
Post by: oaqm on December 16, 2007, 08:05:26 PM
FINALLY! I didn't think this theme was going to make it this year.
Title: Re: XMas
Post by: Deaks on December 17, 2007, 02:19:49 AM
the theme didnt pass pass the guidlines fully ....


i do admit it is a wonderful theme
Title: Re: XMas
Post by: Antechinus on December 17, 2007, 02:53:30 AM
Hey that's great. I was thinking our forum needed a Christmas theme. Thanks Xarcell.
Title: Re: XMas
Post by: Apllicmz on December 17, 2007, 04:42:29 AM
nice Work
Title: Re: XMas
Post by: xyxis_fahim on December 17, 2007, 05:02:49 PM
Have to admit, It is the most professional looking  Xmax SMF theme till this day !!
Title: Re: XMas
Post by: Antechinus on December 17, 2007, 05:17:34 PM
Ok, got a question. Is it possible to edit the width of this theme in css?
I'd like to see a bit more of the blue background but I can't see any "wrapper" tags that'd adjust the width.
Title: Re: XMas
Post by: Xarcell on December 17, 2007, 05:34:58 PM
I updated the initial post with some more detailed theme information. Yes, it didn't meet the full SMF approval guidelines because of the countdown script. I hope to find a fix for this in teh future.

I really appreciate all of your kind comments. It's a bit encouraging, and I will consider creating more SMF themes, or try to update and release several that I already have for TP.

Thanks again everyone,

-X

Title: Re: XMas
Post by: Xarcell on December 17, 2007, 05:37:39 PM
Quote from: antechinus on December 17, 2007, 05:17:34 PM
Ok, got a question. Is it possible to edit the width of this theme in css?
I'd like to see a bit more of the blue background but I can't see any "wrapper" tags that'd adjust the width.

No, you cannot edit the width. I started out designing it that way, but it lead to many problems.
Title: Re: XMas
Post by: Rumbaar on December 17, 2007, 08:52:48 PM
Fantastic Christmas theme Xarcell.  This was certainly the best looking one in the competition, congrats.  I wondered why the download was ~1mb, then noticed the full .psd file (nice addition).  Maybe include that as a separate file to save on peoples downloads, just a thought.

Also the competition was on 11-25-2007, not 11-25-2008, miner but :P
Title: Re: XMas
Post by: Antechinus on December 18, 2007, 03:14:22 AM
Ok, I'm trying a few edits and it's driving me up the wall. Specifically I'm trying to alter the size of quoted text. Normally this would be simply a matter of changing "font-size: xxxx;" in the relevant code block, but this doesn't seem to work. 
I've changed it to normal, then to large. I've tried going 90%, 100% 105%, etc.
Nothing works. What gives?
Title: Re: XMas
Post by: Rumbaar on December 18, 2007, 03:19:48 AM
The code for that, like most themes on here, is found in the style.css.  Edit the following for the body of the quote.

/* A quote, perhaps from another post. */
.quote
{
color: #000000;
background-color: #D7DAEC;
border: 1px solid #000000;
margin: 1px;
padding: 1px;
font-size: x-small;
line-height: 1.4em;
}
Title: Re: XMas
Post by: Antechinus on December 18, 2007, 04:00:40 AM
That's precisely my point. That is the code block I'm editing but it doesn't seem to be having any effect.
Yes, I am saving the changes. This is why I'm confused. I'd expect it to work.
Title: Re: XMas
Post by: Antechinus on December 18, 2007, 04:13:15 AM
Is there any other code block that would override the one mentioned when it comes to quoted text?
Title: Re: XMas
Post by: wyrdgirl on December 18, 2007, 10:26:07 AM
Good job Xarcell! I've been anxious to get this theme installed!

One question - is there a way to keep the header expanded, in order to always show the link for unread topics, etc?

Thanks!
Title: Re: XMas
Post by: xyxis_fahim on December 18, 2007, 03:09:37 PM
Hey . any way to add another login to the top along with the bottom one?
Title: Re: XMas
Post by: suiko on December 19, 2007, 05:22:39 PM
any way to make it compatible with TinyPortal
Title: Re: XMas
Post by: Rumbaar on December 19, 2007, 06:02:47 PM
I think that request has been made on the TinyPortal forum as well, you can try and do it yourself via Crip Theme Converter (http://www.jr62.com/cripconvert.htm) page.
Title: Re: XMas
Post by: Xarcell on December 20, 2007, 10:37:03 AM
Quote from: suiko on December 19, 2007, 05:22:39 PM
any way to make it compatible with TinyPortal


I expect TinyPortal 1.0 to be released soon, but not before x-mas. When it doesn't, it will not need to be converted.

In the meantime, I will ask crip to convert it for me. As I do not have the time...
Title: Re: XMas
Post by: Xarcell on December 20, 2007, 09:34:14 PM
Quote from: suiko on December 19, 2007, 05:22:39 PM
any way to make it compatible with TinyPortal


http://www.tinyportal.net/index.php?topic=20826.0

There ya go...
Title: Re: XMas
Post by: suiko on December 21, 2007, 12:03:00 PM
awesome thanks Xarcell !!
Title: Re: XMas
Post by: Rumbaar on December 22, 2007, 08:19:41 PM
Hey Xarcell,

You might want to look at line 187 in Index.template.php
echo ' <div id="upshrinkHeader" ', empty($options['collapse_header']) ? 'style="display: none;"' : ' style="display: none;"', '>
Not sure why the second style setting is in there, but it causes MarkUp invalidation and the header to stay shrunk?
Title: Re: XMas
Post by: Xarcell on December 22, 2007, 09:59:10 PM
The collapse header doesn't work like it should. As mentioned in first post. It needs a bit of work...
Title: Re: XMas
Post by: Rumbaar on December 23, 2007, 04:26:35 AM
Well I'm sure if you revert it back to the original code of :
echo ' <div id="upshrinkHeader" ', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
It will fix that issue.
Title: Re: XMas
Post by: Xarcell on December 23, 2007, 05:43:22 PM
Always collapsed was intentional.
Title: Re: XMas
Post by: Rumbaar on December 23, 2007, 05:48:35 PM
Ah, I see.  Well if that is the case I was add a space in the front of the first call to that style at least.  With no space in there, it 'causes a slight issue with the parse.
echo ' <div id="upshrinkHeader" ', empty($options['collapse_header']) ? ' style="display: none;"' : ' style="display: none;"', '>
Title: Re: XMas
Post by: Xarcell on December 26, 2007, 11:10:44 PM
Thanks Rumbaar...
Title: Re: XMas
Post by: Xarcell on October 15, 2008, 12:08:35 PM
I have updated the theme for the year 2008.
Title: Re: XMas
Post by: geo on November 01, 2008, 09:25:02 AM
Quote from: Xarcell on October 15, 2008, 12:08:35 PM
I have updated the theme for the year 2008.
any chance on updating for smf 2.0?
Title: Re: XMas
Post by: Xarcell on November 01, 2008, 10:56:36 AM
I can, only the index.template.php file though.

I intend to create another Xmas theme for SMF 2.0, but I've lacked the time and inspiration. I haven't been happy with the ideas I've tried so far on the new theme.
Title: Re: XMas
Post by: geo on November 02, 2008, 09:03:57 PM
look foward to it,i used your halloween theme and everyone on forums liked it.
Title: Re: XMas
Post by: marchingelite2 on November 05, 2008, 05:00:48 AM
hi could you tell me how i can make the logo 1 size instead of it being split into 3

thanks
Title: Re: XMas
Post by: Han on November 08, 2008, 05:20:36 PM
Quote from: geo on November 01, 2008, 09:25:02 AM
Quote from: Xarcell on October 15, 2008, 12:08:35 PM
I have updated the theme for the year 2008.
any chance on updating for smf 2.0?
I'm hoping for a 2.0 version also!!!!!
Title: Re: XMas
Post by: chrisb on November 28, 2008, 04:59:26 AM
When i have been adding headers to the menu bar, They will not change green they are staying grey and will not change as well, How can i fix these issues

Title: Re: XMas
Post by: Linda.V on October 10, 2011, 08:19:37 AM
Quote from: Han on November 08, 2008, 05:20:36 PM
Quote from: geo on November 01, 2008, 09:25:02 AM
Quote from: Xarcell on October 15, 2008, 12:08:35 PM
I have updated the theme for the year 2008.
any chance on updating for smf 2.0?
I'm hoping for a 2.0 version also!!!!!
It's the first time I see this theme and find this very, very nice.
I'm also hoping you will update this for SMF 2.0.1
Title: Re: XMas
Post by: TheListener on October 22, 2011, 11:40:01 AM
Quote from: Linda.V on October 10, 2011, 08:19:37 AM
Quote from: Han on November 08, 2008, 05:20:36 PM
Quote from: geo on November 01, 2008, 09:25:02 AM
Quote from: Xarcell on October 15, 2008, 12:08:35 PM
I have updated the theme for the year 2008.
any chance on updating for smf 2.0?
I'm hoping for a 2.0 version also!!!!!
It's the first time I see this theme and find this very, very nice.
I'm also hoping you will update this for SMF 2.0.1

Very doubtful.