<?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" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Martin Karer</title> <atom:link href="http://sezz.at/feed/" rel="self" type="application/rss+xml" /><link>http://sezz.at</link> <description>Martin Karer</description> <lastBuildDate>Sat, 07 Jan 2012 19:31:09 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.3</generator> <item><title>SW:ToR Forum &#8211; Disable Link Popup</title><link>http://sezz.at/blog/swtor/swtor-forum-disable-link-popup/</link> <comments>http://sezz.at/blog/swtor/swtor-forum-disable-link-popup/#comments</comments> <pubDate>Sat, 07 Jan 2012 19:31:09 +0000</pubDate> <dc:creator>Martin Karer</dc:creator> <category><![CDATA[STAR WARS: The Old Republic]]></category> <category><![CDATA[Popup]]></category> <category><![CDATA[SWToR]]></category> <category><![CDATA[Userscript]]></category> <category><![CDATA[Warning]]></category><guid isPermaLink="false">http://sezz.at/?p=2186</guid> <description><![CDATA[Annoying warnings like this one won&#8217;t help making the web safe for idiots: Install my userscript to disable it: Download:]]></description> <content:encoded><![CDATA[<p>Annoying warnings like this one won&#8217;t help making the web safe for idiots:</p><p><img src="http://cdn2.vdr.at/wordpress/wp-content/uploads/2012/01/swtor_forum_external_link_warning.png" alt="" title="SW:ToR Forum - External Link Warning" width="613" height="367" class="alignnone size-full wp-image-2188" /></p><p>Install my userscript to disable it:</p><span id="more-2186"></span><pre class="brush: jscript; title: ; notranslate">// ==UserScript==
// @name            SWTOR Forum: Disable Link Popup
// @description     Disables the annoying warning when clicking on external links. [Martin Karer, http://www.sezz.at]
// @namespace       sezz.at_swtor.com_disable_link_popup
// @include         http://*swtor.com*/community/*
// ==/UserScript==

