Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Marcus Forsberg on May 06, 2009, 01:59:53 AM

Title: Colorful Calendar Frames (NOW FOR RC3)
Post by: Marcus Forsberg on May 06, 2009, 01:59:53 AM
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.
Title: Re: Colored Calendar Frame
Post by: JBlaze on May 06, 2009, 02:05:15 AM
Nice Nas.

Now, make it for 1.1.8 :)

Title: Re: Colored Calendar Frame
Post by: Sudhakar Arjunan on May 06, 2009, 01:52:01 PM
Not sure who is giving you such a good idea for all mods.

Really different mods on smf.
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on May 06, 2009, 01:55:56 PM
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. :)
Title: Re: Colored Calendar Frame
Post by: Joe N on May 06, 2009, 02:20:29 PM
Please do it for smf 1.1.8!
Title: Re: Colored Calendar Frame
Post by: 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
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on May 07, 2009, 03:31:31 AM
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
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on May 07, 2009, 03:43:25 AM
/me HAS done if for 1.1.8
Title: Re: Colored Calendar Frame
Post by: Tiribulus on May 09, 2009, 11:32:57 PM
Now isn't that purdy 8)

And, it looks like you can customize the colors.
Title: Re: Colored Calendar Frame
Post by: dr.wills on May 10, 2009, 12:03:25 AM
Wonderful, I like the colors.

:)
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg 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.

Quote from: akaiphan on May 10, 2009, 12:03:25 AM
Wonderful, I like the colors.

:)

Thanks.
Title: Re: Colored Calendar Frame
Post by: Tiribulus on May 10, 2009, 04:24:04 PM
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.
Title: Re: Colored Calendar Frame
Post by: Joe N on May 11, 2009, 11:28:23 AM
How come your whole calendar lights up?
Title: Re: Colored Calendar Frame
Post by: Tiribulus on May 11, 2009, 11:56:00 AM
If you're talking to me, what do you mean ???
Title: Re: Colored Calendar Frame
Post by: Joe N on May 11, 2009, 11:59:21 AM
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
Title: Re: Colored Calendar Frame
Post by: Tiribulus on May 11, 2009, 12:07:57 PM
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.
Title: Re: Colored Calendar Frame
Post by: Joe N on May 11, 2009, 12:08:48 PM
Oh ok!
Title: Re: Colored Calendar Frame
Post by: TheListener on May 17, 2009, 07:30:41 PM
Will this work on any theme?
Title: Re: Colored Calendar Frame
Post by: Tiribulus on May 17, 2009, 09:40:07 PM
I don't know why it wouldn't
Title: Re: Colored Calendar Frame
Post by: TheListener on May 17, 2009, 09:45:35 PM
Hi Tribulus.

I had a go and had success. Could do with a thinner frame tho.
Title: Re: Colored Calendar Frame
Post by: Tiribulus on May 17, 2009, 11:16:40 PM
<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.
Title: Re: Colored Calendar Frame
Post by: JBantha on June 05, 2009, 02:17:44 PM
Awesome! ^^
I love this mode! Specialy now that i know how to personalize it!

And JBlaze... I love you nickname! xDD
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on June 14, 2009, 06:09:06 AM
fade.png is located inside of the package on the mod site.
Title: Re: Colored Calendar Frame
Post by: Joe N on June 14, 2009, 06:10:17 AM
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?
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on June 14, 2009, 06:12:40 AM
Both please..

Did you first make the manual edits and then installed it via packagemanager?
Title: Re: Colored Calendar Frame
Post by: Joe N on June 14, 2009, 06:18:44 AM
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




Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on June 14, 2009, 06:22:46 AM
// 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.
Title: Re: Colored Calendar Frame
Post by: Joe N on June 14, 2009, 06:29:55 AM
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
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on June 14, 2009, 06:49:13 AM
My bad.
Use the attached file.
Title: Re: Colored Calendar Frame
Post by: Joe N on June 14, 2009, 11:26:16 AM
Quote from: Nas on June 14, 2009, 06:49:13 AM
My bad.
Use the attached file.

Works. Thanks Nas
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on June 14, 2009, 12:31:25 PM
You're welcome.
Title: Re: Colored Calendar Frame
Post by: Sevgiformu.com on June 19, 2009, 06:48:22 AM
Hi

Mod is Link no .
Title: Re: Colored Calendar Frame
Post by: TheListener on June 30, 2009, 04:56:59 PM
Although the mods a good one. We have a slight problem.

See attachment below.
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on June 30, 2009, 04:59:38 PM
That's because of the portal block taking up too much space.
Title: Re: Colored Calendar Frame
Post by: Tiribulus on June 30, 2009, 07:02:33 PM
Yeah, you're using SP. Tell it to not display blocks on your calendar page.
Title: Re: Colored Calendar Frame
Post by: Joe N on July 01, 2009, 10:20:46 AM
Is that a custom theme?

You will need to take out the sp block then it should work :)
Title: Re: Colored Calendar Frame
Post by: replay on August 16, 2009, 03:49:02 PM
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
Title: Re: Colored Calendar Frame
Post by: TheListener on August 17, 2009, 11:12:40 AM
Were there any errors on install?
Title: Re: Colored Calendar Frame
Post by: kai920 on August 17, 2009, 11:20:51 AM
Link to mod in 1st post is broken
Title: Re: Colored Calendar Frame
Post by: gbsothere on August 17, 2009, 11:27:26 AM
@ 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?
Title: Re: Colored Calendar Frame
Post by: replay on August 17, 2009, 02:01:43 PM
sorted buddy

cheers

its a really nice looking mod,...your a star  :)


Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on August 17, 2009, 02:03:18 PM
Glad you solved it. :)
Thanks TheListener and others for replying ;)
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on August 29, 2009, 03:03:45 AM
Changelog
1.1.1.1 | August 29 2009
* Added support for SMF 2.0 RC1.2
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on November 14, 2009, 05:06:07 AM
Changelog
1.1.1.2 | November 14 2009
* Added support for SMF 2.0 RC2.
Title: Re: Colored Calendar Frame
Post by: okae on March 11, 2010, 07:40:42 AM
this mod will be updated for 2.0rc3?
Title: Re: Colored Calendar Frame
Post by: Nimnix on March 11, 2010, 07:41:23 AM
Is this updated to RC3?
Title: Re: Colored Calendar Frame
Post by: Marcus Forsberg on March 16, 2010, 11:52:03 AM
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 :)
Title: Re: Colorful Calendar Frames (NOW FOR RC3)
Post by: musicus on March 03, 2012, 05:51:28 AM
Willbe nice to make it for smf 2.02 or later
Title: Re: Colorful Calendar Frames (NOW FOR RC3)
Post by: TheListener on March 04, 2012, 10:03:57 PM
The mods works perfect for 2.0 2.0.1 and 2.0,2