MarHaj wrote:
I do confirm there is problem with AkoComent.
I am running the tweaked version of it and cannot post comments with RG emulation on. Tested several times.
Ok. Here akoComment version "(2.0) 1.1.3" temporary fix, as just working now with postings fine on
http://www.joomlapolis.com/ :
Edit components/com_akocomment.php and replace:
Code: Select all
# Don't allow direct linking
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
by:
Code: Select all
# Don't allow direct linking
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
//BBTEMPFIX:
$acitemid = (int) mosGetParam( $_POST, "acitemid" );
$contentid = (int) mosGetParam( $_POST, "contentid" );
$title = mosGetParam( $_POST, "title" );
$comment = mosGetParam( $_POST, "comment" );
$acname = mosGetParam( $_POST, "acname" );
# Added following one extra line to make the security images solution by DPaulus to work - Reind Dooyeweerd
$akocode = mosGetParam( $_POST, "akocode" );
//end of BBTEMPFIX
UPDATE: added security images in fix above as confirmed to work ok.
For Backend lists to work:
Edit file administrator/components/admin.akocomment.php as follows:
Add just BEFORE the line 14 starting with "switch..." :
Code: Select all
//BBTEMPFIX
$task = mosGetParam( $_REQUEST, 'task', null );
$cid = mosGetParam( $_REQUEST, 'cid', array( 0 ) );
$uid = mosGetParam( $_REQUEST, 'uid', array( 0 ) );
if (!is_array( $cid )) {
$ocid=$cid;
$cid = array ();
$cid[]=$ocid;
mosArrayToInts($cid);
}
//END OF BBTEMPFIX
EDIT: Added backend fix.
EDIT: Added filenames to edit and clarified instructions.
EDIT: Added $akocode = mosGetParam( $_POST, "akocode" ); to make Security Images work, as suggested and confirmed here:
http://forum.joomla.org/index.php/topic ... #msg461862