<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Hacking UrlEditor</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 13 May 2026 21:39:35 -0000</pubDate>

		<item>
			<title>Eugene</title>
			<description><![CDATA[<p>
	Thank you for advice!</p>
<p>
	I made this piece of code</p>
<pre class="brush:php;">

if ($path[0] == 'users' &amp;&amp; $count == 3 &amp;&amp; !isset($_GET['m'])) {

    $_GET['e'] = 'users';
    $_GET['m'] = 'details';
    $_GET['u'] = $path[1];
    $_GET['det'] = $path[2];

    return;
}
</pre>
<p>
	and in urltrans.dat</p>
<pre class="brush:plain;">
users	m=details&amp;u=*&amp;det=*		users/{cot_url_username()}/{$det}</pre>
<p>
	Thank you ))</p>
<p>
	 </p>
]]></description>
			<pubDate>Mon, 28 Jan 2013 14:05:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7320&d=0#post36905]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Using urleditor.rewrite.first seems to be a better way if you want to reuse other stuff from that function. There's no need to overwrite most of it, you just need to put there your <code>if</code> and then call <code>return</code> when you're done.</p>
]]></description>
			<pubDate>Mon, 28 Jan 2013 12:35:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7320&d=0#post36901]]></link>
		</item>
		<item>
			<title>Eugene</title>
			<description><![CDATA[<p>
	Hello!</p>
<p>
	Just need to rewrite urls like this... /users/Eugene/blabla ( GETting that as m=details&amp;u=*&amp;det=*)</p>
<p>
	In <strong>urleditor.functions.php</strong> I found a line (#85)</p>
<pre class="brush:php;">
if ($path[0] == 'users' &amp;&amp; $count == 2 &amp;&amp; !isset($_GET['m']))</pre>
<p>
	so, this $count == 2 is limiting me in my task.</p>
<p>
	What is the best COT-way to hack it?</p>
<ul><li>
		creating function cot_apply_rwr_custom() and place it on the INPUT hook ...      OR</li>
	<li>
		use hook <em>urleditor.rewrite.first</em>  to recode major part of  function cot_apply_rwr()</li>
</ul><p>
	Is there better way?</p>
]]></description>
			<pubDate>Mon, 28 Jan 2013 11:37:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7320&d=0#post36896]]></link>
		</item>
	</channel>
</rss>