var $ = unsafeWindow.jQuery;
$(document).ready(function() {
	$(&quot;a&quot;).die(&quot;click&quot;);
});
</pre><p>Download: <a href="http://sezz.at/download/swtor_forum_disable_link_popup.user.js">SW:ToR Forum No Link Popup Userscript (413 bytes)</a></p>]]></content:encoded> <wfw:commentRss>http://sezz.at/blog/swtor/swtor-forum-disable-link-popup/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Chrome: Anonymes Surfen (oder nicht?)</title><link>http://sezz.at/blog/browser/chrome-anonymes-surfen-oder-nicht/</link> <comments>http://sezz.at/blog/browser/chrome-anonymes-surfen-oder-nicht/#comments</comments> <pubDate>Mon, 26 Sep 2011 20:29:22 +0000</pubDate> <dc:creator>Martin Karer</dc:creator> <category><![CDATA[Browser]]></category><guid isPermaLink="false">http://sezz.at/?p=2170</guid> <description><![CDATA[Fakt: Das Inkognito-Fenster ist kein Ersatz für die seit vielen Jahren bewährte und universal einsetzbare Tarnkappe!]]></description> <content:encoded><![CDATA[<p><img src="http://cdn1.vdr.at/wordpress/wp-content/uploads/2011/09/chrome-achtung-hinter-dir.png" alt="" title="Chrome Inkognito Fenster" width="611" height="325" class="alignnone size-full wp-image-2171" /></p><p>Fakt: Das Inkognito-Fenster ist kein Ersatz für die seit vielen Jahren bewährte und universal einsetzbare <a href="http://de.wikipedia.org/wiki/Tarnkappe">Tarnkappe</a>!</p>]]></content:encoded> <wfw:commentRss>http://sezz.at/blog/browser/chrome-anonymes-surfen-oder-nicht/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>iOS 5 Beta 4 OTA Update Installation</title><link>http://sezz.at/blog/iphone/ios-5-beta-4-ota-update-installation/</link> <comments>http://sezz.at/blog/iphone/ios-5-beta-4-ota-update-installation/#comments</comments> <pubDate>Sat, 23 Jul 2011 22:33:58 +0000</pubDate> <dc:creator>Martin Karer</dc:creator> <category><![CDATA[iOS]]></category> <category><![CDATA[iPhone]]></category> <category><![CDATA[Beta]]></category> <category><![CDATA[OTA]]></category><guid isPermaLink="false">http://sezz.at/?p=2080</guid> <description><![CDATA[Idiotensicher wie man es von Apple gewohnt ist: Dank Jailbreak schlägt das Update fehl. Um das OTA Update ohne JB durchzuführen soll Zurücksetzen der Einstellungen helfen (direkt am Gerät), dank iCloud Backup geht nichts verloren.]]></description> <content:encoded><![CDATA[<p>Idiotensicher wie man es von Apple gewohnt ist:</p><a href='http://sezz.at/blog/iphone/ios-5-beta-4-ota-update-installation/attachment/ios5_over_the_air_update_1/' title='Update Reminder'><img width="94" height="142" src="http://cdn2.vdr.at/wordpress/wp-content/uploads/2011/07/ios5_over_the_air_update_1-94x142.png" class="attachment-thumbnail" alt="Update Reminder" title="Update Reminder" /></a> <a href='http://sezz.at/blog/iphone/ios-5-beta-4-ota-update-installation/attachment/ios5_over_the_air_update_2/' title='Details zum Update'><img width="94" height="142" src="http://cdn1.vdr.at/wordpress/wp-content/uploads/2011/07/ios5_over_the_air_update_2-94x142.png" class="attachment-thumbnail" alt="Details zum Update" title="Details zum Update" /></a> <a href='http://sezz.at/blog/iphone/ios-5-beta-4-ota-update-installation/attachment/ios5_over_the_air_update_3/' title='Bestimmungen'><img width="94" height="142" src="http://cdn2.vdr.at/wordpress/wp-content/uploads/2011/07/ios5_over_the_air_update_3-94x142.png" class="attachment-thumbnail" alt="Bestimmungen" title="Bestimmungen" /></a> <a href='http://sezz.at/blog/iphone/ios-5-beta-4-ota-update-installation/attachment/ios5_over_the_air_update_4/' title='Download'><img width="94" height="142" src="http://cdn1.vdr.at/wordpress/wp-content/uploads/2011/07/ios5_over_the_air_update_4-94x142.png" class="attachment-thumbnail" alt="Download" title="Download" /></a> <a href='http://sezz.at/blog/iphone/ios-5-beta-4-ota-update-installation/attachment/ios5_over_the_air_update_5/' title='Abschluss'><img width="94" height="142" src="http://cdn3.vdr.at/wordpress/wp-content/uploads/2011/07/ios5_over_the_air_update_5-94x142.png" class="attachment-thumbnail" alt="Abschluss" title="Abschluss" /></a><p>Dank Jailbreak schlägt das Update fehl. Um das OTA Update ohne JB durchzuführen soll Zurücksetzen der Einstellungen helfen (direkt am Gerät), dank iCloud Backup geht nichts verloren.</p>]]></content:encoded> <wfw:commentRss>http://sezz.at/blog/iphone/ios-5-beta-4-ota-update-installation/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Addon Updates 4.2</title><link>http://sezz.at/blog/wow/addon-updates-4-2/</link> <comments>http://sezz.at/blog/wow/addon-updates-4-2/#comments</comments> <pubDate>Sun, 03 Jul 2011 09:57:32 +0000</pubDate> <dc:creator>Martin Karer</dc:creator> <category><![CDATA[World of Warcraft]]></category><guid isPermaLink="false">http://sezz.at/?p=2059</guid> <description><![CDATA[COMBAT_LOG_EVENT_UNFILTERED wurde mal wieder geändert &#8211; folgene Addons sollten nun wieder lauffähig sein:]]></description> <content:encoded><![CDATA[<p>COMBAT_LOG_EVENT_UNFILTERED wurde mal wieder <a href="http://eu.battle.net/wow/en/forum/topic/2057506348">geändert</a> &#8211; folgene Addons sollten nun wieder lauffähig sein:</p><ul><li><a href="http://sezz.at/projects/wow/addons/scritline/">s:Critline</a></li><li><a href="http://sezz.at/projects/wow/addons/senhancer/">s:Enhancer</a></li></ul>]]></content:encoded> <wfw:commentRss>http://sezz.at/blog/wow/addon-updates-4-2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Pirelli PRGAV4202N Reboot Script</title><link>http://sezz.at/blog/internet/pirelli-prgav4202n-reboot-script/</link> <comments>http://sezz.at/blog/internet/pirelli-prgav4202n-reboot-script/#comments</comments> <pubDate>Sat, 02 Jul 2011 22:26:58 +0000</pubDate> <dc:creator>Martin Karer</dc:creator> <category><![CDATA[Internet]]></category> <category><![CDATA[Bash]]></category> <category><![CDATA[PRGAV4202N]]></category> <category><![CDATA[Telnet]]></category><guid isPermaLink="false">http://sezz.at/?p=2053</guid> <description><![CDATA[Da sich mein Pirelli PRGAV4202N von der Telekom Austria gelegentlich weigert, nach einem Disconnect die Verbindung neu aufzubauen und auch ein manueller Reconnect nicht mehr möglich ist habe ich mir ein kleines Bash Script geschrieben, dass den Router automatisch per Telnet neustartet. Das Script wird bei mir per Cronjob alle 5 Minuten ausgeführt und überprüft [...]]]></description> <content:encoded><![CDATA[<p>Da sich mein Pirelli PRGAV4202N von der <a href="http://www.telekom.at">Telekom Austria</a> gelegentlich weigert, nach einem Disconnect die Verbindung neu aufzubauen und auch ein manueller Reconnect nicht mehr möglich ist habe ich mir ein kleines Bash Script geschrieben, dass den Router automatisch per Telnet neustartet.</p><p>Das Script wird bei mir per Cronjob alle 5 Minuten ausgeführt und überprüft den Status der Einwählverbindung (ppp0) &#8211; wenn die Verbindung beim 2. Aufruf noch offline ist wird das Gerät neu gestartet.</p><p>Wichtig: Der angegebene User benötigt Administrator Rechte (s. <a href="http://tpirelli.blogspot.com/2011/06/root-zugriff-fur-a1telekom-austria.html">hier</a> oder bei neuerer Firmware <a href="http://tpirelli.blogspot.com/2010/06/zugang-uber-ssh-cli-oder-webinterface.html">hier</a>)!</p><span id="more-2053"></span><pre class="brush: bash; title: ; notranslate">#!/bin/bash

SLEEP=1
PIRELLI_STATUS=/tmp/pirelli
PIRELLI_LOG=/root/pirelli.log
PIRELLI_IP=192.168.0.3
PIRELLI_USER=admin
PIRELLI_PASS=

if [ ! -f $PIRELLI_STATUS ]; then
        echo &quot;1&quot; &gt; $PIRELLI_STATUS
fi

pirelli_telnet() {
        (
                sleep $(( 2 * $SLEEP ))
                echo $PIRELLI_USER
                sleep $SLEEP
                echo $PIRELLI_PASS
                sleep $SLEEP
                echo &quot;$1&quot;
                sleep $SLEEP
                echo &quot;quit&quot;
        ) | telnet $PIRELLI_IP 2&gt; /dev/null
}

ONLINE=`pirelli_telnet &quot;net ifconfig ppp0&quot; | grep &quot;state=running&quot; | wc -l`
ONLINE_BEFORE=`cat $PIRELLI_STATUS`

if [ $ONLINE -eq 0 ] &amp;&amp; [ $ONLINE_BEFORE -eq 0 ]; then
        NOW=`date +&quot;%Y/%m/%d %H:%M:%S&quot;`
        echo &quot;$NOW - Rebooting...&quot; &gt;&gt; $PIRELLI_LOG
        pirelli_telnet &quot;system reboot&quot;
fi

