<?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>Stempell &#187; Images</title>
	<atom:link href="http://stempell.com/tag/images/feed/" rel="self" type="application/rss+xml" />
	<link>http://stempell.com</link>
	<description>Urlaubsfotos, Fun</description>
	<lastBuildDate>Mon, 16 Jan 2012 21:21:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Mit WordPress und NGGallery durch ALLE Bilder navigieren und nicht nur von Seite zu Seite</title>
		<link>http://stempell.com/2009/03/mit-wordpress-und-nggallery-durch-alle-bilder-navigieren-und-nicht-nur-von-seite-zu-seite/</link>
		<comments>http://stempell.com/2009/03/mit-wordpress-und-nggallery-durch-alle-bilder-navigieren-und-nicht-nur-von-seite-zu-seite/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 15:31:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Fotos]]></category>
		<category><![CDATA[Work Related]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[Next Generation Gallery]]></category>
		<category><![CDATA[nextgen-gallery]]></category>
		<category><![CDATA[NGGallery]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[thickbox]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=247</guid>
		<description><![CDATA[Eigentlich wollte ich schon die wirklich gute NGGALLERY austauschen, weil ich keine Lösung gefunden hatte. Das Thema ist aber auch schwierig zu ergooglen. Doch im WordPress-Supportforum wurde ich dann fündig. Meine erste Befürchtung, dass es von der verwendeten LightBox bzw ThickBox oä. abhängt hat sich glücklicherweise nicht bestätigt. Es liegt an NGGALLERY. Im Prinzip handelt [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_255" class="wp-caption alignleft" style="width: 94px"><a href="http://stempell.com/2009/03/mit-wordpress-und-nggallery-durch-alle-bilder-navigieren-und-nicht-nur-von-seite-zu-seite/#more-247"><img class="size-thumbnail wp-image-255" title="screenshot-63" src="http://stempell.com/wp-content/uploadz/2009/03/screenshot-63-150x150.png" alt="NGGallery zeigt alle Bilder an" width="84" height="80" /></a><p class="wp-caption-text">NGGallery zeigt alle Bilder an</p></div>
<p>Eigentlich wollte ich schon die wirklich gute <a href="http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/">NGGALLERY </a>austauschen, weil ich keine Lösung gefunden hatte. Das Thema ist aber auch schwierig zu ergooglen. Doch im WordPress-Supportforum wurde ich dann fündig. Meine erste Befürchtung, dass es von der verwendeten LightBox bzw ThickBox oä. abhängt hat sich glücklicherweise nicht bestätigt. Es liegt an NGGALLERY.<a rel="attachment wp-att-255" href="http://stempell.com/2009/03/mit-wordpress-und-nggallery-durch-alle-bilder-navigieren-und-nicht-nur-von-seite-zu-seite/screenshot-63/"><span id="more-247"></span></a></p>
<p>Im Prinzip handelt es sich bei diesem Artikel um eine Übersetzung und Zusammenfassung von &#8220;<a title="Navigate through ALL images in gallery not just in page" href="http://wordpress.org/support/topic/228743">Navigate through ALL images in gallery not just page</a>&#8221;</p>
<p>Es handelt sich um eine Modifikation, die in 3 Schritten zu erledigen ist:</p>
<p>1.  Schritt &#8211; /htdocs/wp-content/plugins/nextgen-gallery/nggfunctions.php</p>
<p>In dieser Datei gibt es 2 Stellen, die verändert werden müssen (sie sehen exakt gleich aus).</p>
<p><strong>Suchen und auskommentieren:</strong></p>
<pre><code>// remove the element if we didn't start at the beginning
  if ($start &gt; 0 ) array_splice($picturelist, 0, $start);

  // return the list of images we need
  array_splice($picturelist, $maxElement);</code></pre>
<p><strong>Einfügen:</strong></p>
<pre><code>//Don't modify the array.  We now want to pass all of the picture list
//to the output... but not all are visible as thumbnails.
//TODO:  make a configuration option to select or deselect this
//behavior

foreach ($picturelist as $index =&gt; $value)
{
if (($index &lt; $start) || ($index &gt;= ($start + $maxElement)))
  $picturelist[$index]-&gt;imageHidden = 1;  //if out of range, hide image
else
  $picturelist[$index]-&gt;imageHidden = 0;  //otherwise, show it
}</code></pre>
<p>2. Schritt &#8211; /htdocs/wp-content/plugins/nextgen-gallery/lib/image.php</p>
<p><strong>in Zeile 18 steht:</strong></p>
<pre><code>var $href = '';		// A href link code
<strong>
Danach einfügen:</strong>
</code><code>
var $imageHidden = 0;  	// An indicator to show or not show thumbnail</code>

3. Schritt - /htdocs/wp-content/themes/{theme-name}/nggallery/gallery.php
Die Datei wird von /htdocs/wp-content/plugins/nextgen-gallery/view/gallery.php nach
/htdocs/wp-content/themes/{theme-name}/nggallery/gallery.php koiert.
In dieser Datei muss man bei <strong>Zeile 37 folgenden Austausch</strong> durchführen:

<code>&lt;!-- Thumbnails --&gt;
&lt;?php foreach ($images as $image) : ?&gt;

&lt;div id="ngg-image-&lt;?php echo $image-&gt;pid ?&gt;" class="ngg-gallery-thumbnail-box"&gt;</code>

<strong>WIRD ZU:</strong>

<code>&lt;!-- Thumbnails --&gt;
&lt;?php foreach ($images as $image) : ?&gt;
</code>
<code>&lt;div id="ngg-image-&lt;?php echo $image-&gt;pid ?&gt;" class="ngg-gallery-thumbnail-box"
&lt;?php
  if ( $image-&gt;imageHidden == 1 )
  {
    echo " style='display: none' ";
  }
?&gt;
&gt;</code>

Die schließende spitze Klammer am Ende nicht vergessen!</pre>
<p>Das war es auch schon. Das Ergebnis kannst Du z.B. in meinen <a title="Urlaubsbilder" href="http://stempell.com/urlaubsbilder/">Urlaubsbildern </a>sehen.</p>
<p>Links:</p>
<ol>
<li><a href="http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/">nextgen-gallery http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/</a></li>
<li><a href="http://wordpress.org/support/topic/228743">wordpress-forum http://wordpress.org/support/topic/228743</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/03/mit-wordpress-und-nggallery-durch-alle-bilder-navigieren-und-nicht-nur-von-seite-zu-seite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

