Notifications
Clear all

Suggestion [Solved] How can Fix video YouTube Import, BBcode error?

6 Posts
2 Users
0 Likes
1,739 Views
0
Topic starter
How can Fix video YouTube Import, BBcode error?

Hi WpForo Community.

The tool (MyBB to wpForo Migration) When import YouTube video display some error in video, like BBcode MyBB:
[video=youtube]

All video import from tool (MyBB to wpForo Migration) haved that error in BBcode.

Anexo image preview:

Add some links example:

Thanks in advance for support
Β 
Muchas Gracias por el soporte 👍Β 
2 Answers
0

@diegopinoΒ 

you must remove the BBCodes

<p>[video=youtube]</p>

and

[/video]

in the url

Example

//www.youtube.com/embed/eTZ55Twa__Q[/video]?start=

should look like this

//www.youtube.com/embed/eTZ55Twa__Q?start=

https://app.screencast.com/9OcOaUtZDZVyH

you can do this manually in each post 😆Β 

or with 2 phpMyAdmin SQL commands

Example

update wp_wpforo_posts set body = replace(body,'[/video]?start=','?start=');

and

update wp_wpforo_posts set body = replace(body,'<p>[video=youtube]</p>','');

you can also use a plugin like > Search & Replace

but make a backup before 😉

visit my wpForo > Tutrix.de (unofficial german wpForo Support)
with lots of customization & modification, e.g. hover cards, topic/post preview on mouseover, chatbox and much more...

0
Topic starter

Thank you so much Tutrix for help my

in mi case, the way its via with 2 phpMyAdmin SQL commands, becasuse have hundreds of many post with youtube videos.

Do it the steps phpMyAdmin SQL commands but not work in forum:

update wp_wpforo_posts set body = replace(body,'[/video]?start=','?start=');

Anexo images preview:

Β 

Tutrix Tutrix 25/02/2023 5:35 pm

@diegopinoΒ 

is the table prefix correct?

wp_wpforo_posts

DiegoPino Topic starter 25/02/2023 6:18 pm

Hi Tutrix

Yes, the table prefix its ok, in phpmyadmin have all tables ok with prefix.

anexo image preview:

Thank you so much for Support Tutrix 👍Β 

Tutrix Tutrix 25/02/2023 6:22 pm

@diegopinoΒ 

try

update wp_wpforo_posts set body = replace(body,'[/video]','');

and

update wp_wpforo_posts set body = replace(body,'[video=youtube]','');