<?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>Lars Schenk &#187; Flickr</title>
	<atom:link href="http://lars-schenk.com/tag/flickr/feed" rel="self" type="application/rss+xml" />
	<link>http://lars-schenk.com</link>
	<description>IT-Services :: Software-Development since 1980 :: Freelancer since 1988</description>
	<lastBuildDate>Thu, 18 Feb 2010 23:42:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flickr goes Video</title>
		<link>http://lars-schenk.com/flickr-goes-video/211</link>
		<comments>http://lars-schenk.com/flickr-goes-video/211#comments</comments>
		<pubDate>Tue, 13 May 2008 20:07:06 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Video]]></category>
		<category><![CDATA[Flickr]]></category>

		<guid isPermaLink="false">http://lars-schenk.com/flickr-goes-video/211</guid>
		<description><![CDATA[Bis zu 90 Sekunden Video (oder max. 150 MB) können nun auch bei Flickr deponiert werden. Praktische Sache wenn man die Kurzfilme von der Digicam gleich auch dort ablegen kann, wo man üblicherweise auch seine Fotos organisiert. Danke Flickr!

]]></description>
			<content:encoded><![CDATA[<p>Bis zu 90 Sekunden Video (oder max. 150 MB) können nun auch bei <a href="http://www.flickr.com">Flickr</a> deponiert werden. Praktische Sache wenn man die Kurzfilme von der Digicam gleich auch dort ablegen kann, wo man üblicherweise auch seine Fotos organisiert. Danke Flickr!<br />
<object type="application/x-shockwave-flash" width="500" height="281" data="http://www.flickr.com/apps/video/stewart.swf?v=49235" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="flashvars" value="intl_lang=en-us&amp;photo_secret=dc452d963c&amp;photo_id=2489732977"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=49235"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=49235" bgcolor="#000000" allowfullscreen="true" flashvars="intl_lang=en-us&amp;photo_secret=dc452d963c&amp;photo_id=2489732977" height="281" width="500"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/flickr-goes-video/211/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flickr Photo Gallery 0.92 mit WordPress 2.3</title>
		<link>http://lars-schenk.com/flickr-photo-gallery-092-mit-wordpress-23/156</link>
		<comments>http://lars-schenk.com/flickr-photo-gallery-092-mit-wordpress-23/156#comments</comments>
		<pubDate>Mon, 08 Oct 2007 20:53:03 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://lars-schenk.com/flickr-photo-gallery-092-mit-wordpress-23/156</guid>
		<description><![CDATA[Flickr Photo Gallery Version 0.92 macht Probleme mit WordPress 2.3 &#8211; ein Update des Plugins ist derzeit nicht verfügbar. Um die Administrator-Seite wieder zum laufen zu bringen kann man sich damit behelfen in der admin-options-load.php die Zeile 15
require_once(dirname(__FILE__).$tmpPath.&#8217;/wp-admin/admin-db.php&#8217;);
auszukommentieren.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://tantannoodles.com/toolkit/photo-album/">Flickr Photo Gallery</a> Version 0.92 macht Probleme mit WordPress 2.3 &#8211; ein Update des Plugins ist derzeit nicht verfügbar. Um die Administrator-Seite wieder zum laufen zu bringen kann man sich damit behelfen in der admin-options-load.php die Zeile 15<br />
<blockquote>require_once(dirname(__FILE__).$tmpPath.&#8217;/wp-admin/admin-db.php&#8217;);</p></blockquote>
<p>auszukommentieren.</p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/flickr-photo-gallery-092-mit-wordpress-23/156/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flickr&#8217;s neue Slideshow</title>
		<link>http://lars-schenk.com/flickr-slideshow/108</link>
		<comments>http://lars-schenk.com/flickr-slideshow/108#comments</comments>
		<pubDate>Fri, 11 May 2007 00:25:05 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Flickr]]></category>

		<guid isPermaLink="false">http://www.lars-schenk.com/flickr-slideshow/108</guid>
		<description><![CDATA[Flickr hat die Slideshow überarbeitet. Bilder im Grossformat auf schwarzem Untergrund, (optionale) Anzeige der Bildtitel und Bescheibungen machen richtig etwas her.  Am besten schaut man es sich mal an um zu sehen, wie es funktioniert und wirkt.
]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; margin-left: 20px; margin-bottom: 10px;" src="http://l.yimg.com/www.flickr.com/images/flickr_logo_gamma.gif.v1.2.7" /><a href="http://de.wikipedia.org/wiki/Flickr">Flickr</a> hat die Slideshow überarbeitet. Bilder im Grossformat auf schwarzem Untergrund, (optionale) Anzeige der Bildtitel und Bescheibungen machen richtig etwas her.  Am besten <a target="flickr" href="http://www.flickr.com/photos/lars-schenk/sets/72157600188742242/show/">schaut man es sich mal an</a> um zu sehen, wie es funktioniert und wirkt.</p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/flickr-slideshow/108/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin für Flickr und Lightbox</title>
		<link>http://lars-schenk.com/wordpress-plugin-flickr-lightbox/76</link>
		<comments>http://lars-schenk.com/wordpress-plugin-flickr-lightbox/76#comments</comments>
		<pubDate>Tue, 14 Nov 2006 00:42:46 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tech-recipes]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Lightbox]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.lars-schenk.com/wordpress-plugin-flickr-lightbox/76</guid>
		<description><![CDATA[Mit dem Wordpress Plugin Flickr Photo Album for WordPress hat Joe Tan eine das wirklich schöne Integration der Flickr Dienste in WordPress ermöglicht. Wer keine eigene Gallery wie zum Beispiel Gallery 1 oder 2 von Bharat Mediratta oder die Coppermine Photo Gallery betreiben und integrieren möchte, kann mit diesem Plugin schnell und unkompliziert seine eigenen [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/photos/photo/296797332/Joana__Alicia.html" title="Dieses Bild wurde mit der Default-Methode vom Plugin eingebunden - der Link führt Sie zu einer neuen Seite."><img style="float: right; margin-left: 20px; margin-bottom: 10px;" src="http://static.flickr.com/122/296797332_9748d1020b_m.jpg" alt="" width="240" height="135" border="0" /></a>Mit dem Wordpress Plugin <a href="http://tantannoodles.com/toolkit/photo-album/">Flickr Photo Album for WordPress</a> hat Joe Tan eine das wirklich schöne Integration der <a href="http://www.flickr.com">Flickr</a> Dienste in WordPress ermöglicht. Wer keine eigene Gallery wie zum Beispiel <a href="http://gallery.menalto.com/">Gallery 1 oder 2 von Bharat Mediratta</a> oder die <a href="http://coppermine-gallery.net/">Coppermine Photo Gallery</a> betreiben und integrieren möchte, kann mit diesem Plugin schnell und unkompliziert seine eigenen Fotoalben in den WordPress basierten Blog integrieren. Die Installation setzt einen eigenen API-Key bei Flickr voraus, der aber auch während der Installation angelegt werden kann.<br />
Ein optionales Flickr Sidebar Widget zur Anzeige Ihrer aktuellen Flickr Bilder im WordPress Sidebar wird ebenfalls mitgeliefert - es setzt jedoch das <a href="http://automattic.com/code/widgets/">WordPress Widgets Plugin</a> voraus.</p>
<p>Optional werden auch die <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2</a> Effekte unterstützt, hierzu kann in /wp-content/plugins/silaspartners/flickr/photoalbum-header.html die Variable <i>$useLightbox = true;</i> gesetzt werden. Der Vorteil der Lightbox ist, dass Bilder in der Volldarstellung über der aktuellen Seiten und nicht innerhalb einer neuen Seite dargestellt werden, was dem Webdesigner mehr Möglichkeiten für das Layout offenbart und den Betrachter des Bildes auf der aktuellen Seite verweilen läst.</p>
<p><a href="http://static.flickr.com/122/296797332_9748d1020b_o.jpg" rel="lightbox" title="Hier wird das Vollbild via Lightbox dargestellt: Ein Seitenwechsel wird vermieden!"><img style="float: right; margin-left: 20px; margin-bottom: 10px;" src="http://static.flickr.com/122/296797332_9748d1020b_m.jpg" alt="" width="240" height="135" border="0" /></a>Bei der Lightbox Integration bin ich jedoch einen anderen Weg gegangen, denn das Setzen des <i>$useLightbox = true;</i> Schalters aktiviert die Lighbox nur bei der Foto-Alben-Darstellung und nimmt dem Anwender dort die Möglichkeit Kommentare zu einem Album bzw. Bild zu hinterlegen. Während die Lightbox-Effekte ungenutzt bleiben, wenn man ein Flickr Bild über das Plugin in den WordPress-Editor einbindet.  Und genau hier möchte man doch die Vorteile der Lightbox ausspielen indem man zur Volldarstellung des Bildes den Leser eines Beitrages nicht dazu zwingt, die aktuelle Seite zu verlassen. </p>
<p>Probieren Sie es einmal aus: Ein Klick auf das obere Bild führt Sie auf eine neue Seite - dies ist das Default-Verhalten des Plugins. Und ein Klick auf das zweite Bild nutzt die Lightbox und führt Sie nicht von dieser Seite weg. Im folgenden habe ich ein paar Notitzen gemacht, welche Änderungen durchzuführen sind. <span id="more-76"></span></p>
<p>Zunächst einmal brauchen wir die Lightbox nun "Site-wide" und müssen daher entsprechende Vorkehrungen am WP-Theme vornehmen, denn das Flickr Plugin bindet die Lightbox nur auf den von ihm generierten Seiten ein. Ich editiere also /wp-content/themes/YOURTHEMEDIRECTORY/header.php und erweitere den &lt;head&gt;-Bereich wie folgt:</p>
<div class="igBar"><span id="lphp-4"><a href="#" onclick="javascript:showPlainTxt('php-4'); return false;">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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;!-- Start:lightbox --&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;style type=<span style="color:#FF0000;">"text/css"</span>&gt;</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;"><span style="color:#008000;">/* &lt;![CDATA[ */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/* lightbox css&nbsp; */</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;">@import url<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">&lt;?php</span> bloginfo<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'home'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/css/lightbox.css<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;"><span style="color:#008000;">/* ]]&gt; */</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;">&lt;/style&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/js/prototype.js"</span> type=<span style="color:#FF0000;">"text/javascript"</span> language=<span style="color:#FF0000;">"JavaScript"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/js/scriptaculous.js?load=effects"</span> type=<span style="color:#FF0000;">"text/javascript"</span> language=<span style="color:#FF0000;">"JavaScript"</span>&gt;&lt;/script&gt;</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;">&lt;script src=<span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/js/lightbox.js"</span> type=<span style="color:#FF0000;">"text/javascript"</span> language=<span style="color:#FF0000;">"JavaScript"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color:#FF0000;">"text/javascript"</span>&gt;</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;">fileLoadingImage = <span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/images/loading.gif"</span>;&nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fileBottomNavCloseImage = <span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/images/closelabel.gif"</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;"><span style="color:#000000; font-weight:bold;">&lt;/script&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;!-- <a href="http://www.php.net/end"><span style="color:#000066;">End</span></a>:lightbox --&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Die Pfadangabe zur Lightbox kann auch anders gewählt werden - ich habe auf die zZ. aktuelle Verison 2.02 zurückgegriffen, die vom FlickrPlugin mitgeliefert wurde. </p>
<p>In /wp-content/plugins/silaspartners/flickr/photoalbum-header.html habe ich nun <i>$useLightbox = false;</i> gesetzt, damit ich bei der Alben-Ansicht die Kommentarefunktion verfügbar habe.</p>
<p>Als Komfortfunktion möchte ich nun noch das Flickr Plugin so modifizieren, dass beim Einfügen von Bildern in einen Beitrag gleich korrekte Lightbox Links erstellt werden und die Links nicht von der Seite wegführen. Hierzu ändere ich an in /wp-content/plugins/silaspartners/flickr/inline-photos.html die Funktion <i>silas_addPhoto</i> wie folgt:</p>
<div class="igBar"><span id="lphp-5"><a href="#" onclick="javascript:showPlainTxt('php-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-5">
<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:#000000; font-weight:bold;">function</span> silas_addPhoto<span style="color:#006600; font-weight:bold;">&#40;</span>photoUrl, sourceUrl, width, height, title<span style="color:#006600; font-weight:bold;">&#41;</span> <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:#FF9933; font-style:italic;">// photoURL soll immer das Original-Bild auf flickr sein</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:#FF9933; font-style:italic;">// damit Lightbox die Anzeige übernehmen kann und der Link zum Bild</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:#FF9933; font-style:italic;">// nicht auf eine neue Seite führt:</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; flickrOriginalPhotoUrl = <span style="color:#000000; font-weight:bold;">new</span> String<span style="color:#006600; font-weight:bold;">&#40;</span>sourceUrl<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; flickrOriginalPhotoUrl = flickrOriginalPhotoUrl.replace<span style="color:#006600; font-weight:bold;">&#40;</span>/_s|_t|_m/,<span style="color:#FF0000;">"_o"</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:#000000; font-weight:bold;">var</span> html = </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:#FF0000;">'&lt;a href=&quot;'</span>+flickrOriginalPhotoUrl+<span style="color:#FF0000;">'&quot; rel=&quot;lightbox[album]&quot; title=&quot;'</span>+title+<span style="color:#FF0000;">'&quot;&gt;'</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:#FF0000;">'&lt;img src=&quot;'</span>+sourceUrl+<span style="color:#FF0000;">'&quot; width=&quot;'</span>+width+<span style="color:#FF0000;">'&quot; height=&quot;'</span>+height+<span style="color:#FF0000;">'&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;'</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:#FF0000;">'&lt;/a&gt; '</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;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> richedit <span style="color:#006600; font-weight:bold;">&#41;</span> <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; win.tinyMCE.execCommand<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'mceInsertContent'</span>, <span style="color:#000000; font-weight:bold;">false</span>, html<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;">&#125;</span> <span style="color:#616100;">else</span> <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; win.edInsertContent<span style="color:#006600; font-weight:bold;">&#40;</span>win.edCanvas, html<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;">&#125;</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;">return</span> <span style="color:#000000; font-weight:bold;">false</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;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Es wird also statt der virtuellen HTML Seite zum Bild/Album nun direkt auf die URI des Bildes bei Flickr verlinkt. Damit die Lightbox eingreifen kann, wird das Attribut <i>rel="lightbox[album]"</i> eingefügt. Durch den optionalen Zusatz [album] werden alle Bilder eines Beitrags zu einer zusammenhängen Serie zusammengeführt, so dass Lightbox mit "Next" and "Prev" das Durchblättern aller Bilder eines Beitrags erlaubt.<br />
Das Title-Attribut wird im Anchor-Tag gesetzt. Das Alt-Attribut im Img-Tag hingegen wird leer gesetzt, damit der IE keinen Standard-Tooltipp für das Image anzeigt. Wenn SweetTitles installiert sind, so wird das Title-Attribut aus dem Anchor-Tag für das Tooltipp-Rendering ausgewertet.</p>
<p>Bekannte Seiteneffekte:<br />
Ein evtl. hinterlegter Titel wird hier zwar für Lightbox auswertbar im Anchror-Tag mit angegeben und sollte eigentlich dazu führen, das bei der Volldarstellung des Bildes der Titel unter dem Bild angezeigt wird - in diesem Blog klappt das jedoch nicht, weil ich auf dieser Site <a href="http://www.lars-schenk.com/sweettitles-fading-tooltips/74" title="erfahren Sie mehr über die leistungsfähige Tool-Tip Lösung SweetTitles.">auch Dustin Diaz' Sweet Titles verwende</a>. Hier gibt es einen Konflikt in den JavaScripten.</p>
<p>Folgende HTML Snippet sind mit den o.g. Änderungen am JavaScript über den Editor einfügbar. Auf eine automatische Formatierung habe ich verzichtet, da ich diese von Fall zu Fall individuell per Style-Attribut einfüge.</p>
<div class="igBar"><span id="lhtml-6"><a href="#" onclick="javascript:showPlainTxt('html-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-6">
<div class="html">
<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;">Square (75x75):</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://static.flickr.com/120/296797177_9611731de3_o.jpg"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"lightbox[album]"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Alicia &amp; Joana"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://static.flickr.com/120/296797177_9611731de3_s.jpg"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"75"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"75"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Thumbnail (100x56):</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;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://static.flickr.com/121/296797039_ded27dfc9a_o.jpg"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"lightbox[album]"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Joana &amp; Alicia"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://static.flickr.com/121/296797039_ded27dfc9a_t.jpg"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"100"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"56"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Small (240x135):</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://static.flickr.com/107/296796964_bbb2a1281e_o.jpg"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"lightbox[album]"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Heiko &amp; Lars Hansapark 2006"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://static.flickr.com/107/296796964_bbb2a1281e_m.jpg"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"240"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"135"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Medium (500x281):</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;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://static.flickr.com/114/296796873_03b0533dc4_o.jpg"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"lightbox[album]"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Joana &amp; Alicia"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://static.flickr.com/114/296796873_03b0533dc4.jpg"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"500"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"281"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>&nbsp; <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Large (800x450):</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://static.flickr.com/121/296796774_7dd793fd66_o.jpg"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"lightbox[album]"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Joana"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://static.flickr.com/121/296796774_7dd793fd66_o.jpg"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"800"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"450"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ich habe hier alle Grössen die vom Plugin bzw. Flickr unterstützt werden einmal aufgeführt. Die folgenden Bilder werden von Lightbox als ein zusammenhängende Serie erkannt, weil sie das identische Attribut <i>rel="lightbox[album]"</i> enthalten.</p>
<p>Square (75x75):<br />
<a href="http://static.flickr.com/120/296797177_9611731de3_o.jpg" rel="lightbox[album]" title="Alicia &#038; Joana"><img src="http://static.flickr.com/120/296797177_9611731de3_s.jpg" width="75" height="75" border="0" alt="" /></a> </p>
<p>Thumbnail (100x56):<br />
<a href="http://static.flickr.com/121/296797039_ded27dfc9a_o.jpg" rel="lightbox[album]" title="Joana &#038; Alicia"><img src="http://static.flickr.com/121/296797039_ded27dfc9a_t.jpg" width="100" height="56" border="0" alt="" /></a> </p>
<p>Small (240x135):<br />
<a href="http://static.flickr.com/107/296796964_bbb2a1281e_o.jpg" rel="lightbox[album]" title="Heiko &#038; Lars Hansapark 2006"><img src="http://static.flickr.com/107/296796964_bbb2a1281e_m.jpg" width="240" height="135" border="0" alt="" /></a> </p>
<p>Medium (500x281):<br />
<a href="http://static.flickr.com/114/296796873_03b0533dc4_o.jpg" rel="lightbox[album]" title="Joana &#038; Alicia"><img src="http://static.flickr.com/114/296796873_03b0533dc4.jpg" width="500" height="281" border="0"  alt="" /></a> </p>
<p>Large (800x450):<br />
<a href="http://static.flickr.com/121/296796774_7dd793fd66_o.jpg" rel="lightbox[album]" title="Joana"><img src="http://static.flickr.com/121/296796774_7dd793fd66_o.jpg" width="800" height="450" border="0" alt="" /></a> </p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/wordpress-plugin-flickr-lightbox/76/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>
