How to remove Powered By Phoca Gallery in Joomla 2.5

Joomla 2.5 has reached its end of life as for 12/31/2014. Please be advised this may be a security risk to your website. You can view more information about the end of life here.

powered-by-phoca-gallery

On all Phoca Gallery pages in Joomla 2.5 is a link that reads, Powered By Phoca Gallery. When using free and open source software, it’s general courtesy to link back to the people who have built the software you’re using. There may be times however that you want to remove those links added by the developers. In this tutorial, we’ll walk you through the steps for removing the Powered By Phoca Gallery links in your Joomla 2.5 photo gallery.

How to delete Powered By Phoca Gallery in Joomla 2.5:

  1. Open for edit this file:
    administrator/components/com_phocagallery/libraries/phocagallery/render/renderfront.phpAround line 680, you should see the following:

    function renderInfo() {
            return '<div style="text-align: center; color: rgb(211, 211, 211);">Powe'
                            . 'red by <a href="https://www.ph'
                            . 'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'
                            . 'a.cz">Phoca</a> <a href="https://www.phoca.cz/phocaga'
                            . 'llery" style="text-decoration: none;" target="_blank" title="Phoca Gal'
                            . 'lery">Gall'
                            . 'ery</a></div>';
    }

    Replace the above code with the following:

    function renderInfo() {
            return;
            return '<div style="text-align: center; color: rgb(211, 211, 211);">Powe'
                            . 'red by <a href="https://www.ph'
                            . 'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'
                            . 'a.cz">Phoca</a> <a href="https://www.phoca.cz/phocaga'
                            . 'llery" style="text-decoration: none;" target="_blank" title="Phoca Gal'
                            . 'lery">Gall'
                            . 'ery</a></div>';
    }
  2. There is another file you need to edit:
    components/com_phocagallery/views/category/view.html.php Around line 663, find the following code:

    $this->tmpl['mac'] = '<div style="text-align: center; color: rgb(211, 211, 211);">Powe'. 'red by <a href="https://www.ph'. 'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'. 'a.cz">Phoca</a> <a href="https://www.phoca.cz/phocaga'. 'llery" style="text-decoration: none;" target="_blank" title="Phoca Gal'. 'lery">Gall'. 'ery</a></div>';

    Replace the above code with the following:

    $this->tmpl['mac'] = '';
    // $this->tmpl['mac'] = '<div style="text-align: center; color: rgb(211, 211, 211);">Powe'. 'red by <a href="https://www.ph'. 'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'. 'a.cz">Phoca</a> <a href="https://www.phoca.cz/phocaga'. 'llery" style="text-decoration: none;" target="_blank" title="Phoca Gal'. 'lery">Gall'. 'ery</a></div>';
  3. One more file to edit is:
    administrator/components/com_phocagallery/libraries/phocagallery/utils/utils.php Around line 118, find the following code:

    echo '<div style="text-align: center; color: rgb(211, 211, 211);">Powe'.'red by <a href="https://www.ph' .'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'.'a.cz">Phoca</a> <a href="https://www.phoca.cz/phocaga'.'llery" style="text-decoration: none;" target="_blank" title="Phoca Gal' .'lery">Gall'.'ery</a></div>';

    Replace the above code with the following:

    // echo '<div style="text-align: center; color: rgb(211, 211, 211);">Powe'.'red by <a href="https://www.ph' .'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'.'a.cz">Phoca</a> <a href="https://www.phoca.cz/phocaga'.'llery" style="text-decoration: none;" target="_blank" title="Phoca Gal' .'lery">Gall'.'ery</a></div>';

13 thoughts on “How to remove Powered By Phoca Gallery in Joomla 2.5

  1. Remove copyright for Phoca gallery 4.2.2

    Open:

    components\com_phocagallery\views\category\tmpl\default.php

    Find:

    echo $this->tmpl['elf'];

    Replace:

    //echo $this->tmpl['elf'];

     

    Open:

    components\com_phocagallery\views\categories\tmpl\default.php

    Find:

    echo $this->tmpl['ems'];

    Replace:

    //echo $this->tmpl['ems'];

     

    1. Hello somayeh,

      You may try this in Joomla 3.x but it is not guaranteed to work as we have not tested it.

      Kindest Regards,
      Scott M

  2. components/com_phocagallery/views/categories/tmpl/default.php

    phocagallery v3.2.8 unfortunately ? dont make it beacause in file system different…

    components/com_phocagallery/views/

    phocagalleryc

    phocagalleryco

    phocagallerycoimg

    phocagallerycoimgs

    phocagallerycos

    …..

    Where is this view.html.php?

    which is view.html.php?

    please help me..

     

    1. Hello Mehdi,

      Please provide the full message as well as list the steps you take to get the error. This way we can test or try and troubleshoot why you are getting the error.

      Kindest Message,
      Scott M

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+