echo &quot;$ONLINE&quot; &gt; $PIRELLI_STATUS</pre>]]></content:encoded> <wfw:commentRss>http://sezz.at/blog/internet/pirelli-prgav4202n-reboot-script/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Word: Dokument automatisiert ausdrucken und beenden</title><link>http://sezz.at/blog/batch/word-dokument-automatisiert-ausdrucken-und-beenden/</link> <comments>http://sezz.at/blog/batch/word-dokument-automatisiert-ausdrucken-und-beenden/#comments</comments> <pubDate>Thu, 23 Jun 2011 13:07:10 +0000</pubDate> <dc:creator>Martin Karer</dc:creator> <category><![CDATA[Batch Files]]></category> <category><![CDATA[word]]></category><guid isPermaLink="false">http://sezz.at/?p=1934</guid> <description><![CDATA[Für den Einsatz als Verknüpfung (zB beim Start von Windows), Batch-Datei oder ähnlichem &#8211; das Dokument wird geöffnet, auf dem Standarddrucker ausgedruckt, gespeichert und anschließend schließt sich Word wieder: Word 2003: "%ProgramFiles%\Microsoft Office\Office12\WINWORD.EXE" &#60;Pfad zum Dokument&#62; /q /mFilePrintDefault /mFileSave /mFileExit Word 2010: "%ProgramFiles%\Microsoft Office\Office14\WINWORD.EXE" &#60;Pfad zum Dokument&#62; /q /mFilePrintDefault /mFileSave /mFileClose /mFileExit]]></description> <content:encoded><![CDATA[<p>Für den Einsatz als Verknüpfung (zB beim Start von Windows), Batch-Datei oder ähnlichem &#8211; das Dokument wird geöffnet, auf dem Standarddrucker ausgedruckt, gespeichert und anschließend schließt sich Word wieder:</p><p> <b>Word 2003:</b><br/><br/> <code>"%ProgramFiles%\Microsoft Office\Office12\WINWORD.EXE" &lt;Pfad zum Dokument&gt; /q /mFilePrintDefault /mFileSave /mFileExit</code></p><p> <b>Word 2010:</b><br/><br/> <code>"%ProgramFiles%\Microsoft Office\Office14\WINWORD.EXE" &lt;Pfad zum Dokument&gt; /q /mFilePrintDefault /mFileSave /mFileClose /mFileExit</code></p>]]></content:encoded> <wfw:commentRss>http://sezz.at/blog/batch/word-dokument-automatisiert-ausdrucken-und-beenden/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Hardware IDs auslesen (Batch + WMI)</title><link>http://sezz.at/blog/batch/get-device-ids-with-batch-wmi/</link> <comments>http://sezz.at/blog/batch/get-device-ids-with-batch-wmi/#comments</comments> <pubDate>Thu, 23 Jun 2011 13:05:33 +0000</pubDate> <dc:creator>Martin Karer</dc:creator> <category><![CDATA[Batch Files]]></category> <category><![CDATA[WMI]]></category><guid isPermaLink="false">http://sezz.at/?p=1931</guid> <description><![CDATA[Ich weiß zwar nicht mehr wofür ich das verwendet habe, aber so funktionierts:]]></description> <content:encoded><![CDATA[<p>Ich weiß zwar nicht mehr wofür ich das verwendet habe, aber so funktionierts:</p><pre class="brush: bat; title: ; notranslate">FOR /F &quot;TOKENS=1 SKIP=1&quot; %%V IN ('WMIC PATH Win32_PnPEntity GET DeviceID') DO (
ECHO Device: %%V
)</pre>]]></content:encoded> <wfw:commentRss>http://sezz.at/blog/batch/get-device-ids-with-batch-wmi/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Blockieren von Hosts mittels Batch-File</title><link>http://sezz.at/blog/batch/update-hosts-file-block-hosts/</link> <comments>http://sezz.at/blog/batch/update-hosts-file-block-hosts/#comments</comments> <pubDate>Thu, 23 Jun 2011 13:04:32 +0000</pubDate> <dc:creator>Martin Karer</dc:creator> <category><![CDATA[Batch Files]]></category><guid isPermaLink="false">http://sezz.at/?p=1928</guid> <description><![CDATA[Hin und wieder ganz nützlich, um automatisches Aktualisieren von Programmen zu verhindern oder einfach zum Filtern von Werbung. Die Funktion BlockHost überprüft ob der Eintrag im HOSTS-File existiert und legt ihn bei Bedarf an:]]></description> <content:encoded><![CDATA[<p>Hin und wieder ganz nützlich, um automatisches Aktualisieren von Programmen zu verhindern oder einfach zum Filtern von Werbung. Die Funktion <code>BlockHost</code> überprüft ob der Eintrag im HOSTS-File existiert und legt ihn bei Bedarf an:</p><span id="more-1928"></span><pre class="brush: bat; title: ; notranslate">@ECHO OFF
CALL :BlockHost example.com
CALL :BlockHost another-example.com
CALL :BlockHost another-example.org
GOTO End

:BlockHost
ECHO Host/IP: %*
FIND /C /I &quot;%*&quot; &quot;%WINDIR%\SYSTEM32\DRIVERS\ETC\HOSTS&quot; &gt; NUL
IF %ERRORLEVEL% NEQ 0 ECHO 127.0.0.1 %* &gt;&gt; &quot;%WINDIR%\SYSTEM32\DRIVERS\ETC\HOSTS&quot;
GOTO :EOF

:End</pre>]]></content:encoded> <wfw:commentRss>http://sezz.at/blog/batch/update-hosts-file-block-hosts/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Administrator-Rechte in einer Batch-Datei</title><link>http://sezz.at/blog/batch/administrator-privileges/</link> <comments>http://sezz.at/blog/batch/administrator-privileges/#comments</comments> <pubDate>Wed, 15 Jun 2011 22:20:07 +0000</pubDate> <dc:creator>Martin Karer</dc:creator> <category><![CDATA[Batch Files]]></category> <category><![CDATA[Administrator]]></category> <category><![CDATA[UAC]]></category><guid isPermaLink="false">http://sezz.at/?p=1879</guid> <description><![CDATA[Kleines Beispiel, wie in einer Batch Datei überprüft werden kann ob der aktuelle Benutzer Admin-Rechte besitzt. Sollten die erforderlichen Rechte nicht vorhanden sein, wird das Programm erneut über ein VBScript aufgerufen, welches den bekannten UAC Dialog anzeigt und die Eingabe des Administrator-Passwortes ermöglicht. Alternativ zum VBScript kann auch ELEVATE.EXE verwendet werden. Getestet unter Windows 7/Windows [...]]]></description> <content:encoded><![CDATA[<p>Kleines Beispiel, wie in einer Batch Datei überprüft werden kann ob der aktuelle Benutzer Admin-Rechte besitzt. Sollten die erforderlichen Rechte nicht vorhanden sein, wird das Programm erneut über ein VBScript aufgerufen, welches den bekannten UAC Dialog anzeigt und die Eingabe des Administrator-Passwortes ermöglicht.</p><p>Alternativ zum VBScript kann auch <a href="http://www.robotronic.de/elevate.html">ELEVATE.EXE</a> verwendet werden.</p><p>Getestet unter Windows 7/Windows 2008.</p><span id="more-1879"></span><pre class="brush: bat; title: ; notranslate">@echo off
%windir%\SYSTEM32\FSUTIL.exe &gt; nul 2&gt; nul &amp;&amp; (GOTO admin) || (GOTO nonadmin)

:admin
REM Everything's fine!
echo ADMIN
goto end

:nonadmin
REM Prompt for elevation using VBScript and re-run batch file.
echo USER
set tempvbs=%temp%\%~n0.vbs

echo Dim oShell &gt; &quot;%tempvbs%&quot;
echo Set oShell = CreateObject(&quot;Shell.Application&quot;) &gt;&gt; &quot;%tempvbs%&quot;
echo oShell.ShellExecute &quot;%~f0&quot;, WScript.ScriptFullName, vbNullString, &quot;runas&quot; &gt;&gt; &quot;%tempvbs%&quot;
echo Set oShell = CreateObject(&quot;Shell.Application&quot;) &gt;&gt; &quot;%tempvbs%&quot;
cscript &quot;%tempvbs%&quot; //nologo
del &quot;%tempvbs%&quot;
goto end

