News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Implementing Custom BBCode for YouTube Embedding

Started by joebrian43, February 08, 2024, 01:20:56 PM

Previous topic - Next topic

joebrian43

Hello everyone,

I'm currently working on a project using Simple Machines and I'm trying to enhance the user experience by allowing them to embed YouTube videos directly into their posts using custom BBCode. However, I'm facing some difficulties in implementing this feature.

Here's what I've tried so far:

I created a custom BBCode for YouTube embedding using the SMF admin panel, but the videos aren't displaying correctly.
I've searched through the SMF documentation and forums but couldn't find a clear solution to my issue.
I attempted to use HTML embedding directly into the posts, but it seems like the forum software is stripping out the HTML tags for security reasons.
Can anyone guide me through the process of properly implementing custom BBCode for YouTube embedding in SMF? Any insights, tips, or code snippets would be greatly appreciated.

Thank you in advance for your help!

Diego Andrés

How would it be different from the current YouTube BBC the forum has by default? Or just posting the video link?
What additional functionality are you trying to achieve?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Sesquipedalian

I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Illori

that is assuming that the op is using SMF 2.1 and not SMF 2.0.

Sesquipedalian

True.

@joebrian43, if you are using SMF 2.0, you should consider installing the Ohara YouTube Embed mod.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

joebrian43

Quote from: Sesquipedalian on February 08, 2024, 05:13:51 PMTrue.

@joebrian43, if you are using SMF 2.0, you should consider installing the Ohara YouTube Embed mod.

Thank you so much for your prompt response and suggestion! Installing the Ohara YouTube Embed mod did the trick, and now the YouTube videos are displaying perfectly within the posts. I really appreciate your help and guidance on this matter. It's made a significant improvement to the user experience on my forum. Thanks again!

Advertisement: