PDA

View Full Version : CMS Comments permission error


strudinox
07-04-2010, 04:20 AM
I have my CMS setup so when articles are made, a post is made in the forums where users can comment. The only trouble is that users cannot access that particular forum. Only Administrators and Moderators can.

I've triple checked the permissions and Registered Users do have standard permissions set there just like the rest of my forum. When they click on the forum they get:

Invalid Forum specified. If you followed a valid link, please notify the administrator

And some users get:

Sorry, you do not have permission to access this page

What am I overlooking? This one is driving me crazy. :(

karlm
07-04-2010, 08:26 PM
similar here - only since upgrade to 404pl1

Charlie98902
07-04-2010, 08:38 PM
I've just fixed it myself based on what Mystics said:

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'])));
//}
Now 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'])
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.

strudinox
07-05-2010, 04:31 PM
That did it! tyvm!

InfoAddict
07-16-2010, 12:35 AM
Thanks for this fix.

dt-pain
08-25-2010, 05:57 PM
Thanks for this fix