Quote:
Originally Posted by wrongful
with this hack on ny board it works, but only admins can view the html. when a non admin is viewing the post it only shows the html code
|
That is correct. If you would like it so only admins can use html but everyone views it the way you want and not just the html code do this:
--------------------------------------------------------------------------
(Assuming you didn't install Ee-Ore's version)
Open /includes/functions_bbcodeparse.php
Find:
PHP Code:
global $vboptions, $parsed_postcache;
Replace with:
PHP Code:
global $vboptions, $parsed_postcache, $post;
Find:
PHP Code:
// parse forum item
default:
$forum = fetch_foruminfo($forumid);
$dohtml = $forum['allowhtml'];
$dobbimagecode = $forum['allowimages'];
$dosmilies = $forum['allowsmilies'];
if ($allowsmilie != 1)
{
$dosmilies = $allowsmilie;
}
$dobbcode = $forum['allowbbcode'];
break;
Replace with:
PHP Code:
// parse forum item
default:
$forum = fetch_foruminfo($forumid);
if ($post['usergroupid'] == 6) {
$dohtml = 1;
} else {
$dohtml = $forum['allowhtml'];
}
$dobbimagecode = $forum['allowimages'];
$dosmilies = $forum['allowsmilies'];
if ($allowsmilie != 1)
{
$dosmilies = $allowsmilie;
}
$dobbcode = $forum['allowbbcode'];
break;
Find:
PHP Code:
// parse non-forum item
case 'nonforum':
$dohtml = $vboptions['allowhtml'];
$dobbcode = $vboptions['allowbbcode'];
$dobbimagecode = $vboptions['allowbbimagecode'];
$dosmilies = $vboptions['allowsmilies'];
if ($allowsmilie != 1)
{
$dosmilies = $allowsmilie;
}
break;
Replace with:
PHP Code:
// parse non-forum item
case 'nonforum':
if ($post['usergroupid'] == 6) {
$dohtml = 1;
} else {
$dohtml = $vboptions['allowhtml'];
}
$dobbcode = $vboptions['allowbbcode'];
$dobbimagecode = $vboptions['allowbbimagecode'];
$dosmilies = $vboptions['allowsmilies'];
if ($allowsmilie != 1)
{
$dosmilies = $allowsmilie;
}
break;