powered-by-phoca-galleryOn 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.php

    Around 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="http://www.ph'
                            . 'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'
                            . 'a.cz">Phoca</a> <a href="http://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="http://www.ph'
                            . 'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'
                            . 'a.cz">Phoca</a> <a href="http://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="http://www.ph'. 'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'. 'a.cz">Phoca</a> <a href="http://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="http://www.ph'. 'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'. 'a.cz">Phoca</a> <a href="http://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="http://www.ph' .'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'.'a.cz">Phoca</a> <a href="http://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="http://www.ph' .'oca.cz" style="text-decoration: none;" target="_blank" title="Phoc'.'a.cz">Phoca</a> <a href="http://www.phoca.cz/phocaga'.'llery" style="text-decoration: none;" target="_blank" title="Phoca Gal' .'lery">Gall'.'ery</a></div>';
You are viewing Section 5: How to remove Powered By Phoca Gallery in Joomla 2.5
Section 4: Link to a listing of your Phoca Gallery Image Categories
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

n/a Points
2014-07-13 9:35 am
you can remove it by change this code :

echo '<div style="text-align: center; color: rgb(211, 211, 211);display:block;">Powered by <a href="http://www.phoca.cz/phocagallery" style="text-decoration: none;">Phoca Gallery</a></div>';

you can but ( // ) befor it

in line 83 in dir components/com_phocagallery/views/categories/tmpl/default.php

it will work ;)
n/a Points
2014-08-06 6:02 am

Thanks

n/a Points
2014-08-14 12:20 pm

Thanks so much!!  This worked great!

n/a Points
2014-08-31 7:29 pm

I can not change anything because the misage is Permission denied,please help me.

Staff
19,241 Points
2014-09-02 1:21 pm
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
n/a Points
2014-10-05 4:40 am

Thanks so much!!  This worked great!

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

6 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!