Notifications
Clear all

[Solved] Original WP embed function for YouTube?

38 Posts
18 Users
8 Reactions
21.9 K Views
Posts: 1
(@stratatrader)
New Member
Joined: 8 years ago

Will there be an update that will automatically fix this without me having to modify any code?

Posts: 7
(@knight285)
Active Member
Joined: 7 years ago
Posted by: Griffsy

Same issue here @ redmars

How did you get rid of "<\/a>"?

Robert
Posts: 10589
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi knight285,

First please fix the editor issue. i see your editor is on TEXT mode, the Visuel (view) mode doesn't work. This is a big issue. You'll not be able to edit, quote or attach file on using this editor. It should look like it's here.

To fix this problem please check these:

1. Make sure the "Disable visual editor" option is disabled for users in Dashboard > Users > your profile admin page.

2. if you use website optimization plugins please disable for forum page. For example this kind of problem makes Autoptimizer plugin.

How did you get rid of "<\/a>"?

This can be a result of YouTube URL incorrect copy/paste. It seems you've copied extra HTML code to editor.

Posts: 10
(@lilnguyen)
Active Member
Joined: 7 years ago

Hey guys,

Any solutions for this function, of course without Embed Addon. 

I cant find 

<?php echo wpforo_kses($post['body'], 'post') ?>

in post.php.

After change something in function.php as @Robert's guide.
When paste embed code into the post, Video appears but hidden after refresh. But the strange thing that the video appears in the Edit mode.

Hoping any help!

 

Robert
Posts: 10589
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @lilnguyen,

I just updated the code. For wpForo 1.4.7 and higher versions you should use this one, it becomes easier:

https://wpforo.com/community/general-discussions/original-wp-embed-function-for-youtube/#post-1875

Page 3 / 5