Solved: 1 Year, 8 Months, 1 Week ago [How To?] Video links not parsing 1.8.22
#1
Solved: 1 Year, 8 Months, 1 Week ago
I've got a test site running with MyBB and most everything is working. I was able to merge from VB 4.25 to MyBB 1.8.22 without and big issues but I didn't import attachments.

I've check a few posts with youtube links and they have not parsed and are not even links. I've tested Simple Audito Video Embeder (5.0) and AutoMedia (4.1.1). My understanding MyBB would handle this links without an addon but no luch even with the addons.

I also tried the help here https://community.mybb.com/thread-216380...pid1300198. I've updated the file and no luck.

Any help would be appreciated.

Cheers,
Peter
Reply
#2
Solved: 1 Year, 8 Months, 1 Week ago
If the URL is tagged with BBcode like so:
[video=youtube]https://www.youtube.com/watch?v=nrmhAvwBfig[/video]
It will preview and play.

Show an example post, and if possible what the post content was before conversion.
Also, your link to a thread is corrupt and results in a 404 error. I'm sure this one is what you intended.
https://community.mybb.com/thread-216380...ml#1300198
Reply
#3
Solved: 1 Year, 8 Months, 1 Week ago
Hi
Thanks for your response. Yes that link is what I tried.

The BBcode is the same on the test and working sites. The test site is running MyBB and the video code is not even a link. As you can see here https://iwebsl.com/showthread.php?tid=39579
Reply
#4
Solved: 1 Year, 8 Months, 1 Week ago
[video=youtube;uP0EpePxowo]https://www.youtube.com/watch?v=uP0EpePxowo[/video] 
The ;uP0EpePxowo can't be understood with the original MyCode
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#5
Solved: 1 Year, 8 Months, 1 Week ago
hmmm I wonder if I can run a sql query to eliminate video=youtube;uP0EpePxowo whats after youtube.

Thanks for your help

Taking that out of the link worked. No I need to see if I can run the edit site wide.
Reply
#6
Solved: 1 Year, 8 Months, 1 Week ago
If you're using MariaDB, it's possible:
update mybb_posts set message=regexp_replace(message, 'video=youtube;[^\]]+]', 'video=youtube]')
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#7
Solved: 1 Year, 8 Months, 1 Week ago
Hi. No mysql but I'll need to check it still may be possible.

Thanks for the help.
Cheers,
Peter
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)