| @@ 64-69 (lines=6) @@ | ||
| 61 | $oCommentController->addCommentPopupMenu($url, 'cmd_vote', '', 'javascript'); |
|
| 62 | } |
|
| 63 | ||
| 64 | if($comment_config->use_vote_down != 'N' && $member_srl != $logged_info->member_srl) |
|
| 65 | { |
|
| 66 | // Add a vote-down button for negative feedback |
|
| 67 | $url = sprintf("doCallModuleAction('comment','procCommentVoteDown','%s')", $comment_srl); |
|
| 68 | $oCommentController->addCommentPopupMenu($url, 'cmd_vote_down', '', 'javascript'); |
|
| 69 | } |
|
| 70 | ||
| 71 | // Add the report feature against abused posts |
|
| 72 | $url = sprintf("doCallModuleAction('comment','procCommentDeclare','%s')", $comment_srl); |
|
| @@ 524-529 (lines=6) @@ | ||
| 521 | ||
| 522 | $oModuleModel = getModel('module'); |
|
| 523 | $document_config = $oModuleModel->getModulePartConfig('document',$module_srl); |
|
| 524 | if($document_config->use_vote_up!='N' && $member_srl!=$logged_info->member_srl) |
|
| 525 | { |
|
| 526 | // Add a Referral Button |
|
| 527 | $url = sprintf("doCallModuleAction('document','procDocumentVoteUp','%s')", $document_srl); |
|
| 528 | $oDocumentController->addDocumentPopupMenu($url,'cmd_vote','','javascript'); |
|
| 529 | } |
|
| 530 | ||
| 531 | if($document_config->use_vote_down!='N' && $member_srl!=$logged_info->member_srl) |
|
| 532 | { |
|
| @@ 531-536 (lines=6) @@ | ||
| 528 | $oDocumentController->addDocumentPopupMenu($url,'cmd_vote','','javascript'); |
|
| 529 | } |
|
| 530 | ||
| 531 | if($document_config->use_vote_down!='N' && $member_srl!=$logged_info->member_srl) |
|
| 532 | { |
|
| 533 | // Add button to negative |
|
| 534 | $url= sprintf("doCallModuleAction('document','procDocumentVoteDown','%s')", $document_srl); |
|
| 535 | $oDocumentController->addDocumentPopupMenu($url,'cmd_vote_down','','javascript'); |
|
| 536 | } |
|
| 537 | ||
| 538 | // Adding Report |
|
| 539 | $url = sprintf("doCallModuleAction('document','procDocumentDeclare','%s')", $document_srl); |
|