1
jaykay
Write comment to a news article give blank page
  • 2003/11/24 17:23

  • jaykay

  • Just popping in

  • Posts: 2

  • Since: 2003/11/24


Hi folks,

when I tried to write a comment to a particular news article, a blank page is returned.

Upon troubleshooting, I notice the script actually call an include file (comments_new.php in the /include directory), and in that include file, when it checks the getvar('dirname') is not 'system', the script exit/terminate immediately

Is this a bug, or am I missing anything? News comment creation will not have dirname = "system" but "news" right?
thanks

2
jaykay
Re: Write comment to a news article give blank page
  • 2003/11/25 15:28

  • jaykay

  • Just popping in

  • Posts: 2

  • Since: 2003/11/24


please help. can I just proceed to comment away the following statement in /include/comment_new.php ?

/*
if ('system' != $xoopsModule->getVar('dirname') && XOOPS_COMMENT_APPROVENONE == $xoopsModuleConfig['com_rule']) {
    
    exit();
}
*/


even if I do this, I face problem later when i submit the comment, it fails at /include/comment_post.php , and if i am not wrong, it's due to the following statement.

if (XOOPS_COMMENT_APPROVENONE == $xoopsModuleConfig['com_rule']) {
        exit();
    }
    
$comment_config $xoopsModule->getInfo('comments');
    
$com_modid $xoopsModule->getVar('mid');
    
$redirect_page $comment_config['pageName'].'?';
    if (isset(
$comment_config['extraParams']) && is_array($comment_config['extraParams'])) {
        
$extra_params '';
        foreach (
$comment_config['extraParams'] as $extra_param) {
            
$extra_params .= isset($HTTP_POST_VARS[$extra_param]) ? $extra_param.'='.$HTTP_POST_VARS[$extra_param].'&' $extra_param.'=&';
        }
        
$redirect_page .= $extra_params;
    }
    
$redirect_page .= $comment_config['itemName'];
    
$comment_url $redirect_page;
    
$moddir $xoopsModule->getVar('dirname');


can somebody advise or help?

Login

Who's Online

162 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jun 30
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits