• Hi! Great plugin…amazing functionality. One little thing is causing a problem: on a few of my site pages (I’m using WP more of a CMS than blog) I use https instead of http. The things the script includes always stay http, I believe because it takes the siteurl variable the WP settings.

    How can I change this so that on https browsers don’t ask “do you want to include secure and non-secure content”?

    I’m almost-okay editing the code – but figured you would be able to tell faster how to modify it.

    Thank you!

    Dinos

Viewing 11 replies - 1 through 11 (of 11 total)
  • Try version 1.0.0 beta please

    I’m also having an issue with NextGen and SSL. I’m using NextGEN Gallery 1.2.1 with WordPress 2.7.1. I haven’t upgraded these because last time I had a number of negative things happen, including Thick box JS conflicting with WP. Anyway, the minute I switch to https:// within my site, IE gives me the “this page contains both secure and nonsecure items.” I traced it back to NextGen after disabling it, and finding that the error message goes away. So, any fixes for this? Thanks!!

    should be fixed in the currenty version, check the html output, maybe a script or css file are not using the “https://”, give me a note I will fix that

    Yep, I did find <link rel=’stylesheet’ href=’http://www.mydomainname.com/wp-content/plugins/nextgen-gallery/css/nggallery.css?ver=1.0.0&#8242; type=’text/css’ media=’screen’ />. Could this be the issue? Is so, how can I change it? Thanks so much for your help!

    Hey Alex. I was wondering if you thought the style sheet was the culprit. And, if so, where can I hardcode the stylesheet reference with the https:// prefix? I believe that would do the trick, right?

    I didn’t remember that I load the global stylesheet in the admin backend. On which page do you receive the output ?

    If I understand you correctly. Here is one page in question. https://www.fdsdisposalinc.com/shop/checkout/

    I am having the same issue with the current version of NextGen Gallery. If I access a page via https, the nextgen links (css, js, etc) are the only ones that are stubbornly printed as http. I’m also using the HTTP for WordPress plugin.

    Any progress on this?

    Hello All,

    I also ran into the “do you want to include secure and non-secure content” issue and was able to fix it. I am using HTTPS for WordPress.

    You will need to change two files in order to make the https work.

    First file: nextgen-gallery/nggallery.php
    On or around line 210 you will see the definition for “NGGALLERY_URLPATH”.
    Change this line:
    define('NGGALLERY_URLPATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );

    To:

    if(!empty($_SERVER['HTTPS']))
          {define('NGGALLERY_URLPATH', str_replace('http://', 'https://', WP_PLUGIN_URL) . '/' . plugin_basename( dirname(__FILE__) ) . '/' );}
          else
          {define('NGGALLERY_URLPATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );}

    That should take care of all of the NextGen css and js files. The next change you will have to make is to the media-rss.php file in the “Cool Iris” support section.

    Second File: nextgen-gallery/lib/media-rss.php
    Find line 21, you should see an HTML comment being echoed out that says ‘<!– NextGeEN Gallery CoolIris/PicLens support –>’.

    Change line 22 From:
    echo "\n" . '<script type="text/javascript" src="http://lite.piclens.com/current/piclens_optimized.js"></script>';

    To:

    if(!empty($_SERVER['HTTPS']))
          {echo "\n" . '<script type="text/javascript" src="https://lite.piclens.com/current/piclens_optimized.js"></script>';}
          else
          {echo "\n" . '<script type="text/javascript" src="http://lite.piclens.com/current/piclens_optimized.js"></script>';}

    That’s it – your page should no longer display those pesky “unauthenticated” content errors.

    Thanks Jeremy, that fix worked perfectly, you truly are awesome!

    I hope this gets added into the NextGen plugin in a future version…

    Might it be better to add a copy of the piclens javascript to the plugin directory and then include it using wp_enqueue_script(…)

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: NextGEN Gallery] https – problem’ is closed to new replies.