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.
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.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>'; }
- 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>';
- 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>';
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'];
hiIs it useful for joomla3?
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
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..
It should be located at omponents/com_phocagallery/views/category/view.html.php
Are you using Joomla 2.5?
tanks alot
No working with 3.2.8?
Thanks
Thanks so much!! This worked great!
I can not change anything because the misage is Permission denied,please help me.
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
Thanks so much!! This worked great!