MyBB Community Forums

Full Version: Remove http:// when inserting videos
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello MyBB plugin support team!


Here is my environment:

MyBB Version 1.8.13
PHP Version 5.6.32
SQL Engine MySQLi 5.6.38

Theme:
My Responsive 1.0

Plugins:
MentionMe (3.1)
MyAlerts (2.0.3)
Last Post (1.0.1)

https://foro.guitarravallenata.com
test account: traste/espacio

I've noticed that some forum-illiterated users when attempting to add videos, they don't remove the "http://" from the URL input field, which ends up rendering the bbcode wrong:


[video=youtube]http://https://youtu.be/e6m9pnvfANA[/video]

I was doing some research, and was directed to set Clickable MyCode Editor in Partial Mode to "No"


However, that setting is off by default. Setting it to "Yes" accomplishes nothing either.

Can someone show me a way to remove the "http://" or at least to display it in "highlighted" form so it gets deleted when "untrained" users paste the video URL?
see replies here

basically you can remove value="http://" in bbcodes_sceditor.js file (line 542) [GitHub link]
however, it'd be better to replace value="http://" with placeholder = "https://"
(2017-11-24, 03:34 AM).m. Wrote: [ -> ]see replies here

basically you can remove value="http://" in bbcodes_sceditor.js file (line 542) [GitHub link]
however, it'd be better to replace value="http://" with placeholder = "https://"

That did it.