News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Christmas '07

Started by Rumbaar, December 07, 2007, 07:31:43 PM

Previous topic - Next topic

Rumbaar

Link to the theme


A basic Christmas styled theme.  Includes a countdown to Christmas Day.

Built in TinyPortal 0.9.8 mod support, just be sure to activate that option in current theme settings for TP mod forums.  Blank menu button/s file (PSD) available.

NOTE: For the countdown to work the theme must be installed in it's default folder (Christmas_07).  If you install it in another folder you need to edit the include() line found in Index.template.php to point to the new folder name.

Translated buttons: Turkish

Live demo available here.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

nick09

hehe its time to get into the Christmas spirit  :P

Rumbaar

Ba Humbug! :D

I'll try to get a demo site up (if required) for both SMF and TP versions.



Screenshot SMF

Screenshot TinyPortal
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Rumbaar

I found a mistake already.  If you are the first 20 or so to download this theme, just before this time/date stamp of this post, please download the updated version or make the manual additions/modifications.

On line 527 (616 for TinyPortal version) (had $txt[12] instead of $txt[2] of index.template.php
Replace:
<a href="', $scripturl, '?action=admin">', $current_action == 'admin' ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_on.gif" border="0" height="23" width="70"  alt="' . $txt[2] . '" title="' . $txt[2] . '" />' : '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_off.gif" border="0" height="23" width="70"  alt="' . $txt[2] . '" title="' . $txt[12] . '" />', '</a>';

with
<a href="', $scripturl, '?action=admin">', $current_action == 'admin' ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_on.gif" border="0" height="23" width="70"  alt="' . $txt[2] . '" title="' . $txt[2] . '" />' : '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_off.gif" border="0" height="23" width="70"  alt="' . $txt[2] . '" title="' . $txt[2] . '" />', '</a>';

I missed out the Modification.English.php file for the TinyPortal version:
<?php
include('./Themes/default/languages/Modifications.english.php');
// Version: 1.1; Modifications

$txt['forum'] = 'Forum';
?>


I'd suggest download fresh install.  This way your error log wont fill up :)  Sorry about that.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Black Dragon

!!SMF RULEZ!!

chrisb

Hi all,

I have installed this module & it works , but its not show the buttons in the forum.

Here is the link to the forum

www.yourlifetimeofmemories.com/forum

Rumbaar

#6
This theme uses the forums or users language settings, and as default only supports 'plain' English.  I notice your site is set to English-utf8, set your forums default language to 'plain' English via the Server Settings and it should be find.  You also might have to make sure your account settings are set to 'plain' English.

Most times if there is English and English-utf8 installed in the account settings you get two English entries, you'll need to find the correct entry.  Or the best option is to disable user allowed language settings in your 'Features and Options'.

Option three is to copy the whole English folder to English-utf8 folder, but I wouldn't go down this avenue.  As most other mods only install to English and you'll be having to do this too often.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

chrisb

Also how do you change the time for EST in Australia & change the Date format to the other way around


12/25

Need to be

25/12

Rumbaar

I'm not 100% sure, but the time is set via the host servers time.  If it's not set to local time I'm not sure, but you can try to adjust the time to include an offset

In the php.countdown.php

Find:
$now = time();
change too
$now = time() + (XXseconds);
Where the offset is in seconds
1hour = 60X60
4hours = 60X60X4

For 'proper' date format, try:
Find:
$fnow = date("H:i:s n/j/y", $now); // now in format: hour:minute:second month/day/year
if (date("Y", $then) != date("Y")) {
$fthen = date("H:i:s n/j/y", $then); // then in same format
} else {
$fthen = date("H:i:s n/j", $then); // then in same format
}

and change to:
$fnow = date("H:i:s j/n/y", $now); // now in format: hour:minute:second month/day/year
if (date("Y", $then) != date("Y")) {
$fthen = date("H:i:s j/n/y", $then); // then in same format
} else {
$fthen = date("H:i:s j/n", $then); // then in same format
}
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

remixeados

Hello I am trying to install the Christmas07, but I cast the following error message

Fatal error: Call to undefined function: printcountdown() in /home/admrmx/public_html/foro/Sources/Load.php(1726) : eval()'d code on line 396

smf 1.1.4

please

Rumbaar

How did you install the Theme?

If it's not in the default folder it's configured to install in, then you need to alter the following line in Index.template.php
<?php
include('./Themes/Christmas_07/php.countdown.php');
// Version: 1.1; index

If that doesn't work try using the complete path to where the php.countdown.php file is inside the theme.

Maybe:
include('/home/admrmx/public_html/foro/Themes/{your current installed theme folder}/php.countdown.php');
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Apllicmz




Rumbaar

Why, thank you very much.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

remixeados

In index.template the theme of Christmas? Or in default? Help me please

Rumbaar

In the Index.template.php file found in the the folder where you installed the Christmas 07 theme.  But if you just install the theme via the 'Install theme' manager, it should have put it all in the correct locations.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

SgtMic

Got this trying to upload via package manager.

"The package you tried to upload either is not a valid package or has become corrupted."

There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Rumbaar

Did you try to download it direct from inside the package manager (theme manager) or direct download from the customize section here?

I'll guess you tried the direct way, try to download it from here (link at top) and save it onto your computer.  Then choose to install a new theme while browsing that file from your computer.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

ExpatLair

This is an awesome theme and my forum loves it. Just one teeny teeny thing.......... There is no reply to all button in messages.


Is it possible to have that button, please??

Rumbaar

Hi ExpatLair, thx glad they love it :)  It's always satisfying to know at least someone enjoys your work :)

I'm not sure exactly what you mean, can you take a screenshot of a current theme that has it so I can't get an accurate picture of what you are talking about.  I can't think of where a 'reply to all' button would go.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

ExpatLair

hxxp:smg.photobucket.com/albums/v143/Tareshen/?action=view&current=screenap1.jpg [nonactive]


I hope this makes it clearer for you.

And thanks once again.

Advertisement: