s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
I was replying to the previous comment about the DeferJS mod. Is that a mod that you use? Do you see any JavaScript errors in your console?
 
I was replying to the previous comment about the DeferJS mod. Is that a mod that you use? Do you see any JavaScript errors in your console?
could be nothing, but the other guy who runs another forum says he also use defer js...and he also has the twtter issue
 
I've also had reports of Twitter embeds not showing properly.
I suspect it may be related to security settings or something as similar browsers seem to be giving different results.
One user has posted the console output from Firefox 42 on OS X 10.10.5 which shows some sort of mismatch:
upload_2015-12-3_14-5-43.webp
Not sure whether that is the cause or just a coincidence.

Googling brings me to a similar error with the phpBB add-on but that doesn't seem to have been resolved.We're running plain http.

Strange thing is, I don't see this error on Chrome or Firefox but some others do.
 
Last edited:
Not sure whether that is the cause or just a coincidence.

This would definitely be the cause, at least in that case. I can't explain why the browser tried to access the Twitter iframe via HTTPS when the host page was served via HTTP, but I'll look into it asap.
 
Thanks, much appreciated.
As you've said previously, it's difficult to replicate, but it looks like it affects a few people.
 
JoshyPHP updated s9e Media BBCodes pack with a new update entry:

Updated Twitter, Twitch, Facebook and other hosted iframes

Dynamically-resized iframes have been set to use HTTPS by default rather than the same protocol as current page. This is temporary measure that may be reverted if it causes problems with non-HTTPS sites.

On another note, GameTrailers has been removed from automated testing. The site should still work but I will not be warned if it breaks. GameTrailers's site is unreliable and suffers from backwards-incompatible changes. I've already spent too much time trying to keep it in working order and...

Read the rest of this update entry...
 
It works on my local test board so it should. If it does not, you can always uninstall the add-on and install an older version.
 
@resonansER You're welcome but it may not mean what you think it means because it shouldn't make any difference it terms of feature or behaviour. In fact, I'd go as far as saying that hardcoding the protocol is worse than using protocol-relative URLs. Is there a reason you want HTTPS embeds on an HTTP page?
 
Looking through the source I can't see anywhere where http://s9e.github.io is referenced, so I'm wondering if this is getting cached somewhere.

Hmm... could it be in the actual Embed HTML of the media BBcode?
Code:
src="//s9e.github.io/iframe/twitter.min.html#{$id}"
 
Last edited:
Looking through the source I can't see anywhere where http://s9e.github.io is referenced, so I'm wondering if this is getting cached somewhere.

It depends on the media site. For Twitter, it's in the Embed HTML. The latest version should be as follow:

Code:
<iframe data-s9e-mediaembed="twitter" allowfullscreen="" onload="var a=Math.random();window.addEventListener('message',function(b){if(b.data.id==a)style.height=b.data.height+'px'});contentWindow.postMessage('s9e:'+a,'https://s9e.github.io')" scrolling="no" src="https://s9e.github.io/iframe/twitter.min.html#{$id}" style="border:0;height:186px;max-width:500px;width:100%"></iframe>
 
It depends on the media site. For Twitter, it's in the Embed HTML. The latest version should be as follow:

Code:
<iframe data-s9e-mediaembed="twitter" allowfullscreen="" onload="var a=Math.random();window.addEventListener('message',function(b){if(b.data.id==a)style.height=b.data.height+'px'});contentWindow.postMessage('s9e:'+a,'https://s9e.github.io')" scrolling="no" src="https://s9e.github.io/iframe/twitter.min.html#{$id}" style="border:0;height:186px;max-width:500px;width:100%"></iframe>
Thanks, I'll replace mine with that.
I see that in "MediaBBCodes.php" but for some reason, even though the addon shows as 20151203 the media code hasn't changed.
 
Only the video media codes seem to have upgraded when I upgraded from 20151117 to 20151203.
The upgradeTags function in MediaBBCodes.php only seems to check for "video" tags?
Or am I reading that wrong?
 
upgradeTags() is used for something else. Whenever you upgrade the add-on, it should reinstalled every media site that you've enabled in the Admin CP in Home > Options > s9e Media Pack > Categories.
 
Back
Top Bottom