WordPress.org

Ready to get started?Download WordPress

Forums

podPress
podPress and HTTPS (11 posts)

  1. ilf
    Member
    Posted 2 years ago #

    podPress seems to always enter HTTP URLs, even when accessed via HTTPS:

    <link rel='stylesheet' id='podpress_frontend_styles-css'  href='http://domain/wp-content/plugins/podpress/podpress.css?ver=3.3.1' type='text/css' media='all' />
    <script type='text/javascript' src='http://domain/wp-content/plugins/podpress/js/podpress.js?ver=3.3.1'></script>
    <script type="text/javascript" src="http://domain/wp-content/plugins/podpress/players/1pixelout/1pixelout_audio-player.js"></script>
    podpressAudioPlayer.setup("http://domain/wp-content/plugins/podpress/players/1pixelout/" + podPressPlayerFile,
    var podPressBlogURL = "http://domain/";

    How can I make that HTTPS when access via HTTPS?

    http://wordpress.org/extend/plugins/podpress/

  2. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    podPress uses the constants WP_CONTENT_URL and WP_PLUGIN_URL to build these URLs. But is possible that this is not the appropriate way anymore (http://codex.wordpress.org/Determining_Plugin_and_Content_Directories#Backwards_Compatibility_Code).

    Changing this in podPress will take some time (maybe until May 2012).
    Until than you may try the current Development Version (8.8.10.14 beta 4) of podPress along with some modification in the file /wp-includes/default-constants.php
    You can find the definition of the constant WP_CONTENT_URL in line 82 and 83 of this file (WP 3.3.1).
    Replace these lines with

    if ( !defined('WP_CONTENT_URL') ) {
    		if ( function_exists( 'is_ssl' ) and is_ssl() ) {
    			define( 'WP_CONTENT_URL', str_replace( 'http://' , 'https://' , get_option( 'siteurl' ) ) . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
    		} else {
    			define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
    		}
    	}

    With this modification the constant will be defined as an URL with https if it is https request.

    But note that this modification has influence on other plugins, themes or other elements which use this constant. This is eventually a helpful side effect but also could be a problem.
    That is why you should definitely test this first in a test environment before you use it in the real blog.

    Regards,
    Tim

  3. ilf
    Member
    Posted 2 years ago #

    Hello. Any progress on this? :)

    Thanks, and keep up the good work!

  4. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    @ilf: No, unfortunately not and it is more clear that I will have all hands full with other stuff until May.

  5. ilf
    Member
    Posted 1 year ago #

    This is getting more urgent. Starting with version 19, Google Chrome will not display http content on https sites per default. We are experiencing major difficulties with it. They have announced it almost a year ago: http://googleonlinesecurity.blogspot.de/2011/06/trying-to-end-mixed-scripting.html

  6. ntm
    Member
    Plugin Author

    Posted 1 year ago #

    I understand you. But it looks like that I will get to this issue not before June 2012. I'm sorry that this takes so long.

  7. ilf
    Member
    Posted 1 year ago #

    Chrome 19 was released yesterday. Now all sites with Podpress and HTTPS give a "This page has insecure content: Load anyway | don't load (recommended)" warning. This page too, btw: https://wordpress.org/support/topic/podpress-and-https

  8. ntm
    Member
    Plugin Author

    Posted 1 year ago #

    This is probably the first thing I will fix - in June.

  9. ntm
    Member
    Plugin Author

    Posted 1 year ago #

    @ilf: You may try the current Development Version. It contains a lot of modifications and should display icons, default images and statistic URLs with the correct URL scheme. It should solve the problem of mixed http/https content.
    podPress will alter values (URLs) in input boxes. This means that the URL of a default image may be a http:// URL. But podPress will show the icon or image with the https:// scheme in case of such a request.
    podPress will also display other images via a https://-URL if the URL is not a default image but contains the Site URL.

    I would appreciate it very much if could test this version. But be aware that this is still a beta version. Backup your db and files before you install this version.

    Thanks,
    Tim

  10. ilf
    Member
    Posted 1 year ago #

    Thanks, ntm. Unfortunately, I currently do not have a wordpress-installation I can use for testing. Anyone else?

  11. ntm
    Member
    Plugin Author

    Posted 1 year ago #

    (I will do more testing in the next days.)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags