Jump to content


Photo
- - - - -

Secure Contact Page


  • Please log in to reply
7 replies to this topic

#1 hibbsy78

hibbsy78

    Advocate

  • Members

  • 302 posts
  • LocationStaffordshire
  • Framework Version:DMS 2.1.5
  • Country: Country Flag

Posted 27 June 2012 - 04:56 PM

Hi, I have a secure certificate on my site with certain pages set to use https and others not. On the contact page www.hibbslupustrust.org/contact it loads as https and the padlock initially shows but disappears. The following shows the insecure items....any idea how these can be secured so the contact page shows the secure padlock? Domain Name: hibbslupustrust.org URL Tested: https://hibbslupustrust.org/contact Number of items downloaded on page: 92 Valid Certificate found. Certificate valid through: Apr 17 23:59:59 2013 GMT Certificate Issuer: COMODO CA Limited Total number of items: 92 Number of insecure items: 10 Insecure URL: http://www.hibbslupu...css-1340814088/ Found in: https://www.hibbslup...st.org/contact/ Insecure URL: http://fonts.googlea...c,800,800italic Found in: http://www.hibbslupu...css-1340814088/ Insecure URL: http://www.hibbslupu...sprite-grey.png Found in: http://www.hibbslupu...css-1340814088/ Insecure URL: http://www.hibbslupu...rection_nav.png Found in: http://www.hibbslupu...css-1340814088/ Insecure URL: http://www.hibbslupu...umb-overlay.png Found in: http://www.hibbslupu...css-1340814088/ Insecure URL: http://www.hibbslupu...ature-pause.png Found in: http://www.hibbslupu...css-1340814088/ Insecure URL: http://www.hibbslupu...eature-play.png Found in: http://www.hibbslupu...css-1340814088/ Insecure URL: http://www.hibbslupu...ter-balloon.png Found in: http://www.hibbslupu...css-1340814088/ Insecure URL: http://www.hibbslupu...el_navright.png Found in: http://www.hibbslupu...css-1340814088/ Insecure URL: http://www.hibbslupu...sel_navleft.png Found in: http://www.hibbslupu...css-1340814088/ Secure calls made to other websites: www.hibbslupustrust.org is valid and secure. ajax.googleapis.com is valid and secure. Thanks!

#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 27 June 2012 - 05:52 PM

Please see this post: http://www.pagelines...#Comment_107300

#3 hibbsy78

hibbsy78

    Advocate

  • Members

  • 302 posts
  • LocationStaffordshire
  • Framework Version:DMS 2.1.5
  • Country: Country Flag

Posted 27 June 2012 - 07:18 PM

Thanks Simon,

Can I confirm it is a case of adding

 add_filter( 'pless_vars', 'make_ssl_vars' );
	
	function make_ssl_vars( $vars ) {
	
		$vars['plSectionsRoot'] = str_replace( 'http://', 'https://', $vars['plSectionsRoot'] );
		return $vars;
	}
	$vars['plRoot'] = str_replace( 'http://', 'https://', $vars['plRoot'] );

Can this be added to my custom css?

Thanks!

#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 27 June 2012 - 07:26 PM

No its:
 add_filter( 'pless_vars', 'make_ssl_vars' );
	
	function make_ssl_vars( $vars ) {
	
		$vars['plSectionsRoot'] = str_replace( 'http://', 'https://', $vars['plSectionsRoot'] );
	        $vars['plRoot'] = str_replace( 'http://', 'https://', $vars['plRoot'] );
		return $vars;
	}
And it should be placed in pagelines-customize/functions.php

#5 hibbsy78

hibbsy78

    Advocate

  • Members

  • 302 posts
  • LocationStaffordshire
  • Framework Version:DMS 2.1.5
  • Country: Country Flag

Posted 27 June 2012 - 07:40 PM

Sorry Simon...where is customize/functions.php ? It is Appearance > Editor > functions.php ?

#6 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 27 June 2012 - 07:55 PM

wp-admin / pagelines / store / plugins / free / pagelines-customize
install then activate

then with FTP edit this file wp-content/plugins/pagelines-customize/functions.php

#7 hibbsy78

hibbsy78

    Advocate

  • Members

  • 302 posts
  • LocationStaffordshire
  • Framework Version:DMS 2.1.5
  • Country: Country Flag

Posted 27 June 2012 - 08:27 PM

Added the plugin and code but the secure padlock still disappears...?

#8 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 27 June 2012 - 09:01 PM

As i noted in the other thread, a new filter will be added to 2.2.2 ;)