WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Import Folder - outside wordpress directory (5 posts)

  1. kevin2i
    Member
    Posted 5 years ago #

    My wordpress installation is in /wordpress, and thousands of images are in folders outside of my wordpress installation.

    Is there something I can change so the import folder can look one step up the directory structure, starting at web root? (/)

    Not sure what (or if) I can change something here:
    addgallery php - line 227

    <!-- import folder -->
    <div id="importfolder">
    <h2><?php _e('Import image folder', 'nggallery') ;?></h2>
    <form name="importfolder" id="importfolder_form" method="POST" action="<?php echo $filepath.'#importfolder'; ?>" accept-charset="utf-8" >
    <?php wp_nonce_field('ngg_addgallery') ?>
    <table class="form-table">
    <tr valign="top">
    <th scope="row"><?php _e('Import from Server path:', 'nggallery') ;?></th>
    <td><input type="text" size="35" name="galleryfolder" value="<?php echo $defaultpath; ?>" />
    <?php _e('Import a folder with all images.', 'nggallery') ;?>
    <?php if (SAFE_MODE) {?>
    <?php _e(' Please note : For safe-mode = ON you need to add the subfolder thumbs manually', 'nggallery') ;?><?php }; ?></td>
    </tr>
    </table>
    <div class="submit"><input class="button-primary" type="submit" name= "importfolder" value="<?php _e('Import folder', 'nggallery') ;?>"/></div>
    </form>
    </div>

  2. tester1
    Member
    Posted 4 years ago #

    bump!

    So how to import a directory other than inside wordpress\
    ?

  3. lassizci
    Member
    Posted 4 years ago #

    I've been struggling with the same problem. So far the only way (without code modifications) is to symlink the directory to somewhere under wordpress directories. That of course works on unix like systems.

  4. tester1
    Member
    Posted 4 years ago #

    So, how to modify the code?

  5. Llasse
    Member
    Posted 4 years ago #

    Given your directories:

    root/pictures/stuff/ (the one to import)
    root/wordpress/ (your wordpress)

    just type /../pictures/stuff/

    so the /../ should do the work of importing folders outside your wordpress directory.. hope this helps

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.