Tuesday, July 7, 2009

Phoca Gallery Remove Link and Logo - Joomla

Hi,

go to your below path of site

components/com_phocagallery/views/category

Open File view.html.php

On Line number 167 comment $tmpl['route'] with // $tmpl['route'];

It's now done, in images list

38 comments:

  1. i dont have this folder libraries :/

    ReplyDelete
  2. post your component please or send me

    ReplyDelete
  3. This dosen't work in Version 2.5.8!

    Here is a guide Taken from :

    http://freejoomlahacks.blogspot.com/2009/07/phoca-gallery-remove-link-and-logo.html

    and modified!

    --- Now the Guide ----

    go to your below path of site

    \administrator\components\com_phocagallery\libraries\phocagallery\render\

    Open File renderinfo.php

    under line 49 add this:

    $str ='';

    ReplyDelete
  4. This doesn't work you may go to

    \administrator\components\com_phocagallery\libraries\phocagallery\library\

    open library.php and change the line 54 to:

    return "";

    ReplyDelete
  5. Open renderinfo.php and search for return $lg;

    change to return null;

    This for version 2.5.8

    ReplyDelete
  6. I am using the new, 2.6 gallery, how do i remove it from there. the footer , i wish i could just erase it, please help.

    ReplyDelete
  7. 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
  8. To remove or disable the "Powered by Phoca Gallery" footer at the bottom of Phoca Photo Gallery version 2.6.1 you have to edit a few files.

    The code is obfuscated, but it's your right under GPLv2 to edit it.

    Let's start in /components/com_phocagallery/views/categories/view.html.php file, edit line number 193 containing :

    $tmpl['ed'] = base64_decode('PGRpdiBzdHlsZT0idGV4dC1hbGlnbjogY2VudGVyOyBjb2xvcjogcmdiKDIxMSwgMjExLCAyMTEpOyI+UG93ZXJlZCBieSA8YSBocmVmPSJodHRwOi8vd3d3LnBob2NhLmN6IiBzdHlsZT0idGV4dC1kZWNvcmF0aW9uOiBub25lOyIgdGFyZ2V0PSJfYmxhbmsiIHRpdGxlPSJQaG9jYS5jeiI+UGhvY2E8L2E+IDxhIGhyZWY9Imh0dHA6Ly93d3cucGhvY2EuY3ovcGhvY2FnYWxsZXJ5IiBzdHlsZT0idGV4dC1kZWNvcmF0aW9uOiBub25lOyIgdGFyZ2V0PSJfYmxhbmsiIHRpdGxlPSJQaG9jYSBHYWxsZXJ5Ij5HYWxsZXJ5PC9hPjwvZGl2Pg0K');

    and replace by :

    $tmpl['ed'] = '';


    In the /administrator/components/com_phocagallery/librairies/render/renderfront.php locate the getString() method and replace the return line 464 by :

    return '';

    In the same file you can replace the whole function "correctRender" (line 502 to 554) in order to use Redact and ReReplacer plugins with Phoca Gallery by :

    function correctRender() {};

    There is a last obfuscated file in /administrator/components/com_phocagallery/librairies/phocagallery/render/renderinfo.php but I don't think the getPhocaIc() function is used anymore.

    Phoca Gallery is great, but the code obfuscation.... no comment!

    ReplyDelete
  9. my phoca is v 2.2.4 and have`nt librairies and i want to remove the phoca gallery logo on footer of user viwe plz help me
    sajad2000x@hotmail.com

    ReplyDelete
  10. Ohh man.. Love your work guys..

    In fact that Jan in the phoca forum site totally deny to give people the option to remove this damn encoded link! In my opinion he is really irritating people more than helping them.. and also try force people to donate money! Thats is fucking wrong.. well, they had made a really good work about extentions (no doubt about that) but again.. don't force people to pay!

    Kemiga

    ReplyDelete
  11. Does someone know how to do it with Phoca Gallery 2.7 ?..

    ReplyDelete
  12. How is beta version 2.7.1?

    ReplyDelete
  13. /public_html/components/com_phocagallery/views/category --> view.html.php dosyasındaki line 168
    code:
    $tmpl['md'] = base64_decode('PGRpdiBzdHlsZT0idGV4dC1hbGlnbjogY2VudGVyOyBjb2xvcjojZDNkM2QzOyI+UG93ZXJlZCBieSA8YSBocmVmPSJodHRwOi8vd3d3LnBob2NhLmN6IiBzdHlsZT0idGV4dC1kZWNvcmF0aW9uOiBub25lOyIgdGFyZ2V0PSJfYmxhbmsiIHRpdGxlPSJQaG9jYS5jeiI+UGhvY2E8L2E+IDxhIGhyZWY9Imh0dHA6Ly93d3cucGhvY2EuY3ovcGhvY2FnYWxsZXJ5IiBzdHlsZT0idGV4dC1kZWNvcmF0aW9uOiBub25lOyIgdGFyZ2V0PSJfYmxhbmsiIHRpdGxlPSJQaG9jYSBHYWxsZXJ5Ij5HYWxsZXJ5PC9hPjwvZGl2Pg0K');
    change to
    code:
    $tmpl['md'] = base64_decode('a');
    haline
    sonrasında da
    /public_html/components/com_phocagallery/views/categories --> view.html.php line 220
    code:
    $tmpl['ab'] = base64_decode('PGRpdiBzdHlsZT0idGV4dC1hbGlnbjogY2VudGVyOyBjb2xvcjogcmdiKDIxMSwgMjExLCAyMTEpOyI+UG93ZXJlZCBieSA8YSBocmVmPSJodHRwOi8vd3d3LnBob2NhLmN6IiBzdHlsZT0idGV4dC1kZWNvcmF0aW9uOiBub25lOyIgdGFyZ2V0PSJfYmxhbmsiIHRpdGxlPSJQaG9jYS5jeiI+UGhvY2E8L2E+IDxhIGhyZWY9Imh0dHA6Ly93d3cucGhvY2EuY3ovcGhvY2FnYWxsZXJ5IiBzdHlsZT0idGV4dC1kZWNvcmF0aW9uOiBub25lOyIgdGFyZ2V0PSJfYmxhbmsiIHRpdGxlPSJQaG9jYSBHYWxsZXJ5Ij5HYWxsZXJ5PC9hPjwvZGl2Pg0K');
    change to
    code:
    $tmpl['ab'] = base64_decode('a');

    ReplyDelete
  14. thanks for help... it works for version 2.7.0... but, only does for category list.. when you clic on an item, a new window opens showing the "Powered by Phoca Gallery"... it must be some other file to change... but where is it?

    thanks again...

    ReplyDelete
  15. Thanks dude...dis information was really helpful

    ReplyDelete
  16. phoca 2.7.4

    follow the following very simple steps to remove the phoca gallery powered by text.

    1) Go to 'administrator' folder
    2) and then open 'components' folder
    3) and then open 'com_phocagallery' folder
    4) and then open 'libraries' folder
    5) and then open 'phocagallery' folder
    6) and then open 'render' folder
    7) and in the last open this file 'renderfront.php'
    8) in this file find :
    >> find 1.
    line 1099
    function getString() {
    delete return info..

    >> find 2.
    line 1251
    function getRoute(){
    delete return info..

    Below is the complete path for the above file.
    administrator\components\com_phocagallery\libraries\phocagallery\render\renderfront.php

    ReplyDelete
  17. Thanks for share, it work with version 2.7.4

    ReplyDelete
  18. doesnt work any more under 2.7.4 ...

    when you say delete info should it look like this for getroute? :
    function getRoute(){}

    ?

    and what about this stuff, should i delete it ? :/*
    function correctRender() {
    if (class_exists('plgSystemRedact')) {
    echo "Phoca Gallery doesn't work in case Redact plugin is enabled. Please disable this plugin to run Phoca Gallery";exit;
    $db =& JFactory::getDBO();
    $query = 'SELECT a.params AS params'
    .' FROM #__plugins AS a'
    .' WHERE a.element = \'redact\''
    .' AND a.folder = \'system\''
    .' AND a.published = 1';
    $db->setQuery($query, 0, 1);
    $params = $db->loadObject();
    if(isset($params->params) && $params->params != '') {
    $params->params = str_replace('phoca.cz', 'phoca_cz', $params->params);
    $params->params = str_replace('phoca\.cz', 'phoca_cz', $params->params);
    if ($params->params != '') {
    $query = 'UPDATE #__plugins'
    .' SET params = \''.$params->params.'\''
    .' WHERE element = \'redact\''
    .' AND folder = \'system\'';
    $db->setQuery($query);
    $db->query();
    }
    }

    }



    if (class_exists('plgSystemReReplacer')) {
    echo "Phoca Gallery doesn't work in case ReReplacer plugin is enabled. Please disable this plugin to run Phoca Gallery";exit;
    /*$db =& JFactory::getDBO();
    $query = 'SELECT a.id, a.search'
    .' FROM #__rereplacer AS a'
    .' WHERE (a.search LIKE \'%phoca.cz%\''
    .' OR a.search LIKE \'%phoca\\\\\\\\.cz%\')'
    .' AND a.published = 1';
    $db->setQuery($query);
    $search = $db->loadObjectList();

    if(isset($search) && count($search)) {

    foreach ($search as $value) {
    if (isset($value->search) && $value->search != '' && isset($value->id) && $value->id > 0) {
    $value->search = str_replace('phoca.cz', 'phoca_cz', $value->search);
    $value->search = str_replace('phoca\.cz', 'phoca_cz', $value->search);
    if ($value->search != '') {
    $query = 'UPDATE #__rereplacer'
    .' SET search = \''.$value->search.'\''
    .' WHERE id = '.(int)$value->id;
    $db->setQuery($query);
    $db->query();
    }
    }
    }
    }
    }

    }*/

    ReplyDelete
  19. In latest version of Phocagallery

    >> function getString() is on line 550
    and
    >> function getRoute() is on line 626

    Delete all the matter after return (in gray color) till ;
    I used Notepad++ to edit the file.
    Very Wise method of securing the footer information by phoca.cz without using any encryption.
    If they change the line no. simply search for both the functions using the search tool of the editor.

    ReplyDelete
  20. 2.6.2
    Here:
    1)
    administrator\components\com_phocagallery\libraries\phocagallery\render\renderfront.php
    2) Open "renderfront.php"
    3) Search for:
    function getString() { .....
    and delete all code in {...}

    Results :
    function getString() {
    return '';
    }

    ReplyDelete
  21. Damn... weird, none of the methods working. I've removed everything from renderfront.php functions getString() and getRoute() but copyright keeps showing

    ReplyDelete
  22. With Phoca 2.7.5:
    administrator\components\com_phocagallery\libraries\phocagallery\render\renderfront.php

    Find function: getString() change return to '';
    and function: getDivs() change return to '';

    It works fine with me!

    ReplyDelete
  23. With 2.7.5, the above mentioned method worked, but where to make changes to remove the link from the categories page?

    ReplyDelete
  24. for categories page: i suppose, in com_phocagallery\front\views\categories view.html.php you should remove text between '' in $tmpl['tm'] = '<div... (line 248)
    i don't use joomla often, and never made nested galleries so don't know for sure if it works, but looks like the right code...

    ReplyDelete
  25. In 2.7.5 it is line 261, remove
    $tmpl['phoac'] = .....

    ReplyDelete
  26. WORKED for the gallery portion!

    ReplyDelete
  27. Vũ Ngọc Thiện said...

    With Phoca 2.7.5:
    administrator\components\com_phocagallery\libraries\phocagallery\render\renderfront.php

    Find function: getString() change return to '';
    and function: getDivs() change return to '';

    It works fine with me!

    Deu certo pra mim

    ReplyDelete
  28. blondesign said...

    for categories page: i suppose, in com_phocagallery\front\views\categories view.html.php you should remove text between '' in $tmpl['tm'] = '<div... (line 248)
    i don't use joomla often, and never made nested galleries so don't know for sure if it works, but looks like the right code...

    Ao invés de apagar esta linha 248, eu recomendo fazer o comentário dela.

    Além de fazer esse procedimento deve ser feito também o comentário das linhas 261 e 262 ok.

    language text is portuguese brazilian

    ReplyDelete
  29. I'm running Phoca Gallery for Joomla 1.6 and I can't find any of these methods. Are there different ways for 1.6 version?

    ReplyDelete
  30. Hey guys, how about Phoca PDF v1.0.9

    ReplyDelete
  31. Acesoftech is one of the leading web design and Joomla training center where you can get live and professional training. We train you Joomla at from installation to module and component development. You can get chance to learn on our international project on joomla. If you are looking for real
    http://www.training.acesoftech.com/ joomla-training/Joomla Training in Kolkata and Surat, you can find Acesoftech to be your first choice.

    ReplyDelete
  32. Hey men!!!! I'm using too version 3.0 for joomla1.6 i tried all the instructions, but doesnt work for phoca gall v3.0, anyone find a solution for this version?

    ReplyDelete
  33. Hey men!!!! I'm using too version 3.0 for joomla1.6 i tried all the instructions, but doesnt work for phoca gall v3.0, anyone find a solution for this version?

    ReplyDelete
  34. read the post ,I think it is very good.

    or perhaps you will like to the

    ray ban uk:
    http://www.raybans.uk.com

    ReplyDelete
  35. Solved for 2.7.8 for Joomla 1.5

    Go to /administrator/components/com_phocagallery/libraries/phocagallery/render

    open up renderfront.php


    Navigate to the bottom of the page around line 687

    Change

    function getDivs(){
    return '< styl..="tex'
    .'t-align: center; color:#d3d3'
    .'d3;">Power'
    .'ed by Phoc'
    .'a
    Gal'.'lery';

    to

    return '';


    cheers :)

    ReplyDelete
  36. This works on phoca gallery 3.1.3 on joomla 1.7


    http://www.wirzfamily.ch/index.php/component/content/article/10-blog/joomla/2-remove-powered-by-phoca-gallery

    ReplyDelete
  37. I am using version 3.1.4. Does anyone know how to remove or disable the "Powered by Phoca Gallery" footer at the bottom of Phoca.

    ReplyDelete