samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Bug with autocomplete when site is mixed http/https #438

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Sets a website with SSL admin as described in 
http://codex.wordpress.org/Administration_Over_SSL
for that you need to add 
define('FORCE_SSL_ADMIN', true);
in your wp-config.php

2. try from the tinymce editor to insert a gallery

What is the expected output? 
when you click on the dropdown list nothing happens. 
What do you see instead?
A dropdown list with the galleries.

What version of the product are you using? On what operating system?
Reported with IE9/Opera 11.50/Firefox 8.0.1

a simple solution is to patch the window.php

--- 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>

Please provide any additional information below.

Original issue reported on code.google.com by gronan.r...@gmail.com on 17 Nov 2011 at 7:10

GoogleCodeExporter commented 8 years ago
see r1024

Original comment by alex.cologne on 20 Nov 2011 at 12:08