carbonhoarder Posted May 12, 2016 Share Posted May 12, 2016 I overrode the default homeslider module and modified it a bit. But when I load new images on the configure page they don't load properly. A big question mark is shown instead. I found the images are uploaded inside the override/modules/homeslider/images folder, but the shop tries to load them from the default modules folder, /modules/homeslider/images. The default images show up fine (unless I upload them again), I suppose this is because they actually exist with the same name in the original modules folder. How do I change the module so it loads the images from the override folder? Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2016 Share Posted May 12, 2016 in this case you have to change path where the images will be stored elseif (!ImageManager::resize($temp_name, dirname(__FILE__).'/images/'.$salt.'_'.$_FILES['image_'.$language['id_lang']]['name'], null, null, $type)) i mean this part dirname(__FILE__).'/images/' Link to comment Share on other sites More sharing options...
carbonhoarder Posted May 18, 2016 Author Share Posted May 18, 2016 Ok, but I still don't know what should I change it to. How do I target the original modules folder? Doing the opposite (making images load properly from the override folder) seems to have many issues with file permissions. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now