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.
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
by 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
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
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
by Geraint » Wed Feb 29, 2012 3:28 pm
See http://www.jevents.net/en/jevents-15-to ... nts-module and the use of ${color}
------------
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!
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!
-

Geraint - Posts: 30529
- Joined: Fri Feb 15, 2008 6:14 pm
Re: Mod JEvents Calendar colored with category colors
by 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
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
by Tonyp » Wed Feb 29, 2012 8:22 pm
Hello selfarian,
This is possible with a template over ride and some coding...
Regards
Tony
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
Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
-

Tonyp - Contributor
- Posts: 8744
- Joined: Tue Oct 12, 2010 9:12 pm
- Location: Isle of Man
Re: Mod JEvents Calendar colored with category colors
by Selfarian » Wed Feb 29, 2012 8:55 pm
Hello,
ok, and thats available in the club area?
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
by 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
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
Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
-

Tonyp - Contributor
- Posts: 8744
- Joined: Tue Oct 12, 2010 9:12 pm
- Location: Isle of Man
Re: Mod JEvents Calendar colored with category colors
by 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
by 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:
you can customize the code with an event counter, if there is more than one you can put an image of multicolored background.
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
by 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
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
by 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
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!
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!
-

Geraint - Posts: 30529
- Joined: Fri Feb 15, 2008 6:14 pm
21 posts
• Page 1 of 3 • 1, 2, 3
Return to Jevents 2.x (Free Access)
Who is online
Users browsing this forum: Google [Bot], Yviberlin

