Joomla.it Forum
Joomla! 1.0.x (versione con supporto terminato) => Le voci di Joomla.it (solo per versione Joomla 1.0.x) => : Drunkard 15 Nov 2006, 20:57:56
-
ho cercato nei post ma non ho trovato:
come elimino (o limito) l'antispam di akocomment?
praticamente mi respinge qualsiasi commento...
grazie
-
risolto
-
come hai fatto? ;) potrebbe servire ad altri
-
nel file akocomment.php si deve rimpiazzare questa riga:
# Don't allow direct linking
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
con questa:
# 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 one extra line to make the security images solution by DPaulus to work - Reind Dooyeweerd
$akocode = mosGetParam( $_POST, "akocode" );
//end of BBTEMPFIX
e poi nel file admin.akocomment.php inserire questa riga giusto prima della linea 14:
//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
e buon lavoro...
-
grazie 1000 per l'ottimizzazione..sarà d'aiuto anche ad altri ;)
-
Però la modifica che hai fatto non mi sembra che abbia a che fare con il sistema antispam.
Mi sembra piuttosto un normale recupero dei dati.
-
io ho dovuto fare questa modifica perchè una volta installato akosuite 2007 non mi faceva inserire neanche un commento, neanche se scrivevo "a"... me lo bloccava sempre l'antispam...
in questo modo si può scrivere in libertà...
-
Mi sembra molto strano.
Comunque, se funziona siamo tutti contenti.