1. В файле includes/class_paid_subscription.php на 415 строке найти:
PHP Code:
if ($user['hascustomavatar'] AND $sub['adminavatar'])
{
$user->set_bitfield('adminoptions', 'adminavatar', 1);
}
if ($user['hasprofilepic'] AND $sub['adminprofilepic'])
{
$user->set_bitfield('adminpotions', 'adminprofilepic', 1);
}
заменить на:
PHP Code:
if ($user['hascustomavatar'] AND $sub['adminavatar'])
{
$userdm->set_bitfield('adminoptions', 'adminavatar', 1);
}
if ($user['hasprofilepic'] AND $sub['adminprofilepic'])
{
$userdm->set_bitfield('adminoptions', 'adminprofilepic', 1);
}
2. В файле inlinemod.php на строке 1694 найти:
PHP Code:
// Remove poll from source thread so delete_thread doesn't remove it
ниже добавить:
PHP Code:
$threadarray["$pollinfo[threadid]"]['pollid'] = 0;
на строке 1679 найти:
PHP Code:
if ($pollinfo !== false AND $destthread['threadid'] != $pollinfo['threadid'])
заменить на:
PHP Code:
if (!empty($pollinfo) AND $destthread['threadid'] != $pollinfo['threadid'])
3. В файле includes/functions_wysiwyg.php на строке 321 найти:
PHP Code:
$href = parse_wysiwyg_tag_attribute('href=', $aoptions);
ниже добавить:
PHP Code:
if (!trim($href))
{
return parse_wysiwyg_recurse('a', $text, 'parse_wysiwyg_anchor');
}
4. В файле profile.php на 1281 строке найти:
PHP Code:
$line_count_text = trim($char_counter->parse($signature));
заменить на:
PHP Code:
$line_count_text = $char_counter->parse(trim($signature));
5. В файле includes/class_postbit_alt.php на 436 строке найти:
PHP Code:
$search = '#<a (href|src)="attachment\.php#si';
$replace = '<a \\1="' . $this->registry->options['bburl'] . '/' . 'attachment.php';
заменить на:
PHP Code:
$search = '#(href|src)="attachment\.php#si';
$replace = '\\1="' . $this->registry->options['bburl'] . '/' . 'attachment.php';
6. В файле includes/functions.php на 1638 строке найти:
PHP Code:
// check for SSL
$secure = ((REQ_PROTOCOL === 'https' AND $allowsecure) ? true : false);
выше добавить:
PHP Code:
// IE for Mac doesn't support httponly
$httponly = (($httponly AND (is_browser('ie') AND is_browser('mac'))) ? false : $httponly);
7. Во фразе '
updateprofilefields' найти:
заменить на:
8. В файле includes/functions.php на 575 строке найти:
PHP Code:
function fetch_word_wrapped_string($text, $limit = false)
{
global $vbulletin;
if ($limit !== false)
{
$vbulletin->options['wordwrap'] = $limit;
}
if ($vbulletin->options['wordwrap'] > 0 AND !empty($text))
{
return preg_replace('#(?>[^\s&/<>"\\-\[\]]|&[\#a-z0-9]{1,7};){' . $vbulletin->options['wordwrap'] . '}#i', '$0 ', $text);
}
else
{
return $text;
}
}
заменить на:
PHP Code:
function fetch_word_wrapped_string($text, $limit = false)
{
global $vbulletin;
if ($limit === false)
{
$limit = $vbulletin->options['wordwrap'];
}
$limit = intval($limit);
if ($limit > 0 AND !empty($text))
{
return preg_replace('
#((?>[^\s&/<>"\\-\[\]]|&[\#a-z0-9]{1,7};){' . $limit . '})(?=[^\s&/<>"\\-\[\]]|&[\#a-z0-9]{1,7};)#i',
'$0 ',
$text
);
}
else
{
return $text;
}
}
9. В файле includes/functions_newpost.php на 285 строке найти:
PHP Code:
$dataman->set_info('show_title_error', true);
заменить на:
PHP Code:
if (!$vbulletin->GPC['fromquickreply'])
{
$dataman->set_info('show_title_error', true);
}
10. В файле includes/functions_wysiwyg.php на 115 строке найти:
PHP Code:
$text = strip_tags($text, '<b><strong><i><em><u><a><div><span><p><blockquote><ol><ul><li><font><img><br><h1><h2><h3><h4><h5><h6>');
выше добавить:
PHP Code:
$text = str_replace('<br/>', '<br />', $text);
11. В файле profile.php на
1224 строке найти:
PHP Code:
$redirectsig = true;
ниже добавить:
PHP Code:
$vbulletin->userinfo['sigpicrevision']++;
будет обновляться по мере появления и прочтения новых фиксов..
просьба в теме спасибы не писать, для этого есть кнопка.