Integration of JComments to Cinema media catalogue
|
|
Cinema — media catalogue component for Joomla. The offered to your attention integration allows visitors to leave comments to catalogue's items (for examples, films).
- Open file /components/com_cinema/cinemadetails.php
- Find lines:
if ($cin_showcomment) {
if ($allowcomment) {
and replace with:
/*
if ($cin_showcomment) {
if ($allowcomment) {
- Then find the line:
if ($cin_acaso) {
and replace with:
*/
if ($cin_acaso) {
- At the file end find the lines:
echo "<br />";
?>
and replace with:
if ($cin_showcomment && $allowcomment) {
global $mosConfig_absolute_path;
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments($id, 'com_cinema', $imgtitle);
}
}
echo "<br />";
?>
See also:
|