pageLimit = 50; $type = 'all'; if (!empty($filter_keyword)) { $sql = " (text LIKE '%$filter_keyword%') "; $comments = $db->where($sql)->orderBy('id', 'DESC')->objectbuilder()->paginate(T_COMMENTS, $page); } else { $comments = $db->objectbuilder()->orderBy('id', 'DESC')->paginate(T_COMMENTS, $page); // print_r($users); // exit(); } $get_online_users = $db->where('last_active', time() - 60, '>')->getValue(T_USERS, 'COUNT(*)'); if (($page > $db->totalPages) && !empty($_GET['page-id'])) { header("Location: " . PT_LoadAdminLinkSettings('manage-comments')); exit(); } ?>

Users > Manage Comments

Manage Comments

$comment) { $video_link = ''; $video_id = ''; $articles_link = ''; $articles_title = ''; if (!empty($comment->video_id)) { $get_video = PT_GetVideoByID($comment->video_id, 1, 1,2); $video_link = $get_video->url; $video_id = $get_video->video_id; } if (!empty($comment->post_id)) { $article = $db->where('id',$comment->post_id)->getOne(T_POSTS); $art_id = $article->id; $articles_link = PT_Link("articles/read/$art_id"); $articles_title = PT_ShortText($article->title,50); } echo PT_LoadAdminPage('manage-comments/list', array('TIME' => date('F-d-Y',$comment->time) ,'ARTICLES_LINK' => $articles_link ,'ARTICLES_TITLE' => $articles_title ,'VIDEO_LINK' => $video_link ,'VIDEO_ID' => $video_id ,'ID' => $comment->id ,'TEXT' => PT_Markup($comment->text))); } ?>
ID Text Video Articles Posted On Action
totalPages; ?>