Edit or remove “Powered by Phoca Guestbook” back-link

As many other free Joomla extensions Phoca Guestbook adds a credit backlink to the footer of your website. You can make a small donation to get the link removed by the Phoca developers.

As extension is released under GPL license nobody prevents you from making the changes yourself. Quite often such backlinks are too obtrusive and you may want to make font smaller or change colours to blend-in better with website’s design. Obviously nobody prevents you from removing back-links completely (a small donation to the author would be a nice gesture though).

Powered By link code is hidden in this file: components/com_phocaguestbook/helpers/phocaguestbook.php

Scroll down to line 176, where you will find following:


function getInfo() {
    return base64_decode('PGRpdiBzdHlsZT0idGV4dC1hbGlnbjogcmlnaHQ7IGNvbG9
                          yOiNkM2QzZDM7Ij5Qb3dlcmVkIGJ5IDxhIGhyZWY9Imh0d
                          HA6Ly93d3cucGhvY2EuY3oiIHN0eWxlPSJ0ZXh0LWRlY29
                          yYXRpb246IG5vbmU7IiB0YXJnZXQ9Il9ibGFuayIgdGl0bGU
                          9IlBob2NhLmN6Ij5QaG9jYTwvYT4gPGEgaHJlZj0iaHR0cDo
                          vL3d3dy5waG9jYS5jei9waG9jYWd1ZXN0Ym9vayIgc3R5b
                          GU9InRleHQtZGVjb3JhdGlvbjogbm9 uZTsiIHRhcmdldD0iX
                          2JsYW5rIiB0aXRsZT0iUGhvY2EgR3Vlc3Rib29rIj5HdWVzd
                          GJvb2s8L2E+PC9kaXY+');
}

 

 

If you want to remove credit links completely, simply delete or comment the above code and replace it with this:


function getInfo() {
return;
}

If you want to modify existing links you need to replace base64_decode function with modified HTML code in plain text. This is what is hidden behind base64_decode function:


<div style="text-align: right; color:#d3d3d3;">Powered by
   <a href="http://www.phoca.cz" style="text-decoration: none;" target="_blank"
        title="Phoca.cz">Phoca</a>
   <a href="http://www.phoca.cz/phocaguestbook" style="text-decoration: none;"
        target="_blank" title="Phoca Guestbook">Guestbook</a>
</div>

Edit above code to suit your needs. For example, if I wanted to make text smaller, I could add font-size:9px; just after color:#d3d3d3;
Then replace base64_decode(……… line with full HTML code. Full replaced code would look:


function getInfo() {
return '
Powered by
           title=”Phoca.cz”>Phoca
           target=”_blank” title=”Phoca Guestbook”>Guestbook
';
}

 

Phoca Guestbook 2.0.5