Make Compojoom component no follow free

By default, the Compojoom component – formerly known as Joomla! Comment – is not "nofollow free". Fortunately, there is a very simple hack that can be done in order to make it "nofollow free". Please note that this hack applies to version 4 of the component as the previous version has a different file structure.

This being said, this is how to do it (it’s really simple!):

  1. Download the file:
    • site_root/components/com_comment/classes/joomlacomment/JOSC_post.php
  2. Search for the "nofollow" sting in the file. Depending on the version you are using, it might be on line 317 (version 4.1.3), 541 (version 4.1.4) or elsewhere.
  3. Once the "nofollow" string is found in a place like:
    • <a class=’postwebsite’ rel=’external nofollow’ href=’".$website."’ …
  4. Delete the word "nofollow", resulting something like:
    • <a class=’postwebsite’ rel=’external’ href=’".$website."’ …
  5. Upload the file back to the server.
  6. Clean the cache, if you have enabled it.

That’s all. I hope it helps.

Dacă ți-a plăcut acest articol, recomandă-l și altora folosind butoanele pentru Twitter, Facebook și Google +1.
Acest articol a fost publicat în Joomla Knowledge Base. Salvează legătura permanentă. .

Lasă un răspuns

Adresa ta de email nu va fi publicată. Câmpurile necesare sunt marcate *

*

Poți folosi aceste etichete HTML și atribute: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Vreau să fiu părtaș la faptă. Poți, de asemenea, să fii părtaș și fără martori.