Quote:
Originally Posted by Badshah93
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 Code:
$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 Code:
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');
}
|
thanks , this seems very promising .. anything to do with abe1's mod
thanks for the release..
and the above works with suite
but in forum only the widgets on the right also need to be edited .. different file..
thanks