






<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare zu: phpBB3 Mod: Nofollow &amp; neues Fenster f&#252;r externe Seiten</title>
	<atom:link href="http://www.premium-hosting-24.de/phpbb3-mod-nofollow-neues-fenster/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.premium-hosting-24.de/phpbb3-mod-nofollow-neues-fenster/</link>
	<description>Suchmaschinen-Optimierung, CMS und mehr...</description>
	<lastBuildDate>Fri, 08 Jul 2011 22:27:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>Von: N.Heimsath</title>
		<link>http://www.premium-hosting-24.de/phpbb3-mod-nofollow-neues-fenster/comment-page-1/#comment-3746</link>
		<dc:creator>N.Heimsath</dc:creator>
		<pubDate>Sun, 07 Mar 2010 21:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.premium-hosting-24.de/?p=404#comment-3746</guid>
		<description>Hall&#246;chen ich glaub Ihr habt da ne Kleinigkeit vergessen.
die // in der Regex sollte man besser Escapen.
Und in der Letzten Zeile wahren auch ein paar &quot;&#039;&#039;&#039;&quot;&quot;&#039;&quot;&#039;&quot; verwirbelt.

&lt;code&gt;
/*****************************************/
/*  phpBB3 Nofollow-Links mit Whitelist  */
/*  (c)2009 www.premium-hosting-24.de    */
/*  Fix by heimsath.org  :-)             */
/*****************************************/
	/* Variablen */
	$homeurl=$_SERVER[&#039;HTTP_HOST&#039;];
	/* Konfiguration [START] */
	$whitelist = array(
	&#039;www.your-domain.de&#039;,
        &#039;www.your-domain.eu&#039;
	);
	/* Konfiguration [ENDE] */
	$message = preg_replace(&#039;/(a class=&quot;postlink&quot; href=&quot;(.*?)&quot;)/&#039;,&#039;a href=&quot;$2&quot; class=&quot;postlink&quot;&#039;,$message);
	$message = preg_replace(&#039;/(class=&quot;postlink&quot;)/&#039;,&#039;class=&quot;postlink&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&#039;,$message);
	$message = preg_replace(&#039;/(href\=\&quot;http\:\/\/&#039;.$homeurl.&#039;(.*?)\&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;)/&#039;,&#039;href=&quot;http://&#039;.$homeurl.&#039;$2&quot; class=&quot;postlink&quot;&#039;,$message);
	# frei schalten der WhiteList 
	foreach($whitelist as $links) {
	$message = preg_replace(&#039;/(href=&quot;http\:\/\/&#039;.$links.&#039;(.*?)&quot; class\=\&quot;postlink\&quot; rel\=\&quot;nofollow\&quot; target\=\&quot;\_blank\&quot;)/&#039;,&#039;href=&quot;http://&#039;.$links.&#039;$2&quot; class=&quot;postlink&quot; target=&quot;_blank&quot;&#039;,$message);
	}
	# target _blank valide machen:
	$trreplace=&#039;onclick=&quot;this.target=&#039;.&quot;&#039;&quot;.&#039;_blank&#039;.&quot;&#039;&quot;.&#039;&quot;&#039;;
	$message = preg_replace(&#039;/(target=&quot;_blank&quot;)/&#039;,$trreplace,$message);
/* phpBB3 Nofollow-Links mit Whitelist [END] */


&lt;/code&gt;

Sch&#246;nen Abend noch.</description>
		<content:encoded><![CDATA[<p>Hall&#246;chen ich glaub Ihr habt da ne Kleinigkeit vergessen.<br />
die // in der Regex sollte man besser Escapen.<br />
Und in der Letzten Zeile wahren auch ein paar &#8220;&#8221;&#8217;&#8221;"&#8216;&#8221;&#8216;&#8221; verwirbelt.</p>
<p><pre><code>
/*****************************************/
/*  phpBB3 Nofollow-Links mit Whitelist  */
/*  (c)2009 www.premium-hosting-24.de    */
/*  Fix by heimsath.org  :-)             */
/*****************************************/
	/* Variablen */
	$homeurl=$_SERVER['HTTP_HOST'];
	/* Konfiguration [START] */
	$whitelist = array(
	'www.your-domain.de',
        'www.your-domain.eu'
	);
	/* Konfiguration [ENDE] */
	$message = preg_replace('/(a class="postlink" href="(.*?)")/','a href="$2" class="postlink"',$message);
	$message = preg_replace('/(class="postlink")/','class="postlink" rel="nofollow" target="_blank"',$message);
	$message = preg_replace('/(href\=\"http\:\/\/'.$homeurl.'(.*?)\" class="postlink" rel="nofollow" target="_blank")/','href="http://'.$homeurl.'$2" class="postlink"',$message);
	# frei schalten der WhiteList 
	foreach($whitelist as $links) {
	$message = preg_replace('/(href="http\:\/\/'.$links.'(.*?)" class\=\"postlink\" rel\=\"nofollow\" target\=\"\_blank\")/','href="http://'.$links.'$2" class="postlink" target="_blank"',$message);
	}
	# target _blank valide machen:
	$trreplace='onclick="this.target='."'".'_blank'."'".'"';
	$message = preg_replace('/(target="_blank")/',$trreplace,$message);
/* phpBB3 Nofollow-Links mit Whitelist [END] */


</code></pre></p>
<p>Sch&#246;nen Abend noch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Kreidler Moped</title>
		<link>http://www.premium-hosting-24.de/phpbb3-mod-nofollow-neues-fenster/comment-page-1/#comment-3635</link>
		<dc:creator>Kreidler Moped</dc:creator>
		<pubDate>Tue, 29 Sep 2009 20:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.premium-hosting-24.de/?p=404#comment-3635</guid>
		<description>Ich setze auch phpBB3 ein und werde das ganze mal ausprobieren. Vielen Dank!</description>
		<content:encoded><![CDATA[<p>Ich setze auch phpBB3 ein und werde das ganze mal ausprobieren. Vielen Dank!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

