Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Remository integration is obsolete
Pages: [1]   Go Down
  Print  
Author Topic: Remository integration is obsolete  (Read 4260 times)
0 Members and 1 Guest are viewing this topic.
Firekans
Jr. Member
**

Karma: -10
Offline Offline

Posts: 14


« on: August 18, 2010, 22:22:07 »

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.html
But the file "/components/com_remository/v-classes/remositoryFileInfoHTML.php" is not like the page.

It's the actual page:
Code:
// 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.
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #1 on: August 19, 2010, 14:08:12 »

Replace code:
Code: (php)
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");
}
with
Code: (php)
if ($this->repository->Allow_Comments) {
$commentsAPI = JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php';
if (file_exists($commentsAPI)) {
require_once($commentsAPI);
echo JComments::showComments($file->id, 'com_remository', $file->filetitle);
}
}
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Firekans
Jr. Member
**

Karma: -10
Offline Offline

Posts: 14


« Reply #2 on: August 19, 2010, 18:39:08 »

It Works perfectly!
You should change the page: http://www.joomlatune.com/jcomments-remository.html

THankx!
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #3 on: August 19, 2010, 18:56:36 »

Yes, it is already updated
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
fichier
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #4 on: September 07, 2010, 14:54:28 »

Hi,
first, thank you for making jcomment !
then ;-)
remository integration is OK for members but with administrator account i have a visual bug.
take a look
do you have a solution, please ?
joomla 1.5.20 /remossitory 3.53.7 / jcomment 2.2.0.1

« Last Edit: September 07, 2010, 14:57:22 by fichier » Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #5 on: September 07, 2010, 14:57:06 »

It looks like you've some problems with CSS or with HTML markup (may be some elements didn't closed properly). I can suggest you to use FireBug extension for FireFox browser to find the problem's key.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
fichier
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #6 on: September 10, 2010, 00:22:30 »

i found how to solve this
may be someone need the solution
change like this the line 12 of the style.css file of jcomment
add clear: both
Code:
# jc h4 (clear: both; color: # 555; background-color: inherit; font-weight: bold; text-align: left; border-bottom: 1px solid # D2DADB; padding: 0 0 2px 0; margin-bottom : 10px)
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Remository integration is obsolete
 
Jump to: