Gökhan YILDIZ |
|
---|---|
Genoa için system/core/forums/forums.posts.inc.php dosyasını aç bul: unset ($notlastpage);
altına ekle: $uid = $usr['id']; function userPostFind(){ global $q; //Topic Id global $uid; //User Id $sqlpost = sed_sql_query("SELECT COUNT(*) FROM sed_forum_posts WHERE fp_topicid= '$q' and fp_posterid = '$uid'"); $toptaluserpost = sed_sql_result($sqlpost,0,'COUNT(*)'); if ($toptaluserpost == 0 && sed_auth('admin', 'any', 'R') == 0){ return FALSE; }else{ return TRUE; } } Bul: $t-> assign(array( "FORUMS_POSTS_ROW_ID" => $row['fp_id'], Üstüne ekle: if(userPostFind() == TRUE){ $viewuserpost = $row['fp_text']; }else { $viewuserpost = "Konu detaylarını görebilmek için cevap yazmalısınız."; } Bul: "FORUMS_POSTS_ROW_TEXT" => $row['fp_text'], Değiştir: "FORUMS_POSTS_ROW_TEXT" => $viewuserpost,
Dosyayı kaydet ve aynı dizine yükle. Gökhan YILDIZ
|