function_portalcp.php 中 addportalarticlecomment 函數體中,專題的評論就是通過這個函數添加到數據庫中的。
- if(censormod($message)) {
- $comment_status = 1;
- } else {
- $comment_status = 0;
- }
這段代碼是判斷關鍵字審核,如果要審核這條評論。就把 $comment_status = 1 。
如果需要把專題評論先審後發,就在這段代碼後,添加:
如果 $id == 你要審核的專題 就把 $comment_status = 1;
舉例: 如果你要先審後發的專題 id 為 1,那我們就加入代碼
- if( $id == 1){
- $comment_status = 1;
- }