Marco's noFollow plugin for Joomla! 1.5 and Joomla! 2.5
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.
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
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
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! 3.0
Joomla! 2.5
(works also on Joomla! 1.6 & Joomla! 1.7)
Joomla! 1.5
There was a bug in v 1.2 please upgrade to 1.2.2 or greater... sorry.
(works also on Joomla! 1.6 & Joomla! 1.7)

Commenti
=== Answer
launched ;)
Version for Joomla! 3.0 has been released.
bye,
marco
Do You know that Your plugin doesn't work on php 5.4?
it gives an error there
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.
Was OK and fine until I upgraded Zentools from JoomlaBamboo. Now only on the pages with Zentools generated gallery I get:
Notice: Undefined offset: 2 in /home/users/wit raze/public_htm l/witraze/witra ze25test/plugin s/content/marco nofollow/marcon ofollow.php on line 58
Do you have any idea?
Thank you
Tomek
grazie a l'aiuto dei ragazzi di JoomlaBamboo ho trovato la soluzione al problema di pocanzi:
nel file /plugins/content/marconofollow.php
ho sostituito questo rigo:
public function onPrepareConten t(&$row, &$params, $limitstart)
con quest'altro:
public function onPrepareConten t(&$row, &$params, $limitstart=null)
e l'errore non c'è più.
Sulla buona strada ci ha portato questo link: forum.joomla.org/.../
Magari nel prossimo update tieni conto della problematica.
Saluti
Anna Maria Stranieri
ho istallato oggi il plugin per Joomla 1.5 in versione 1.2.2. Sul sito uso anche K2 e sulla homepage, il modulo Slideshow di JoomlaBamboo, mod_slideshow3. Il plugin funziona benissimo, solo on combinazione con lo slideshow mi dà questo errore: Missing argument 3 for plgContentMarco nofollow::onPre pareContent() in on line :
Al momento ho dovuto disattivare il plugin. Ho anche scritto a JoomlaBamboo, ma non hanno idea di dove sia il problema. Potresti aiutarmi tu? Vorrei poter usare il plugin.
Grazie
Cordiali saluti
Anna Maria Stranieri
Monaco di Baviera
I've installed your plugin on site built with Joomla 1.5
The plugin was activated but when i tried to browse site www.nwsol.ru (Обслуживание компьютеров Москва)I see nothing was changed.
For example you can see counters in the bottom of the site.
It seems plugin enabled but don't worked properly.
Can you please help?
Thanks
I've installed your plugin on my site built with Joomla 1.5
When I activate it and browse my site I see the below error on all pages.
Can you please help?
Thanks
Warning: Call-time pass-by-referen ce has been deprecated in /content/Hostin g/b/e/mysitenam e.com/web/plugi ns/content/marc onofollow.php on line 49
Warning: Call-time pass-by-referen ce has been deprecated in /content/Hostin g/b/e/mysitenam e.com/web/plugi ns/content/marc onofollow.php on line 54
===Answer
hi Marco
see comment #13
www.mmleoni.net/.../
(remove the '&' in front of the third parameter of the preg_match_all function.)
ciao,
marco
is it compatible with JOomla version 2.5?
====Answer
Yes, J1.6, J1.7, J2.5 basically are the same thing...
bye,
marco
RSS feed dei commenti di questo post.