<?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: Random Quote &#8211; Zufallszitate via Plugin</title>
	<atom:link href="http://crashsource.de/random-quote/feed/" rel="self" type="application/rss+xml" />
	<link>http://crashsource.de</link>
	<description>... des Ursprungs Quelle</description>
	<lastBuildDate>Fri, 23 Mar 2012 12:02:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Von: Schlaue Sprüche - Don Canaille's Blog</title>
		<link>http://crashsource.de/random-quote/#comment-118</link>
		<dc:creator>Schlaue Sprüche - Don Canaille's Blog</dc:creator>
		<pubDate>Thu, 27 Sep 2007 09:27:07 +0000</pubDate>
		<guid isPermaLink="false">http://crashsource.de/random-quote/#comment-118</guid>
		<description>[...] wird auf der linken Seite auf der Hauptseite immer ein Spruch angezeigt (mittels des Plugins &#8220;Random Quote&#8220;. Dabei handelt es sich entweder um einen Witz, eine Weisheit oder ein Zitat einer bekannten [...]</description>
		<content:encoded><![CDATA[<p>[...] wird auf der linken Seite auf der Hauptseite immer ein Spruch angezeigt (mittels des Plugins &#8220;Random Quote&#8220;. Dabei handelt es sich entweder um einen Witz, eine Weisheit oder ein Zitat einer bekannten [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Dominique "jeko" Sandoz</title>
		<link>http://crashsource.de/random-quote/#comment-109</link>
		<dc:creator>Dominique "jeko" Sandoz</dc:creator>
		<pubDate>Wed, 12 Sep 2007 18:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://crashsource.de/random-quote/#comment-109</guid>
		<description>Hallo zusammen,

Nettes Plugin :)
Wenn ihr Autor und Zitat voneinander abgrenzen wollt, zum Beispiel:
Sein oder nicht sein.
  - Shakespeare
(Mit Zeilenumbruch o.&#228;.), kann folgender Workaround helfen:

Die Autoren werden im Backend mit einem Pipe (&#124;) nach die Zitate gestellt.
&lt;blockquote&gt;
Sein oder nicht sein.&#124;Shakespeare
Blub oder nicht blub.&#124;Ich
...
&lt;/blockquote&gt;
Diese kleine Funktion trennt die Zitate auf nach diesem Pipe und separiert Autor und Zitat:
[PHP]
  // Autor und Zitat extrahieren  
  function get_author_quote($quote) {
  	$pos=strpos($quote,&#039;&#124;&#039;);
	if ($pos===FALSE) { $pos=strlen($quote); $quote.=&#039;&#124;Unbekannter Schlauberger&#039;; }
	return array(&#039;author&#039;=&gt;substr($quote,$pos+1),&#039;quote&#039;=&gt;substr($quote,0,$pos));
  }
[/PHP]
Einbauen in die bestehende Funktion print_html_quote() wie folgt (z.B.):
[PHP]  // Die Zeile wiedergeben
  function print_html_quote()
  {
    if ($this-&gt;show_quotes())
    {
        $data = $this-&gt;get_author_quote($this-&gt;rand_quote());
        $quote = $data[&#039;quote&#039;];
        $author = $data[&#039;author&#039;];
    	// Ausgeben
    	echo &quot;$quote- $author&quot;;
    }
  }[/PHP]

Viel Spass,

Dominique &quot;jeko&quot; Sandoz</description>
		<content:encoded><![CDATA[<p>Hallo zusammen,</p>
<p>Nettes Plugin :)<br />
Wenn ihr Autor und Zitat voneinander abgrenzen wollt, zum Beispiel:<br />
Sein oder nicht sein.<br />
  - Shakespeare<br />
(Mit Zeilenumbruch o.&#228;.), kann folgender Workaround helfen:</p>
<p>Die Autoren werden im Backend mit einem Pipe (|) nach die Zitate gestellt.</p>
<blockquote><p>
Sein oder nicht sein.|Shakespeare<br />
Blub oder nicht blub.|Ich<br />
...
</p></blockquote>
<p>Diese kleine Funktion trennt die Zitate auf nach diesem Pipe und separiert Autor und Zitat:</p>
<div class="igBar"><span id="lphp-1"><a href="#" onclick="javascript:showPlainTxt('php-1'); return false;"> TEXTANSICHT UMSCHALTEN</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-1">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Autor und Zitat extrahieren&nbsp; </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#000000; font-weight:bold;">function</span> get_author_quote<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$quote</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$pos</span>=<a href="http://www.php.net/strpos"><span style="color:#000066;">strpos</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$quote</span>,<span style="color:#FF0000;">'|'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$pos</span>===<span style="color:#000000; font-weight:bold;">FALSE</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#0000FF;">$pos</span>=<a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$quote</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#0000FF;">$quote</span>.=<span style="color:#FF0000;">'|Unbekannter Schlauberger'</span>; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'author'</span>=&gt;substr<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$quote</span>,<span style="color:#0000FF;">$pos</span>+<span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>,<span style="color:#FF0000;">'quote'</span>=&gt;substr<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$quote</span>,<span style="color:#CC66CC;color:#800000;">0</span>,<span style="color:#0000FF;">$pos</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Einbauen in die bestehende Funktion print_html_quote() wie folgt (z.B.):</p>
<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showPlainTxt('php-2'); return false;"> TEXTANSICHT UMSCHALTEN</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Die Zeile wiedergeben</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#000000; font-weight:bold;">function</span> print_html_quote<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">show_quotes</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span> = <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">get_author_quote</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">rand_quote</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$quote</span> = <span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'quote'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$author</span> = <span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'author'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// Ausgeben</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"$quote- $author"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Viel Spass,</p>
<p>Dominique "jeko" Sandoz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Michael</title>
		<link>http://crashsource.de/random-quote/#comment-78</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 09 Aug 2007 19:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://crashsource.de/random-quote/#comment-78</guid>
		<description>ach Mist HTML Tags werden hier ja unsichtbar...ich wollte sagen &quot;woher der Zeilenumbruch in dem Paragraph kommt&quot;</description>
		<content:encoded><![CDATA[<p>ach Mist HTML Tags werden hier ja unsichtbar...ich wollte sagen "woher der Zeilenumbruch in dem Paragraph kommt"</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Michael</title>
		<link>http://crashsource.de/random-quote/#comment-77</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 09 Aug 2007 19:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://crashsource.de/random-quote/#comment-77</guid>
		<description>leider nicht ganz. Auf diese Idee bin ich nat&#252;rlich auch gekommen, aber so funktioniert es nicht.

Ich verstehe ehrlich gesagt auch nicht, wo der  in dem  herkommt...</description>
		<content:encoded><![CDATA[<p>leider nicht ganz. Auf diese Idee bin ich nat&#252;rlich auch gekommen, aber so funktioniert es nicht.</p>
<p>Ich verstehe ehrlich gesagt auch nicht, wo der  in dem  herkommt...</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: crashkid</title>
		<link>http://crashsource.de/random-quote/#comment-76</link>
		<dc:creator>crashkid</dc:creator>
		<pubDate>Thu, 09 Aug 2007 19:22:57 +0000</pubDate>
		<guid isPermaLink="false">http://crashsource.de/random-quote/#comment-76</guid>
		<description>Hallo Michael,

das kann man relativ simpel anpassen. Dafuer ist jedoch ein kleiner Eingriff in der Plugin-Datei &quot;random-quote.php&quot; notwendig.

Entscheidend ist dabei die Funktion &lt;strong&gt;print_html_quote()&lt;/strong&gt; (Zeile 130ff.), welche das Erscheinungsbild des Plugins im HTML-Bereich regelt. Hierbei muss schlichtweg die Zeile 135 von [php]echo &quot;&lt;p class=\&quot;single-quote\&quot;&gt;&quot;.$this-&gt;rand_quote().&quot;&lt;/p&gt;&quot;;[/php] in [php]echo &quot;&lt;p class=\&quot;single-quote\&quot;&gt;\&quot;&quot;.$this-&gt;rand_quote().&quot;\&quot;&lt;/p&gt;&quot;;[/php] umgewandelt werden. - Fertig, von nun an sollte das Plugin deinen Wuenschen voll und ganz entsprechen.

Noch eine kleine Ergaenzung: Warum treten die von dir beschriebenen Probleme auf? Das liegt daran, dass als HTML-Ausgabe vom Plugin ein p-Tag erzeugt wird, welcher einen Zeilenumbruch nach sich zieht. Dadruch rutscht dein zweites Anfuehrungszeichen in die zweite Zeile.

Viel Spass mit dem Plugin. :o)</description>
		<content:encoded><![CDATA[<p>Hallo Michael,</p>
<p>das kann man relativ simpel anpassen. Dafuer ist jedoch ein kleiner Eingriff in der Plugin-Datei "random-quote.php" notwendig.</p>
<p>Entscheidend ist dabei die Funktion <strong>print_html_quote()</strong> (Zeile 130ff.), welche das Erscheinungsbild des Plugins im HTML-Bereich regelt. Hierbei muss schlichtweg die Zeile 135 von
<div class="igBar"><span id="lphp-3"><a href="#" onclick="javascript:showPlainTxt('php-3'); return false;"> TEXTANSICHT UMSCHALTEN</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-3">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;p class=<span style="color:#000099; font-weight:bold;">\"</span>single-quote<span style="color:#000099; font-weight:bold;">\"</span>&gt;"</span>.<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">rand_quote</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#FF0000;">"&lt;/p&gt;"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p> in
<div class="igBar"><span id="lphp-4"><a href="#" onclick="javascript:showPlainTxt('php-4'); return false;"> TEXTANSICHT UMSCHALTEN</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;p class=<span style="color:#000099; font-weight:bold;">\"</span>single-quote<span style="color:#000099; font-weight:bold;">\"</span>&gt;<span style="color:#000099; font-weight:bold;">\"</span>"</span>.<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">rand_quote</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#FF0000;">"<span style="color:#000099; font-weight:bold;">\"</span>&lt;/p&gt;"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p> umgewandelt werden. - Fertig, von nun an sollte das Plugin deinen Wuenschen voll und ganz entsprechen.</p>
<p>Noch eine kleine Ergaenzung: Warum treten die von dir beschriebenen Probleme auf? Das liegt daran, dass als HTML-Ausgabe vom Plugin ein p-Tag erzeugt wird, welcher einen Zeilenumbruch nach sich zieht. Dadruch rutscht dein zweites Anfuehrungszeichen in die zweite Zeile.</p>
<p>Viel Spass mit dem Plugin. :o)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Michael</title>
		<link>http://crashsource.de/random-quote/#comment-75</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 09 Aug 2007 17:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://crashsource.de/random-quote/#comment-75</guid>
		<description>Hallo,

ein sehr nettes Plugin und letztlich genau das, wonach ich gesucht habe, Nur ein klienes Problem habe ich damit.

Ich w&#252;rde die Zitate gerne standardm&#228;&#223;ig in Anf&#252;hrungszeichen setzen. Also habe ich die Ausgabe im Script wie folgt angepasst:

echo &quot;&#8222;&quot;.$this-&gt;rand_quote().&quot;&#8221;&quot;;

Soweit so gut. Nur dass bei mir im HTML Code automatisch ein  gesetzt wird und damit das abschlie&#223;ende Anf&#252;hrungszeichen in die n&#228;chste Zeile rutscht. Im Quellcode sieht das dann so aus:

„Hier folgt das Zitat.
”

Ne Idee, woran das liegen kannund wie ich das wegbekomme?

Danke vorab</description>
		<content:encoded><![CDATA[<p>Hallo,</p>
<p>ein sehr nettes Plugin und letztlich genau das, wonach ich gesucht habe, Nur ein klienes Problem habe ich damit.</p>
<p>Ich w&#252;rde die Zitate gerne standardm&#228;&#223;ig in Anf&#252;hrungszeichen setzen. Also habe ich die Ausgabe im Script wie folgt angepasst:</p>
<p>echo "&#8222;".$this-&gt;rand_quote()."&#8221;";</p>
<p>Soweit so gut. Nur dass bei mir im HTML Code automatisch ein  gesetzt wird und damit das abschlie&#223;ende Anf&#252;hrungszeichen in die n&#228;chste Zeile rutscht. Im Quellcode sieht das dann so aus:</p>
<p>„Hier folgt das Zitat.<br />
”</p>
<p>Ne Idee, woran das liegen kannund wie ich das wegbekomme?</p>
<p>Danke vorab</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: crashsource.de &#187; Blog Archiv &#187; Wordpress-Plugin &#8220;Random Quote&#8221; erschienen</title>
		<link>http://crashsource.de/random-quote/#comment-37</link>
		<dc:creator>crashsource.de &#187; Blog Archiv &#187; Wordpress-Plugin &#8220;Random Quote&#8221; erschienen</dc:creator>
		<pubDate>Sun, 24 Jun 2007 16:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://crashsource.de/random-quote/#comment-37</guid>
		<description>[...] ueber die CSS-Formatierungen macht. Wer mehr darueber wissen will kann in der Sektion &#8220;Random Quote&#8221; alles detailliert nachlesen. Der Download des Plugins findet sich auch [...]</description>
		<content:encoded><![CDATA[<p>[...] ueber die CSS-Formatierungen macht. Wer mehr darueber wissen will kann in der Sektion &#8220;Random Quote&#8221; alles detailliert nachlesen. Der Download des Plugins findet sich auch [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

