J and Beyond 2013 | An International Joomla! Conference - May 31st - 2nd, 2013, Noordwijkerhout, The Netherlands
It is currently Sun May 19, 2013 8:43 am

Mod JEvents Calendar colored with category colors

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support, please copy and paste the 'Version information for Support Forum' from the JEvents Control Panel into your post. If you cannot see this, please enable JEvents project news within it's configuration. Also, if you get a 500 Error, Enable Joomla! Maximum Error Reporting and view the page again, you should now have a more detailed error which will help us to resolve you issue quickly.

Mod JEvents Calendar colored with category colors

Postby Selfarian » Wed Feb 29, 2012 2:56 pm

Hello,

i am using jevents with the mini calendar module.
I have 2 (or more) categories in my calender. In the minicalender there is only shown if there is an calenderentry or not. Is it possible to set up the mini calender to colorize these days in the color of the category colors?

I'm sorry, that my english is not the best :) i hope you understand it ;)

Thank you and best regards,

Selfarian
Selfarian
Posts: 13
Joined: Wed Feb 29, 2012 2:51 pm

Re: Mod JEvents Calendar colored with category colors

Postby Geraint » Wed Feb 29, 2012 3:28 pm

------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30512
Joined: Fri Feb 15, 2008 6:14 pm

Re: Mod JEvents Calendar colored with category colors

Postby Selfarian » Wed Feb 29, 2012 7:29 pm

Hello,

thanks for the fast reply.
I meant a similar feature for the minikalender.
Like this:
www.skc-lohhof.de
I know, it's not joomla / jevents, but i hoped, that it's possible with it...

Best regards,

Selfarian
Selfarian
Posts: 13
Joined: Wed Feb 29, 2012 2:51 pm

Re: Mod JEvents Calendar colored with category colors

Postby Tonyp » Wed Feb 29, 2012 8:22 pm

Hello selfarian,

This is possible with a template over ride and some coding...

Regards
Tony
---------------------------------------

Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
User avatar
Tonyp
Contributor
Posts: 8717
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

Re: Mod JEvents Calendar colored with category colors

Postby Selfarian » Wed Feb 29, 2012 8:55 pm

Hello,

ok, and thats available in the club area?
Selfarian
Posts: 13
Joined: Wed Feb 29, 2012 2:51 pm

Re: Mod JEvents Calendar colored with category colors

Postby Tonyp » Wed Feb 29, 2012 9:01 pm

Details on how to do a template over ride are yes,

But this exact feature would require some coding.

A problem with this, would be you could only have two category colours or only have one event a day?

Regards
Tony
---------------------------------------

Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
User avatar
Tonyp
Contributor
Posts: 8717
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

Re: Mod JEvents Calendar colored with category colors

Postby Selfarian » Wed Feb 29, 2012 9:25 pm

Yes, there could be 2 categories / colors per day. But maybe it's possible to set 1 categorie with a higher priority so if there are 2 categories on one day, the day has the color of the prio 1 category. if there's only one category 2 event, it should take the color of the category 2...
Selfarian
Posts: 13
Joined: Wed Feb 29, 2012 2:51 pm

Re: Mod JEvents Calendar colored with category colors

Postby mediajuice » Thu Oct 18, 2012 8:37 am

Hi, this is my solution(i use alternative template):
on calendar.php
find this line: $content .= "<td class='".$class."'>\n";
and substitute it width this code:
Code: Select all
$content .= "<td class='".$class."'";
/* TEST */
if ($currentDay["events"] ){
$mia="";
foreach ($currentDay["events"] as $event) {
$miocolore.= $event->bgcolor();
}
$content.="style='background-color:".$miocolore."!important;'>\n";
$miocolore="";
}else{
$content.=">\n";
}
/********/

you can customize the code with an event counter, if there is more than one you can put an image of multicolored background.
mediajuice
Bronze Members
Posts: 2
Joined: Wed Oct 03, 2012 4:56 pm

Re: Mod JEvents Calendar colored with category colors

Postby Selfarian » Thu Oct 18, 2012 8:48 am

Hello mediajuice,

thanks for your reply.
Could you tell me, where i can find the calendar.php?

Best regards,

Selfarian
Selfarian
Posts: 13
Joined: Wed Feb 29, 2012 2:51 pm

Re: Mod JEvents Calendar colored with category colors

Postby Geraint » Thu Oct 18, 2012 9:14 am

check in the mod_jevents_cal folder under modules.

You should use a template override http://www.jevents.net/jevents-15-topme ... jevents-15
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30512
Joined: Fri Feb 15, 2008 6:14 pm

Next

Return to Jevents 2.x (Free Access)

Who is online

Users browsing this forum: Bing [Bot]

Main Menu

User Menu

Hosted By


Who is online

In total there is 1 user online :: 1 registered and 0 hidden (based on users active over the past 5 minutes)
Most users ever online was 94 on Tue Sep 01, 2009 12:33 am

Users browsing this forum: Bing [Bot]

Login Form