cbb Autowords problem


User avatar
Leinad4Mind
 
Posts: 213
Joined: Thu Oct 15, 2015 10:10 pm
 Sun Aug 02, 2020 10:21 pm • via Web
Hi there, canidev,

I've a problem with autowords. When enabled and with phpbb media embed extension enabled priori, it makes pages with youtube video to stop working. (Flatboots and prosilver, but prosilver its harder to see a problem, you need to go to editing a post that has a youtube video and then try to on the Polls tab for example, it will not work. All JS stops working)

Btw I didnt set any word to autowords yet. Dunno if thats a problem...
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Mon Aug 03, 2020 3:33 pm • via Web
Hi,

Try with this change:
1. Open /ext/canidev/core/lib.php
2. Find:
Code: Select all
$text    = preg_replace('#(<(?:img|br|hr|input).*?)(?<!/)>#i', '$1/>', $text);

3. Replace with:
Code: Select all
$text    = preg_replace('#(<(?:img|br|hr|input|iframe).*?)(?<!/)>#i', '$1/>', $text);
User avatar
Leinad4Mind
 
Posts: 213
Joined: Thu Oct 15, 2015 10:10 pm
 Mon Aug 03, 2020 8:01 pm • via Web
Thank you! Problem solved!

Who is online

Users browsing this forum: No registered users and 0 guests