|
|
|
Re:jomcomment integration 1 Year, 2 Months ago
|
|
MindArchr wrote:MindArchr wrote: Here's an alternative in case the above does not work:
On line 306, where it shows:
| Code: : | function ajaxAddComment($xajaxArgs) {
| right under *Add a new comment
add the following:
| Code: : | global $mainframe,$my;
require_once( $mainframe->getCfg('absolute_path') . '/components/com_karma/karma.class.php');
$points = CLASS_karma::getConfig("Custom3");
CLASS_karma::addPoints($my->id, 5, "Posted A Comment");
|
so that it displays like:
| Code: : | /**
* Add a new comment
*/
function ajaxAddComment($xajaxArgs) {
global $mainframe,$my;
require_once( $mainframe->getCfg('absolute_path') . '/components/com_karma/karma.class.php');
$points = CLASS_karma::getConfig("Custom3");
CLASS_karma::addPoints($my->id, 5, "Posted A Comment");
error_reporting(E_ALL);
global $_JC_CONFIG, $mainframe;
$this->cms->load('libraries','user');
$this->cms->load('libraries', 'input');
|
Again, this is only an alternative method if the above one does not work. This is for JomComment version 2.2 Build 536 and these changes can be implemented in the same file (main.jomcomment.php)
|
|