Phoca gallery tricks |
Thursday, 08 January 2009 | ||||
Here's a linux command line solution to remove all your phoca thumbnails so the system will generate them again: cd /home/your_joomla_folder/images/phocagallery find -name "*phoca_thumb*" -print0|xargs -0 rm
And here's another Phoca gallery trick for global watermark files(i.e you will have global watermark files instead of having to copy watermark-large.png and watermark-medium.png into all gallery subfolders): This modification will watermark all files in all categories and subcategories subfolders using global watermark files placed in [your joomla root]/images/phocagallery. Watermark files should be named watermark-large.png and watermark-medium.png, and you should save them as RGB PNG images with transparency. You have to edit phocagallery.php in administrator/components/phocagallery/helpers add this line $path=JPATH_ROOT.DS.'images'.DS.'phocagallery'; before // Which Watermark will be used ,then a little bit below replace $fileWatermark = str_replace($fileName, 'watermark-medium.png', $file_in); with $fileWatermark = $path.DS.'watermark-medium.png'; then $fileWatermark = str_replace($fileName, 'watermark-large.png', $file_in); with $fileWatermark = $path.DS.'watermark-large.png'; the code should look like this now: // TMJ MOD // global watermark file instead of per-gallery folder $path=JPATH_ROOT.DS.'images'.DS.'phocagallery'; // Which Watermark will be used if ($thumbnailMedium) { // $fileWatermark = str_replace($fileName, 'watermark-medium.png', $file_in); $fileWatermark = $path.DS.'watermark-medium.png'; } else if ($thumbnailLarge) { // $fileWatermark = str_replace($fileName, 'watermark-large.png', $file_in); $fileWatermark = $path.DS.'watermark-large.png';
Great info about thumbnails, thank you! I wonder why there is no button for that in Phoca... In addition to the above fix find Write Comment |
||||
Last Updated ( Thursday, 08 January 2009 ) |
Joomla stuff
Newsletter
Auto tags
phoca gallery watermark
phoca gallery tags
phoca gallery tag
phoca gallery image path
phoca watermark
how to use phoca gallery
how to use phoca gallery in joomla
images/phocagallery/1.rss
phoca gallery
phoca gallery add comments
phoca gallery watermark not working
phocagallery delete
joomla gallery with watermark
phoca gallery images path
phoca gallery watermark problem
phoca gallery+watermark
phoca gallery modify
phoca gallery add watermark
Phocagallery watermark
watermark phocagallery
phoca logo remove
remove phoca gallery logo