Working on itUpdate facebook URL's to HTTPS

  • Author
    Posts
  • Chris Giles
    Participant

    I serve my website over HTTPS (SSL), but the facebook .JS file being used by the plugin is served over http, this causes most browsers to block the unsecured script and the popup does not show.

    I have manually updated the facebook URL’s in your code (lines 128 & 129) which solves this problem. Could you add this into the next update so that I don’t have to go back and change the URL’s each time. Using the Facebook HTTPS URL’s will not effect users who don’t have an SSL on thier site.

    /**
    	* Load scripts and styles
    	*/
    	function fanbox_popup_front_script(){
     
    			$lang = get_locale();
    			//wp_enqueue_script('wsp-fb', 'https://connect.facebook.net/'.$lang.'/all.js#xfbml=1', array('jquery'),$this->parameter['version'],FALSE);
    			wp_enqueue_script('ffp-fb', 'https://connect.facebook.net/'.$lang.'/sdk.js#xfbml=1&version=v2.5', array('jquery'),$this->parameter['version'],FALSE);
    			wp_enqueue_script('ffp-fanbox', plugins_url( 'assets/js/spu.js' , __FILE__ ),array('jquery'),$this->parameter['version']);
    			wp_enqueue_style('ffp-css-fanbox', plugins_url( 'assets/css/spu.css' , __FILE__ ),'all',$this->parameter['version']);
    
    			if( is_rtl() ){
    				wp_enqueue_style('ffp-css-fanbox-rtl', plugins_url( 'assets/css/spu-rtl.css' , __FILE__ ),'all',$this->parameter['version']);
    			}
    	}
    #4361
    iLen
    Keymaster

    Hello, thank you very much for reference, I will update the plugin in the next few days

    #4365
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.