• Welcome to Simple Machines Community Forum. Please login or sign up.
September 20, 2021, 09:42:37 AM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


How to embed YouTube vids, without needing a mod.

Started by kat, January 22, 2011, 04:55:51 PM

Previous topic - Next topic

kat

Quote from: LexArma on January 22, 2011, 07:01:27 AM
Take a video


http://www.youtube.com/watch?v=WgV89H4jevI



Replace /watch?v= with /v/ like this



http://www.youtube.com/v/WgV89H4jevI



Add flash tags



[flash=640,480]http://www.youtube.com/v/WgV89H4jevI[/flash]



Profit :)

Edit: Enable flash in posts first! (Admin > Posts and topics > Post Settings > Embed flash into posts) and be aware that embedding Flash CAN have small security risks. Don't ask me what those risks are, though, coz I don't have a clue!

Illori

are you sure this works? i tested it on my 2.0 RC4 install and all i got was a link, not embedding the video. Yes I do have flash bbc enabled.

DoctorMalboro


busterone


Aleksi "Lex" Kilpinen

January 23, 2011, 02:56:01 AM #4 Last Edit: January 23, 2011, 03:02:54 AM by LexArma
You need to enable flash embedding for this to work ;) But it does work :)

EDIT:

Admin -> Posts and topics -> Post Settings -> Embed flash into posts
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas


busterone

Indeed. That is why it was on my test forum. I do not allow it on the main site. 

Aleksi "Lex" Kilpinen

It is a small risk, but you are correct, embedding youtube videos is not not a risk though....
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Masterd


Aleksi "Lex" Kilpinen

It is yes, was widely used before AEVA came to be.
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas


Joker™

We can easily create a permission that which user groups can use that flash tag. BTW, very nice trick I was not aware of it earlier :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Aleksi "Lex" Kilpinen

Depends on what you want and need, really. But I use AEVA too, it is simpler and saves me from explaining how to embed something time and time again :P
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas


Joker™

I think tips are posted to show that how can you achieve something in some other way. Like for embedding videos you can use AEVA or this trick. So it is much better not to compare them(this trick and AEVA).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Arantor

There's Aeva, there's SAVE. I think I'm right in saying that Aeva's future is... limited seeing how Nao can't update the first post in the thread.

Meanwhile, I'm not sure how thorough SAVE is at detecting all the weird variations of URLs. I do know the XenForo version is very buggy as discussed on the thread about it but that's not an issue here.
No good deed goes unpunished
All helpful urges should be circumvented

1Chope

Can't Enqable flash embed,it is security risky ...

Robert.

February 20, 2011, 04:00:38 AM #17 Last Edit: February 20, 2011, 10:11:51 AM by Tah Zonemaster
Nice trick K@ and LexArma :)


Robert.


Advertisement: