AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Original WP embed function for YouTube?

38 Posts
18 Users
8 Reactions
31.4 K Views
Posts: 1
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@stratatrader)
New Member
Joined: 9 years ago

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


Posts: 7
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@knight285)
Active Member
Joined: 8 years ago
Posted by: Griffsy

Same issue here @ redmars

extra code

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


Robert
Posts: 10752
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@lilnguyen)
Active Member
Joined: 8 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: 10752
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months 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
Share: