J and Beyond 2013 | An International Joomla! Conference - May 31st - 2nd, 2013, Noordwijkerhout, The Netherlands
It is currently Sat May 18, 2013 12:13 pm

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.

Re: Mod JEvents Calendar colored with category colors

Postby Selfarian » Fri Oct 19, 2012 10:26 am

I have only those files in the mod_jevents_cal folder:
helper.php
mod_jevents_cal.php
mod_jevents_cal.xml
tmpl (folder)
Selfarian
Posts: 13
Joined: Wed Feb 29, 2012 2:51 pm

Re: Mod JEvents Calendar colored with category colors

Postby mediajuice » Fri Oct 19, 2012 10:29 am

Hi Selfarian, for the alternative you can find it here:

\templates\YOURTEMPLATE\html\mod_jevents_cal\alternative\calendar.php

I suggest you also make changes of this article

You should use a template override http://www.jevents.net/jevents-15-topme ... jevents-15
mediajuice
Bronze Members
Posts: 2
Joined: Wed Oct 03, 2012 4:56 pm

Re: Mod JEvents Calendar colored with category colors

Postby Selfarian » Fri Oct 19, 2012 11:09 am

Hi Mediajuice,

ah, ok, thank you. I found it here: /modules/mod_jevents_cal/tmpl/default
:)
I will try the link you provided, too.
Thanks for you help!
Selfarian
Posts: 13
Joined: Wed Feb 29, 2012 2:51 pm

Re: Mod JEvents Calendar colored with category colors

Postby Selfarian » Mon Oct 22, 2012 1:30 pm

Hi mediajuice,

i tried it with the template override and with your code and i got an error:
Code: Select all
Warning: Invalid argument supplied for foreach() in /path/to/joomla/templates/skc-lohhof/html/mod_jevents_cal/alternative/calendar.php on line 399


So i simply tried to dump the $currentDay var (example for the 01.10.2012 on which are 4 Events):
Code: Select all
array(10) {
  ["countDisplay"]=>
  int(0)
  ["monthType"]=>
  string(7) "current"
  ["month"]=>
  int(10)
  ["year"]=>
  string(4) "2012"
  ["events"]=>
  bool(true)
  ["today"]=>
  bool(false)
  ["d"]=>
  int(1)
  ["d0"]=>
  string(2) "01"
  ["link"]=>
  string(50) "/index.php/termine/day.listevents/2012/10/01/15|19"
  ["cellDate"]=>
  int(1349042400)
}


So, i think the error is right, $currentDay['events'] is not an array, it's an boolean var :/

So, did you add code somewhere else?

Best regards,

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

Re: Mod JEvents Calendar colored with category colors

Postby Geraint » Mon Oct 22, 2012 3:15 pm

What config option did you select for the question about checking if there are events on each day?
------------
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: 30507
Joined: Fri Feb 15, 2008 6:14 pm

Re: Mod JEvents Calendar colored with category colors

Postby Selfarian » Mon Oct 22, 2012 4:20 pm

Could you tell me, where i can set it up?
I didn't find a setting like that.
I looked in the ACP module setting and component setting :|
Selfarian
Posts: 13
Joined: Wed Feb 29, 2012 2:51 pm

Re: Mod JEvents Calendar colored with category colors

Postby Teeshot » Mon Oct 22, 2012 8:31 pm

Hi,
I have the same problem, I'm looking how to color categories in the mini calendar, but I can not find. I did some tests with a single event and I have the same message Selfarian.

Warning: Invalid argument supplied for foreach() in /home/teeshotw/public_html/pessacnatsynchro/modules/mod_jevents_cal/tmpl/ext/calendar.php on line 212


Same with the default template
Thank

Code: Select all
Joomla : 2.5.7
component_com_jevents : 2.2.8
module_mod_jevents_cal : 2.2.0
module_mod_jevents_latest : 2.2.5
module_mod_jevents_legend : 2.1.13
plugin_editors_jce : 2.2.8.4
Teeshot
Posts: 5
Joined: Sat Sep 10, 2011 6:05 pm

Re: Mod JEvents Calendar colored with category colors

Postby Geraint » Tue Oct 23, 2012 8:30 am

Selfarian wrote:Could you tell me, where i can set it up?
I didn't find a setting like that.

Module parameters - search for "Skip Daily Event Check?"
I looked in the ACP module setting and component setting :|

No Idea what ACP is I'm afraid.
------------
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: 30507
Joined: Fri Feb 15, 2008 6:14 pm

Re: Mod JEvents Calendar colored with category colors

Postby Selfarian » Tue Oct 23, 2012 10:25 am

Ah ok, thanks. Now i found it.
I tried Yes, then there's no error. But all booked days have the same color.
If i set it to No, the error happens.

I checked what's set in $currentDay["Events"]. If the setting is set to yes, it's always "false" so the if-condition is also false and the color isn't set.

With ACP i meant the Admin Control Panel.
Selfarian
Posts: 13
Joined: Wed Feb 29, 2012 2:51 pm

Re: Mod JEvents Calendar colored with category colors

Postby Teeshot » Wed Oct 24, 2012 10:23 pm

Hi,

little up the code does not work as.

Thank
Teeshot
Posts: 5
Joined: Sat Sep 10, 2011 6:05 pm

PreviousNext

Return to Jevents 2.x (Free Access)

Who is online

Users browsing this forum: No registered users

Main Menu

User Menu

Hosted By


Who is online

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

Login Form