vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   Restore working vbCMS Comments on vB 4.0.4 (https://vborg.vbsupport.ru/showthread.php?t=244914)

fogjuice 06-18-2010 09:00 PM

Restore working vbCMS Comments on vB 4.0.4
 
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.

Charlie98902 06-19-2010 08:20 PM

Thanks and this does work! Wouldn't this fit better in the articles or template mod edits?

Paul M 06-19-2010 08:36 PM

Moved to vb4 articles.

fogjuice 06-19-2010 09:21 PM

Thanks for putting it in the correct section. :)

Charlie98902 06-19-2010 11:26 PM

Good thing is I have a built in editor on my cpanel so it was easy to get to where I needed. This edit will make those folks happy. I know mine are.

sulasno 06-20-2010 06:38 PM

where are

showthread.php and forumdisplay.php

located ?

should I edit the files before uploading them for the upgrade ?

djbaxter 06-20-2010 06:50 PM

They're in the root folder of the download package (zip file).

You can do the upgrade first and then edit the two files and re-upload them - this will avoid any version checks done by the installer.

fogjuice 06-20-2010 06:52 PM

Quote:

Originally Posted by sulasno (Post 2056604)
where are

showthread.php and forumdisplay.php

located ?

should I edit the files before uploading them for the upgrade ?

You can probably edit them before you upload htem for the upgrade, however, I did it after I upgraded. I just used adobe dreamweaver to edit the files live but you can just use notepad and edit the files then replace the old showthread.php and forumdisplay.php files.

thisgeek 07-16-2010 08:08 AM

This is STILL broken in 4.0.5. :mad:

sulasno 07-16-2010 08:14 AM

did you do a comparison of the upgraded and the existing files ?


All times are GMT. The time now is 12:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01529 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete