s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
@JABRONI: Then I'm at a loss, sorry. There might be a problem that occurs when your forum tries to contact Gfycat's server to retrieve the image's dimensions. Check out the logs, see if there's a PHP error there. If there's none you can try to edit library/s9e/MediaBBCodes.php and remove the @ character from @file_get_contents then try again, and see if there's an error this time.

@masterchief: you must be running PHP 5.2. The addon requires PHP 5.3 or later. You can find some infos in PHP's manual.
s
oooops! I had just realized that as the problem... I am now running PHP v5.4, was just a simple button selelction via my ACP at my webhost.. cheers! Installed without any indication of a problem.
Now I am going to play for couple of hours. again, thanx!
 
Is there any way to see what URLs were picked if I just chose certain ones when installing this add on? I'd like to add more of your mediasites on upgrade and want to make sure I select all of the old ones I used too.
 
Is there any way to see what URLs were picked if I just chose certain ones when installing this add on? I'd like to add more of your mediasites on upgrade and want to make sure I select all of the old ones I used too.
Check out the experimental configurator interface listed in the overview which shows all sites supported and the URLs that were used to get these to work. Also useful to install just the BBCode media sites that you require.
 
Is it possible to make it so Twitch TV embeds don't autoplay?
I wasn't aware they started automatically, I'll check it out asap.

Is there any way to see what URLs were picked if I just chose certain ones when installing this add on? I'd like to add more of your mediasites on upgrade and want to make sure I select all of the old ones I used too.
As Martok mentionned, if you configure your own addon.xml using the custom/experimental configurator you can see a list of the kind of URLs that are supported for each site. You'll also see that your selection of media sites appears in the URL. If you save this URL, you'll get the same selection when you come back.
 
I wasn't aware they started automatically, I'll check it out asap.


As Martok mentionned, if you configure your own addon.xml using the custom/experimental configurator you can see a list of the kind of URLs that are supported for each site. You'll also see that your selection of media sites appears in the URL. If you save this URL, you'll get the same selection when you come back.
I don't think I saved the URL... Should I just uninstall the addon and redo it from scratch with the mediasites I want?
 
Ok I get it. You have a list of media sites already installed but you don't know which ones were installed from this pack right? I don't think that XenForo shows that information anywhere, but you can query it from your database if you have such access:
Code:
SELECT CONCAT('http://s9e.github.io/XenForoMediaBBCodes/configure.html#', GROUP_CONCAT(media_site_id)) AS url FROM xf_bb_code_media_site WHERE addon_id='s9e'

Otherwise, just can reinstall on top of the current addon. You can uninstall it first but I don't think that uninstalling the addon will remove the media sites, although I'm not sure how XenForo does it.
 
Also, found an "issue" with the Spotify code. Song embeds work GREAT, but Album embeds like,

spotify:album:0coYJwk0uFvOXDkgMzQJMG

Give me an error that it can't be embedded.
 
@suppy: currently, the only way to do that would be to edit the renderYoutube() method in the library/s9e/MediaBBCodes.php file. Most other sites can be edited directly in the admin panel but YouTube requires a bit of PHP to handle special cases like playlists and timestamps.

I'm going to try and think of a good way to customize templates via the existing form rather than by editing a PHP file, but no promise. It's a delicate balance between features, complexity and maintenance cost.

Edit: apparently YouTube won't let you set HD yourself.
 
Last edited:
The HTML for YouTube's iframe is in the file, you can search for this:
Code:
<iframe width="560" height="315"

And then replace those numbers with whatever works for you. Judging from the StackOverflow answer I posted above, it doesn't look like YouTube lets you set HD yourself but if you set the iframe to about 1280 x 750 it should be HD.
 
The HTML for YouTube's iframe is in the file, you can search for this:
Code:
<iframe width="560" height="315"

And then replace those numbers with whatever works for you. Judging from the StackOverflow answer I posted above, it doesn't look like YouTube lets you set HD yourself but if you set the iframe to about 1280 x 750 it should be HD.

Thanks for quick reply..
Yeah! I sussed that out already.. As for the HD there is a work around but I've lost the BBcode.. I've been able to run HD default on my site for over a year. Sadly I've been messing with the website today without backing it up. I don't really want to set the iframe to about 1280 x 750 as that would be to big for my site .. width= 740 tops. I tried adding this to the BBcode

<iframe width="500" height="300" src="http://www.youtube.com/embed/{$id}?wmode=opaque&vq=hd720" frameborder="0" allowfullscreen></iframe>

As soon as I start the video hd pops up, can hear the music but getting black screen.
 
Last edited:
For what it's worth, if you're not interested in the extra features of this pack's YouTube (playlists and timestamps) you can replace its template with your own. Judging by the SO answer and other articles, you may want to try that as a template:
Code:
<iframe width="853" height="480" src="//www.youtube.com/embed/{$id}?vq=hd1080" frameborder="0" allowfullscreen></iframe>

I tried it on my test board and the player is in HD but for some reason it also turns on 3D and the video gets blacked out. If you ever get your hand on your old embed code, please post it here. You might be able to find it in Google's cache if you search for a page that had a YouTube video on it.
 
For what it's worth, if you're not interested in the extra features of this pack's YouTube (playlists and timestamps) you can replace its template with your own. Judging by the SO answer and other articles, you may want to try that as a template:
Code:
<iframe width="853" height="480" src="//www.youtube.com/embed/{$id}?vq=hd1080" frameborder="0" allowfullscreen></iframe>

I tried it on my test board and the player is in HD but for some reason it also turns on 3D and the video gets blacked out. If you ever get your hand on your old embed code, please post it here. You might be able to find it in Google's cache if you search for a page that had a YouTube video on it.

Came across this > http://stackoverflow.com/questions/...meter-vq-bug-video-playback-with-black-screen
 
Back
Top Bottom