You need to be logged in to view a user's profile.
  1. npeeters
  2. Contribute to JEvents
  3. Wednesday, 20 February 2013
Hi, I have noticed that in a multi-category set-up the tag {{Category Image:CATEGORYIMG}} only shows the image from a single category.
To resolve the issue and show the image of all event categories, please replace the getCategoryImage function in jeventcal.php with the function(s) below.

Code probably needs clean-up.

	function getCategoryImage( ){
$data = $this->getCategoryData();
if (is_array($data)) {
$count = count($data);
$retVal = "";
for ($iCount = 0; $iCount <$count; $iCount++) {
$iData = $data[$iCount];
$retVal .= $this->getOneCategoryImage($iData);
}
return $retVal;
}
else
{
return $this->getOneCategoryImage($data);
}
return "";
}

function getOneCategoryImage ($data) {
if ($data){
if (JVersion::isCompatible("1.6.0") ){
$params = json_decode($data->params);
if (isset($params->image)){
return "<img src = '".JURI::root().$params->image."' class='catimage' />";
}
}
else {
$image = $data->image;
if (!empty ($image)){
return "<img src = '".JURI::root().$image."' class='catimage' />";
}
}
}
return "";
}


Cheers and enjoy
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
In JEvents 3.0.7 we already support {{Category Images:CATEGORYIMGS}} which gives you the multiple images.

Hope you didn't spend too much time on this - good detective work though
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!
  1. more than a month ago
  2. Contribute to JEvents
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks and great to hear that you keep on improving a great extension...

Me still on 2.2 though <!-- s:? --><img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
  1. more than a month ago
  2. Contribute to JEvents
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.