
05-15-2005, 01:00 PM
|
|
|
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Link14716
Here's my version. It should work everywhere BBCode is parsed and the post array is $post (which should be everywhere you actually post).
In includes/functions_bbcodeparse.php, find this:
PHP Code:
function parse_bbcode2($bbcode, $dohtml, $dobbimagecode, $dosmilies, $dobbcode, $iswysiwyg = 0, $donl2br = 1)
{
// parses text for vB code, smilies and censoring
global $DB_site, $vboptions, $bbuserinfo, $templatecache, $smiliecache;
global $html_allowed;
Add under that:
PHP Code:
global $post;
if ($post['usergroupid'] == 6) {
$dohtml = 1;
$dobbimagecode = 1;
$dosmilies = 1;
$dobbcode = 1;
}
Replacing $post['usergroupid'] == 6 (which means any administrator) with whatever you want (such as the in_array($post['userid'], array(X,Y) example.)
|
THANK YOU!!!
Foolish me was looking at doing this in a different way before I found this thread... This is an AWSOME hack and it is working great for me on two of my vBulletin installs!
|