You are Here:
Translations are underway - See Linux Lite Software Development Section



Embed video in posts

Author (Read 1062 times)

0 Members and 2 Guests are viewing this topic.

Embed video in posts
« Reply #1 on: September 21, 2022, 05:51:05 AM »
 

Şerban S.

  • Şerban
  • PayPal Supporter
  • I come here a lot
  • *****
  • 310
    Posts
  • Reputation: 16
  • Linux Lite Member

  • Linux Lite: 6.2 64bit

  • CPU: Intel® Core™ i7-4790

  • MEMORY: 16Gb

  • VIDEO CARD: Intel® HD Graphics 4600 + NVidia GK107 (GeForce GT630 OEM)

  • Kernel: 5.x
Hello! :)

One thing I find extremely useful to add to the forum interface: a button to embed videos, usually YouTube.
I make video tutorials from time to time, and it will be very useful to have the possibility to embed such videos in posts.
Further more, some tutorials are more useful if they are made as videos.
One example:
Embedding images in a post, is by far more easier to understand in a video. Actually, I made one for my own use.
It takes too much to write and explain in words what otherwise is more suitable in a video format.
The changes required to the forum code, are explained in this video:



I guess the changes are quite similar to write the code for SMF (the above video is for phpBB Forums).
On the SMF Forum, I found this:

https://custom.simplemachines.org/index.php?mod=3982

However, I also found a video related to editing post options, but it is unclear if there is a tag/code for video embedding, to activate from there and the video is outdated (2010).
Here is the video, anyway. Might help:



I liked the snippet with VideoID instead of qualified URL, mostly for the security reasons, but also for simplicity... :)

Code: [Select]
[yt]{youtube ID}[/yt]
So... Is it doable?

Best regards! :)

Later edit:

After pressing "Post" and reviewing the post, I saw that the YouTube links have been rendered as a video frame, which was missing in the "preview post" mode.
Still, I'm concerned with the security of this solution.
I have to admit that if it works, it is a fast way to include a video, but it will be more "forum like" to have a BB code, like the one for images:

Code: [Select]
[img]IMGURlink[/img]
Best regards!

« Last Edit: September 21, 2022, 06:01:01 AM by Şerban S. »
"It's easy to die for an idea. It's way harder TO LIVE for your idea!"
Current Machine:
 Dell Precision T1700, 16 GB RAM, 480 GB SSD.
Laptop:
 ASUS X200MA , Intel® Celeron® N2830, 2 GB RAM, HDD WD 500 GB.
 

 

-->
X Close Ad

Translations are underway - See Linux Lite Software Development Section