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

    (@steff3107)

    Well, it’s possible to make this without changes in NextGEN:

    function SE_gallery_filter_content( $content ) {
      if (strpos($content, "http://www.domain.de/wp-content/gallery") !== FALSE) {
    		$content = str_replace('http://www.domain.de/wp-content/gallery', 'http://media.domain.de', $content);
      };
      return $content;
    };
    
    add_filter('the_content', 'se_gallery_filter_content', 100);

    => The subdomain media.domain.de points directly on http://www.domain.de/wp-content/gallery. The code above only replaces the normal url (http://www.domain.de/wp-content/gallery/…) by the new subdomain-url (http://media.domain.de/…).

    But this is not a good solution, because it will slow down wordpress!

    I have the same problem. Better solution?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] Gallery files on subdomain’ is closed to new replies.