Marco's noFollow plugin for Joomla! 1.5, Joomla! 2.5 and Joomla! 3.x

rel noFollow plugin per siti Joomla!Aggiungere rel="noFollow" ai links uscenti

Con questo Plugin potrete aggiungere gli attributi rel e target a tutti i link uscenti presenti negli articoli del vostro sito Joomla!.
La configurazione è molto semplice, basta selezionare l'azione da compiere per i due attributi, ed il vostro sito Joomla! non disperderà più Page Rank.

 

Versione Italianarel noFollow plugin per siti Joomla!

This extension is also published on http://extensions.joomla.org, if you like it, vote it or write a review, thank you.

Add rel="noFollow" to outgoing links.

This plugin allows you to add rel and target attributes  to all outgoing links in articles on your Joomla!.
Download, install the plugin and activate it.


Configuration is very simple, just select the action to be taken for the two attributes.

Attribute "rel"

  • "Set no follow, if not specified rel"
    attribute set to "nofollow" unless specifically rel = "follow"
  • "Force no follow"
    attribute to force the "nofollow"
  • "Strip no follow"
    attribute to remove the "nofollow"
  • "Do not change"
    does not change the attribute

Attribute "target":

  • "Open in new window (_blank) if no target specified"
    attribute set to "_blank" if not specified a value
  • "Open in new window (_blank)"
    attribute set to "_blank"
  • "Open in parent window / frame (_parent)"
    attribute set to "_parent"
  • "Do not change"
    does not change the attribute

 

Css management

  • "All, except"
    apply rewrite to all a href, except which ones with listed css classes
  • "None, except"
    apply rewrite only to a href with listed css classes
  • "Css Classes"
    comma separed list of css classes to which apply or not rel="nofollow"
    Note: version 1.2.1 only, you have to insert almost one class name (use 'voidClass' or any other name)
    Thanks to Eugene S. for his support!
  • Note: upgrade from 1.2.1 or lower, you have to set css management 'cause a change in parameters values.

 

From version 1.3 you can select how to parse attributes in link:

  • Relaxed mode is the normal way, process also not properly formatted code
  • Strict mode allows js in links, but requires html code fully compliant with W3C HTML 4.1+ standards (this should not be a trouble if you use Joomla RTE).


You can also add the code anywhere in a single article which explicit disables this bot for the item.

 

How to add css classes to editor

In the directory  /templates/[yourTemplate]/css/ add, if it does not exist, the file editor.css. Insert into the file:

a.noRel{
}
a.setRel{
}

Empty your browser cache, next time you start the RTE you will see noRel and setRel styles for the a tag.

 

History

May 17th, 2014 J1.5 only - this is the last planned release for j1.5

  • aligned to j2.5 & j3.x version
  • php 5.4 support

Apr 28th, 2014

  • unified j2.5 & j3.x version
  • better error handling
  • php 5.4 strict code improvement

Mar 23rd, 2013:

  • Joomla! 3.0 compatible!
  • js events allowed in link attibutes

Jan 18th, 2011:

  • Joomla! 1.6 compatible!
  • include/exclude css classes list
  • minor code improvement

May 4th, 2010:

  • Added rewriting for <area> tag in clickable areas of image maps

April 25th 2010:

  • initial release

 

Aggiungere rel="noFollow" ai links uscenti.


Questo Plugin permette di aggiungere gli attributi rel e target a tutti i link uscenti presenti negli articoli del vostro sito Joomla!.
Scaricate, installate il plugin ed attivatelo.

La configurazione è molto semplice, basta selezionare l'azione da compiere per i due attributi.

Attributo "rel":

  • "Set No Follow, if no rel specified"
    imposta l'attributo a "nofollow" se non è specificato rel="follow"
  • "Force No Follow"
    forza l'attributo a "nofollow"
  • "Strip No Follow"
    rimuove l'attributo a "nofollow"
  • "Do not change"
    non modifica l'attributo

 

Attributo "target":

  • "Open in new window (_blank) if no target specified"
    imposta l'attributo a "_blank" se non è specificato un valore
  • "Open in new window (_blank)"
    imposta l'attributo a "_blank"
  • "Open in parent window / frame (_parent)"
    imposta l'attributo a "_parent"
  • "Do not change"
    non modifica l'attributo

Applicare la riscrittura alle classi css

  • "All, except"
    applica a tutti gli a href, ad eccezione di quelli con le classi css indicate
  • "None, except"
    applica ai soli a href con le classi indicate
  • "Css Classes"
    lista separata da virgole delle classi cui applicare o meno l'attibuto rel="nofollow"
  • Nota: versione 1.2.1 soltanto, è necessario inserire almeno un nome di classe  (usa 'voidClass' o qualsiasi altro nome)
    Thanks to Eugene S. for his support!
  • Nota: aggiornamento da 1.2.1 o precedente, è necessario reimpostare css management in virtù di un cambio dei valori dei parametri.

 

Dalla versione 1.3 è possibile specificare come agire sugli attributi nel link:

  • Relaxed mode è la funzionalità base e permette di processare codice anche non sintatticamente corretto.
  • Strict mode permette di inserire js negli attributi, ma richiede la conformità con gli standards W3C HTML 4.1+ .

 

Potete anche aggiungere il codice  in qualsiasi punto di un singolo articolo per disabilitare esplicitamente il  bot per l'articolo.

