Integration of JComments to JCalPro event calendar
|
JCal Pro - functional event calendar for Joomla, similar to Google calendar by features. A lot of settings, competent operation with events, comfortable template installation system etc. After intergation visiters will be able to leave the comments to calendar's items.
- Open file /components/com_jcalpro/themes/default/theme.php
- Find the lines:
if ( $noduration ) template_extract_block($template_event_view, 'duration_row');
echo template_eval($template_event_view, $params);
endtable();
echo "<br />";
and replace with:
if ( $noduration ) template_extract_block($template_event_view, 'duration_row');
echo template_eval($template_event_view, $params);
endtable();
global $mosConfig_absolute_path;
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments($event->extid, 'com_jcalpro', $event->title);
}
echo "<br />";
See also:
|