I've noticed 2 major faults after installing JW Simple Image Gallery 1.2.1 into Joomla 1.5.15 which cause this extension to not work.
File Name Conflict.
The core files of K2 are expecting this plugin to have the file name jw_sig.php. However the plugin installs as jwsig.php. Therefore, even though Joomla says it is, K2 thinks it's not installed because it can't find jw_sig.php. Edit the following K2 files.
FILE
administrator\components\com_k2\models\item.php
CHANGE jw_sig TO jwsig
FILE
administrator\components\com_k2\views\info\tmpl\default.php
CHANGE jw_sig TO jwsig
FILE
administrator\components\com_k2\views\item\view.html.php
CHANGE jw_sig TO jwsig
FILE
components\com_k2\views\item\view.html.php
CHANGE jw_sig TO jwsig
Gallery root folder conflict:
When you try to upload a zip file for your gallery in a K2 item the upload actually worked but the gallery won't show up. The plugin is looking for the gallery images in images/stories however K2 is uploading them into media/k2/galleries. Simply edit two plugin files to reflect the media/k2/galleries path.
FILE
plugins\content\plugin_jw_sig\showthumbs.php
CHANGE images/stories/ TO media/k2/galleries/
FILE
plugins\content\jwsig.php
CHANGE images/stories/ TO media/k2/galleries/
NOTE:
Incidentally I've noticed some have posted that they have little white boxes for thumbnails. This means that your showthumb.php file has the correct path on line 15 but the jwsig.php file doesn't have the same correct path on line 50. Both have to be the same path.
- 1. File name conflict: jw_sig.php AND jwsig.php
- 2. Gallery root folder conflict: /media/k2/galleries/ AND /images/stories/
File Name Conflict.
The core files of K2 are expecting this plugin to have the file name jw_sig.php. However the plugin installs as jwsig.php. Therefore, even though Joomla says it is, K2 thinks it's not installed because it can't find jw_sig.php. Edit the following K2 files.
FILE
administrator\components\com_k2\models\item.php
Line 775 - JFile::exists(JPATH_PLUGINS.DS.'content'.DS.'jw_sig.php')) {CHANGE jw_sig TO jwsig
FILE
administrator\components\com_k2\views\info\tmpl\default.php
Line 210 - if (JFile::exists(JPATH_PLUGINS.DS.'content'.DS.'<jw_sig>.php'))CHANGE jw_sig TO jwsig
FILE
administrator\components\com_k2\views\item\view.html.php
Line 141 - JPluginHelper::importPlugin ('content', '<jw_sig>');CHANGE jw_sig TO jwsig
FILE
components\com_k2\views\item\view.html.php
Line 464 - JPluginHelper::importPlugin('content', '<jw_sig>');CHANGE jw_sig TO jwsig
Gallery root folder conflict:
When you try to upload a zip file for your gallery in a K2 item the upload actually worked but the gallery won't show up. The plugin is looking for the gallery images in images/stories however K2 is uploading them into media/k2/galleries. Simply edit two plugin files to reflect the media/k2/galleries path.
FILE
plugins\content\plugin_jw_sig\showthumbs.php
Line 15 - $_image_ = '../../../images/stories/'.$_GET['img'];CHANGE images/stories/ TO media/k2/galleries/
FILE
plugins\content\jwsig.php
Line 50 - $rootfolder = '/images/stories/';CHANGE images/stories/ TO media/k2/galleries/
NOTE:
Incidentally I've noticed some have posted that they have little white boxes for thumbnails. This means that your showthumb.php file has the correct path on line 15 but the jwsig.php file doesn't have the same correct path on line 50. Both have to be the same path.