Needs review
Project:
Open ReadSpeaker
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2014 at 04:42 UTC
Updated:
6 May 2019 at 08:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
killua99 commentedNeed to see this patch in live.
I'll test it asap
Comment #2
killua99 commentedYou're calling this function because you want me to add the real logic about version?
What happen when is FALSE?
I like more use preg_replace but is ok. And why you don't declare those variables?
Maybe could be a better idea use the l function instead the HTML markup I'm thinking about that.
This need some small fix. You can work this patch without the "block settings patch" I still don't see the real point to move those settings. When I create this module for the web page that implement this like this way keep with other permission those settings, away for the Site Builder.
Comment #3
torpy commentedHey, answers below:
1. I'm using a short-circuit version callback because we can't depend on a particular ReadSpeaker library version. At the moment, the Libraries API doesn't let you specify external libraries without an explicit version or callback.
2. I'm not sure what you mean? The variables are set on the admin form.
3. Good point. It might be better to pull this out into a template too.
Comment #4
crystaldawn commentedThere are two things you need to change in your implementation:
To get SSL working for this module we had to do the following to the module itself:
1. In the script link to the ReadSpeaker.js file, you should change "f1.eu" to "f1-eu".
This is how the link looks like today:
This is how the link should look like:
2. In the listen button, you should change "app.eu" to "app-eu".
This is how the link in the listen button starts today:
"href="https://app.eu.readspeaker.com...."
This is how the link should look like:
"href="https://app-eu.readspeaker.com...."
Comment #5
eduardo morales albertiRerroll patch with the changes that say @crystaldaw.
Comment #6
eduardo morales albertiUpdate status.
Comment #7
eduardo morales albertiComment #8
eduardo morales albertiRerroll patch, we do not need local library when is https.
Comment #9
leandro713 commentedimplement a protocol relative url
Comment #10
leandro713 commentedi attach interdiff for #9