Jevents 2.x (Free Access)

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 follow these steps:

1. Update all JEvents add on's first, via the Joomla! Updater
2. Copy and Paste the JEvents Support Information from the JEvents Control Panel.
3. If you get a 500 error OR white page, enable Maximum Error Reporting in Joomla! Global Config and visit the page again, this should give you a more detailed error and help us provide a prompt response.

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

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: 42799
Joined: Fri Feb 15, 2008 6:14 pm

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

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

Hello selfarian,

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

Regards
Tony
---------------------------------------
Feel free to PM me if you would like Custom Installs or Joomla! related work for a competitive quote.

User avatar
Tonyp
Team Staff
 
Posts: 23737
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

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

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
---------------------------------------
Feel free to PM me if you would like Custom Installs or Joomla! related work for a competitive quote.

User avatar
Tonyp
Team Staff
 
Posts: 23737
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

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

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

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

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: 42799
Joined: Fri Feb 15, 2008 6:14 pm

Next

Return to Jevents 2.x (Free Access)

  • Who is online
  • View new posts
  • View unanswered posts
  • In total there are 0 users online :: 0 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: No registered users