This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

SSL Support
#1

Is it possible to include SSL support? Currently, I have all pages on my website loading through SSL, but any page with commentics on it throws many errors. Glimpsing through the code, I saw it converts https:// to http://. Would I just remove that, or is it just not possible to do this?
Reply
#2

The code which I think you're referring to only converts that temporarily to check whether the page exists. The script should work on pages that use SSL. You said that the page throws many errors. What errors are showing? Can you give me a link to the page so I can see what's going on? PM me it if you want.

Have you completed the interview?
Reply
#3

https://freereads.net/story/85
Sorry, but you'll have to log in to see the comment form.

It's not displaying any errors, but it gives content blocking errors in the chrome console, and displays the semi-secure ssl icon (the yellow one instead of green)
Reply
#4

Do you have any login details that I can use?

Have you completed the interview?
Reply
#5

Yeah
Username Fred
Pass TEMP
Reply
#6

In /upload/includes/functions/page.php, can you find this (line 776) ..

PHP Code:
<?php 
function cmtx_commentics_url() { //gets the URL to Commentics

.. and add this on the line below it ..

PHP Code:
<?php 
return 'https://freereads.net/commentics/upload/';

Have you completed the interview?
Reply
#7

So replace return $url; with that? I did that but it doesn't seem to have fixed it.
Reply
#8

Don't replace return $url; with anything. Just add that line below the opening function line so you have this:

PHP Code:
<?php 
function cmtx_commentics_url() { //gets the URL to Commentics
return 'https://freereads.net/commentics/upload/';

Have you completed the interview?
Reply
#9

It does seem to have worked to an extent. The privacy policy link is using https.

Have you completed the interview?
Reply
#10

You'll need to change the cmtx_current_page() function as well (directly below it). I don't know exactly why but the code which checks if your URL is using https doesn't seem to work on your site.

In the cmtx_current_page() function replace this line:

PHP Code:
<?php 
'http' . ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 's' : '') . '://'

With this:

PHP Code:
<?php 
'https://'

For the Google API links which are in /upload/includes/template/head.php, you could use a relative protocol so for example instead of:

PHP Code:
<?php 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

It would be this:

PHP Code:
<?php 
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

Have you completed the interview?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)