http://projectfork.net/Projectfork contains a small message system that is not as good as Jcomments.
Two files define that original message box : admin/components/projectfork/processes/comments/comments.php
and admin/components/projectfork/panels/task_comments.php
I rewrote the task_comments.php file like this:
<?php defined( '_JEXEC' ) or die( 'Restricted access' ); $comments = JPATH_SITE . DS .'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments($id, 'com_projectfork', $topics);
}
?>
and I wrote a projectfork plugin for your component :
<?php
class jc_com_projectfork extends JCommentsPlugin {
function getObjectTitle( $id ) {
$db = PFdatabase::GetInstance(); $db->setQuery( "SELECT title, id FROM #__pf_Itemid WHERE id='$Itemid'");
return $db->loadResult();
}
function getObjectLink( $id ) {
$_Itemid = JCommentsPlugin::getItemid( 'com_projectfork' );
$link = JRoute::_( 'index.php?option=com_projectfork&Itemid=&id=&workspace='. $id .'&Itemid='. $_Itemid );
return $link;
}
function getTopics( $id ) {
$db = PFdatabase::GetInstance();
$db->setQuery( 'SELECT title, id, itemid FROM #__pf_Topics WHERE id = ' . $topics );
return $db->loadResult();
}
}
?>
The Whole Thing returned the Jcomments Box in Projectfork and this is a pretty great combination, but it displays on every page and doesn't properly load the $id, $userid etc values...you know what I mean :same comments on every page.
It means I do not query and return the correct database elements.
Now ... you got Jcomments working with Projectfork and it's a whole new world.
Thank you very much for your reply
link to the same question on the project fork website :
http://forum.pixelpraise.com/viewtopic.php?f=101&t=8073