Edit or remove "Powered by Phoca Guestbook" back-link

( 2 Votes ) 

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:

View source
  1.  
  2. function getInfo() {
  3.     return base64_decode('PGRpdiBzdHlsZT0idGV4dC1hbGlnbjogcmlnaHQ7IGNvbG9
  4.                           yOiNkM2QzZDM7Ij5Qb3dlcmVkIGJ5IDxhIGhyZWY9Imh0d
  5.                           HA6Ly93d3cucGhvY2EuY3oiIHN0eWxlPSJ0ZXh0LWRlY29
  6.                           yYXRpb246IG5vbmU7IiB0YXJnZXQ9Il9ibGFuayIgdGl0bGU
  7.                           9IlBob2NhLmN6Ij5QaG9jYTwvYT4gPGEgaHJlZj0iaHR0cDo
  8.                           vL3d3dy5waG9jYS5jei9waG9jYWd1ZXN0Ym9vayIgc3R5b
  9.                           GU9InRleHQtZGVjb3JhdGlvbjogbm9 uZTsiIHRhcmdldD0iX
  10.                           2JsYW5rIiB0aXRsZT0iUGhvY2EgR3Vlc3Rib29rIj5HdWVzd
  11.                           GJvb2s8L2E+PC9kaXY+');
  12. }
  13.  

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

View source
    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:

View source
<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:

View source
function getInfo() {
return '<div style="text-align: right; color:#d3d3d3; font-size:9px;">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>';
}

Phoca Guestbook 2.0.5

Comments   

Anna_P
+1 # Anna_P 2013-07-10 03:26
Awesome, thanks!!!
Reply | Reply with quote | Quote
Api
0 # Api 2013-11-09 17:38
it works! cool! thanks! :lol:
Reply | Reply with quote | Quote
Quack
0 # Quack 2013-12-25 06:08
I want to add a little ways to Phoca Guestbook version 3.0.1

link code is hidden in this file: components / com_phocaguestb ook / helpers / phocaguestbook.php

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

61. function GetInfo () {
62. return;/ * ' Po'. 'were'. 'd b'. 'y'
64. . '
Reply | Reply with quote | Quote
Yuriy_UA
0 # Yuriy_UA 2014-03-23 17:21
Cool! Thank you!!! :roll:
Reply | Reply with quote | Quote
error404
0 # error404 2014-07-16 21:24
nice he
Reply | Reply with quote | Quote
Powered
0 # Powered 2014-08-01 12:08
Brilliant! I just want to write it down for joomla 3 the code to be deleted:

'Po'.'were'.'d b'.'y'
.' P'
.'hoca Gues'.'tbook'

Thank you again for your help!
Reply | Reply with quote | Quote
Powered
0 # Powered 2014-08-01 12:08
style="tex'.'t-alig'
.'n: right;">Po'.'we re'.'d b'.'y'
.' P'
.'hoca Gues'.'tbook
Reply | Reply with quote | Quote
marianna
0 # marianna 2014-09-10 07:25
Bingo. great
Reply | Reply with quote | Quote
Tara
0 # Tara 2014-09-16 06:05
Great article, exactly what I needed.
Reply | Reply with quote | Quote
Pat
0 # Pat 2014-10-28 23:53
Informative article, just what I wanted to find.
Reply | Reply with quote | Quote

Add comment


Newsletter

Subscribe to receive occasional updates on new posts.

Your email will not be used for any other purpose and you can unsubscribe at any time.

Privacy Policy                     Login