
07-15-2007, 07:03 AM
|
|
|
Join Date: Jun 2004
Location: Australia
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
It shows this error on import into 3.5.4
Quote:
Database error in vBulletin 3.5.4:
Invalid SQL:
### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Retreive link titles when editing a post', 'editpost_update_process', 'if ($vbulletin->options[\'linktitles_active\'])\r\n{\r\n preg_match_all(\'/\\[url\\](.*)\\[\\/url\\]/Ui\', $edit[\'message\'], $matches, PREG_SET_ORDER);\r\n\r\n foreach($matches as $match)\r\n {\r\n $url = parse_url($match[1]);\r\n $url_host = $url[\'host\'];\r\n $blacklist = preg_split(\'#\\s#\', $vbulletin->options[\'linktitles_blacklist\'], -1, PREG_SPLIT_NO_EMPTY);\r\n\r\n $host_is_blacklisted = false;\r\n foreach ($blacklist as $host)\r\n {\r\n if (preg_match(\'#\' . preg_quote($host, \'#\') . \'$#siU\', $url_host))\r\n {\r\n $host_is_blacklisted = true;\r\n break;\r\n }\r\n }\r\n unset($blacklist);\r\n\r\n if ($host_is_blacklisted == false)\r\n { \r\n if (function_exists(\'curl_init\') AND $ch = curl_init())\r\n {\r\n curl_setopt($ch, CURLOPT_URL, $match[1]);\r\n curl_setopt($ch, CURLOPT_TIMEOUT, $vbulletin->options[\'linktitles_timeout\']);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt($ch, CURLOPT_HEADER, false);\r\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\r\n\r\n $file_contents = curl_exec($ch);\r\n }\r\n\r\n preg_match(\'/<title>(.*)<\\/title>/i\', $file_contents, $title);\r\n\r\n if ($title[1] != \'\')\r\n {\r\n $edit[\'message\'] = str_replace($match[0], \' . \'\"]\' . $title[1] . \'\', $edit[\'message\']);\r\n }\r\n }\r\n }\r\n}', 'linktitles');
MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
|
|