Support » Plugin: Wetter.info Wetter Gadget » Mixed contend (http vs. https)

  • Heiko Mamerow

    (@heiko_mamerow)


    If you (like my client) has problem with mixed content on your https website, you can use my fork of the plugin: https://github.com/HeikoMamerow/wetterinfo-fork

    …or just replace this:

    
    echo '<div id="wetterinfo_data">&nbsp;</div>
    <script language="javascript" src="https://wiga.t-online.de/wetter/webgadgetWordpress/getWetterinfoTemplate.php?uni='.$code_uni.'"></script>';
    

    …with this:

    
    $wetter_data = file_get_contents( 'https://wiga.t-online.de/wetter/webgadgetWordpress/getWetterinfoTemplate.php?uni=' . $code_uni );
    $wetter_data = str_replace( 'http:', 'https:', $wetter_data );
    
    echo '<div id="wetterinfo_data">&nbsp;</div>';
    echo "\n <script>";
    echo "\n\t" $wetter_data;
    echo "\n </script>\n";
    
    • This topic was modified 2 years ago by  Heiko Mamerow.
    • This topic was modified 2 years ago by  Heiko Mamerow. Reason: litte formating
  • The topic ‘Mixed contend (http vs. https)’ is closed to new replies.