:end
pause</pre>]]></content:encoded> <wfw:commentRss>http://sezz.at/blog/batch/administrator-privileges/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>WordPress in Unterverzeichnis: Jahresarchiv Fix</title><link>http://sezz.at/blog/wordpress/non-root-wordpress-blog-year-archives-fix/</link> <comments>http://sezz.at/blog/wordpress/non-root-wordpress-blog-year-archives-fix/#comments</comments> <pubDate>Wed, 15 Jun 2011 20:23:27 +0000</pubDate> <dc:creator>Martin Karer</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[Bug]]></category> <category><![CDATA[Permalinks]]></category><guid isPermaLink="false">http://sezz.at/?p=1867</guid> <description><![CDATA[Da mich der Google Bot durch massives Generieren von 404-Fehlern fleißig darauf aufmerksam gemacht hat, dass meine Jahresarchive im wohl nicht erreichbar sind, bin ich der Sache nachgegangen. Ich habe mein Blog wie im WordPress Codex beschrieben konfiguriert &#8211; funktioniert zwar grundsätzlich, allerdings sind die Jahresarchive nicht erreichbar. Für die eigene Seite &#8220;Blog&#8221; werden wie [...]]]></description> <content:encoded><![CDATA[<p>Da mich der Google Bot durch massives Generieren von 404-Fehlern fleißig darauf aufmerksam gemacht hat, dass meine Jahresarchive im <a href="http://sezz.at/blog/">Blog</a> wohl nicht erreichbar sind, bin ich der Sache nachgegangen.</p><p>Ich habe mein Blog wie <a href="http://codex.wordpress.org/Making_Your_Blog_Appear_in_a_Non-Root_Folder">im WordPress Codex beschrieben</a> konfiguriert &#8211; funktioniert zwar grundsätzlich, allerdings sind die Jahresarchive nicht erreichbar. Für die eigene Seite &#8220;Blog&#8221; werden wie für alle anderen Seiten Rewrite Rules angelegt &#8211; das Problem daran ist, dass diese auch beim Aufruf von zB <code>/blog/2011</code> greifen und somit nie die erste Seite des gewünschten Archivs (<code>blog/([0-9]{4})/?$</code>) angezeigt werden kann. Unterseiten oder Monatsarchive funktionieren weiterhin wie gewünscht, da es dafür eigene Regeln gibt.</p><p>Ich habe das Problem über folgenden Code in der <code>functions.php</code> meines Themes gelöst:</p><span id="more-1867"></span><pre class="brush: php; title: ; notranslate">/**
 * Year-based archive fix [YAF]
 *
 * My blog is accessable via a subdirectory called /blog
 * Permalink structure: /blog/%category%/%postname%/
 * Page ID of my blog page: 13
 *
 * It seem's that if you create a &quot;page&quot; for your blog in a subdirectory as suggested
 * by the WordPress Codex (http://codex.wordpress.org/Making_Your_Blog_Appear_in_a_Non-Root_Folder)
 * the page-related rewrite rule get's executed first and it bypasses the pattern for
 * year-based archives (blog/([0-9]{4})/?$ in my example).
 *
 * To fix this behavior I changed the slug for my &quot;blog page&quot; to archives and
 * added a filter to page_link that changes the link from &quot;archives&quot; to &quot;blog&quot;.
 *
 * DON'T FORGET TO SAVE THE PERMALINK STRUCTURE AT LEAST ONCE!
 * DON'T FORGET TO REPLACE THE PAGE ID (13) WITH YOUR BLOG PAGE ID!
 */
$permalink_structure = get_option('permalink_structure');
if (preg_match(':/([^/%]+)/.*:', $permalink_structure, $blog_page)) {
	// blog is located in a subdirectory
	$sezz_blog_subdirectory = $blog_page[1];

	add_filter('rewrite_rules_array', 'sezz_yaf_rewrite_rules');
	function sezz_yaf_rewrite_rules( $rewrite_rules ) {
		global $sezz_blog_subdirectory;

		$new_rules = array(
			$sezz_blog_subdirectory.'/?$' =&gt; 'index.php?cat=-0',
			$sezz_blog_subdirectory.'/page/?([0-9]{1,})/?$' =&gt; 'index.php?cat=-0&amp;paged=$matches[1]',
		);

		$rewrite_rules = $new_rules + $rewrite_rules;
		return $rewrite_rules;
	}

	if (!is_admin()) {
		add_filter('page_link', 'sezz_yaf_page_link', 1, 2);
		function sezz_yaf_page_link( $link, $id ) {
			if ($id == 13) {
				global $sezz_blog_subdirectory;

				return home_url().'/'.$sezz_blog_subdirectory.'/';
			} else {
				return $link;
			}
		}
	}
}</pre><p><small>Update: home_url() anstatt WP_HOME</small></p>]]></content:encoded> <wfw:commentRss>http://sezz.at/blog/wordpress/non-root-wordpress-blog-year-archives-fix/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Content Delivery Network via Amazon Web Services: CloudFront: cdn1.vdr.at

Served from: www.sezz.at @ 2012-02-23 06:17:36 -->
