s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
Big changes in templating:

  1. You can already edit the template of most sites in XenForo's panel, but some site have a PHP template that you couldn't edit (only replace.) For those, the template looks like this:
    Code:
    <!-- s9e_MediaBBCodes::renderYoutube() -->
    Now you can add your own stuff around the "<!-- ... -->" part. @yavuz and @DRE I'm looking at you. If you want responsive templates, you can edit them like this:
    Code:
    <div class="responsiveVideoContainer"><!-- s9e_MediaBBCodes::renderYoutube() --></div>
  2. PHP templates cannot be edited via the admin panel, but now their dimensions can be set in the admin panel. For instance, if you want YouTube videos to be 1280 x 720:
    Code:
    <!-- s9e_MediaBBCodes::renderYoutube(1280, 720) -->
    That feature is experimental and may be removed or the syntax changed. If you use it and you want to keep it, please speak up.

If you like this add-on, please go to its page and rate it in the right sidebar. Thanks.
 
A few people on my forum have been linking from News Inc lately. I've never heard of them before but apparently they're the source for several national papers and are quite big. Any chance of an add?

Question on Twitter - I know you're not interested in doing the whole tweet-embed thing, but is there a way to code it so that you could link a twitpic and have it show without the tweet itself?
 
I don't know about News Inc but if you can link me to a thread of your forum where their content is being linked I'll look into it.

Same for Twitpic, if you can link me to examples of Twitpic being linked or being embedded I'll look into it.
 
I don't know about News Inc but if you can link me to a thread of your forum where their content is being linked I'll look into it.

Same for Twitpic, if you can link me to examples of Twitpic being linked or being embedded I'll look into it.

Here's the News Inc video he wanted to embed:

http://launch.newsinc.com/embed.htm...Group=69016&siteSection=lvrj&videoId=25630532

And here's a good example of what I'm wondering about with the Twitpic:

https://twitter.com/RobTornoe/status/435438828744998912/photo/1

Normally, to link that you'd show the whole tweet and the frame and the pic within. But would it be possible to weed out all that crap and just get the pic itself to show up like you were linking to the image?
 
I've looked into News Inc but their player doesn't work for me for some reason and the site doesn't seem to be very popular so for the time being I don't plan to add it.

As for extracting pictures from Twitter, technically it's feasible but it doesn't have much value (it wouldn't be any different from using the
 
I've looked into News Inc but their player doesn't work for me for some reason and the site doesn't seem to be very popular so for the time being I don't plan to add it.

As for extracting pictures from Twitter, technically it's feasible but it doesn't have much value (it wouldn't be any different from using the
Yeah, like I said, I'd never heard of them before. I know you're on the lookout for new sites to add so that's why I brought it up.

As for the Twitter, it was basically a convenience thing. As opposed to going to the individual tweet, right clicking the image, etc., we could just link the tweet and have the system sort it out.
 
@Rambro That link works fine on my test board. Look into your server logs in case there's a related error. Slideshare is a bit unreliable sometimes and it's possible that your server can't access the page for some reason. In the past I've had similar problems with them where I can access the site just fine but Travis can't.

You can try this code to see if your server can access the page:
Code:
<?php echo file_get_contents('http://www.slideshare.net/johnmaxfield376/10-reasons-why-russia-invaded-ukraine');

If it works, try this one too:
Code:
<?php
echo file_get_contents(
	'compress.zlib://http://www.slideshare.net/johnmaxfield376/10-reasons-why-russia-invaded-ukraine',
	false,
	stream_context_create(array('http' => array('header' => 'Accept-Encoding: gzip')))
);
 
I don't really know those sites and the embeddable content they offer. If they're easy to embed and maintain then sure, I'd add them. Otherwise it's a cost:benefit analysis between maintenance cost and popularity.

Would you want to use those sites in your forums? If so, can you provide a couple of examples of links to embeddable content?
 
Occasionally. Mostly, I was asking because they're in EQ's pack, and I could effectively remove that add-on with their inclusion. I have no idea about their difficulty. If its easy, great. If not, screw it.

WSJ - <iframe frameborder="0" scrolling="no" width="512" height="288" src="http://live.wsj.com/public/page/embed-A777EEBB_E261_4F32_8610_29C15C0B0EF2.html"></iframe>

<iframe frameborder="0" scrolling="no" width="512" height="288" src="http://live.wsj.com/public/page/embed-10FBEDBE_C09B_48BB_9FD8_E155C859A7D8.html"></iframe>

Economist - <object id="flashObj" width="595" height="390" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0"><param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9?isVid=1" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="videoId=3357881589001&linkBaseURL=http%3A%2F%2Fwww.economist.com%2Fmultimedia&playerID=1425961410001&playerKey=AQ~~,AAABDH-R__E~,dB4S9tmhdOo20g03jDsDgNBGDcclfHEU&domain=embed&dynamicStreaming=true" /><param name="base" value="http://admin.brightcove.com" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://c.brightcove.com/services/viewer/federated_f9?isVid=1" bgcolor="#FFFFFF" flashVars="videoId=3357881589001&linkBaseURL=http%3A%2F%2Fwww.economist.com%2Fmultimedia&playerID=1425961410001&playerKey=AQ~~,AAABDH-R__E~,dB4S9tmhdOo20g03jDsDgNBGDcclfHEU&domain=embed&dynamicStreaming=true" base="http://admin.brightcove.com" name="flashObj" width="595" height="390" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" swLiveConnect="true" allowScriptAccess="always" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>

ABC - <iframe src='http://abcnews.go.com/video/embed?id=22960904' width='640' height='360' style='border:none;'></iframe><br/><a href="http://abcnews.go.com/us?cid=11_extvid1">ABC US News</a> | <a href="http://abcnews.go.com/business?cid=11_extvid2">ABC Business News</a>
 
Nice. Were the others a pain?

Found a hiccup with the Instagram code. This link:

instagram.com/p/lu-DQMijxr/

Is a video. But it posts as a photo. And not as a photo still of the video, but as something completely different. Very weird.
 
Nice. Were the others a pain?
I started with the easiest one. I'll add WSJ later, but I haven't looked into the Economist yet.

Found a hiccup with the Instagram code. This link:
instagram.com/p/lu-DQMijxr/
It's a bug on my end. I thought Instagram used base62 but they use base64 and URLs with dashes or underscores didn't work. I'll release a fix in a moment.
 
Top Bottom