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

XF 1.1 Youtube Card ID

#1
Hello,

I try to create a bbcode to add the membership card user Youtube.

Exemple of the bbcode :

HTML:
<iframe id="fr" src="http://www.youtube.com/subscribe_widget?p={param}" style="overflow: hidden; height: 98px; width: 290px; border: 0;" scrolling="no" frameBorder="1" alt="PvHax"></iframe><br />
[ytid]ORIGINALGAV[/ytid]


Help me please !!!
 

Jake Bunce

XenForo moderator
Staff member
#5
Is this a custom media site you are trying to create? Can you provide some example URLs of the media you want to embed?
 
#6
Hello,

I try to create a bbcode to add the membership card user Youtube.

Exemple of the bbcode :

HTML:
<iframe id="fr" src="http://www.youtube.com/subscribe_widget?p={param}" style="overflow: hidden; height: 98px; width: 290px; border: 0;" scrolling="no" frameBorder="1" alt="PvHax"></iframe><br />
[ytid]ORIGINALGAV[/ytid]



Help me please !!!

Here is my exemple .



but has not set up that does not work
 

Jake Bunce

XenForo moderator
Staff member
#13
Admin CP -> Home -> BB Code Media Sites -> Add BB Code Media Site

Media Site ID: ytid

Site Title: YouTube Subscribe

Site URL: http://www.youtube.com/

Match URLs:

http://www.youtube.com/subscribe_widget?p={$id}
http://www.youtube.com/user/{$id}

Embed HTML:

Code:
<iframe id="fr" src="http://www.youtube.com/subscribe_widget?p={$id}" style="overflow: hidden; height: 98px; width: 290px; border: 0;" scrolling="no" frameBorder="1" alt="PvHax"></iframe><br />
URLs tested:
http://www.youtube.com/user/GeneralGrin?feature=g-all-u
http://www.youtube.com/user/GamesHackFr
http://www.youtube.com/subscribe_widget?p=GamesHackFr

If you are manually typing the code into your post then use this:

Code:
[media=ytid]GamesHackFr[/media]