Back to vBulletin 4 Articles

Restore working vbCMS Comments on vB 4.0.4
by fogjuice 19 Jun 2010
Rating: (2 votes - 5.00 average)

Many of you may have realized that with the release of vBulletin 4.0.4, vbCMS Comments has been disabled and will give permission errors to everyone that tries to view the vbCMS comments page. I have created a fix for this until vbulletin creates an on/off switch.

You only need to do this if you are using vBulletin 4.0.4.

This is based off of what Mystics suggested at vbulletin.com.

How to fix (install):

Step 1:
Comment out line 317 to 320 in showthread.php.
PHP Code:
//if ($thread['forumid'] == $vbulletin->options['vbcmsforumid'] AND !can_moderate($thread['forumid']))
//{
    //eval(standard_error(fetch_error('invalid_comment_forum', $vbphrase['forum'], $vbulletin->options['contactuslink'])));
//} 


Step 2:

Open forumdisplay.php, scroll down to line 138.

Replace the following
PHP Code:
if (!$foruminfo['forumid'] OR ($foruminfo['forumid'] == $vbulletin->options['vbcmsforumid'] AND !can_moderate($foruminfo['forumid']))) 
with this:
PHP Code:
//if (!$foruminfo['forumid'] OR ($foruminfo['forumid'] == $vbulletin->options['vbcmsforumid'] AND !can_moderate($foruminfo['forumid'])))
if (!$foruminfo['forumid']) 
Finished!

You will have to do this if you upgrade your forum again or when ever you replace the showthread.php and forumdisplay.php files. Hopefully next release vbulletin team creates an on/off switch for this.

vblts.ru supports vBulletin®, 2022-2024