| Author |
Add embed Youtube |
|
Kang
Home away from home Joined: 15-Feb-2003 Posts: 158
From: Malaysia
|
Posted: 2009-08-18 06:03
1. Is it possible to embed Youtube to forum? If possible, can we add youtube BBCODE?
2. How to enable BBCODE in signature?
Thank you in advance!
----------------- Warm regard from Malaysia!
|
|
BigDaveKnight
Not too shy to talk Joined: 19-May-2006 Posts: 38
From: Portsmouth, Hampshire, UK
|
Posted: 2009-10-07 14:49
I've not been able to do either of these Kang, although it IS possible to use HTML in signature.
|
|
avw
MPN Developer Joined: 07-Nov-2001 Posts: 1298
From: Houten
|
Posted: 2009-10-16 13:42
Hi Kang,
Interesting question. The embedded code contains a lot of forbidden tags. As soon as you allow them in the sanitizing code, pasting the embedded HTML is likely to give a working embedding but we sanitize the content because a lot of attackers try to abuse the forum for inserting attacking code.
A BBCODE solution would be nice. I can think of a special form with a textarea that we offer to the user where the user can paste them embedded html code and upon close of that form, the system tries to parse the html embedding code into an array of fields for the BBCODE presentation.
Sounds like a lot of work, how often would you need it and which restrictions would you like to apply to the embedded code? Eg, fullscreen HD display in a forum thread seems to be inapropriate. Should display take place in the thread or in a new window?
Any other suggestions?
|