<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Related Search Results ......[MOD]</title>
        <description> Related Search Results.

Search for 

&amp;lt;?php  if ($domain_name==$last_domain &amp;amp;&amp;amp; $merge_site_results == 1 &amp;amp;&amp;amp; $domain == &amp;quot;&amp;quot;) {?&amp;gt;
			[ &amp;lt;a href=&amp;quot;&amp;lt;?php print 'search.php?query='.quote_replace(addmarks($query)).'&amp;amp;search=1&amp;amp;results='.$results_per_page.'&amp;amp;domain='.$domain_name?&amp;gt;&amp;quot;&amp;gt;More results from &amp;lt;?php print $domain_name?&amp;gt;&amp;lt;/a&amp;gt; ]
			&amp;lt;/div class=&amp;quot;idented&amp;quot;&amp;gt;
		&amp;lt;?php }?&amp;gt;
		&amp;lt;br/&amp;gt;
	&amp;lt;?php  }?&amp;gt;
 &amp;lt;/div&amp;gt;
&amp;lt;?php }?&amp;gt;

After this Add

&amp;lt;?php
	/************Related Search System Starts Here**************/

	$rel_links = &amp;quot;&amp;lt;div style=font-size:16px;&amp;gt;Searches related to:&amp;amp;nbsp;&amp;lt;b&amp;gt;&amp;quot;.$query.&amp;quot;&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;;
	echo $rel_links;


	$trimmed = $query; /******* we're only search for one word *****/
	//We're only selecting one field 
	$sqql = mysql_query(&amp;quot;SELECT keyword FROM keywords LIMIT 5&amp;quot;);
	
	while($r = mysql_fetch_array($sqql))
	{
	    $tok = strtok($r[&amp;quot;keyword&amp;quot;], &amp;quot;, &amp;quot;); //parse the multi-word string returned 

	while($tok !== false)
    	{
        
	//needed to strip a quote character that enclosed the string inside the field 

        similar_text(strtoupper($trimmed), trim(strtoupper($tok),'&amp;quot;'), $percentage);
        $percentage = number_format($percentage, 0);
        if($percentage &amp;gt;= 15) //define a threshold, in this case an 15 percent match
        {
	//prints the results to clearly indicated which terms meet the threshold


	$results_record[&amp;quot;&amp;lt;a href='search.php?query=$tok&amp;amp;search=1'&amp;gt;&amp;lt;font color=\&amp;quot;#ff0000\&amp;quot;&amp;gt; &amp;quot; .  
	trim(strtoupper($tok),'&amp;quot;') . &amp;quot;&amp;lt;/font&amp;gt;&amp;lt;font color=\&amp;quot;#0000CC\&amp;quot;&amp;gt; &amp;quot; . 
	$r[field_name] . &amp;quot;&amp;lt;/font&amp;gt;&amp;lt;/a&amp;gt;&amp;quot;]  = $percentage;
        }
        $tok = strtok(&amp;quot;, &amp;quot;);
    } 
	
}



    if (!$results_record)
{
 echo &amp;quot;&amp;amp;nbsp;&amp;lt;b&amp;gt;oOps !! No Related Search found !&amp;lt;/b&amp;gt;&amp;quot;;
}
else
    {
        asort($results_record, SORT_NUMERIC);
        //echo key pair values
        foreach($results_record as $result =&amp;gt; $percentage)
        {
            echo $result . &amp;quot; - &amp;quot; . $percentage.&amp;quot;%&amp;lt;BR&amp;gt;&amp;quot; ;
        }
}

	
	/************Related Search System Ends Here**************/	
	
?&amp;gt;

Enjoy.

If this [MOD] not work reply to this post!

Regarding,

