How to remove Powered By Phoca Gallery in Joomla 2.5
Written by Brad Markle
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:
- 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>'; } - 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>'; - 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>';
Like this Article?
Tweet
Setting up a Joomla 2.5 Photo Gallery using Phoca Gallery
Latest Questions
If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Recent QuestionsNeed 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 |

