• Resolved anjx

    (@anjx)


    Hi,
    I have media library on subdomain:
    images.site.com

    To import from ther, I tried to insert this code in wp-config.php:
    define('NGG_IMPORT_ROOT', dirname('/web/htdocs/images.site.com/home/img') . '/');

    and aldo:
    define('NGG_IMPORT_ROOT', dirname('HTTP://images.site.com/img') . '/');
    OR
    define('NGG_IMPORT_ROOT', dirname(__FILE__) . '/');

    But doesn’t work. In import page, I see always:
    wp-admin
    wp-content
    wp-includes

    Please give me a solution.

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter anjx

    (@anjx)

    I found the solution:

    define(‘NGG_GALLERY_ROOT_TYPE’, ‘content’);
    define(‘NGG_IMPORT_ROOT’, dirname(‘/web/htdocs/images.site.com/home/img’) . ‘/’);

    ??

    Plugin Contributor photocrati

    (@photocrati)

    @anjx – Well Done!

    – Cais.

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