وشكرا
وشكرا
نعم هذا هاك
قم بتغيير امتداد الملف الملف ليصبح tpinstall.php
وبعد ذلك اتبع التعليمات التالية
1) قم برفع هذا الملف tpinstall.php الى مجلد ال admin وبعد الانتهاء من تشغيله قم بحذفه
2) قم بفتح هذا التمبلت forumdisplay.php وابحث عن الكود التالي
##################################################
$threads=$DB_site->query("
SELECT $dotuserid $votequery ".iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postuserid,
lastposter,thread.dateline,views,thread.iconid,notes,thread.visible,sticky,votetotal,attach
FROM thread
".iif($foruminfo[allowicons],'LEFT JOIN icon ON (icon.iconid = thread.iconid)','')."
$dotjoin
WHERE $threadids
ORDER BY sticky DESC, $sortfield $sqlsortorder
");
##################################################
3) استبدله بالكود التالي
##################################################
// HACK POST PREVIEW
$previewselect="post2.pagetext as pagetext,";
$previewjoin="LEFT JOIN post AS post2 ON (thread.firstpostid = post2.postid)";
// END PREVIEW
$threads=$DB_site->query("
SELECT $dotuserid $votequery $previewselect "
.iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postuserid,
lastposter,thread.dateline,views,thread.iconid,notes,thread.visible,sticky,votetotal,attach
FROM thread
".iif($foruminfo[allowicons],'LEFT JOIN icon ON (icon.iconid = thread.iconid)','')."
$dotjoin $previewjoin
WHERE $threadids
ORDER BY sticky DESC, $sortfield $sqlsortorder
");
##################################################
4)في نفس التمبلت ابحث عن الكود التالي
##################################################
$counter=0;
while ($thread=$DB_site->fetch_array($threads)) { // and $counter++<$perpage) {
##################################################
5)ضع هذا الكود بعده
##################################################
if (strlen($thread[pagetext]) > 300) {
$fppreview = substr($thread[pagetext], 0, 300) . "...";
} else {
$fppreview = $thread[pagetext];
}
$fppreview=preg_replace("/\[[^\]]*\]/","",$fppreview);
$fppreview=str_replace("\"","",$fppreview);
##################################################
6) افتح هذا الملف newthread.php وابحث عن هذا الكود
##################################################
// create first post
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbu serinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress',' $iconid','1')");
$postid=$DB_site->insert_id();
##################################################
7) استبدله بالتالي
##################################################
// create first post
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbu serinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress',' $iconid','1')");
$postid=$DB_site->insert_id();
$DB_site->query("UPDATE thread SET firstpostid = '$postid' WHERE threadid = '$threadid'");
##################################################
8) افتح هذا التمبلت forumdisplaybit
9)ابحث عن الكود التالي
##################################################
<a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]">$thread[title]</a>
##################################################
10) استبدله بالتالي
##################################################
<a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]" title="$fppreview">$thread[title]</a>
##################################################
اخي fine ممكن تضع لي ملف newthread.php بعد التعديل لانه وجدت اختلاف فيما ابحث عنه واغيره بما كتبت في شرحك ... علما ان نسختي هي 2.2.5
والف شكر
__________________
*لا إله إلا أنت سبحان اني كنت من الظالمين *
*اللهم أنصر إخواننا المجاهدين في كل مكان *
تفضل الملف واعد تسميته الى
newthread.php
عفووا اخوي الملف فاضي ياريت تحطه ثاني حملته مرتين وطلع فاضي
__________________
*لا إله إلا أنت سبحان اني كنت من الظالمين *
*اللهم أنصر إخواننا المجاهدين في كل مكان *
هاك عرض نبذة عن الموضوع
هذا الهاك موجود ومستخدم في المنتدي هذا
http://www.aseeliat.net/vb
تفضل