fogjuice
06-18-2010, 10:00 PM
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.
//if ($thread['forumid'] == $vbulletin->options['vbcmsforumid'] AND !can_moderate($thread['forumid']))
//{
//eval(standard_error(fetch_error('invalid_comment_f orum', $vbphrase['forum'], $vbulletin->options['contactuslink'])));
//}
Step 2:
Open forumdisplay.php, scroll down to line 138.
Replace the following
if (!$foruminfo['forumid'] OR ($foruminfo['forumid'] == $vbulletin->options['vbcmsforumid'] AND !can_moderate($foruminfo['forumid'])))
with this:
//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.
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.
//if ($thread['forumid'] == $vbulletin->options['vbcmsforumid'] AND !can_moderate($thread['forumid']))
//{
//eval(standard_error(fetch_error('invalid_comment_f orum', $vbphrase['forum'], $vbulletin->options['contactuslink'])));
//}
Step 2:
Open forumdisplay.php, scroll down to line 138.
Replace the following
if (!$foruminfo['forumid'] OR ($foruminfo['forumid'] == $vbulletin->options['vbcmsforumid'] AND !can_moderate($foruminfo['forumid'])))
with this:
//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.