| @@ 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); |
|
| @@ 502-507 (lines=6) @@ | ||
| 499 | ||
| 500 | $oModuleModel = getModel('module'); |
|
| 501 | $document_config = $oModuleModel->getModulePartConfig('document',$module_srl); |
|
| 502 | if($document_config->use_vote_up!='N' && $member_srl!=$logged_info->member_srl) |
|
| 503 | { |
|
| 504 | // Add a Referral Button |
|
| 505 | $url = sprintf("doCallModuleAction('document','procDocumentVoteUp','%s')", $document_srl); |
|
| 506 | $oDocumentController->addDocumentPopupMenu($url,'cmd_vote','','javascript'); |
|
| 507 | } |
|
| 508 | ||
| 509 | if($document_config->use_vote_down!='N' && $member_srl!=$logged_info->member_srl) |
|
| 510 | { |
|
| @@ 509-514 (lines=6) @@ | ||
| 506 | $oDocumentController->addDocumentPopupMenu($url,'cmd_vote','','javascript'); |
|
| 507 | } |
|
| 508 | ||
| 509 | if($document_config->use_vote_down!='N' && $member_srl!=$logged_info->member_srl) |
|
| 510 | { |
|
| 511 | // Add button to negative |
|
| 512 | $url= sprintf("doCallModuleAction('document','procDocumentVoteDown','%s')", $document_srl); |
|
| 513 | $oDocumentController->addDocumentPopupMenu($url,'cmd_vote_down','','javascript'); |
|
| 514 | } |
|
| 515 | ||
| 516 | // Adding Report |
|
| 517 | $url = sprintf("doCallModuleAction('document','procDocumentDeclare','%s')", $document_srl); |
|