• Resolved Mattn

    (@mattn)


    Somehow I still don’t get an answer/solution…

    The ‘NextGEN Gallery’ uses a different path than the whole WP installation, why?
    Any picture I upload while writing an article is displayed correctly.
    Any picture I upload via gallery is displayed wrong – why?

    My wordpress directory is in “https://domain1.com/wordpress” folder.
    The domain/URL of my blog is “https://domain2.com/”.
    I Forwarded the URL of domain2 to my wordpress folder on domain1.
    So “https://domain2.com/” is equal to “https://domain1.com/wordpress” (but shorter ?? ). (Physically it is the same server!)

    When I upload new images, the Plugin always shows the absolute path of my primary domain. (“https://domain1.com/wordpress/wp-content/gallery/…”).
    I don’t like that. I want my 2nd, forwarded domain to be displayed:
    https://domain2.com/wp-content/gallery”!

    Any picture I upload while writing an article is displayed correctly.
    Any picture I upload via gallery is displayed wrong – why?

    What has to be done, that nextGEN uses and displayes the same path as the whole WordPress Installation, why does it display a different formated path at all?!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Mattn

    (@mattn)

    no one ANY idea?
    my provider has no idea…
    I don’t know how to realize it with .htaccess, if possible…

    But I still think, the problem is in the NextGEN itself, because any other upload does not behave like NextGEN…

    Alex Rabe

    (@alexrabe)

    The path to the images is created here :(lib/images.php )
    Line 68 + 69 :

    $this->imageURL = get_option ('siteurl') . '/' . $this->path . '/' . $this->filename;
    $this->thumbURL = get_option ('siteurl') . '/' . $this->path . '/thumbs/thumbs_' . $this->filename;
    Thread Starter Mattn

    (@mattn)

    thanks for that advice. it was in the lib/image.php

    but what do I have to change in these lines?

    when I replace ‘siteurl’ with ‘DOMAIN2.com’ it still does not work.

    what is the difference between the upload/”picture adress output” in integrated-wordpress-function and the nextgen-function?
    why is it displayed differentely at all?

    Thread Starter Mattn

    (@mattn)

    Problem solved to me:

    “siteurl” must be DOMAIN2.COM, but NOT in the image.php, but in the wordpress installation itself!

    german: “admin–>einstellungen->allgemein->WordPress-Adresse (URL)”
    english something like “admin–>settings->general->WordPress-adress (URL)” (?)
    otherwise you can enter the ‘siteurl’ via phpmyadmin in the SQL database:
    “wp-options” -> siteurl

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] NextGen Gallery Upload Path’ is closed to new replies.