Your Ad Here

Home | Karma2 Forums | Karma2 Downloads | Contact

  Home arrow Karma2 Forums

The Karma2 Forum
Welcome, Guest
Please Login or Register.    Lost Password?
jomcomment integration (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: jomcomment integration
#40
implicateorder (User)
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
jomcomment integration 1 Year, 9 Months ago  
To add karma2 to jomcomment, add this following snippet of code to /components/jom_comment/main.jomcomment.php --

This starts with the switch case statement in line 638. Add the following after line 657

Code: :

  global $mainframe,$my; require_once( $mainframe->getCfg('absolute_path') . '/components/com_karma/karma.class.php'); $points CLASS_karma::getConfig("Custom2"); CLASS_karma::addPoints($my->id5"Comment Submission");



Code: :

   switch ($status) { case JC_STATUS_OK : $styles explode(","$_JC_CONFIG->get('cyclestyle')); array_walk($styles"jcTrim"); $numstyle count($styles); $styleCount $this->_dataMgr->getNumComment($data->contentid$data->option); $count $styleCount; $style $styleCount $numstyle; // Need to make sure that hidden value is set to false to make sure this comment gets shown // Otherwise, it will be marked as 'lowly rated comment' $data->hidden false; $newComment $this->_viewMgr->getCommentsHTML($data); $newComment $this->_viewMgr->_cleaupOutput($newComment); $objResponse->addAssign('jc_busyDiv''innerHTML'$responseMsg); $objResponse->addscriptCall("jc_insertNewEntry"$newComment"pc_" $data->id); $objResponse->addClear('jc_comment''value'); $objResponse->addClear('jc_title''value'); $objResponse->addAssign('jc_numComment''innerHTML'$this->_dataMgr->getNumComment($data->contentid$data->option)); global $mainframe,$my; require_once( $mainframe->getCfg('absolute_path') . '/components/com_karma/karma.class.php'); $points CLASS_karma::getConfig("Custom2"); CLASS_karma::addPoints($my->id5"Comment Submission"); break;

Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
      Topics Author Date
    thread link
jomcomment integration
implicateorder 2008/11/24 11:17
    thread link
thread linkthread link Re:jomcomment integration
MindArchr 2008/11/24 16:41
    thread link
thread linkthread linkthread link Re:jomcomment integration
dfdsfasd 2009/07/01 13:40
Go to top Post Reply
Powered by FireBoard



Warning: fopen(/home/review7/public_html/www1/test/components/com_sef/cache/shCacheContent.php) [function.fopen]: failed to open stream: Permission denied in /home/review7/public_html/www1/test/components/com_sef/shCache.php on line 108