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;
- }