Тема: Скачать vFCoders - Hide Hack
Показать сообщение отдельно
Старый 06.05.2012, 22:35 Вверх   #3
Коварный тип
 
Аватар для Serberg
Serberg вне форума
Доп. информация
По умолчанию

CMS Widget (Recent Forum Posts) doesn't have any plugin hook, so manual edit is required to strip hide bbcodes from recent forum posts widget.

Open file -> packages/vbcms/widget/recentposts.php
Find:

PHP код:
            $post['previewtext'] = fetch_censored_text($parser->get_preview($post['pagetext'], $this->default_previewlen$allow_html)); 
            
$post['pagetext'] = fetch_censored_text($parser->do_parse($post['pagetext'], $allow_html)); 
Add Below:

PHP код:
            if (vB::$vbulletin->options[hide_hack_sett_main])  
            { 
            global 
$vfc_hide
            
$post['previewtext'] = $vfc_hide->strip_hide_bbcodes($post['previewtext'], 'email'); 
            
$post['pagetext'] = $vfc_hide->strip_hide_bbcodes($post['pagetext'], 'email'); 
            } 
  Ответить с цитированием
Cказали cпасибо:
 
Время генерации страницы 0.03821 секунды с 10 запросами