Muhammad Kamran Wajdani
Muzaffargarh, Punjab, Pakistan.</description>
        <link>http://www.sphider.eu/forum/read.php?3,6010,6010#msg-6010</link>
        <lastBuildDate>Tue, 21 May 2013 13:20:31 +0300</lastBuildDate>
        <generator>Phorum 5.2.10</generator>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,6010,6179#msg-6179</guid>
            <title>Re: Related Search Results ......[MOD]</title>
            <link>http://www.sphider.eu/forum/read.php?3,6010,6179#msg-6179</link>
            <description><![CDATA[ hi wajdani doesnt work properly bro the related result shows deferent words please fix this and there is deferent carectors in the firs word and last word of the related]]></description>
            <dc:creator>lex</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Thu, 04 Jun 2009 17:57:07 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,6010,6010#msg-6010</guid>
            <title>Related Search Results ......[MOD]</title>
            <link>http://www.sphider.eu/forum/read.php?3,6010,6010#msg-6010</link>
            <description><![CDATA[ Related Search Results.<br />
<br />
Search for <br />
<br />
&lt;?php  if ($domain_name==$last_domain &amp;&amp; $merge_site_results == 1 &amp;&amp; $domain == &quot;&quot;) {?&gt;<br />
			[ &lt;a href=&quot;&lt;?php print 'search.php?query='.quote_replace(addmarks($query)).'&amp;search=1&amp;results='.$results_per_page.'&amp;domain='.$domain_name?&gt;&quot;&gt;More results from &lt;?php print $domain_name?&gt;&lt;/a&gt; ]<br />
			&lt;/div class=&quot;idented&quot;&gt;<br />
		&lt;?php }?&gt;<br />
		&lt;br/&gt;<br />
	&lt;?php  }?&gt;<br />
 &lt;/div&gt;<br />
&lt;?php }?&gt;<br />
<br />
After this Add<br />
<br />
&lt;?php<br />
	/************Related Search System Starts Here**************/<br />
<br />
	$rel_links = &quot;&lt;div style=font-size:16px;&gt;Searches related to:&amp;nbsp;&lt;b&gt;&quot;.$query.&quot;&lt;/b&gt;&lt;/div&gt;&quot;;<br />
	echo $rel_links;<br />
<br />
<br />
	$trimmed = $query; /******* we're only search for one word *****/<br />
	//We're only selecting one field <br />
	$sqql = mysql_query(&quot;SELECT keyword FROM keywords LIMIT 5&quot;);<br />
	<br />
	while($r = mysql_fetch_array($sqql))<br />
	{<br />
	    $tok = strtok($r[&quot;keyword&quot;], &quot;, &quot;); //parse the multi-word string returned <br />
<br />
	while($tok !== false)<br />
    	{<br />
        <br />
	//needed to strip a quote character that enclosed the string inside the field <br />
<br />
        similar_text(strtoupper($trimmed), trim(strtoupper($tok),'&quot;'), $percentage);<br />
        $percentage = number_format($percentage, 0);<br />
        if($percentage &gt;= 15) //define a threshold, in this case an 15 percent match<br />
        {<br />
	//prints the results to clearly indicated which terms meet the threshold<br />
<br />
<br />
	$results_record[&quot;&lt;a href='search.php?query=$tok&amp;search=1'&gt;&lt;font color=\&quot;#ff0000\&quot;&gt; &quot; .  <br />
	trim(strtoupper($tok),'&quot;') . &quot;&lt;/font&gt;&lt;font color=\&quot;#0000CC\&quot;&gt; &quot; . <br />
	$r[field_name] . &quot;&lt;/font&gt;&lt;/a&gt;&quot;]  = $percentage;<br />
        }<br />
        $tok = strtok(&quot;, &quot;);<br />
    } <br />
	<br />
}<br />
<br />
<br />
<br />
    if (!$results_record)<br />
{<br />
 echo &quot;&amp;nbsp;&lt;b&gt;oOps !! No Related Search found !&lt;/b&gt;&quot;;<br />
}<br />
else<br />
    {<br />
        asort($results_record, SORT_NUMERIC);<br />
        //echo key pair values<br />
        foreach($results_record as $result =&gt; $percentage)<br />
        {<br />
            echo $result . &quot; - &quot; . $percentage.&quot;%&lt;BR&gt;&quot; ;<br />
        }<br />
}<br />
<br />
	<br />
	/************Related Search System Ends Here**************/	<br />
	<br />
?&gt;<br />
<br />
Enjoy.<br />
<br />
If this [MOD] not work reply to this post!<br />
<br />
Regarding,<br />
<br />
Muhammad Kamran Wajdani<br />
Muzaffargarh, Punjab, Pakistan.]]></description>
            <dc:creator>wajdani</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Sat, 18 Apr 2009 14:03:32 +0300</pubDate>
        </item>
    </channel>
</rss>
