Forums

NextGEN Gallery
Bug with autocomplete when site is mixed http/https (2 posts)

  1. eltorio
    Member
    Posted 6 months ago #

    Hi Alex,
    On my website wich is hosted on http and https and ssl administration is forced via:

    define('FORCE_SSL_ADMIN', true)

    in wp-config.php the autocomplete list in the tinymce window does not work.

    In fact the home_url() return http://someurl.com because the main url for the website is http://someurl.com but if you use the FORCE_SSL_ADMIN you need to force also https for autocomplete.
    This is my simple solution:

    --- nextgen-gallery/admin/tinymce/window.php.orig     2011-11-16 12:34:25.000000000 +0100
    +++ nextgen-gallery/admin/tinymce/window.php     2011-11-16 12:31:34.000000000 +0100
    @@ -24,13 +24,13 @@
    <script type="text/javascript">
    jQuery(document).ready(function(){
         jQuery("#gallerytag").nggAutocomplete( {
    -        type: 'gallery',domain: "<?php echo home_url('index.php'); ?>/"
    +        type: 'gallery',domain: "<?php echo home_url('index.php',is_ssl()?'https':'http'); ?>/"
         });
         jQuery("#albumtag").nggAutocomplete( {
    -        type: 'album',domain: "<?php echo home_url('index.php'); ?>/"
    +        type: 'album',domain: "<?php echo home_url('index.php',is_ssl()?'https':'http'); ?>/"
         });
         jQuery("#singlepictag").nggAutocomplete( {
    -        type: 'image',domain: "<?php echo home_url('index.php'); ?>/"
    +        type: 'image',domain: "<?php echo home_url('index.php',is_ssl()?'https':'http'); ?>/"
         });
    });
    </script>

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. Alex Rabe
    Member
    Posted 6 months ago #

    Thx for this note, didn't consider this . At the best report this at m Google Code page, THX

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.