المساعد الشخصي الرقمي إضغط هنا لمشاهدة المواضيع حسب التسلسل من الأحدث الى الأقدم

مشاهدة النسخة كاملة : تمبلت البحث عن المواضيع المتشابهه


mr.saker
12-03-06, 07:01 PM
السلام عليكم ورحمة الله وبركاته
بسم الله الرحمن الرحيم
هذا الهاك يقوم بالبحث عن المواضيع النتشابهه
نبذه عن الهاك .
عند توجودك فى اى موضوع يقوم بالبحث عن الموضيع المتشابهه له ويضعها فى اخر الصفحه
هاك جميل جدا ومميز
الشرح .
أفتح تمبلت newthread
وأبحث عن الكود التالي
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[post_new_thread]</title>
$headinclude
أضف تحته هذا الكود
<script language="javascript">
function showFind(object)
{
if(object.value != '')
{
document.findicon.src = "$stylevar[imgdir_button]/findicon_on.gif";
document.findicon.style.cursor = "pointer";
}
else
{
document.findicon.src = "$stylevar[imgdir_button]/findicon_off.gif";
document.findicon.style.cursor = "default";
}
}
function openWindow()
{
if(document.vbform.subject.value != '')
{
var subject = document.vbform.subject.value;
var width = 650;
var height = 325;
var winL = (screen.width - width) / 2;
var winT = (screen.height - height) / 2;
window.open('findtopic.php?s='+subject,
'vWindow',
'scrollbars=yes,toolbar=no,status=no,width='+width +',height='+height+',top='+winT+',left='+winL
);
}
else
{
window.alert("You must complete the subject field");
}
}
</script>
وفي نفس التمبلت
أبحث عن الكود التالي :
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
وأستبدله بهذا الكود
<td><input type="text" class="bginput" name="subject" onChange="showFind(this)" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
<td>&nbsp;&nbsp;</td>
<td><img name="findicon" src="$stylevar[imgdir_button]/findicon_off.gif" alt="Search for existing topics" onclick="openWindow()" /></td>
أضف تمبلت جديد بأسم
newthread_find
وضع به هذا الكود :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - تم البحث عن المواضيع التالية </title>
<if condition="empty($threads)">
<script language="javascript">
window.alert("لا توجد مواضيع مشابه له:\n\"$subject\"");
window.close();
</script>
</if>
$headinclude
</head>
<body>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td align="center" class="tcat" width="100%" colspan="5">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('similarthreads')"><img id="collapseimg_similarthreads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_similarthreads].gif" alt="" border="0" /></a>قائمة
المواضيع المتشابه لــ&nbsp; <i>"</i><b><i>&nbsp; $subject "</i> </b>
</td>
</tr>
</thead>
<tbody id="collapseobj_similarthreads" style="$vbcollapse[collapseobj_similarthreads]">
<tr class="thead" align="center">
<td class="thead" width="40%">$vbphrase[thread]</td>
<td class="thead" width="15%" nowrap="nowrap">$vbphrase[thread_starter]</td>
<td class="thead" width="20%">$vbphrase[forum]</td>
<td class="thead" width="5%">$vbphrase[replies]</td>
<td class="thead" width="20%">$vbphrase[last_post]</td>
</tr>
$threads
</tbody>
</table>
</body>
</html>
أضف تمبلت جديد بأسم
newthread_find_list
وضع به هذا الكود:
<tr>
<td class="alt1" align="$stylevar[left]"><if condition="$simthread['issubscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="" title="$vbphrase[you_are_subscribed_to_this_thread]" align="center" />&nbsp;</if><span class="smallfont"><a href="showthread.php?$session[sessionurl]t=$simthread[threadid]" title="$simthread[preview]" target="_blank">$simthread[title]</a></span></td>
<td class="alt2" nowrap="nowrap"><span class="smallfont">$simthread[postusername]</span></td>
<td class="alt1" nowrap="nowrap"><span class="smallfont">$simthread[forumtitle]</span></td>
<td class="alt2" align="center"><span class="smallfont">$simthread[replycount]</span></td>
<td class="alt1" align="$stylevar[right]"><span class="smallfont">$simthread[lastreplydate] <span class="time">$simthread[lastreplytime]</span></span></td>
</tr>

انتهى التركيب باذن الله
تحياتى لكم وبالتوفيق ان شاء الله

عذب القوافي
13-03-06, 03:22 PM
شكرا عزيزي

تم تركيبه على موقع لصديق بنجاح تام

جزيل الشكر على هذا المجهود الرائع

بالتوفيق

احب عيون حبيبي
13-03-06, 11:42 PM
تسلم اخوي على الهاك

يعطيك الف عافيه

دمت بود

mr.saker
15-03-06, 10:58 PM
اشكركم يا اخونى على مروركم
وجزاكم الله كل خير

المهاجر
24-03-06, 02:48 PM
تسلم اخوي على الهاك

يعطيك الف عافيه

دمت بود

DREAMMAN
04-05-06, 01:32 AM
يسلموا على الموضوع

omarkaboo
04-03-07, 04:50 PM
فى كلمات ممنوعة ياريت الاكواد فى ملف
شكرا لكم

منتدى-المنتدى-منتديات-عديل-الروح-برامج-دروس-شروحات-تصاميم-تعارف-مواقع-فوتوشوب-تعليم-فلاتر-سويتش-دردشه-قصائد-خواطر-روايات-قصص-اسكربتات-اسكربت-برمجه-تطوير-استايلات مجانيه--دليل-مواقع-دورات-تصميم-حوادث-جرائم-فساتين-نسائيه-عالم-حواء-آدم-مطبخ-أثاث-حوارات-نقاش-سيارات-دراجات-أفلام مباشره-تحميل أفلام-مكتبه عامه-مسابقات-جوائز-نقديه-جليتير-برامج حمايه-برامج تصميم-صور- vBulletin
RSS | RSS 1 | RSS 2 | PHP | XML | ROR | HTML