Storia

17 Maggio 2014 solo J1.5 - questo sarà l'ultimo rilascio per j1.5

  • allineamento alla versione per j2.5 & j3.x
  • supporto per php 5.4

28 Aprile 2014

  • versione unificata per j2.5 & j3.x
  • migliore gestione degli errori
  • miglioramento codice per php 5.4 strict

23 Marzo 2013:

  • compatibile con Joomla! 3.0!
  • possibilità di usare js negli attributi del link

18 Gennaio 2011:

  • compatibile con Joomla! 1.6!
  • inclusione/esclusione di classi css
  • minor code improvement

4 Maggio 2010

  • Aggiunto il codice di riscrittura per il tag <area> delle image-maps

25 Aprile 2010

  • rilascio versione 1.0

 

Download rel=noFollow Plugin for Joomla!

Joomla! 2.5 & 3.x

 

Joomla! 1.5

no longer supported

 


 Old versions...

Joomla! 3.x

Joomla! 2.5

(works also on Joomla! 1.6 & Joomla! 1.7)

 

Commenti   

0 #46 Grazhdanin poet 2019-10-29 14:34
Thank you so MUCH with nofollow plugin; saved hours of site remastering; where is your Big Donate Button 8)
Citazione
0 #45 Alex 2018-06-07 21:41
Hi Marco,

I need to override the NoFollow for one link. Could you please let me know how I can do it?
Thanks

Alex
Citazione
0 #44 Evgeny 2016-09-06 08:38
Hello!
Can you add an ability to exclude somу categorys and id of materials?

===Answer
Hi Evgeny,
sorry, but I'm not going to do that...

bye,
marco
Citazione
0 #43 Enana 2016-01-12 13:49
Hello Marco,
Please I need your help,
This website create with (Joomla! 3.1.1 Stable [ Ember ] 26-April-2013 14:00 GMT), I did install (Marco's SQL Injection ) but the site become like a crash and stopped to work and the error appears in site administrator (UNKNOWN ERROR ACCESSING IPTABLE: SQL=DELETE FROM `r9128_mi_iptab le` WHERE DATE_ADD(`lasth acktime`, INTERVAL 3000 SECOND) < NOW() AND `autodelete`=1;)

How can I fix this error and make the website work??

Thanks a lot,
Enana

===Answer
recover instruction are on this page.
strange error (error accessing), I suppose a problem on the server (authorization)
Citazione
0 #42 Lucas 2014-05-16 11:03
Hi Marco,

I have a little problem. I have Joomla 1.5.14 and almost everything is ok, but some articles shows:
"Notice: Undefined index: href in /www/timeout_ww w/www/plugins/c ontent/marconof ollow.php on line 62"
Could you he me solve this problem? I will be so gratefull. This plugin is great.

====Answer only v1.2.2 j1.5
Hi Lucas,
ops, version for J1.5 is neither supported nor updated, anyway insert the folling line of code

if (!isset($list[' href'])) continue;

before line 62.
bye,
marco
Citazione
0 #41 Andy 2014-04-09 12:48
My hoster forces me to use PHP 5.4 and your (great! thanks...) plugin drops a fatal error on it:

Fatal error: Call-time pass-by-referen ce has been removed in /home/sitename/ public_html/plu gins/content/ma rconofollow/mar conofollow.php on line 49

Can you please tell us how to fix or release an updated version?

Best regards and thanks a lot!

===Answer
Hi Andy,
I suppose you are talking about the J1.5 version.

replace line 49:
preg_match_all( $pattern, $text, &$links, PREG_SET_ORDER );
with:
preg_match_all( $pattern, $text, $links, PREG_SET_ORDER );
ie: remove the & before $links.


really, the plugins for J1.5 aren't supported anymore :(
have a nice day!

PS: if you like it, write a review: thanks!

bye,
marco
Citazione
0 #40 Guest 2013-11-23 10:58
Salve, sto cercando di installare il plugin su Joomla 1.5.2 ma ho il seguente errore:

JFolder::create : Impossibile creare la cartella
Attenzione! - Operazione di spostamento file fallita

Come posso fare?
Grazie molte,
Alessandro

===Risposta
ciao Alessandro,
il messaggio di errore citato è, nella quasi totalità dei casi, imputabile a:

. percorso sbagliato nella configurazione del parametro 'impostazioni server -> Percorso Temp'
. permessi non sufficienti a scrivere nella directory 'Percorso Temp'.

controlla la configurazione di Joomla.

ciao,
marco
Citazione
+3 #39 Guest 2013-03-22 06:59
Are you going to launch J3.0 compatible version?

=== Answer
launched ;)

Version for Joomla! 3.0 has been released.

bye,
marco
Citazione
0 #38 Guest 2013-01-31 08:53
Hello, Marko,

Do You know that Your plugin doesn't work on php 5.4?

it gives an error there
Citazione
0 #37 Guest 2012-12-17 19:44
does not work for ZOO :cry:
Please Help

===Answer
I don't know zoo. anyway this plugin should work with any extension: check the execution order of system plugins: it must be the first.
Citazione

Aggiungi commento

Please note: URL in text are not linked and user's site address is only for internal use and is not published.

Comments are human checked. All spam will be removed, so don't waste your time and, especially, mine!

Codice di sicurezza
Aggiorna