WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[feature request] gallerypath - use different method to set? (2 posts)

  1. ururk
    Member
    Posted 1 year ago #

    I typically install WordPress with uploaded files outside of web root... this causes problems with plugins that assume the uploads directory is in the standard location. There are different ways to determine the upload path - but WordPress has some built in methods and recommended guidelines:

    http://codex.wordpress.org/Function_Reference/wp_upload_dir
    http://codex.wordpress.org/Determining_Plugin_and_Content_Directories

    It would be great if this type of configuration was supported. Essentially, in this type of setup, 'baseurl' is the base path to the file via the web (http://....), and could be absolute (/files) or full (http://www.example.com/files). 'basedir' is the full system path to the writeable folder (/home/wp-content/uploads, or /home/blogs.dir....). Sometimes the upload path and written file location do not have the same names.

    WP Multisite, if running, will work out of the box like this with a few small setting changes, and a single config setting in wp-config.php. No hacking of core is required! WP without Multisite requires a helper script to read the files, but again no hacking.

    Thanks!

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. ururk
    Member
    Posted 1 year ago #

    Oh, also, I was able to modify the plugin to get this to work - but it required one hardcoded path - only because of how some of the file paths are constructed. I think to implement this would require changing how the gallerypath option is used... so it isn't as simple as the few changes I needed to make.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.