Support » Plugins » [Plugin: NextGEN Gallery] Import Folder – outside wordpress directory

  • 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>

Viewing 4 replies - 1 through 4 (of 4 total)
  • bump!

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

    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.

    So, how to modify the code?

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] Import Folder – outside wordpress directory’ is closed to new replies.