Re: Désactiver le filtre liens_nofollow

eric <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <[email protected]>
Un test pour vérifier si un pipeline a été modifié ne pourrait-il pas
être ajouté à /plugin- dist/base/forum.php ?

ou l'ajout d'un méta forums_liens_nofollow n'est il pas envisageable ?

Cordialement,

Eric

Le dimanche 28 mai 2017 à 15:26 +0200, eric a écrit :
> Bonjour,
> 
> Je tente de désactiver liens_nofollow ajouter dans les pipelines liés
> au plugin forum.
> 
> Dans mes_options.php :
> 
> $GLOBALS['spip_pipeline']['declarer_tables_interfaces'] .=
> "|supprimer_liens_nofollow";
> 
> function supprimer_liens_nofollow($interfaces){
> 	
> 	$interfaces['table_des_traitements']['TEXTE']['forums'] =
> "safehtml(" . str_replace("%s",
> 			"interdit_html(%s)", _TRAITEMENT_RACCOURCIS) .
> ")";
> 
> 	 return $interfaces;
> }
> 
> L'array interfaces est bien modifié et donne :
> 
> [table_des_traitements] => Array
>         (
>           ...
>             [TEXTE] => Array
>                 (
>                     [0] => propre(%s, $connect, $Pile[0])
>                     [forums] => safehtml(propre(interdit_html(%s),
> $connect, $Pile[0]))
>                 )
> 
>             [TITRE] => Array
>                 (
>                     [0] => typo(supprimer_numero(%s), "TYPO",
> $connect,
> $Pile[0])
>                 )
> 	....
>         )
> 
> Cependant, la (re)déclaration de cet array dans /plugin-
> dist/base/forum.php le remodifie et ajoute donc liens_nofollow().
> 
> Je cherche ....
> 
> Cordialement,
> 
> Eric
> 
> Le vendredi 26 mai 2017 à 14:19 +0200, eric a écrit :
> > 
> > Bonjour,
> > 
> > depuis https://core.spip.net/projects/spip/repository/revisions/206
> > 40
> >  ,
> > les liens sortants sont systématiquements en nofollow.
> > 
> > Comment désactiver se filtre sans modifier le code SPIP ?
> > 
> > Cordialement,
> > 
> > Eric
> > _______________________________________________
> > liste: http://listes.rezo.net/mailman/listinfo/spip-dev
> > doc: http://www.spip.net/
> > dev: http://trac.rezo.net/trac/spip/
> > irc://irc.freenode.net/spip
> _______________________________________________
> liste: http://listes.rezo.net/mailman/listinfo/spip-dev
> doc: http://www.spip.net/
> dev: http://trac.rezo.net/trac/spip/
> irc://irc.freenode.net/spip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.