<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - url rewriting and search.php]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/21736/"/>
	<updated>2009-06-24T05:37:25Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/21736/url-rewriting-and-searchphp/</id>
		<entry>
			<title type="html"><![CDATA[Re: url rewriting and search.php]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128632/#p128632"/>
			<content type="html"><![CDATA[<p>i found the problem,</p><p>one of my extensions did set the $query variable, serahc.php is checking on isset($query), but is never clearing this var so i added a clear action for it (the last else):</p><div class="codebox"><pre><code>if (isset($_GET[&#039;search_id&#039;]))
{
....
}
else if (isset($_GET[&#039;action&#039;]))
{
....
}
else
{
unset($query);
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Cereal]]></name>
				<uri>http://punbb.informer.com/forums/user/7510/</uri>
			</author>
			<updated>2009-06-24T05:37:25Z</updated>
			<id>http://punbb.informer.com/forums/post/128632/#p128632</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: url rewriting and search.php]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128620/#p128620"/>
			<content type="html"><![CDATA[<p>Try to debug the process of selecting rewrite rule in &quot;&lt;FORUM_ROOT&gt;/rewrite.php&quot; (lines 45-76).</p>]]></content>
			<author>
				<name><![CDATA[Slavok]]></name>
				<uri>http://punbb.informer.com/forums/user/13265/</uri>
			</author>
			<updated>2009-06-23T09:41:35Z</updated>
			<id>http://punbb.informer.com/forums/post/128620/#p128620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: url rewriting and search.php]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128423/#p128423"/>
			<content type="html"><![CDATA[<p>anyone what has an idea what causes this?</p>]]></content>
			<author>
				<name><![CDATA[Cereal]]></name>
				<uri>http://punbb.informer.com/forums/user/7510/</uri>
			</author>
			<updated>2009-06-11T06:07:57Z</updated>
			<id>http://punbb.informer.com/forums/post/128423/#p128423</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: url rewriting and search.php]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128270/#p128270"/>
			<content type="html"><![CDATA[<p>yeah without this rule, the searching works perfect</p>]]></content>
			<author>
				<name><![CDATA[Cereal]]></name>
				<uri>http://punbb.informer.com/forums/user/7510/</uri>
			</author>
			<updated>2009-06-04T10:36:36Z</updated>
			<id>http://punbb.informer.com/forums/post/128270/#p128270</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: url rewriting and search.php]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128264/#p128264"/>
			<content type="html"><![CDATA[<p>But does it really infuence? Works rewriting of search.php fine without the new rule?</p>]]></content>
			<author>
				<name><![CDATA[Parpalak]]></name>
				<uri>http://punbb.informer.com/forums/user/13581/</uri>
			</author>
			<updated>2009-06-04T09:38:31Z</updated>
			<id>http://punbb.informer.com/forums/post/128264/#p128264</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: url rewriting and search.php]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128258/#p128258"/>
			<content type="html"><![CDATA[<p>i create a new url rewriting as folowed</p><div class="codebox"><pre><code>$forum_rewrite_rules[&#039;/^wallpapers$/i&#039;] = &#039;extensions/&#039;.$ext_info[&#039;id&#039;].&#039;/page.php?p=2&#039;;</code></pre></div><p>i don&#039;t see how this can influence the one sued for the search ....</p>]]></content>
			<author>
				<name><![CDATA[Cereal]]></name>
				<uri>http://punbb.informer.com/forums/user/7510/</uri>
			</author>
			<updated>2009-06-04T08:51:09Z</updated>
			<id>http://punbb.informer.com/forums/post/128258/#p128258</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: url rewriting and search.php]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128256/#p128256"/>
			<content type="html"><![CDATA[<p>The value &quot;search.html&quot; is processed by this regex: <a href="http://punbb.informer.com/trac/browser/punbb/trunk/include/url/File_based/rewrite_rules.php#L21">http://punbb.informer.com/trac/browser/ &#133; es.php#L21</a></p><div class="codebox"><pre><code>&#039;/^(login|search|register)(\.html?|\/)?$/i&#039;     =&gt;    &#039;$1.php&#039;,</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Parpalak]]></name>
				<uri>http://punbb.informer.com/forums/user/13581/</uri>
			</author>
			<updated>2009-06-04T08:48:50Z</updated>
			<id>http://punbb.informer.com/forums/post/128256/#p128256</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: url rewriting and search.php]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128251/#p128251"/>
			<content type="html"><![CDATA[<p>hmm,</p><p>there are no se% hooks in the db ...</p><p>the only thing there is are some url rewrites in a custom extension and it seems that these are creating the troubles<br />more specific:<br /></p><div class="codebox"><pre><code>$query = array(
                                &#039;SELECT&#039;        =&gt; &#039;*&#039;,
                                &#039;FROM&#039;          =&gt; &#039;cpages&#039;
                        );
                        $result = $forum_db-&gt;query_build($query) or error(__FILE__, __LINE__);
                        while ( $item = $forum_db-&gt;fetch_assoc($result) ) {
                                $forum_rewrite_rules[&#039;/^&#039;.$item[&#039;url&#039;].&#039;$/i&#039;] = &#039;extensions/&#039;.$ext_info[&#039;id&#039;].&#039;/page.php?p=&#039;.$item[&#039;id&#039;];
                        }</code></pre></div><p>but there are no &#039;search&#039; urls in the db and certainly no search.html</p>]]></content>
			<author>
				<name><![CDATA[Cereal]]></name>
				<uri>http://punbb.informer.com/forums/user/7510/</uri>
			</author>
			<updated>2009-06-04T07:41:45Z</updated>
			<id>http://punbb.informer.com/forums/post/128251/#p128251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: url rewriting and search.php]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128248/#p128248"/>
			<content type="html"><![CDATA[<p>If I request the search.html page, your forum tries to display some search results. Did you modify the code of your forum? Have you any extensions installed, which can affect the search page?</p>]]></content>
			<author>
				<name><![CDATA[Slavok]]></name>
				<uri>http://punbb.informer.com/forums/user/13265/</uri>
			</author>
			<updated>2009-06-04T07:13:31Z</updated>
			<id>http://punbb.informer.com/forums/post/128248/#p128248</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[url rewriting and search.php]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128245/#p128245"/>
			<content type="html"><![CDATA[<p>hi, when i use url rewriting (the file based fancy one) the search link is not working</p><p>this is with the rewrite: <a href="http://neworder.box.sk/forum/search.html">http://neworder.box.sk/forum/search.html</a><br />this is the direct link: <a href="http://neworder.box.sk/forum/search.php">http://neworder.box.sk/forum/search.php</a></p><p>any ideas what goes wrong?</p>]]></content>
			<author>
				<name><![CDATA[Cereal]]></name>
				<uri>http://punbb.informer.com/forums/user/7510/</uri>
			</author>
			<updated>2009-06-04T06:40:23Z</updated>
			<id>http://punbb.informer.com/forums/post/128245/#p128245</id>
		</entry>
</feed>
