Показать сообщение отдельно
Старый 20.04.2012, 07:59 Вверх   #10
Грамотный форумчанин
 
Аватар для mr_franklin
mr_franklin вне форума
Доп. информация
По умолчанию

Прописал этот код
PHP код:
($hook vBulletinHook::fetch_hook('commtag_illegaluse')) ? eval($hook) : false
с инструкции так
PHP код:
// ### PREP INPUT ###
    
if ($vbulletin->GPC['wysiwyg'])
    {
        require_once(
DIR '/includes/functions_wysiwyg.php');
        
$newpost['message'] = convert_wysiwyg_html_to_bbcode($vbulletin->GPC['message'], $foruminfo['allowhtml']);
    }
    else
    {
        
$newpost['message'] = $vbulletin->GPC['message'];
    }

    if (
$vbulletin->GPC['ajax'])
    {
        
// posting via ajax so we need to handle those %u0000 entries
        
$newpost['message'] = convert_urlencoded_unicode($newpost['message']);
    (
$hook vBulletinHook::fetch_hook('commtag_illegaluse')) ? eval($hook) : false;
    }
    
    if (
$vbulletin->GPC['quickreply'])
    {
        
$originalposter fetch_quote_username($postinfo['username'] . ";$postinfo[postid]");
        
$pagetext trim(strip_quotes($postinfo['pagetext']));

        (
$hook vBulletinHook::fetch_hook('newreply_post_quote')) ? eval($hook) : false;

        eval(
'$quotemessage = "' fetch_template('newpost_quote'0false) . '";');
        
$newpost['message'] = trim($quotemessage) . "\n$newpost[message]";
    }

    if (
$vbulletin->GPC['fromquickreply'])
    {
        
// We only add notifications to threads that don't have one if the user defaults to it, do nothing else!
        
if ($vbulletin->userinfo['autosubscribe'] != -AND !$threadinfo['issubscribed'])
        {
            
$vbulletin->GPC['folderid'] = 0;
            
$vbulletin->GPC['emailupdate'] = $vbulletin->userinfo['autosubscribe'];
        }
        else if (
$threadinfo['issubscribed'])
        { 
// Don't alter current settings
            
$vbulletin->GPC['folderid'] = $threadinfo['folderid'];
            
$vbulletin->GPC['emailupdate'] = $threadinfo['emailupdate'];
        }
        else
        { 
// Don't don't add!
            
$vbulletin->GPC['emailupdate'] = 9999;
        } 

Последний раз редактировалось mr_franklin; 20.04.2012 в 08:02..
  Ответить с цитированием
 
Время генерации страницы 0.04911 секунды с 10 запросами