Editing Phoca Gallery Copyright Information
Posted by NigelFeb 13
Phoca Gallery is a photo gallery component by Phoca for Joomla!. This component is highly extensible but lacks one basic feature. The ability to edit the copyright information. In the earlier versions, the copyright was easy to find, wrap a tag around and style. With the newest version, the copyright has been moved and buried in the code. I would speculate this is due to many users removing the copyright information. You should always leave the copyright information if the author asks. The product is free. By removing copyrights the author may start charging fees for use. But you should be able to modify the styles of the copyrights.
I searched several forums, blogs, etc and found nothing on where the copyrights were stored. It took me a little bit of testing to finally determine the location. I only use the categories and category views. Therefore, this solution may only apply to them.
In order to edit the information, go to line 1589 in the file /components/com_phocagallery/views/category/view.html.php. Around this line you will see something similar to the following:
parent::display($tpl);
echo $tmpl['go'];
The line echo $tmpl['go']; prints the copyright information. The copyright is not wrapped in a tag with a class. Whenever the category rendered, the footer was the same size as the rest of the content. You should keep the copyright information present, however, you should be able to style it so there is little effect to your page content. So I modified the code to look like the following:
parent::display($tpl);
echo ‘<div class=”phoca-footer”>’ . $tmpl['go'] . ‘</div>’;
Hoo Haa…. We now have a CSS abled Phoca Gallery footer. As I said before, please leave the copyrights in place. The author worked hard on the component and is providing it for free.
No comments