Hi guys just upgraded to Phoca gallery 4.0.4 I had changed the image/phocagallery to image/webalbums in all previews versions it worked now using the exact some path it no longer works. I have pasted the code I'm using in case I am doing something wrong. Can you please advise me asap it's important.
***********************************************************************************************************************************************************************
class PhocaGalleryPath extends JObject
{
function __construct() {}
function &getInstance() {
static $instance;
if (!$instance) {
$instance = new PhocaGalleryPath();
//$baseFront = str_replace('/administrator', '', JURI::base(true));
$baseFront = JURI::root(true);
$instance->image_abs = JPATH_ROOT . DS . 'images' . DS . 'webalbums' . DS ;
$instance->image_rel = 'images/webalbums/';
$instance->avatar_abs = JPATH_ROOT . DS . 'images' . DS . 'webalbums' . DS . 'avatars' . DS ;
$instance->avatar_rel = 'images/webalbums/avatars/';
$instance->image_rel_full = $baseFront . '/' . $instance->image_rel;
$instance->image_rel_admin = 'media/com_phocagallery/images/administrator/';
$instance->image_rel_admin_full = $baseFront . '/' . $instance->image_rel_admin;
$instance->image_rel_front = 'media/com_phocagallery/images/';
$instance->image_rel_front_full = $baseFront . '/' . $instance->image_rel_front;
$instance->image_abs_front = JPATH_ROOT . DS . 'media' . DS . 'com_phocagallery'. DS . 'images'.DS ;
$instance->media_css_abs = JPATH_ROOT . DS . 'media'. DS . 'com_phocagallery'. DS . 'css' . DS;
$instance->media_img_abs = JPATH_ROOT . DS . 'media'. DS . 'com_phocagallery'. DS . 'images' . DS;
$instance->media_js_abs = JPATH_ROOT . DS . 'media'. DS . 'com_phocagallery'. DS . 'js' . DS;
$instance->media_css_rel = 'media/com_phocagallery/css/';
$instance->media_img_rel = 'media/com_phocagallery/images/';
$instance->media_js_rel = 'components/com_phocagallery/assets/';
$instance->media_css_rel_full = $baseFront . '/' . $instance->media_css_rel;
$instance->media_img_rel_full = $baseFront . '/' . $instance->media_img_rel;
$instance->media_js_rel_full = $baseFront . '/' . $instance->media_js_rel;
$instance->assets_abs = JPATH_ROOT . DS . 'components' . DS . 'com_phocagallery' . DS . 'assets' . DS;
$instance->assets_rel = 'components/com_phocagallery/assets/';
}
return $instance;
}
function getPath() {
$instance = &PhocaGalleryPath::getInstance();
return $instance;
}
}
?>
Re image folder path.
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Re image folder path.
Hi, for now I didn't do such customization so cannot give any clue advice, what all needs to be changed there 
Jan
Jan
If you find Phoca extensions useful, please support the project
-
sfam2708
- Phoca Newbie

- Posts: 8
- Joined: 18 Sep 2013, 12:13
Re: Re image folder path.
Hi Jan found the issue and fixed it. Your code is still correct so don't attempt to alter it. What is happening when you update from J3.1 to J3.2 for some strange reason the original administrator/component folder is shifted directly under administrator/ ----- and a new component folder is created
When I made the changes to the code sure enough I made them under com-phocagallery that resided directly under the administrator and not under the component folder. I deleted all those incorrect files and re adjusted the code under the component folder and everything works.
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact: