<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Better archives permalinks in WordPress 1.2</title>
	<atom:link href="http://weblogtoolscollection.com/archives/2004/06/16/better-archives-permalinks-in-wordpress-12/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblogtoolscollection.com/archives/2004/06/16/better-archives-permalinks-in-wordpress-12/</link>
	<description>Weblog Tools Blogging Tools Blog</description>
	<pubDate>Sat, 30 Aug 2008 03:35:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Chmouel</title>
		<link>http://weblogtoolscollection.com/archives/2004/06/16/better-archives-permalinks-in-wordpress-12/#comment-993</link>
		<dc:creator>Chmouel</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2004/06/16/better-archives-permalinks-in-wordpress-12/#comment-993</guid>
		<description>quite strangely for me it didn't work with posts_nav_link() i had to do a dirty hack  like that :

NB: The add of SCRIPT_NAME

diff -u "c:/unix/HOME/tmp/wordpress/wp-includes/template-functions-links.php" "c:/unix/HOME/www/wp/wp-includes/template-functions-links.php"
--- template-functions-links.php~	2004-06-18 02:22:09.000000000 +0200
+++ template-functions-links.php	2004-07-16 02:24:41.799187200 +0200
@@ -344,7 +346,7 @@
    $qstr = preg_replace('&#124;^'. $home_root . '&#124;', '', $qstr);
    $qstr = preg_replace('&#124;^/+&#124;', '', $qstr);
    if ($permalink) $qstr = trailingslashit($qstr);
-   return preg_replace('/&#038;([^#])(?![a-z]{1,8};)/', '&#038;$1', trailingslashit( get_settings('home') ) . $qstr );
+   return preg_replace('/&#038;([^#])(?![a-z]{1,8};)/', '&#038;$1', trailingslashit( $_SERVER['SCRIPT_NAME'] . "/" ) . $qstr );
 }
 
 function next_posts($max_page = 0) { // original by cfactor at cooltux.org

Diff finished.  Fri Jul 16 02:25:01 2004</description>
		<content:encoded><![CDATA[<p>quite strangely for me it didn&#8217;t work with posts_nav_link() i had to do a dirty hack  like that :</p>
<p>NB: The add of SCRIPT_NAME</p>
<p>diff -u &#8220;c:/unix/HOME/tmp/wordpress/wp-includes/template-functions-links.php&#8221; &#8220;c:/unix/HOME/www/wp/wp-includes/template-functions-links.php&#8221;<br />
&#8212; template-functions-links.php~	2004-06-18 02:22:09.000000000 +0200<br />
+++ template-functions-links.php	2004-07-16 02:24:41.799187200 +0200<br />
@@ -344,7 +346,7 @@<br />
    $qstr = preg_replace(&#8217;|^&#8217;. $home_root . &#8216;|&#8217;, &#8221;, $qstr);<br />
    $qstr = preg_replace(&#8217;|^/+|&#8217;, &#8221;, $qstr);<br />
    if ($permalink) $qstr = trailingslashit($qstr);<br />
-   return preg_replace(&#8217;/&#038;([^#])(?![a-z]{1,8};)/&#8217;, &#8216;&#038;$1&#8242;, trailingslashit( get_settings(&#8217;home&#8217;) ) . $qstr );<br />
+   return preg_replace(&#8217;/&#038;([^#])(?![a-z]{1,8};)/&#8217;, &#8216;&#038;$1&#8242;, trailingslashit( $_SERVER['SCRIPT_NAME'] . &#8220;/&#8221; ) . $qstr );<br />
 }</p>
<p> function next_posts($max_page = 0) { // original by cfactor at cooltux.org</p>
<p>Diff finished.  Fri Jul 16 02:25:01 2004</p>
]]></content:encoded>
	</item>
</channel>
</rss>
