Akocomment tweak pour Joomla 1.0.11 |
|
|
|
| 28-09-2006 | ||||||||||||||||
Composant Akocomment Tweak pour Joomla 1.0.11Mise a jour du 24 Octobre 2006 ne plus utiliser cet article
|
||||||||||||||||
|
|
sur le fichier
/components/com_akocomment
akocomment.php
remplacer
# Don't allow direct linking
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
Par
# 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
replacer le fichier sur le serveur
le 2° fichier à modifier est
administrator/components/admin.akocomment.php
Juste avant la ligne 14
ajouter ceci
//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
replacer le fichier sur le serveur
Probléme avec la partie admin d'AKOCOMMENT et Register globals à 0
si vous souhaitez modifer la partie admin d'akocomment et la variable RG est à O,
vous allez constater un probème, rien n'est modifiable les boutons et la sélection de sections catégories etc..........
vous ne pouvez plus rien selectionner .
Solution provisoire
modifier la valeur "RG_EMULATION" de Register Globals et mettez la à 1
elle se trouve dans le fichier globals.php à la racine du site
comme ci-dessous:
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
/**
* Use 1 to emulate register_globals = on
* WARNING: SETTING TO 1 MAY BE REQUIRED FOR BACKWARD COMPATIBILITY
* OF SOME THIRD-PARTY COMPONENTS BUT IS NOT RECOMMENDED
*
* Use 0 to emulate regsiter_globals = off
* NOTE: THIS IS THE RECOMMENDED SETTING FOR YOUR SITE BUT YOU MAY
* EXPERIENCE PROBLEMS WITH SOME THIRD-PARTY COMPONENTS
*/
define( 'RG_EMULATION', 0 );
Une fois cela fait, modifier vos paramètres d'administration dans AKOCOMMENT
Vous devez absolument désactiver le BBC Code support.
sauvegardez
Il faut de nouveau modifier votre valeur RG_EMULATION en la mettant cette fois à O
Mettez de nouveau votre fichier Globals.php sur votre site
Akocomment Tweak fonctionne de nouveau
cet article sur votre site ?Commenter |
|










