| @@ 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); |
|
| @@ 526-531 (lines=6) @@ | ||
| 523 | ||
| 524 | $oModuleModel = getModel('module'); |
|
| 525 | $document_config = $oModuleModel->getModulePartConfig('document',$module_srl); |
|
| 526 | if($document_config->use_vote_up!='N' && $member_srl!=$logged_info->member_srl) |
|
| 527 | { |
|
| 528 | // Add a Referral Button |
|
| 529 | $url = sprintf("doCallModuleAction('document','procDocumentVoteUp','%s')", $document_srl); |
|
| 530 | $oDocumentController->addDocumentPopupMenu($url,'cmd_vote','','javascript'); |
|
| 531 | } |
|
| 532 | ||
| 533 | if($document_config->use_vote_down!='N' && $member_srl!=$logged_info->member_srl) |
|
| 534 | { |
|
| @@ 533-538 (lines=6) @@ | ||
| 530 | $oDocumentController->addDocumentPopupMenu($url,'cmd_vote','','javascript'); |
|
| 531 | } |
|
| 532 | ||
| 533 | if($document_config->use_vote_down!='N' && $member_srl!=$logged_info->member_srl) |
|
| 534 | { |
|
| 535 | // Add button to negative |
|
| 536 | $url= sprintf("doCallModuleAction('document','procDocumentVoteDown','%s')", $document_srl); |
|
| 537 | $oDocumentController->addDocumentPopupMenu($url,'cmd_vote_down','','javascript'); |
|
| 538 | } |
|
| 539 | ||
| 540 | // Adding Report |
|
| 541 | $url = sprintf("doCallModuleAction('document','procDocumentDeclare','%s')", $document_srl); |
|