<?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>The Leprechaun Works, LLC &#187; nextgen</title>
	<atom:link href="http://www.leprechaunworks.com/content/tag/nextgen/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leprechaunworks.com/content</link>
	<description>Useable technology</description>
	<lastBuildDate>Mon, 31 Jan 2011 13:00:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Better Image Selection with NextGen Gallery and WordPress</title>
		<link>http://www.leprechaunworks.com/content/2010/02/15/better-image-selection-with-nextgen-gallery-and-wordpress/</link>
		<comments>http://www.leprechaunworks.com/content/2010/02/15/better-image-selection-with-nextgen-gallery-and-wordpress/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 15:02:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[nextgen]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.leprechaunworks.com/content/?p=260</guid>
		<description><![CDATA[By default the NextGen gallery plugin for WordPress displays images by their gallery id and filename. We find it hard to find our desired image in galleries with numerous images based on filename. Most of the time our filenames have no meaning. However, a simple change to a source file will display the description in [...]]]></description>
			<content:encoded><![CDATA[<p>By default the NextGen gallery plugin for WordPress displays images by their gallery id and filename. We find it hard to find our desired image in galleries with numerous images based on filename. Most of the time our filenames have no meaning. However, a simple change to a source file will display the description in the selection dropdown menu making searching much easier.</p>
<p>Note: This method depends on having descriptions for your images. Obviously, if you do not fill in descriptions then your dropdown menu is going to display blank listings. Manage galleries allows you to edit numerous details of your images including the description.</p>
<div class="ngg-border">
<a href="http://www.leprechaunworks.com/content/wp-content/gallery/nextgen-wordpress/directory.gif" title="directory" class="shutterset_singlepic70" >
    <img class="ngg-singlepic ngg-left" src="http://www.leprechaunworks.com/content/wp-content/gallery/cache/70__320x240_directory.gif" alt="directory" title="directory" />
</a>
</div>
We are looking for a file named window.php which is inside the tinymce directory under the admin root.</p>
<div style="clear:both;"></div>
<p>Open the file in your text editor of choice and navigate to the section that starts with
<div class="dean_ch" style="white-space: nowrap;">&lt;!&#8211; single pic panel &#8211;&gt;</div>
<p>. There will be a second
<div class="dean_ch" style="white-space: nowrap;">&lt;!&#8211; single pic panel &#8211;&gt;</div>
<p> at the end of the section.</p>
<p>All we need to do is to change the id and filename to description. Alternatively, you could use the alttext property instead of description ($picture->alttext).</p>
<p>Here is the original code.</p>
<div class="dean_ch" style="white-space: nowrap;"><span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$picturelist</span> <span class="kw1">as</span> <span class="re0">$picture</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&#8221;</span>. <span class="re0">$picture</span>-&gt;<span class="me1">pid</span> . <span class="st0">&#8216; &#8211; &#8216;</span> . <span class="re0">$picture</span>-&gt;<span class="me1">filename</span>.<span class="st0">&#8221;</span>.<span class="st0">&quot;<span class="es0">\n</span>&quot;</span>;<br />
<span class="br0">&#125;</span><br />
&nbsp;</div>
<p>Here is the modified code.</p>
<div class="dean_ch" style="white-space: nowrap;"><span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$picturelist</span> <span class="kw1">as</span> <span class="re0">$picture</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&#8216; &#8216;</span>. <span class="re0">$picture</span>-&gt;<span class="me1">description</span> .<span class="st0">&#8221;</span>.<span class="st0">&quot;<span class="es0">\n</span>&quot;</span>;<br />
<span class="br0">&#125;</span><br />
&nbsp;</div>
<p>Keep in mind that you are editing a plugin directly. This means that you will need to repeat this step whenever you update your NextGen gallery plugin.</p>
<p><div class="ngg-border">
<a href="http://www.leprechaunworks.com/content/wp-content/gallery/nextgen-wordpress/unmodified.gif" title="unmodified" class="shutterset_singlepic72" >
    <img class="ngg-singlepic ngg-left" src="http://www.leprechaunworks.com/content/wp-content/gallery/cache/72__320x240_unmodified.gif" alt="unmodified" title="unmodified" />
</a>
</div>
 <div class="ngg-border">
<a href="http://www.leprechaunworks.com/content/wp-content/gallery/nextgen-wordpress/modified.gif" title="modified" class="shutterset_singlepic71" >
    <img class="ngg-singlepic ngg-left" src="http://www.leprechaunworks.com/content/wp-content/gallery/cache/71__320x240_modified.gif" alt="modified" title="modified" />
</a>
</div>

<div style="clear:both;"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.leprechaunworks.com/content/2010/02/15/better-image-selection-with-nextgen-gallery-and-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

