• Resolved harjindersingh645

    (@harjindersingh645)


    I’m working on WordPress and using this awesome plugin to display the gallery images.

    But my client has a unique requirement he said to have the Images Imported from the sub-domain folder and as i have checked there’s no direct thing/code which allows me to do so.

    I like to extend this plugin in order to add up the images from the sub-domain folder by using the URL.

    So some one kindly explore how can this be done.

    Thanks

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @harjindersingh645 – Have you looked at defining the NGG_IMPORT_ROOT in your wp-config.php file? Provided your server will allow you to read the sub-domain as a folder of the root domain you may be able to use this method … if not then this may not be possible as NextGEN Gallery does not accept locations outside of the site’s filesystem.

    – Cais.

    Thread Starter harjindersingh645

    (@harjindersingh645)

    @photocrati

    Thanks for your response is there any documentation or example how i can use NGG_IMPORT_ROOT

    Harjinder

    Plugin Contributor photocrati

    (@photocrati)

    @harjindersingh645 – The basics are just a define statement …

    define( 'NGG_IMPORT_ROOT', dirname(__FILE__) . '/' );

    That should allow you access to the root of the WordPress installation …

    – Cais.

    Thread Starter harjindersingh645

    (@harjindersingh645)

    @photocrati- Thanks for the information i have added the following code in wp-config.php file at the bottom of the page

    define(‘NGG_GALLERY_ROOT_TYPE’, ‘content’);
    define(‘NGG_IMPORT_ROOT’, dirname(‘/web/htdocs/immagini.pensorosa.eu/home/gallery/Trucco/thumbs’) . ‘/’);

    It doesn’t seem to be working as the same folders are listed in the Import.

    Can you give me a hint where i have done wrong.

    Harjinder

    Thread Starter harjindersingh645

    (@harjindersingh645)

    @photocrati-

    Thanks buddy it worked the previous code have the gallery folder due to which it gets overwritten so i have created a new folder and tried that in dirname, it worked perfectly.

    Life saver code 🙂

    Happy coding.

    Million thanks.

    Harjinder

    Plugin Contributor photocrati

    (@photocrati)

    @harjindersingh645 – Glad to help. Thanks for the follow-ups!

    – Cais.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Import images from’ is closed to new replies.