NextGen Gallery, Multisite, Domain Mapping
-
If you are trying to use NextGen Gallery on Multisite with Domain Mapping, you might run into the problem that the files are uploading fine but they won’t display. I tried all the fixes but the problem was that the URL to the images was always /wp-content/blogs.dir/(blogid)/… and the images wouldn’t show up. This is because the file upload path is different than the fancy URL for showing file uploads.
As much as I hate doing it, I finally edited the plugin.
In the plugin’s folder, go to admin/addgallery.php. On line 40, you’ll find
$defaultpath = $ngg->options['gallerypath'];
. Below that, I put$defaultpath='files/';
(files is my fancy URL for images) to replace the default path for new galleries.Now, the images upload properly and display fine. To fix existing galleries, you can change the
path
column in your ng_gallery table, but the above fix will make sure you don’t have to do any editing in the tables for future galleries.Just watch for plugin updates. If you update the plugin, your change might be wiped out so just go back in to the addgallery.php file and add the line again.
Hope this helps!
- The topic ‘NextGen Gallery, Multisite, Domain Mapping’ is closed to new replies.