Hello, first of all, i'm sorry for my bad english, i'm belgian.
I tried to integrate Jcomments into Remository. The version of Remository is 3.53.5J.
I read this page:
http://www.joomlatune.com/jcomments-remository.htmlBut the file "/components/com_remository/v-classes/remositoryFileInfoHTML.php" is not like the page.
It's the actual page:
// The following block of code provides the comment facility
// If you want to replace it with Jom Comment, remove this block and replace it with:
// $interface = remositoryInterface::getInstance();
// include_once($interface->getCfg('absolute_path').'/mambots/content/jom_comment_bot.php');
// echo jomcomment($file->id, "com_remository");
// End of code block
// For Joomla 1.5+ replace the name "mambots" by "plugins" in the code above
if ($this->repository->Allow_Comments) {
$commentsdb = remositoryComment::getComments($file->id);
if ($commentsdb){
$this->tabcnt = 1;
$legend = _DOWN_COMMENTS;
foreach ($commentsdb as $comment) {
$this->showComment($legend, $comment);
// Uncomment the next line if you want to restrict to a single comment
// if ($comment->userid == $this->remUser->id) $hascommented = true;
}
}
else {
$legend = $this->remUser->isLogged() ? _DOWN_FIRST_COMMENT : _DOWN_FIRST_COMMENT_NL;
$this->fileOutputBox('', '<strong>'.$legend.'</strong>');
}
if ($this->remUser->isLogged() AND empty($hascommented)) $this->commentBox($file);
// include_once('components/com_reviews/reviews.class.php');
// include_once('components/com_reviews/reviews.html.php');
// echo HTML_reviews::listItemCommentsHTML('com_remository',$file->id);
// echo HTML_reviews::solicitCommentHTML('com_remository', $file->id, "&func=fileinfo&id=$file->id");
}
// End of code for Remository comment facility
Thanks to help me to integrate Jcomments.