How to Remove ‘Powered by Phoca Gallery’ in Joomla 1.6

4 Aug 2011

Finally, after going through countless files in the com_phocagallery folder, I’ve found the solution! Firebug didn’t help much because there isn’t a class specified for the ‘Powered by Phoca Gallery’ text.

Jan Pavelka, is a bad ass developer.

Googling for a solution didn’t help much either, cause Joomla 1.6 is relatively new and all the solutions posted in forums and blogs were for previous versions of Phoca Gallery.

So here’s how to remove ‘Powered by Phoca Gallery’ for Phoca Gallery version 3.0.1 Beta in Joomla 1.6.

The Culprit – PhocaGalleryUtils::footer()

PhocaGalleryUtils::footer()‘ is the method that’s calling and displaying the footer text. You just have to remove or comment ‘PhocaGalleryUtils::footer()‘. Dreamweaver’s Find and replace function is the de facto weapon for these kind of missions, so use Ctrl + f.

Listed below are the files that you need to edit.

Files to Modify

  1. components\com_phocagallery\views\categories\tmpl\default.php
  2. components\com_phocagallery\views\categories\tmpl\default_map.php
  3. components\com_phocagallery\views\category\tmpl\default.php
  4. components\com_phocagallery\views\user\tmpl\default.php

Here’s an example of what I did to the category default view file (components\com_phocagallery\views\categories\tmpl\default.php):

The last line says:

echo '</form><div>&nbsp;</div>' . PhocaGalleryUtils::footer().'</div>';

So I commented the whole line out and duplicated the line below, minus the ‘PhocaGalleryUtils::footer()’ method.
Here’s how it should look like:

//echo '</form><div>&nbsp;</div>' . PhocaGalleryUtils::footer().'</div>';
echo '</form><div>&nbsp;</div></div>';

Do the same for the other files, re-upload all the files using your FTP software, refresh your Phoca Gallery page in the front-end, and smile away.

And guys,

Please kindly consider donating to Phoca’s developer, Jan Pavelka, so that he’ll continue to bring in more awesome Joomla extensions.

Good luck!

Author - Azhar Kamar
11 Comments Revolving around this Article
  1. Hi, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam comments?

    If so how do you reduce it, any plugin or anything you can recommend?
    I get so much lately it’s driving me mad so any help is very much appreciated.

  2. Charles says:

    Very Good! Thanks

    Azhar Kamar replied:

    @Charles, no problem.

  3. Alica Bayern says:

    Did the same as you write and finally have removed it!! thanks

    Azhar Kamar replied:

    @Alica Bayern, well done!

  4. mojtaba says:

    this does not worked in
    in joomla 1.6
    plz help me

    Azhar Kamar replied:

    @mojtaba, yup this hack is for Phoca Gallery version 3.0.1 Beta. Phoca’s developer usually changes the way the ‘Powered by’ line appears for new versions once in a while. I might try to find the solution for you if I have the time. ;)

  5. guest says:

    very gud

    Azhar Kamar replied:

    @guest, it is.

Write a Comment! NOW! :)

Current ye@r *