• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
s9e Media BBCodes pack

s9e Media BBCodes pack 20171028

No permission to download

JoshyPHP

Well-known member
It's just a coincidence but I'm glad that it works now. :)

The value in "Site URL" isn't used at all when embedding content. Its only purpose is to link the site's name to the site's homepage in the "Add Media" dialog. However, when you edit a media site it causes the cache to be cleared and rebuilt and that may have something to do with it. It's either a one-time cosmic accident or something that will resurface after every update. If that's the latter case, message me and we'll try to do the debugging thing.
 

dutchbb

Well-known member
Yes, i meant blocked resources ;)

example

Code:
Scource:
https://www.youtube.com/get_video_info?html5=1&video_id=WaNb5HDniYE&cpn=h6WgmoxjXp_AtltB&eurl=https%3A%2F%2Fforum.bodybuilding.nl%2Ftopics%2Fdeadlift-hoe-ver-buig-je-door-je-knieen.392862%2F&el=embedded&hl=en_US&sts=17448&lact=9&c=WEB_EMBEDDED_PLAYER&cver=20171010&cplayer=UNIPLAYER&autoplay=1&width=640&height=360&ei=N0rdWcahFsO1DY-Jq5AB&iframe=1&playerretry=1

robots.txt:
https://www.youtube.com/robots.txt
Code:
Scource:
https://scontent-dft4-2.xx.fbcdn.net/v/t15.0-10/1067412_892262767557427_1728511027_n.jpg?oh=c8e01914badae562c6edc0786318541a&oe=5A74F550

robots.txt:
https://scontent-dft4-2.xx.fbcdn.net/robots.txt
 

Triops

Well-known member
Can we prohibit for YouTube embeddings to show video proposals at the end of an video?
I would prefer to have it just ending at the end. A template modification would be fine.
 

JoshyPHP

Well-known member
XenForo 1.x doesn't support template modifications in media sites so you'll need to create a file in library/s9e/Custom.php then add youtube=s9e_Custom::youtube in the Custom callbacks text area, in the s9e Media Packs options.

The procedure is described there: https://github.com/s9e/XenForoMediaBBCodes/blob/master/docs/CustomCallbacks.md

Code:
<?php

class s9e_Custom
{
	public static function youtube($html, $vars)
	{
		return preg_replace('(src="[^?#"]++\\??)', '?rel=0&amp;', $html);
	}
}
 
Hi there, is there a way to embed Twitter video? I mean, just the video, like when you go to the tweet, click the dropdown and get the code from 'Embed Tweet' and it gives you a bunch of HTML?
 

JoshyPHP

Well-known member
No, Twitter videos don't seem to have a canonical URL so it's not possible to determine whether the user wants to post the tweet or just the video. You'll need to create a custom BBCode for that.
 
No, Twitter videos don't seem to have a canonical URL so it's not possible to determine whether the user wants to post the tweet or just the video. You'll need to create a custom BBCode for that.
Ah thanks, I tried that but when someone replies to the post that has the video, the quote is just full of HTML, the quote doesn't render the video for some reason.
 

OperaManiac

Well-known member
RC1 released today. I did a test conversion and everything seems to be in order. But I cannot really consider upgrading till S9E is made available lol as a lot of my forum content has embeds and they are all empty on XF2RC1 build! Here's hoping that you would find the time to work on this. Cheers.