Integration of JComments to Alberghi hotels catalogue
|
Alberghi — is small, but functional hotel catalogue for Joomla. The possibility to add comments to each hotel allows visitors to share the hotel’s merits and demerits, their impressions and desires with each other.
Tested under Alberghi 2.1.2+ version
- Open files /components/com_alberghi/layout/default_tab_up.php and /components/com_alberghi/layout/default_tab_down.php
- Find there the lines:
<?php
include($mainframe->getCfg('absolute_path')."/mambots/content/jom_comment_bot.php");
echo jomcomment($id, "com_alberghi");
?>
and replace them with:
<?php
global $mosConfig_absolute_path;
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments($item->id, 'com_alberghi', $item->title);
}
?>
See also:
|