انا عندي هذا الهاك
 
افتح تمبلت newthread
 
	كود PHP:
	
		
			
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[post_new_thread]</title>
$headinclude 
		
	
  
 
أضف تحته التالي :
 
	كود PHP:
	
		
			
 <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> 
		
	
  
الان وفي نفس التمبلت أبحث عن التالي :-
 
	كود PHP:
	
		
			
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td> 
		
	
  
وأستبدله بالتالي :
 
	كود PHP:
	
		
			
<td><input type="text" class="bginput" name="subject" onChange="showFind(this)" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
<td>  </td>
                        <td><img name="findicon" src="$stylevar[imgdir_button]/findicon_off.gif" alt="Search for existing topics" onclick="openWindow()" /></td> 
		
	
  
أضف تمبلت جديد بأسم newthread_find
 
وضع به التالي :
 
	كود PHP:
	
		
			
$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>قائمة 
            المواضيع المتشابه لــ  <i>"</i><b><i>  $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
 
وضع به التالي :-
	كود PHP:
	
		
			
<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" /> </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> 
		
	
  
-----------------------------------------------
 
مايعمل عندي 
 
اذا ضعط على البحث
 
تطلع لي هذه صفحة
 
والحل ؟؟