<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>quark-o-blog...</title>
	<atom:link href="http://quark.qpsmod.net/feed" rel="self" type="application/rss+xml" />
	<link>http://quark.qpsmod.net</link>
	<description>Minds Collector... В рот мнє блоги!</description>
	<pubDate>Mon, 21 Jul 2008 11:13:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Dark Lutsk</title>
		<link>http://quark.qpsmod.net/stuff/dark-lutsk</link>
		<comments>http://quark.qpsmod.net/stuff/dark-lutsk#comments</comments>
		<pubDate>Fri, 23 May 2008 17:33:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Stuff]]></category>

		<category><![CDATA[Coding]]></category>

		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://quark.qpsmod.net/?p=5</guid>
		<description><![CDATA[ Все же, решил что-то писать сюда&#8230; Ибо, раз даю линк на этот блог, кто-то возьмет и зайдет&#8230; а тут  — пусто&#8230; Как-то стыдно :)
Так вот о чем это я?.. Ах, да!  Поднял на днях форумчик для друзей. Пока накатил скин, успел предать анафеме скиноделов, ибо у горе скиноделов обычно вся фантазия, да и [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://quark.qpsmod.net/wp-content/uploads/2008/05/dlscr.jpg" rel="lightbox"><img class="alignleft size-medium wp-image-4" style="float: left; margin-top: 2px; margin-bottom: 3px; margin-left: 2px; margin-right: 7px;" title="Dark-Lutsk" src="http://quark.qpsmod.net/wp-content/uploads/2008/05/dlscr-300x203.jpg" alt="Dark-Lutsk" width="300" height="203" /></a> Все же, решил что-то писать сюда&#8230; Ибо, раз даю линк на этот блог, кто-то возьмет и зайдет&#8230; а тут  — пусто&#8230; Как-то стыдно :)</p>
<p>Так вот о чем это я?.. Ах, да!  Поднял на днях форумчик для друзей. Пока накатил скин, успел предать анафеме скиноделов, ибо у горе скиноделов обычно вся фантазия, да и желание работать заканчиваются на главной странице — все остальное глючит неимоверно. Цвета не подходят. Картинки не адаптированы под скин. Короче, ужас&#8230;</p>
<p>Но, мне повезло — вспомнил о замечательнейшем сайте, на который, в свое время, часто захаживал — <a title="Creative Networks" href="http://www.creative-networks.org/" target="_blank">www.creative-networks.org</a>. Собственно, там я и нашел первый <span style="color: #808080;">почти</span> идеальный скин — исправлять пришлось только мелочи и то — банальным редактированием CSS файла&#8230;</p>
<p><span id="more-5"></span>Вслед за этим, прилепил еще одну &#8220;фишку&#8221; — выделение постов админа <span style="color: #808080;">(т.е. меня)</span> специальным стилем. Пришлось сочинять ее заново — оригинал я так и не нашел нигде&#8230; <a rel="lightbox" href="http://quark.qpsmod.net/wp-content/uploads/2008/05/dlscrposts.jpg">Получилось занятно</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://quark.qpsmod.net/stuff/dark-lutsk/feed</wfw:commentRss>
		</item>
		<item>
		<title>Ultimate Tag Warrior fix for WordPress 2.2.1</title>
		<link>http://quark.qpsmod.net/coding/ultimate-tag-warrior-fix-for-wordpress-221</link>
		<comments>http://quark.qpsmod.net/coding/ultimate-tag-warrior-fix-for-wordpress-221#comments</comments>
		<pubDate>Tue, 24 Jul 2007 04:38:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://quark.qpsmod.net/coding/ultimate-tag-warrior-fix-for-wordpress-221</guid>
		<description><![CDATA[I've just installed WP 2.2.1 and had some problems with pretty URLs...
So I've played a bit (note that it's my first contact with WP so I'm not sure if my method is good) with the code...
Well... stop talking... here's my solution:

First of all: fix .htaccess...
My .htaccess file contents:
click for PLAIN text
CODE:




# BEGIN WordPress


&#160;


RewriteEngine On


RewriteBase /# [...]]]></description>
			<content:encoded><![CDATA[<p>I've just installed WP 2.2.1 and had some problems with pretty URLs...</p>
<p>So I've played a bit (note that it's my first contact with WP so I'm not sure if my method is good) with the code...<br />
Well... stop talking... here's my solution:</p>
<p><span id="more-3"></span></p>
<p>First of all: fix .htaccess...</p>
<p>My <strong>.htaccess</strong> file contents:</p>
<div class="igBar"><span id="lcode-3"><a href="#" onclick="javascript:showPlainTxt('code-3'); return false;">click for PLAIN text</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-3">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;"># BEGIN WordPress</span></div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteEngine On</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteBase /<span style="color:#FF9933; font-style:italic;"># Basic tag requests: &quot;tag/TAGNAME&quot; =&gt; &quot;index.php?tag=TAGNAME&quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteRule ^tag/?<span style="color:#008800; font-weight:bold;">&#40;</span>.*<span style="color:#008800; font-weight:bold;">&#41;</span>$ /index.<span style="">php</span>?tag=$<span style="color:#CC66CC;color:#800000;">1</span> <span style="color:#008800; font-weight:bold;">&#91;</span>L<span style="color:#008800; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteRule ^tag/?<span style="color:#008800; font-weight:bold;">&#40;</span>.*<span style="color:#008800; font-weight:bold;">&#41;</span>/$ /index.<span style="">php</span>?tag=$<span style="color:#CC66CC;color:#800000;">1</span> <span style="color:#008800; font-weight:bold;">&#91;</span>L<span style="color:#008800; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;"># Multipage requests: &quot;tag/TAGNAME/page/N&quot; =&gt; &quot;index.php?tag=TAGNAME&amp;paged=N&quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteRule ^tag/?<span style="color:#008800; font-weight:bold;">&#40;</span>.*<span style="color:#008800; font-weight:bold;">&#41;</span>/page/?<span style="color:#008800; font-weight:bold;">&#40;</span>.*<span style="color:#008800; font-weight:bold;">&#41;</span>$ /index.<span style="">php</span>?tag=$<span style="color:#CC66CC;color:#800000;">1</span>&amp;paged=$<span style="color:#CC66CC;color:#800000;">2</span> <span style="color:#008800; font-weight:bold;">&#91;</span>L<span style="color:#008800; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteRule ^tag/?<span style="color:#008800; font-weight:bold;">&#40;</span>.*<span style="color:#008800; font-weight:bold;">&#41;</span>/page/?<span style="color:#008800; font-weight:bold;">&#40;</span>.*<span style="color:#008800; font-weight:bold;">&#41;</span>/$ /index.<span style="">php</span>?tag=$<span style="color:#CC66CC;color:#800000;">1</span>&amp;paged=$<span style="color:#CC66CC;color:#800000;">2</span> <span style="color:#008800; font-weight:bold;">&#91;</span>L<span style="color:#008800; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;"># Tag feeds: &quot;tag/TAGNAME/rss&quot; =&gt; &quot;wp-rss.php?tag=TAGNAME&quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;"># &quot;tag/TAGNAME/atom&quot; =&amp;gt; &quot;wp-atom.php?tag=TAGNAME&quot;</span></div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteRule ^tag/?<span style="color:#008800; font-weight:bold;">&#40;</span>.*<span style="color:#008800; font-weight:bold;">&#41;</span>/feed/<span style="color:#008800; font-weight:bold;">&#40;</span>feed|rdf|rss|rss2|atom<span style="color:#008800; font-weight:bold;">&#41;</span>/?$ /index.<span style="">php</span>?tag=$<span style="color:#CC66CC;color:#800000;">1</span>&amp;feed=$<span style="color:#CC66CC;color:#800000;">2</span> <span style="color:#008800; font-weight:bold;">&#91;</span>L<span style="color:#008800; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteCond %<span style="color:#008800; font-weight:bold;">&#123;</span>REQUEST_FILENAME<span style="color:#008800; font-weight:bold;">&#125;</span> !-f</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteCond %<span style="color:#008800; font-weight:bold;">&#123;</span>REQUEST_FILENAME<span style="color:#008800; font-weight:bold;">&#125;</span> !-d</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RewriteRule . /index.<span style="">php</span> <span style="color:#008800; font-weight:bold;">&#91;</span>L<span style="color:#008800; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;"># END WordPress </span></div>
</li>
</ol>
</div>
</div>
</div>
<p>My second problem was that I wanted to use /category/postname as permalink so the link /tag/tagname was detected as category "tag" and postname "tagname" by WP engine...<br />
To fix this issue you need to edit ultimate-tag-warrior.php (I've use single-file release).</p>
<p>Find "ultimate_rewrite_rules" function (near 1550 line). Replace it with this one:</p>
<div class="igBar"><span id="lphp-4"><a href="#" onclick="javascript:showPlainTxt('php-4'); return false;">click for PLAIN text</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-4">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #777777; font-weight: bold;">function</span> ultimate_rewrite_rules<span style="color: #008800; font-weight: bold;">&#40;</span><span style="color: #9999FF;">$rules</span><span style="color: #008800; font-weight: bold;">&#41;</span> <span style="color: #008800; font-weight: bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #838300;">if</span><span style="color: #008800; font-weight: bold;">&#40;</span>get_option<span style="color: #008800; font-weight: bold;">&#40;</span><span style="color: #FF4444;">"utw_use_pretty_urls"</span><span style="color: #008800; font-weight: bold;">&#41;</span> == <span style="color: #FF4444;">"yes"</span><span style="color: #008800; font-weight: bold;">&#41;</span> <span style="color: #008800; font-weight: bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #9999FF;">$baseurl</span> = get_option<span style="color: #008800; font-weight: bold;">&#40;</span><span style="color: #FF4444;">"utw_base_url"</span><span style="color: #008800; font-weight: bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #9999FF;">$rules_tmp</span> = <a href="http://www.php.net/array"><span style="color: #6666CC;">array</span></a><span style="color: #008800; font-weight: bold;">&#40;</span><span style="color: #008800; font-weight: bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/global"><span style="color: #6666CC;">global</span></a> <span style="color: #9999FF;">$wp_rewrite</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #9999FF;">$tagbase</span> = <a href="http://www.php.net/substr"><span style="color: #6666CC;">substr</span></a><span style="color: #008800; font-weight: bold;">&#40;</span><span style="color: #9999FF;">$baseurl</span>, <span style="color: #CC66CC;color:#800000;">1</span>, <a href="http://www.php.net/strlen"><span style="color: #6666CC;">strlen</span></a><span style="color: #008800; font-weight: bold;">&#40;</span><span style="color: #9999FF;">$baseurl</span><span style="color: #008800; font-weight: bold;">&#41;</span> - <span style="color: #CC66CC;color:#800000;">2</span><span style="color: #008800; font-weight: bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #9999FF;">$wp_rewrite</span>-&gt;<span style="color: #008800;">add_rewrite_tag</span><span style="color: #008800; font-weight: bold;">&#40;</span><span style="color: #FF4444;">'%tag%'</span>, <span style="color: #FF4444;">'(.*)'</span>, <span style="color: #FF4444;">'tag='</span><span style="color: #008800; font-weight: bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF9933; font-style: italic;">// without trailing slash</span></div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #9999FF;">$rules_tmp</span> += <span style="color: #9999FF;">$wp_rewrite</span>-&gt;<span style="color: #008800;">generate_rewrite_rules</span><span style="color: #008800; font-weight: bold;">&#40;</span><span style="color: #9999FF;">$baseurl</span> . <span style="color: #FF4444;">'%tag%'</span><span style="color: #008800; font-weight: bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF9933; font-style: italic;">// with trailing slash</span></div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #9999FF;">$rules_tmp</span> += <span style="color: #9999FF;">$wp_rewrite</span>-&gt;<span style="color: #008800;">generate_rewrite_rules</span><span style="color: #008800; font-weight: bold;">&#40;</span><span style="color: #9999FF;">$baseurl</span> . <span style="color: #FF4444;">'%tag%/'</span><span style="color: #008800; font-weight: bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #9999FF;">$rules</span> = <a href="http://www.php.net/array_merge"><span style="color: #6666CC;">array_merge</span></a><span style="color: #008800; font-weight: bold;">&#40;</span><span style="color: #9999FF;">$rules_tmp</span>, <span style="color: #9999FF;">$rules</span><span style="color: #008800; font-weight: bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008800; font-weight: bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #838300;">return</span> <span style="color: #9999FF;">$rules</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:INHERIT;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008800; font-weight: bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Now make your .htaccess NOT writable (chmod 644).<br />
Then goto Admin-&gt;Options-&gt;Permalink and click "Update Permalink Structure" - this will rebuild internal rewrite rules...</p>
<p>I want to say again: this is my first contact with WordPress code. Just want to help you.</p>
]]></content:encoded>
			<wfw:commentRss>http://quark.qpsmod.net/coding/ultimate-tag-warrior-fix-for-wordpress-221/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
