Tuesday, June 30, 2009

Joomla - Phoca Guest Book - Remove Copyright Link

Hi,

If you want to remove the copyright link of Phoca Guest Book

1) Root -> Project Folder
2) ->Component - > com_phocaguestbook - > helpers
3) in phocaguestbook.php on line number 73 replace below function

function pF($dF) {
if ($dF == 1) {
$pF = '<'.'d'.'i'.'v'.' '.'s'.'t'.'y'.'l'.'e'.'='.'"'.'m'.'a'.'r'.'g'.'i'.'n'.':'.'1'.'0'.'p'.'x'.';'.'t'.'e'.'x'.'t'.'-'.'a'.'l'.'i'.'g'.'n'.':'.'r'.'i'.'g'.'h'.'t'.'"'.'>'.'<'.'a'.' h'.'r'.'e'.'f'.'='.'"'.'h'.'t'.'t'.'p'.':'.'/'.'/'.'w'.'w'.'w'.'.'.'p'.'h'.'o'.'c'.'a'.'.'.'c'.'z'.'/'.'p'.'h'.'o'.'c'.'a'.'g'.'u'.'e'.'s'.'t'.'b'.'o'.'o'.'k'.''.'"'.' '.'t'.'a'.'r'.'g'.'e'.'t'.'='.'"'.'_'.'b'.'l'.'a'.'n'.'k'.'"'.'>'.'P'.'h'.'o'.'c'.'a'.' '.'G'.'u'.'e'.'s'.'t'.'b'.'o'.'o'.'k'.'<'.'/'.'a'.'>'.'<'.'/'.'d'.'i'.'v'.'>';
} else {
$pF = '';
}
return $pF;
}

with the other function below

function pF($dF) {
if ($dF == 1) {
$pF = '';
} else {
$pF = '';
}
return $pF;
}

14 comments:

  1. Thanks just what I needed

    ReplyDelete
  2. Hi did you know this line doesn't exist in the latest versions, so you cannot use this to remove the link any longer. Is there another work around to remove the link from the guestbook?

    ReplyDelete
  3. i have created a very easy way to remove the link from this reference , thanks freejoomlahacks

    http://pracas.com.np/joomla/phoca-guest-book-remove-copyright-link/

    thanks a lot

    ReplyDelete
  4. Version 1.3.2
    same file

    funcion setP($new){
    if($new == 0) {

    replace -->

    function setP($new) {
    if($new ==1) {

    ReplyDelete
  5. Thanks for your help. I can tell you another way. It is very simple.

    Go to the Function SetP.
    There is IF condition.
    Change if($new==1) as if($new==0)

    We have to change only single charactor.

    Thanks and Regards

    ReplyDelete
  6. Thanks for the solutions, but in version 1.4.0 BETA this doesn't work. They have changed it again:(

    Is there someone who has found this one?

    Greetings,
    Franko

    ReplyDelete
  7. Yes same file,line 101. Delete all inside of the () after the base64_decode.

    ReplyDelete
  8. And insert a space character in place of the encoded text. Should look like this:

    return base64_decode('IA==');

    ReplyDelete
  9. Thank you for your help Rick. I decided to replace the entire code inside the parentheses with a letter "a" (without quotes) which removed the link.

    ReplyDelete
  10. i downloaded 1.41 version they removed these lines please let me know how to remove this hypertext

    ReplyDelete
  11. remove this after base64decode "PGRpdiBzdHlsZT0idGV4dC1hbGlnbjogcmlnaHQ7IGNvbG9yOiNkM2QzZDM7Ij5Qb3dlcmVkIGJ5IDxhIGhyZWY9Imh0dHA6Ly93d3cucGhvY2EuY3oiIHN0eWxlPSJ0ZXh0LWRlY29yYXRpb246IG5vbmU7IiB0YXJnZXQ9Il9ibGFuayIgdGl0bGU9IlBob2NhLmN6Ij5QaG9jYTwvYT4gPGEgaHJlZj0iaHR0cDovL3d3dy5waG9jYS5jei9waG9jYWd1ZXN0Ym9vayIgc3R5bGU9InRleHQtZGVjb3JhdGlvbjogbm9uZTsiIHRhcmdldD0iX2JsYW5rIiB0aXRsZT0iUGhvY2EgR3Vlc3Rib29rIj5HdWVzdGJvb2s8L2E+PC9kaXY+"

    ReplyDelete
  12. How to remove phoca maps Copyright Link

    ReplyDelete