Colorful Calendar Frames v1.1.2
----------------------------------------------------------------------------------------------------------------------------------------------------
Author: Nas (http://www.simplemachines.org/community/index.php?action=profile;u=143954) Versions: 2.0 RC3, 1.1.x Available since: April 26 '09 Latest version: 1.1.2 (Mars 16 '10)
Introduction
This mod will add a frame around the calendar. The color depends on what month it is.
Colors can be changed by editing the arrays in Calendar.php.
Nice Nas.
Now, make it for 1.1.8 :)
Not sure who is giving you such a good idea for all mods.
Really different mods on smf.
Thanks guys.
I got the idea when looking at my own calendar hanging on the wall. I noticed how it was colored. :)
I might do it for 1.1.8, JB. :)
Please do it for smf 1.1.8!
Quote from: Nas on May 06, 2009, 01:55:56 PM
I might do it for 1.1.8, JB. :)
No, you
WILL do it for 1.1.8 :P
/me throws Nas
Quote from: JBlaze on May 06, 2009, 03:51:16 PM
Quote from: Nas on May 06, 2009, 01:55:56 PM
I might do it for 1.1.8, JB. :)
No, you WILL do it for 1.1.8 :P
/me throws Nas
/me
WILL do it for 1.1.8
/me HAS done if for 1.1.8
Now isn't that purdy 8)
And, it looks like you can customize the colors.
Wonderful, I like the colors.
:)
Quote from: Tiribulus on May 09, 2009, 11:32:57 PM
And, it looks like you can customize the colors.
The colors are set in ./Sources/Calendar.php.
Quote from: akaiphan on May 10, 2009, 12:03:25 AM
Wonderful, I like the colors.
:)
Thanks.
Quote from: Nas on May 10, 2009, 02:08:09 AM
Quote from: Tiribulus on May 09, 2009, 11:32:57 PM
And, it looks like you can customize the colors.
The colors are set in ./Sources/Calendar.php.
Yep, that's what I was seeing. BTW, this integrates beautifully, at least for me, with the enhanced calendar mod in 1.1.8.
How come your whole calendar lights up?
If you're talking to me, what do you mean ???
Quote from: Tiribulus on May 11, 2009, 11:56:00 AM
If you're talking to me, what do you mean ???
I mean it is green all around instead of just the border
That's the look my whole theme has. I changed the CSS to match. I think. :) The colors are how my wife likes em.
I'll probably play with the colors in this mod as well when I get a chance later.
Oh ok!
Will this work on any theme?
I don't know why it wouldn't
Hi Tribulus.
I had a go and had success. Could do with a thinner frame tho.
<div style="padding: 3px;">', theme_linktree(), '</div>
<div style="align: center; background: #', $context['color'][$context['current_month']], ' url(\'',$settings['images_url'].'/fade.png\') repeat-x; padding: 30px; border: 3px solid #', $context['border'][$context['current_month']], '; -moz-border-radius: 30px; -webkit-border-radius: 30px;">
Find the above code in your themes/default/calendar.template.php file and change the numbered value for padding. Now it's at 30px. The lower the number the smaller the frame.
Awesome! ^^
I love this mode! Specialy now that i know how to personalize it!
And JBlaze... I love you nickname! xDD
fade.png is located inside of the package on the mod site.
Quote from: Nas on June 14, 2009, 06:09:06 AM
fade.png is located inside of the package on the mod site.
Ok Nas. I installed the mod. No errors except when I click the tab, Calender. The screen just goes blank. Shall I attach my calender.php or calendar.template.php?
Both please..
Did you first make the manual edits and then installed it via packagemanager?
Quote from: Nas on June 14, 2009, 06:12:40 AM
Both please..
Did you first make the manual edits and then installed it via packagemanager?
No. It said Both calender.php and calender.template.php were test successful. Dunno why. I attached my calendar.php and calendar.template.php
// Colors
$context['color'] = array(
'1' => '607fc6',
'2' => '607fc6',
'3' => 'f6f872',
'4' => 'f6f872',
'5' => '9bf36b',
'6' => '9bf36b',
'7' => '529d29',
'8' => '529d29',
'9' => 'e0a636',
'10' => 'e0a636',
'11' => '5f2513',
'12' => '5f2513',
);
// Borders
$context['border'] = array(
'1' => '53699a',
$context['linktree'][] = array(
'url' => $scripturl . '?action=calendar;year=' . $context['current_year'] . ';month=' . $context['current_month'],
'name' => $txt['months'][$context['current_month']] . ' ' . $context['current_year']
);
Something went very wrong with the borders.
Try the attached file and see what happens.
Thanks. It works. Except, there is a v in the top corner of my forum. The forum goes blank with only the v. Above the user info and banner. It showed that for about 10 seconds then loaded to the calendar
My bad.
Use the attached file.
Quote from: Nas on June 14, 2009, 06:49:13 AM
My bad.
Use the attached file.
Works. Thanks Nas
You're welcome.
Hi
Mod is Link no .
Although the mods a good one. We have a slight problem.
See attachment below.
That's because of the portal block taking up too much space.
Yeah, you're using SP. Tell it to not display blocks on your calendar page.
Is that a custom theme?
You will need to take out the sp block then it should work :)
Installed this version, and it will not display the mod, not sure why as i have activated it in the permissions on the board, i am using 1.1.10
cheers
Were there any errors on install?
Link to mod in 1st post is broken
@ kai920
Here is the correct link. :)
http://custom.simplemachines.org/mods/index.php?mod=1803 (http://custom.simplemachines.org/mods/index.php?mod=1803)
@ replay
Are you using a custom theme?
sorted buddy
cheers
its a really nice looking mod,...your a star :)
Glad you solved it. :)
Thanks TheListener and others for replying ;)
Changelog
1.1.1.1 | August 29 2009
* Added support for SMF 2.0 RC1.2
Changelog
1.1.1.2 | November 14 2009
* Added support for SMF 2.0 RC2.
this mod will be updated for 2.0rc3?
Is this updated to RC3?
Confirmed to work on RC3 without edits. Next time, do try to install the mod even if it says its outdated. If it goes without errors, that means it will work :)
Willbe nice to make it for smf 2.02 or later
The mods works perfect for 2.0 2.0.1 and 2.0,2