
02-25-2008, 12:41 PM
|
 |
|
|
Join Date: Dec 2005
Location: Rio de Janeiro
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Fine support 
tks
joao barroca
aka beduino
Quote:
Originally Posted by magnus
Ok, here's a fix. This is for passiveVid - (YouTube, Myspace, Google...) Not BBCODE  users ONLY.
In AdminCP > Plugins & Products > Plugin Manager, look for passiveVid - Showthread Replacement under Product : passiveVid and select [Edit].
FIND:
PHP Code:
foreach ($passiveVid as $k => $v) { if ( $this->registry->options['passiveVid_sites'] & $v['id'] ) { $this->post['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$this->post['message']); } }
REPLACE WITH:
PHP Code:
if ($passiveVid) { foreach ($passiveVid as $k => $v) { if ( $this->registry->options['passiveVid_sites'] & $v['id'] ) { $this->post['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$this->post['message']); } } }
Disclaimer:
Note that this was tested on my development board. I do not actively use passiveVid (or any video embedding tools) so I cannot be held responsible for any undesired effects that may occur as a result of making these changes.
That being said, the changes simply check for the existence of a variable. There are no destructive functions being added or implemented, however, I just like to cover my rear. 
|
|