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>