Forum
Welcome, Guest
Please Login to access forum.
http and https: problem with plugin / migration (1 viewing) 
Go to bottom
TOPIC: http and https: problem with plugin / migration
#1038
chris
Fresh Boarder
Posts: 11
User Offline
http and https: problem with plugin / migration Karma: 0  
Hi:
I'm using this plugin since a long time, and it's working really fine!

But 2 days ago, I've integrated an EV SSL certification on my website, all pages are becoming https:// and nor http://

But since this modification I've all (visually, of course!) all my 6xxx G+1 followers...

Please tell me how to proceed to 'force' your plugin to use to http://mywebsite and not https://mywebsite ???? I've checked your PHP code but I don't wan't to make any mistake, please help me on this subject!

Best regards & keep on good job!
Chris
 
Logged Logged  
  The administrator has disabled public write access.
#1039
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:http and https: problem with plugin / migration Karma: 79  
Hello Chris,

the plugin uses the Joomla framework to resolve URLs on site, based on site settings URLs will be http or https

If you need to force a specific protocol you should change the following line in the plugin:

Code:

$root = rtrim($uriInstance->getScheme() . '://' . $uriInstance->getHost(), '/');
for example setting the hardcoded protocol :
Code:

$root = rtrim('http://' . $uriInstance->getHost(), '/');
I'm not sure if having the links as http on an SSL site will work fine. Regards John
 
Logged Logged  
  The administrator has disabled public write access.
#1040
chris
Fresh Boarder
Posts: 11
User Offline
Re:http and https: problem with plugin / migration Karma: 0  
Dear John,

Thanks for your fast feedback!

Ok I've made the change:
LinkedIn is OK
Twitter: NOT OK
G+1: NOT OK
Facebook: NOT OK

in my current webpage in the source code (from your plugin) I always see:
Code:

<g:plusone size="medium" href='https://www.akaoma.com/'></g:plusone>
and Facebook remains:
Code:

<fb:like href="https://www.akaoma.com/" layout="button_count" width="100" colorscheme="light"
You can check the result yourself on the root page of the website (bottom right part): https://www.akaoma.com/
Code:

<div class=fastsocialshare_container><div class=fastsocialshare-share-fbl><div id=fb-root></div><fb:like href="https://www.akaoma.com/" layout="button_count" width="100" colorscheme="light" action="like"></fb:like></div><div class=fastsocialshare-share-tw> <a href=https://twitter.com/share class=twitter-share-button data-text="AKAOMA Consulting Conseil, Audit, Formation S&eacute;curit&eacute; Informatique" data-count=horizontal data-via="" data-lang=fr>Tweet</a> </div><div class=fastsocialshare-share-gone> <g:plusone size="medium" href='https://www.akaoma.com/'></g:plusone> </div><div class=fastsocialshare-share-lin> <script type=in/share data-url=https://www.akaoma.com/ data-counter=right></script> </div><div class=fastsocialshare_clearer></div>
Please help again, I really want to have your FAST plugin on my website! Kind regards.
 
Logged Logged  
  The administrator has disabled public write access.
#1041
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:http and https: problem with plugin / migration Karma: 79  
Hi Chris,

that's weird because the parameter is the same used for all buttons and passed to different functions in the plugin.

Check if the url is correct for every button.

Unfortunately being a free plugin on site support is not provided.

Kind regards

John
 
Logged Logged  
  The administrator has disabled public write access.
#1042
chris
Fresh Boarder
Posts: 11
User Offline
Re:http and https: problem with plugin / migration Karma: 0  
John,

I know why it's not working: I'm using admin tools which is forcing each URL to https:// rather than http:// that's why even changing inside your code is not making any difference.

Thanks anyway for your really fast answer John! bye
 
Logged Logged  
  The administrator has disabled public write access.
#1043
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:http and https: problem with plugin / migration Karma: 79  
If you are using Admin Tools it could be the case that the protocol is forced to https using a rule in the htaccess

Try to have a look or disable Admin Tools just to test if the Joomla code used in the plugin takes effects.

Kind regards

John
 
Logged Logged  
  The administrator has disabled public write access.
Go to top