First up you'll need to copy a bunch of files from administrator/components/com_phocagallery to the front end components folder recreating the same folder structure:
components/com_phocagallery/libraries/phocagallery/file/filethumbnail.php
components/com_phocagallery/libraries/phocagallery/image/imagemagic.php
components/com_phocagallery/libraries/phocagallery/path/path.php
components/com_phocagallery/libraries/phocagallery/render/renderadmin.php
components/com_phocagallery/libraries/phocagallery/render/renderprocess.php
components/com_phocagallery/libraries/phocagallery/text/text.php
components/com_phocagallery/models/phocagallerylinkimg.php
components/com_phocagallery/views/phocagallerylinkcats/view.html.php
components/com_phocagallery/views/phocagallerylinkcats/tmpl/default.php
components/com_phocagallery/views/phocagallerylinkimg/view.html.php
components/com_phocagallery/views/phocagallerylinkimg/tmpl/default.php
components/com_phocagallery/views/phocagallerylinkimg/tmpl/default_slideshow.php
components/com_phocagallery/views/phocagallerylinkimg/tmpl/default_switchimage.php
components/com_phocagallery/views/phocagallerylinkimg/tmpl/default_slideshow.php
components/com_phocagallery/views/phocagallerylinkimg/tmpl/default_images.php
components/com_phocagallery/views/phocagallerylinks/view.html.php
components/com_phocagallery/views/phocagallerylinks/tmpl/default.php
components/com_phocagallery/phocagallery.php
--and the plugin--
plugins/editors-xtd/phocagallery.php
comment out the if clause that switches the pluging off in the front in plugins/editors-xtd/phocagallery.php at line 39
Code: Select all
/*if (!$mainframe->isAdmin()) {
$button = null;
}*/
Code: Select all
phocagalleryimport('phocagallery.file.filethumbnail');
phocagalleryimport('phocagallery.file.fileupload');
phocagalleryimport('phocagallery.render.renderadmin');
phocagalleryimport('phocagallery.text.text');
phocagalleryimport('phocagallery.render.renderprocess');
The table view for the image table adds pagination by default and that causes a hiccup. You should really turn pagination off by modifying things further but I just switched it off by commenting out the following in components/com_phocagallery/views/phocagallerylinkimg/tmpl/default.php- like this
Code: Select all
<td colspan="6"><?php //echo $this->tmpl['pagination']->getListFooter(); ?></td>
Fingers crossed someone much cleverer than me at Phoca will be able to use this info to upgrade the plug-in properly.
I have also modified the mod_phocagallery_image module to use the Moefader to slideshow images. You can see that here:-
http://host.quksdns4.net/~pjagolf/
good luck