<?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:georss="http://www.georss.org/georss" >

<channel>
	<title>Travel-Junkie.com &#187; Geeky Stuff</title>
	<atom:link href="http://www.travel-junkie.com/category/geeky-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://travel-junkie.com</link>
	<description>Beyond the comfort zone</description>
	<pubDate>Sun, 16 Nov 2008 12:18:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>WP-Plugin: NextGEN ImageFlow</title>
		<link>http://travel-junkie.com/geeky-stuff/wp-plugin-nextgen-imageflow/</link>
		<comments>http://travel-junkie.com/geeky-stuff/wp-plugin-nextgen-imageflow/#comments</comments>
		<pubDate>Tue, 27 May 2008 14:51:50 +0000</pubDate>
		<dc:creator>traveljunkie</dc:creator>
		
		<category><![CDATA[Geeky Stuff]]></category>

		<category><![CDATA[ImageFlow]]></category>

		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://travel-junkie.com/?p=277</guid>
		<description><![CDATA[Discover the Magic of ImageFlow...]]></description>
			<content:encoded><![CDATA[<p><strong>Description:</strong> <a href="http://194.95.111.244/~countzero/myCMS/index.php?c_id=5&#038;s_id=21">Finn Rudolphs</a> picture gallery for <a href="http://alexrabe.boelinger.com/?page_id=80">NextGEN Gallery</a>. Digital animation for thumbing through a physical image stack.</p>
<p><strong>Latest Version:</strong> 1.0 - <a href="#" onclick="return hs.htmlExpand(this, { contentId: 'changelogIF', width: 600 } )" class="highslide">Changelog</a> - <a href="#" onclick="return hs.htmlExpand(this, { contentId: 'to-do', width: 600 } )" class="highslide">TO-DO</a></p>
<p><strong>Author:</strong> Boris Glumpler</p>
<p><strong>Requires at least:</strong> WP 2.1.0</p>
<p><strong>Tested up to:</strong> WP 2.6</p>
<p><strong>Download:</strong> <a href="http://downloads.wordpress.org/plugin/nextgen-imageflow.0.90.zip">Click here for the zip!</a></p>
<p>Check out <a href="http://travel-junkie.com/geeky-stuff/wp-plugin-nextgen-flashviewer/">NextGEN FlashViewer</a>, another add-on for your NextGEN Gallery!</p>
<p><strong>NOTE:</strong> I would like to add more effects to this plugin, but I am near to useless with JS. So if there are any knowledgeable JS-coders out there, who could modify imageflow.js for use with Thickbox or Lightview then go for it and I will include it!</p>
<p><strong>ONE MORE NOTE:</strong> If you have translated NextGEN ImageFlow into your language, then please send me the .po and .mo files and I will include them in the next release. Thank you!</p>
<div class="highslide-html-content" id="changelogIF" style="display:none">
<div class="highslide-header">
	</div>
<div class="highslide-body">
<h2>Changelog for NextGEN ImageFlow</h2>
<ul>
<li><strong>1.0:</strong><br/>
<ul>
<li>Added: Compatibility with WP 2.6</li>
</ul>
</li>
<li><strong>0.90:</strong><br/>
<ul>
<li>Bugfix: IE display problems solved</li>
<li>Added: Option to switch reflection on/off</li>
<li>Added: Spanish language files - THX to <a href="http://es-xchange.com/">Karin</a></li>
</ul>
</li>
<li><strong>0.81:</strong><br/>
<ul>
<li>Added: Italian language files - THX to <a href="http://gidibao.net/">Gianni Diurno</a></li>
</ul>
</li>
<li><strong>0.80:</strong><br/>
<ul>
<li>Initial release</li>
</ul>
</li>
<li><strong>- 0.70:</strong><br/>
<ul>
<li>Internal releases</li>
</ul>
</li>
</ul>
</div>
<div class="highslide-footer">
<div>
            <span class="highslide-resize" title="Resize"><br />
                <span></span><br />
            </span>
        </div>
</p></div>
</div>
<div class="highslide-html-content" id="to-do"  style="display:none">
<div class="highslide-header">
	</div>
<div class="highslide-body">
<h2>TO-DO for NextGEN ImageFlow</h2>
<ol>
<li><strike>Fix IE display problems</strike></li>
<li>Integrate Lightbox, Thickbox and Lightview</li>
<li>Make images smaller in feeds</li>
<li>Make CSS editable in admin area</li>
<li>Open ImageFlow gallery with effects, not just single images</li>
<li>Use NextGEN Gallery to generate reflection (less is more!)</li>
</ol>
<p>Please let me know if you can think of anything else!</p>
</p></div>
<div class="highslide-footer">
<div>
            <span class="highslide-resize" title="Resize"><br />
                <span></span><br />
            </span>
        </div>
</p></div>
</div>
<h2>Installation</h2>
<ol>
<li>Upload all files except reflect.php to wp-content/plugins/nextgen-imageflow</li>
<li><strong>IMPORTANT:</strong> Upload reflect.php to your Wordpress root folder</li>
<li>Activate the plugin</li>
<li>Go to Gallery->ImageFlow and change the options to your liking</li>
<li>Go to your post and enter tag [imageflow=GALLERY-ID]</li>
</ol>
<h2>Update</h2>
<ol>
<li>Upload new files to the nextgen-imageflow folder using FTP</li>
<li>Check to see if everything works&#8230;</li>
<li>Done!!</li>
</ol>
<h2>Usage</h2>
<p>This one is fairly simple. There&#8217;s only one tag to use, so all you need to do is find the correct gallery ID, so it&#8217;s basically failsafe.</p>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[imageflow=14]</pre></div></div>

<div id="if_wrapper"><div id="if_imageflow">
<div id="if_loading">
<img src="http://travel-junkie.com/travelogues/wp-content/plugins/nextgen-imageflow/imageflow/loading.gif" width="100" height="100" alt="Loading" />
</div>
<div id="if_images">
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(9).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(9).jpg" alt="The Moheno Wreck on the eastern beach." title="The Moheno Wreck on the eastern beach."/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(8).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(8).jpg" alt="Sand dunes" title="Sand dunes"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(7).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(7).jpg" alt="On the ferry to Fraser" title="On the ferry to Fraser"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(6).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(6).jpg" alt="Moheno Wreck" title="Moheno Wreck"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(5).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(5).jpg" alt="Moheno Wreck" title="Moheno Wreck"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(4).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(4).jpg" alt="Moheno Wreck" title="Moheno Wreck"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(3).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(3).jpg" alt="This is a registered highway!" title="This is a registered highway!"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(27).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(27).jpg" alt="Lake Wabby" title="Lake Wabby"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(2).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(2).jpg" alt="Heavy traffic" title="Heavy traffic"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(26).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(26).jpg" alt="Sand dunes near Lake Wabby" title="Sand dunes near Lake Wabby"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(1).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(1).jpg" alt="Stuck in the sand&#8230;" title="Stuck in the sand&#8230;"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(25).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(25).jpg" alt="Traditional Dance" title="Traditional Dance"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(24).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(24).jpg" alt="Traditional Dance" title="Traditional Dance"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(23).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(23).jpg" alt="Moheno Wreck" title="Moheno Wreck"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(22).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(22).jpg" alt="Tyre tracks in the sand" title="Tyre tracks in the sand"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(21).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(21).jpg" alt="Speeding on the highway" title="Speeding on the highway"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(20).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(20).jpg" alt="Indian Heads" title="Indian Heads"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island.jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island.jpg" alt="Chilling at Lake McKenzie" title="Chilling at Lake McKenzie"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(19).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(19).jpg" alt="View from Indian Heads" title="View from Indian Heads"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(18).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(18).jpg" alt="Above the abyss" title="Above the abyss"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(17).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(17).jpg" alt="Champange pools" title="Champange pools"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(16).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(16).jpg" alt="Champange pools" title="Champange pools"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(15).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(15).jpg" alt="Eli Creek" title="Eli Creek"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(14).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(14).jpg" alt="Chilling at Eli Creek" title="Chilling at Eli Creek"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(13).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(13).jpg" alt="It happens to other people as well&#8230;" title="It happens to other people as well&#8230;"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(12).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(12).jpg" alt="Not only a highway, but an airstrip as well" title="Not only a highway, but an airstrip as well"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(11).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(11).jpg" alt="Preparing for take-off" title="Preparing for take-off"/>
<img src="http://travel-junkie.com/travelogues/reflect.php?img=wp-content/gallery/fraser-island/fraser-island(10).jpg&bgc=ffffff" longdesc="http://travel-junkie.com/travelogues/wp-content/gallery/fraser-island/fraser-island(10).jpg" alt="Group picture" title="Group picture"/>
</div>
<div id="if_captions"></div>
<div id="if_scrollbar">
<div id="if_slider"></div>
</div>
</div>
</div>
<h2>Frequently Asked Questions</h2>
<ol>
<li><strong>I installed everything, but I don&#8217;t see any images. What am I doing wrong?</strong>
<p>Check if you have uploaded reflect.php to your Wordpress root folder (the directory where your wp-config.php file is in).</li>
<li><strong>I set the thumbnails to be displayed by Highslide, but it doesn&#8217;t $%*&#038;$§ work?</strong>
<p>Highslide needs to be installed already. All the plugin does is include the necessary compatible files for use with Highslide.</li>
<li><strong>My images don&#8217;t seem to get cached?</strong>
<p>For the caching to work you have to use the NGG default paths, as NextGEN ImageFlow uses the same cache folder as NGG. So that would be wp-content/gallery/cache.</li>
<li><strong>But I changed that path. What can I do?</strong>
<p>Open reflect.php, go down to line 82 and adjust the path. Alternativley you can disable caching by setting $_GET['cache'] in reflect.php on line 33 to 0.</li>
<li><strong>ImageFlow works perfectly on my posts, but not on my index page. Why is that?</strong>
<p>According to the ImageFlow homepage you can only use ImageFlow once per page. An object-oriented version of ImageFlow may come in the future though. It is probably best to use ImageFlow below &lt;!&#8211;more&#8211;&gt; to avoid any problems. Also limit ImageFlow to one occurance per post.</li>
<li><strong>Anything else I should know?</strong>
<p>Well, now you can use a reflection with any image on your blog that is not part of your NextGEN Gallery. Instead of referencing the URL of your image you can now write something like this:<br />
src=&#8221;path/2/WP-root/reflect.php?img=rel/path/2/image.jpg&#8221;.</li>
</ol>
<h2>The Future</h2>
<p>Over time there will be more options available in the admin section and I am planning to add more effects to open images in as well as open the whole gallery in. Leave a comment if you have any feature wishes or if you&#8217;ve got something nice to say.</p>
<h2>Bugs and other insects</h2>
<p>If you encounter any problems, bugs or annoying mosquitos, please leave a comment and I will come running with my can of 100% deet&#8230;</p>
<h2>Credits and Thanks</h2>
<p>The idea for this plugin came from <a href="http://www.maiermartin.de/">Martin Meier</a>. He helped quite a bit with the testing as well, so thanks, Martin.</p>
]]></content:encoded>
			<wfw:commentRss>http://travel-junkie.com/geeky-stuff/wp-plugin-nextgen-imageflow/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WP-Plugin: NextGEN FlashViewer</title>
		<link>http://travel-junkie.com/geeky-stuff/wp-plugin-nextgen-flashviewer/</link>
		<comments>http://travel-junkie.com/geeky-stuff/wp-plugin-nextgen-flashviewer/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 11:11:55 +0000</pubDate>
		<dc:creator>traveljunkie</dc:creator>
		
		<category><![CDATA[Geeky Stuff]]></category>

		<category><![CDATA[AutoViewer]]></category>

		<category><![CDATA[Plugin]]></category>

		<category><![CDATA[PostcardViewer]]></category>

		<category><![CDATA[SimpleViewer]]></category>

		<category><![CDATA[TiltViewer]]></category>

		<guid isPermaLink="false">http://travel-junkie.com/?p=258</guid>
		<description><![CDATA[Very addictive! Use at your own risk!]]></description>
			<content:encoded><![CDATA[<p><strong>Description:</strong> The famous Adobe Flash Plugins (SimpleViewer, TiltViewer, AutoViewer, PostcardViewer) from <a href="http://www.airtightinteractive.com/">Airtight Interactive</a> for <a href="http://alexrabe.boelinger.com/?page_id=80">NextGEN Gallery</a>.</p>
<p><strong>Latest Version:</strong> 1.0 - <a href="#" onclick="return hs.htmlExpand(this, { contentId: 'changelog', width: 600 } )" class="highslide">Changelog</a></p>
<p><strong>Author:</strong> Boris Glumpler &#038; <a href="http://alexrabe.boelinger.com">Alex Rabe</a></p>
<p><strong>Requires at least:</strong> WP 2.1.0</p>
<p><strong>Tested up to:</strong> WP 2.6</p>
<p><strong>Download:</strong> <a href="http://downloads.wordpress.org/plugin/nextgen-flashviewer.0.92.zip">click here for the zip!</a></p>
<p><strong>NOTE:</strong> If you have translated NextGEN FlashViewer into your language, then please send me the .po and .mo files and I will include them in the next release. Thank you!</p>
<p>Check out <a href="http://travel-junkie.com/geeky-stuff/wp-plugin-nextgen-imageflow/">NextGEN ImageFlow</a>, another add-on for your NextGEN Gallery!</p>
<li>A tutorial in Italian on how to install NextGEN FlashViewer can be found <a href="http://gidibao.net/index.php/2008/08/08/inside-plugins-nextgen-flashviewer-in-italiano/">here</a>! Thanks Gianni!</li>
<div class="highslide-html-content" id="changelog"  style="display:none">
<div class="highslide-header">
</div>
<div class="highslide-body">
<h2>Changelog for NextGEN FlashViewer</h2>
<ul>
<li><strong>1.0:</strong><br/>
<ul>
<li>Added: Compatibility with WP 2.6</li>
</ul>
</li>
<li><strong>0.92:</strong><br/>
<ul>
<li>Added: Spanish language files - THX to <a href="http://es-xchange.com/">Karin</a></li>
</ul>
</li>
<li><strong>0.91:</strong><br/>
<ul>
<li>Bugfix: Background color conflict with SimpleViewer settings solved</li>
</ul>
</li>
<li><strong>0.90:</strong><br/>
<ul>
<li>NEW: Support for Lightview (THX to Antonio &#038; Fabian)</li>
<li>Added: Titel for Thickbox &#038; Lightview</li>
<li>Bugfix: Folder name can be nextgen-flashviewer now (THX to Alex Rabe)</li>
</ul>
</li>
<li><strong>0.82:</strong><br/>
<ul>
<li>Bugfix: Preloader color can now be changed again</li>
</ul>
</li>
<li><strong>0.81:</strong><br/>
<ul>
<li>Bugfix: Categories on Write-Screen displayed properly now</li>
</ul>
</li>
<li><strong>0.80:</strong><br/>
<ul>
<li>NEW: Support for PostcardViewer (THX to meierma)</li>
<li>Added: Further support for Language Switcher</li>
<li>Added: New options for SimpleViewer 1.8.5</li>
<li>Added: More Flickr options for TiltViewer</li>
<li>Bugfix: Simpleviewer Background Image is working now</li>
</ul>
</li>
<li><strong>0.71:</strong><br/>
<ul>
<li>Bugfix: NGG check needs to happen after NGG has loaded (THX to Alex Rabe)</li>
</ul>
</li>
<li><strong>0.70:</strong><br/>
<ul>
<li>NEW: Use of Flickr for TiltViewer is now supported</li>
<li>NEW: Support for TiltViewer Pro settings</li>
<li>Changed: SWFobject  background can now be set within SimpleViewer settings (used NGG Slideshow settings before)</li>
<li>Removed: Admin styles for WP 2.3 and lower (time to upgrade, boys and girls!)</li>
</ul>
</li>
<li><strong>0.62:</strong><br/>
<ul>
<li>Changed: updated error messages (and .po/.mo files) to reflect new folder structure</li>
</ul>
</li>
<li><strong>0.61:</strong><br/>
<ul>
<li>Changed: Folder structure</li>
<li>Bugfix: missing * in regular expressions</li>
</ul>
</li>
<li><strong>0.60</strong><br/>
<ul>
<li>NEW: Support for AutoViewer</li>
<li>NEW: Admin pages in the NextGEN Gallery admin area</li>
<li>NEW: Support for Highslide</li>
<li>NEW: Support for <a href="http://poplarware.com/languageplugin.html">Language Switcher</a></li>
<li>Changed: Plugin name</li>
<li>Added: nggflash.po file for translations</li>
<li>Added: nggflash-de_DE.po and nggflash-de_DE.mo files</li>
<li>Added: Option preloader color for SimpleViewer</li>
<li>Added: Admin style for WP 2.5</li>
</ul>
</li>
<li><strong>0.50</strong><br/>initial release as <a href="http://alexrabe.boelinger.com/2008/03/07/simple-nextgen-simpleviewer/">NextGEN Simpleviewer</a> by Alex Rabe</li>
</ul>
</div>
<div class="highslide-footer">
<div>
            <span class="highslide-resize" title="Resize"><br />
                <span></span><br />
            </span>
        </div>
</p></div>
</div>
<h2>Installation</h2>
<ol>
<li>Upload the files in nextgen-flashviewer to wp-content/plugins/nggflashviewer </li>
<li>Go to <a href="http://www.airtightinteractive.com/">airtightinteractive.com</a> and download the SimpleViewer &#038; Tiltviewer, AutoViewer &#038; PostcardViewer</li>
<li>Rename the viewer.swf in the postcardviewer folder to pcviewer.swf</li>
<li>Upload the files viewer.swf, TiltViewer.swf,autoviewer.swf and pcviewer.swf to the nggflashviewer/flash folder</li>
<li>Activate the plugin</li>
<li>Go to Gallery->FlashViewer and change the options to suit your needs.</li>
<li>That&#8217;s it&#8230;</li>
</ol>
<h2>Update</h2>
<ol>
<li>Upload new files to the nggflashviewer folder using FTP</li>
<li>Check to see if everything works&#8230;</li>
<li>Done!!</li>
</ol>
<h2>Usage</h2>
<p>You have two main options in displaying the three viewers. Inline or with a javascript effect. The main tag you can add in your posts looks something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[simple/tilt/autoviewer=galleryID or flickr,width,height,*link*,+comma,seperated,flickr,tags+]</pre></div></div>

<p>Let&#8217;s have a look at the inline version first.</p>
<h3>Inline</h3>
<p>Note that for the inline version you leave the *link* bit blank. Now to some examples&#8230;</p>
<h4>SimpleViewer</h4>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[simpleviewer=13,500,600]</pre></div></div>


<div class="simpleviewer" id="ngg_simpleviewer13">
<div class="simpleviewer" id="so13_1" style="width:500px; height:600px;">
<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p>
</div>
</div>
<script type="text/javascript" defer="defer">
var so13_1 = {
	params : {
		wmode : "opaque",
		allowFullScreen : "true",
		bgcolor : "#FFFFFF"},
	flashvars : {
		preloaderColor : "0x999999",
		langOpenImage : "Open Image in New Window",
		langAbout : "About",
		xmlDataPath : "http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/nggSimpleViewerXML.php?gid=13"},
	attr : {},
	start : function() {
		swfobject.embedSWF("http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/flash/viewer.swf", "so13_1", "500", "600", "7.0.0", false, this.flashvars, this.params , this.attr );
	}
}
so13_1.start();
</script>
<h4>TiltViewer</h4>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[tiltviewer=14,500,550]</pre></div></div>


<div class="tiltviewer" id="ngg_tiltviewer14">
<div class="tiltviewer" id="so14_2" style="width:500px; height:550px;">
<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p>
</div>
</div>
<script type="text/javascript" defer="defer">
var so14_2 = {
	params : {
		wmode : "opaque",
		allowfullscreen : "true",
		bgcolor : "#FFFFFF"},
	flashvars : {
		useFlickr : "false",
		maxJPGSize : "640",
		useReloadButton : "false",
		showFlipButton : "true",
		columns : "5",
		rows : "5",
		frameColor : "0x999999",
		backColor : "0xFFFFFF",
		bkgndInnerColor : "0xFFFFFF",
		bkgndOuterColor : "0xFFFFFF",
		langGoFull : "Go Fullscreen",
		langExitFull : "Exit Fullscreen",
		langAbout : "About",
		bkgndTransparent : "false",
		showFullscreenOption : "true",
		frameWidth : "10",
		zoomedInDistance : "1400",
		zoomedOutDistance : "7500",
		fontName : "Arial",
		titleFontSize : "90",
		descriptionFontSize : "32",
		navButtonColor : "0xCCCCCC",
		flipButtonColor : "0x999999",
		textColor : "0x999999",
		xmlURL : "http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/nggTiltViewerXML.php?gid=14"},
	attr : {},
	start : function() {
		swfobject.embedSWF("http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/flash/TiltViewer.swf", "so14_2", "500", "550", "7.0.0", false, this.flashvars, this.params , this.attr );
	}
}
so14_2.start();
</script>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[tiltviewer=flickr,500,550,+christchurch+]</pre></div></div>

<p>Enter the Flickr tags within the two + and only use these if you actually use Flickr. If you don&#8217;t enter any tags, then all Flickr images will be shown.</p>

<div class="tiltviewer" id="ngg_tiltviewerflickr">
<div class="tiltviewer" id="fo_3" style="width:500px; height:550px;">
<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p>
</div>
</div>
<script type="text/javascript" defer="defer">
var fo_3 = {
	params : {
		wmode : "opaque",
		allowfullscreen : "true",
		bgcolor : "#FFFFFF"},
	flashvars : {
		useFlickr : "true",
		user_id : "7134421@N07",
		tags : "christchurch",
		tag_mode : "any",
		showTakenByText : "true",
		showLinkButton : "true",
		linkLabel : "go to Flickr page",
		useReloadButton : "false",
		showFlipButton : "true",
		columns : "5",
		rows : "5",
		frameColor : "0x999999",
		backColor : "0xFFFFFF",
		bkgndInnerColor : "0xFFFFFF",
		bkgndOuterColor : "0xFFFFFF",
		langGoFull : "Go Fullscreen",
		langExitFull : "Exit Fullscreen",
		langAbout : "About",
		bkgndTransparent : "false",
		showFullscreenOption : "true",
		frameWidth : "10",
		zoomedInDistance : "1400",
		zoomedOutDistance : "7500",
		fontName : "Arial",
		titleFontSize : "90",
		descriptionFontSize : "32",
		navButtonColor : "0xCCCCCC",
		flipButtonColor : "0x999999",
		textColor : "0x999999",
		linkTextColor : "0x523FFE",
		linkBkgndColor : "0xFFFFFF",
		linkFontSize : "41",
		linkTarget : "_self"},
	attr : {},
	start : function() {
		swfobject.embedSWF("http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/flash/TiltViewer.swf", "fo_3", "500", "550", "7.0.0", false, this.flashvars, this.params , this.attr );
	}
}
fo_3.start();
</script>
<h4>AutoViewer</h4>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[autoviewer=16,500,375]</pre></div></div>


<div class="autoviewer" id="ngg_autoviewer16">
<div class="autoviewer" id="fo16_4" style="width:500px; height:375px;">
<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p>
</div>
</div>
<script type="text/javascript" defer="defer">
var fo16_4 = {
	params : {
		wmode : "opaque",
		allowfullscreen : "true",
		bgcolor : "#FFFFFF"},
	flashvars : {
		langOpenImage : "Open Image in New Window",
		langAbout : "About",
		xmlURL : "http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/nggAutoViewerXML.php?gid=16"},
	attr : {},
	start : function() {
		swfobject.embedSWF("http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/flash/autoviewer.swf", "fo16_4", "500", "375", "7.0.0", false, this.flashvars, this.params , this.attr );
	}
}
fo16_4.start();
</script>
<h4>PostcardViewer</h4>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[pcviewer=2,500,500]</pre></div></div>


<div class="pcviewer" id="ngg_pcviewer2">
<div class="pcviewer" id="fo2_5" style="width:500px; height:500px;">
<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p>
</div>
</div>
<script type="text/javascript" defer="defer">
var fo2_5 = {
	params : {
		wmode : "opaque",
		allowfullscreen : "true",
		bgcolor : "#FFFFFF"},
	flashvars : {
		langOpenImage : "Open Image in New Window",
		langAbout : "About",
		xmlURL : "http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/nggPostcardViewerXML.php?gid=2"},
	attr : {},
	start : function() {
		swfobject.embedSWF("http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/flash/pcviewer.swf", "fo2_5", "500", "500", "7.0.0", false, this.flashvars, this.params , this.attr );
	}
}
fo2_5.start();
</script>
<h3>Javascript Effect</h3>
<p>Here you need to substitute the link in *link* for, what a surprise, the text you want as a link. I am so eloquent at times&#8230; I have the Highslide effect activated on my site, but NextGEN FlashViewer supports Thickbox and Lightview as well.</p>
<h4>SimpleViewer</h4>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[simpleviewer=12,500,600,*test*]</pre></div></div>

<a href="http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/flash/viewer.swf" onclick="return hs.htmlExpand(this, so12 )" class="highslide">test</a>
<script type="text/javascript">
	var so12 = {
		objectType: 'swf',
		objectWidth: 500,
		minWidth: 500,
		allowSizeReduction: 'false',
		objectHeight: 600,
		maincontentText: '<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p>',
		version: '7',
		swfOptions: {
			flashvars: {
				preloaderColor: '0x999999',
				langOpenImage: 'Open Image in New Window',
				langAbout: 'About',
				xmlDataPath: 'http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/nggSimpleViewerXML.php?gid=12'
			},
			params: {
				wmode: 'opaque',
				allowFullScreen: 'true',
				bgcolor: '#FFFFFF'
			}
		}
	};
</script>
<h4>TiltViewer</h4>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[tiltviewer=10,500,550,*test*]</pre></div></div>

<a href="http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/flash/TiltViewer.swf" onclick="return hs.htmlExpand(this, so10)" class="highslide">test</a>
<script type="text/javascript">
	var so10 = {
		objectType: 'swf',
		objectWidth: 500,
		minWidth: 500,
		allowSizeReduction: 'false',
		objectHeight: 550,
		maincontentText: '<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p>',
		version: '7',
		swfOptions: {
			flashvars: {
				useFlickr: 'false',
				maxJPGSize: '640',
				useReloadButton: 'false',
				showFlipButton: 'true',
				columns: '5',
				rows: '5',
				frameColor: '0x999999',
				backColor: '0xFFFFFF',
				bkgndInnerColor: '0xFFFFFF',
				bkgndOuterColor: '0xFFFFFF',
				langGoFull: 'Go Fullscreen',
				langExitFull: 'Exit Fullscreen',
				langAbout: 'About',
				bkgndTransparent: 'false',
				showFullscreenOption: 'true',
				frameWidth: '10',
				zoomedInDistance: '1400',
				zoomedOutDistance: '7500',
				fontName: 'Arial',
				titleFontSize: '90',
				descriptionFontSize: '32',
				navButtonColor: '0xCCCCCC',
				flipButtonColor: '0x999999',
				textColor: '999999',
				xmlURL: 'http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/nggTiltViewerXML.php?gid=10'
			},
			params: {
				wmode: 'opaque',
				allowFullScreen: 'true',
				bgcolor: '#FFFFFF'
			}
		}
	};
</script>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[tiltviewer=flickr,500,550,*test*,+christchurch+]</pre></div></div>

<a href="http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/flash/TiltViewer.swf" onclick="return hs.htmlExpand(this, fo)" class="highslide">test</a>
<script type="text/javascript">
	var fo = {
		objectType: 'swf',
		objectWidth: 500,
		minWidth: 500,
		allowSizeReduction: 'false',
		objectHeight: 550,
		maincontentText: '<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p>',
		version: '7',
		swfOptions: {
			flashvars: {
				useFlickr: 'true',
				user_id: '7134421@N07',
				tags: 'christchurch',
				tag_mode: 'any',
				showTakenByText: 'true',
				showLinkButton: 'true',
				linkLabel: 'go to Flickr page',
				useReloadButton: 'false',
				showFlipButton: 'true',
				columns: '5',
				rows: '5',
				frameColor: '0x999999',
				backColor: '0xFFFFFF',
				bkgndInnerColor: '0xFFFFFF',
				bkgndOuterColor: '0xFFFFFF',
				langGoFull: 'Go Fullscreen',
				langExitFull: 'Exit Fullscreen',
				langAbout: 'About',
				bkgndTransparent: 'false',
				showFullscreenOption: 'true',
				frameWidth: '10',
				zoomedInDistance: '1400',
				zoomedOutDistance: '7500',
				fontName: 'Arial',
				titleFontSize: '90',
				descriptionFontSize: '32',
				navButtonColor: '0xCCCCCC',
				flipButtonColor: '0x999999',
				textColor: '999999',
				linkTextColor: '0x523FFE',
				linkBkgndColor: '0xFFFFFF',
				linkFontSize: '41',
				linkTarget: '_self',
			},
			params: {
				wmode: 'opaque',
				allowFullScreen: 'true',
				bgcolor: '#FFFFFF'
			}
		}
	};
</script>
<h4>AutoViewer</h4>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[autoviewer=11,500,375,*test*]</pre></div></div>

<a href="http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/flash/autoviewer.swf" onclick="return hs.htmlExpand(this, fo11 )" class="highslide">test</a>
<script type="text/javascript">
	var fo11 = {
		objectType: 'swf',
		objectWidth: 500,
		minWidth: 500,
		allowSizeReduction: 'false',
		objectHeight: 375,
		maincontentText: '<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p>',
		version: '7',
		swfOptions: {
			flashvars: {
				langOpenImage: 'Open Image in New Window',
				langAbout: 'About',
				xmlURL: 'http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/nggAutoViewerXML.php?gid=11'
			},
			params: {
				wmode: 'opaque',
				allowFullScreen: 'true',
				bgcolor: '#FFFFFF'
			}
		}
	};
</script>
<h4>PostcardViewer</h4>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">[pcviewer=4,500,500,*test*]</pre></div></div>

<a href="http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/flash/pcviewer.swf" onclick="return hs.htmlExpand(this, fo4 )" class="highslide">test</a>
<script type="text/javascript">
	var fo4 = {
		objectType: 'swf',
		objectWidth: 500,
		minWidth: 500,
		allowSizeReduction: 'false',
		objectHeight: 500,
		maincontentText: '<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p>',
		version: '7',
		swfOptions: {
			flashvars: {
				langOpenImage: 'Open Image in New Window',
				langAbout: 'About',
				xmlURL: 'http://travel-junkie.com/travelogues/wp-content/plugins/nggflashviewer/nggPostcardViewerXML.php?gid=4'
			},
			params: {
				wmode: 'opaque',
				allowFullScreen: 'true',
				bgcolor: '#FFFFFF'
			}
		}
	};
</script>
<h2>The Future</h2>
<p>I am planning to add a few more features, like adding the additional options that come with the professional versions of the viewers or making it somehow use NextGEN image tags to display galleries. Don&#8217;t expect that to happen overnight though. I am still new to this whole programming bit. If you have any feature suggestions, then leave a comment and I&#8217;ll consider it.</p>
<h2>Bugs and other insects</h2>
<p>If you encounter any problems, bugs or annoying mosquitos, please leave a comment and I will come running with my can of 100% deet. <strong>Without a link to a testpage where I can see the problem I usually can&#8217;t say too much!!!</strong></p>
<h2>Credits and Thanks</h2>
<p>Alex Rabe did all of the work for the initial version of this plugin and then he helped me with this one. Thanks a bunch for that. I learned a lot by just adding those few bits and pieces and made me realize how much more I actually don&#8217;t know.</p>
]]></content:encoded>
			<wfw:commentRss>http://travel-junkie.com/geeky-stuff/wp-plugin-nextgen-flashviewer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NextGen Gallery Captions Galore!!!</title>
		<link>http://travel-junkie.com/geeky-stuff/nextgen-gallery-captions-galore/</link>
		<comments>http://travel-junkie.com/geeky-stuff/nextgen-gallery-captions-galore/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 10:30:02 +0000</pubDate>
		<dc:creator>traveljunkie</dc:creator>
		
		<category><![CDATA[Geeky Stuff]]></category>

		<category><![CDATA[Caption]]></category>

		<category><![CDATA[NextGen Gallery]]></category>

		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://travel-junkie.com/geeky-stuff/nextgen-gallery-captions-galore/</guid>
		<description><![CDATA[Captions all around you! They are everywhere...]]></description>
			<content:encoded><![CDATA[<p>I know that some people have been waiting for me to come out with a new tutorial on how to captionize their NextGen Gallery singlepics with the new version 0.8 and above. How about one better? Let&#8217;s go crazy and captionize literally everything we can get our sneaky little hands on. Singlepics, widgets, related images&#8230;</p>
<p><!--wsa:TJ2--></p>
<h3>Download The Files</h3>
<p>From your server, get the files nggfunctions.php, nggwidget.php and your ngg CSS file and open them in your favorite text editor. If you have trouble with any of that, then check out my <a href="http://travel-junkie.com/geeky-stuff/captions-for-nextgen-gallery-singlepics/">last tutorial</a> on the matter. That will be a good reference as well in case something here is unclear. Have you noticed my different approach here? We&#8217;ve definitely moved on to intermediate sh**&#8230;</p>
<p><!--wsa:TJ2--></p>
<h3>Singlepics</h3>
<p>Just in case not everybody wants to join me in the Captionizing Bonanza, I&#8217;ve decided to split the tutorial into the three parts. This first part deals with singlepics (just in case you haven&#8217;t read the heading). Search in nggfunctions.php for the function nggSinglePicture and exchange</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #b1b100;">case</span> <span style="">'left'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">' ngg-left&quot; '</span>;
<span style="color: #b1b100;">break</span>;
&nbsp;
<span style="color: #b1b100;">case</span> <span style="">'right'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">' ngg-right&quot; '</span>;
<span style="color: #b1b100;">break</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">default</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">''</span>;
<span style="color: #b1b100;">break</span>;</pre></div></div>

<p>with</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #b1b100;">case</span> <span style="">'left'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">' ngg-left&quot; '</span>;
<span style="color: #b1b100;">case</span> <span style="">'left'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$caption</span><span style="color: #339933;">=</span><span style="">'&lt;p class=&quot;singlepic-caption&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&lt;/p&gt;'</span>;
<span style="color: #b1b100;">break</span>;
&nbsp;
<span style="color: #b1b100;">case</span> <span style="">'right'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">' ngg-right&quot; '</span>;
<span style="color: #b1b100;">case</span> <span style="">'right'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$caption</span><span style="color: #339933;">=</span><span style="">'&lt;p class=&quot;singlepic-caption&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&lt;/p&gt;'</span>;
<span style="color: #b1b100;">break</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">default</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">''</span>;
<span style="color: #000000; font-weight: bold;">default</span><span style="color: #339933;">:</span> <span style="color: #000088;">$caption</span><span style="color: #339933;">=</span><span style="">''</span>;
<span style="color: #b1b100;">break</span>;</pre></div></div>

<p>Now we need to add the $caption to the HTML output. For this change</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// add fullsize picture as link</span>
<span style="color: #000088;">$out</span>  <span style="color: #339933;">=</span> <span style="">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">imagePath</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_thumbcode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;singlepic&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$imageID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">' &gt;'</span>;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$cache_url</span><span style="color: #009900;">&#41;</span>
	<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img class=&quot;ngg-singlepic&quot; src=&quot;'</span><span style="color: #339933;">.</span>NGGALLERY_URLPATH<span style="color: #339933;">.</span><span style="">'nggshow.php?pid='</span><span style="color: #339933;">.</span><span style="color: #000088;">$imageID</span><span style="color: #339933;">.</span><span style="">'&amp;amp;width='</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'&amp;amp;height='</span><span style="color: #339933;">.</span><span style="color: #000088;">$height</span><span style="color: #339933;">.</span><span style="">'&amp;amp;mode='</span><span style="color: #339933;">.</span><span style="color: #000088;">$mode</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; /&gt;'</span>;
<span style="color: #b1b100;">else</span>
	<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img class=&quot;ngg-singlepic&quot; src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$cache_url</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; /&gt;'</span>;
<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;/a&gt;'</span>;</pre></div></div>

<p>to</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// add fullsize picture as link</span>
<span style="color: #000088;">$out</span>  <span style="color: #339933;">=</span> <span style="">'&lt;div class=&quot;singleimage'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$float</span> <span style="color: #339933;">.</span><span style="">'&quot; style=&quot;width:'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$width</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'px&quot;&gt;&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">imagePath</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_thumbcode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;singlepic&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">' &gt;'</span>;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$cache_url</span><span style="color: #009900;">&#41;</span>
	<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img class=&quot;ngg-singlepic&quot; src=&quot;'</span><span style="color: #339933;">.</span>NGGALLERY_URLPATH<span style="color: #339933;">.</span><span style="">'nggshow.php?pid='</span><span style="color: #339933;">.</span><span style="color: #000088;">$imageID</span><span style="color: #339933;">.</span><span style="">'&amp;amp;width='</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'&amp;amp;height='</span><span style="color: #339933;">.</span><span style="color: #000088;">$height</span><span style="color: #339933;">.</span><span style="">'&amp;amp;mode='</span><span style="color: #339933;">.</span><span style="color: #000088;">$mode</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; /&gt;'</span>;
<span style="color: #b1b100;">else</span>
	<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img class=&quot;ngg-singlepic&quot; src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$cache_url</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; /&gt;'</span>;
<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$caption</span>;
<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;/a&gt;&lt;/div&gt;'</span>;</pre></div></div>

<p>I packaged everything up in a < div > and added some inline CSS. Now we need to adjust the external CSS a bit. Here is what I have in mine:</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* ----------- Single picture -------------*/</span>
<span style="color: #6666ff;">.ngg-singlepic</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span>;display<span style="color: #00AA00;">:</span><span style="color: #993333;">block</span>;margin<span style="color: #00AA00;">:</span><span style="color: #933;">4px</span> <span style="color: #993333;">auto</span> 0 <span style="color: #993333;">auto</span>;position<span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span>;text-align<span style="color: #00AA00;">:</span><span style="color: #993333;">center</span>;border<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#999</span>;<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.singleimage</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span>;margin-<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span>;<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.singleimage</span> p<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span>0;<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.ngg-singlepic</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span>;<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.singlepic-caption</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span>;padding<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> 0 <span style="color: #933;">3px</span> 0;margin<span style="color: #00AA00;">:</span><span style="color: #933;">4px</span> 0 <span style="color: #933;">4px</span>;color<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999</span>;font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">80</span>%</span>;border<span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#999</span>;border-<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span>;<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.highslide</span> img<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span>;<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover </span><span style="color: #6666ff;">.singlepic-caption</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span>;<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.ngg-left</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span>;margin-<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.ngg-right</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span>;margin-<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Have a play around to fit it to your needs.
</p>
<p>First part&#8230;DONE!</p>
<p><!--wsa:TJ2--></p>
<h3>The Widgets</h3>
<p>If you have random or recent pictures in your sidebar and always thought they look kind of nude and a bit embarrassed, then I&#8217;ve got something to cover em up a bit, make em feel less self conscious. Open nggwidgets.php and have a look for function ngg_widget_output. Here exchange</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$out</span> <span style="color: #339933;">=</span> <span style="">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span>nggallery<span style="color: #339933;">::</span><span style="color: #004000;">get_image_url</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumbcode</span><span style="color: #339933;">.</span><span style="">'&gt;'</span>;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'show'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;orginal&quot;</span> <span style="color: #009900;">&#41;</span>
	<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img src=&quot;'</span><span style="color: #339933;">.</span>NGGALLERY_URLPATH<span style="color: #339933;">.</span><span style="">'nggshow.php?pid='</span><span style="color: #339933;">.</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pid</span><span style="color: #339933;">.</span><span style="">'&amp;amp;width='</span><span style="color: #339933;">.</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'width'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'&amp;amp;height='</span><span style="color: #339933;">.</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'height'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #339933;">.</span><span style="">'&quot; /&gt;'</span>;
<span style="color: #b1b100;">else</span>	
	<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img src=&quot;'</span><span style="color: #339933;">.</span>nggallery<span style="color: #339933;">::</span><span style="color: #004000;">get_thumbnail_url</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; style=&quot;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'width'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'px;height:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'height'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'px;&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #339933;">.</span><span style="">'&quot; /&gt;'</span>;			
&nbsp;
<span style="color: #990000;">echo</span> <span style="color: #000088;">$out</span> <span style="color: #339933;">.</span> <span style="">'&lt;/a&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</pre></div></div>

<p>with</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$out</span> <span style="color: #339933;">=</span> <span style="">'&lt;div style=&quot;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'width'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'px;margin:0 auto 10px auto;&quot;&gt;&lt;a href=&quot;'</span><span style="color: #339933;">.</span>nggallery<span style="color: #339933;">::</span><span style="color: #004000;">get_image_url</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumbcode</span><span style="color: #339933;">.</span><span style="">'&gt;'</span>;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'show'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;orginal&quot;</span> <span style="color: #009900;">&#41;</span>
	<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img src=&quot;'</span><span style="color: #339933;">.</span>NGGALLERY_URLPATH<span style="color: #339933;">.</span><span style="">'nggshow.php?pid='</span><span style="color: #339933;">.</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pid</span><span style="color: #339933;">.</span><span style="">'&amp;amp;width='</span><span style="color: #339933;">.</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'width'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'&amp;amp;height='</span><span style="color: #339933;">.</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'height'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span>apply_filters<span style="color: #009900;">&#40;</span><span style="">'the_title'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #339933;">.</span><span style="">'&quot; /&gt;'</span>;
<span style="color: #b1b100;">else</span>	
	<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img src=&quot;'</span><span style="color: #339933;">.</span>nggallery<span style="color: #339933;">::</span><span style="color: #004000;">get_thumbnail_url</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; style=&quot;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'width'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'px;height:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'height'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'px;&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #339933;">.</span><span style="">'&quot; /&gt;'</span>;			
	<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;p class=&quot;singlepic-caption&quot; style=&quot;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$number</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'width'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'px;padding:3px 0 3px 0;&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&lt;/p&gt;'</span>;
<span style="color: #990000;">echo</span> <span style="color: #000088;">$out</span> <span style="color: #339933;">.</span> <span style="">'&lt;/a&gt;&lt;/div&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</pre></div></div>

<p>Again, packed everything into a < div > and added some CSS. This time there is nothing to change in the external CSS file as I have written all the CSS inline. You might ask why I did that and the short answer is that it took too long for me to get it to work , so in the end I couldn&#8217;t be bothered anymore. Change the CSS to your liking. I have basically centered them, one above the other.</p>
<p>Second part&#8230;DONE!</p>
<h3>Related Images</h3>
<p>So, only one more thing to do. Related images. That&#8217;s the things at the end of a post. You can use them for your search as well, which I find really cool. Check it out on my blog search. Anyways, look in nggfunctions.php for this little bit in function nggShowRelatedGallery</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$folder_url</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumbcode</span><span style="color: #339933;">.</span><span style="">' &gt;'</span>;
<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumbnailURL</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumb_prefix</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumbsize</span><span style="color: #339933;">.</span><span style="">' /&gt;'</span>;
<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;/a&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</pre></div></div>

<p>Change it so it looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;div class=&quot;related-images&quot; style=&quot;width:122px;&quot;&gt;&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$folder_url</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumbcode</span><span style="color: #339933;">.</span><span style="">' &gt;'</span>;
<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumbnailURL</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumb_prefix</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">filename</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumbsize</span><span style="color: #339933;">.</span><span style="">' /&gt;'</span>;
<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;p class=&quot;singlepic-caption&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&lt;/p&gt;'</span>;
<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;/a&gt;&lt;/div&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</pre></div></div>

<p>Here is what I have in my CSS file.</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* ----------- Related images -------------*/</span>
.related-images<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">122px</span>;
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span>;
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span>;
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.ngg-related-gallery</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span>;
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span>;
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1em</span>;
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> 0 <span style="color: #933;">5px</span> 0;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ngg-related-gallery</span> img <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span>;
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> 0 <span style="color: #933;">3px</span> 0 0;
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#999</span>;
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">90px</span>;
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span>  <span style="color: #933;">120px</span>;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ngg-related-gallery</span> img<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span>;
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Adjust it so it looks awesome.
</p>
<p>Third part&#8230;DONE!</p>
<p>My problem with writing those tutorials is that I have all my ngg files heavily modified. I have it working together with a range of different plugins and scripts and I change the code around. I have tried my best to reverse the code back to what it would have been if I had only done the captions. Let&#8217;s hope you won&#8217;t, but you might run into a couple minor problems. I&#8217;ll be in the bush here in Kiwiland during the week killing trees for I don&#8217;t really know how much longer, but I&#8217;ll do my best to help with problems on the weekend. Just leave a comment and I will get back to ya&#8230;</p>
<hr/>
<small>Tested on WP 2.3.3 and NextGen Gallery 0.83 in FF2 and IE 6 &#038; 7</small></p>
]]></content:encoded>
			<wfw:commentRss>http://travel-junkie.com/geeky-stuff/nextgen-gallery-captions-galore/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Captions for NextGen Gallery Singlepics</title>
		<link>http://travel-junkie.com/geeky-stuff/captions-for-nextgen-gallery-singlepics/</link>
		<comments>http://travel-junkie.com/geeky-stuff/captions-for-nextgen-gallery-singlepics/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 23:57:20 +0000</pubDate>
		<dc:creator>traveljunkie</dc:creator>
		
		<category><![CDATA[Geeky Stuff]]></category>

		<category><![CDATA[Caption]]></category>

		<category><![CDATA[NextGen Gallery]]></category>

		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://travel-junkie.com/geeky-stuff/captions-for-nextgen-gallery-singlepics/</guid>
		<description><![CDATA[A few days ago I decided that my pictures in posts needed captions. For all my images I use the excellent plugin NextGen Gallery. In the forums a few times the question had popped up on how to add captions, so I decided to write a little how-to. I had already heavily modified some of [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I decided that my pictures in posts needed captions. For all my images I use the excellent plugin <a href="http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/">NextGen Gallery</a>. In the <a href="http://alexrabe.boelinger.com/forums/?forum=3&#038;page=1">forums</a> a few times the question had popped up on how to add captions, so I decided to write a little how-to. I had already heavily modified some of the ngg-files, so I thought this one shouldn&#8217;t be too hard. Turned out I was right. God, Allah and Buddha know that doesn&#8217;t happen too often&#8230;</p>
<p><!--wsa:TJ2--></p>
<h3>Download The Files</h3>
<p>Alright, open your favorite FTP program and download from your ../wp-content/plugins/nggallery/ folder the file nggfunctions.php and from the ../wp-content/plugins/nggallery/css/ folder the CSS file that you specified under the admin-tabs gallery - style. If you haven&#8217;t already renamed that file at some earlier point then I suggest you do that now, so it doesn&#8217;t get overwritten when you upgrade nggallery. You could use something like mydomain.css. Now upload that new CSS file and set it as your new stylesheet in the admin area.</p>
<h3>Modifying The Files</h3>
<p>Open nggfunctions.php and search for the function nggSinglePicture. Now look for this bit:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #b1b100;">case</span> <span style="">'left'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">' style=&quot;float:left;&quot; '</span>;
<span style="color: #b1b100;">break</span>;
&nbsp;
<span style="color: #b1b100;">case</span> <span style="">'right'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">' style=&quot;float:right;&quot; '</span>;
<span style="color: #b1b100;">break</span>;</pre></div></div>

<p>and change it to this:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #b1b100;">case</span> <span style="">'left'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">' style=&quot;float:left;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'px;&quot; '</span>;
<span style="color: #b1b100;">case</span> <span style="">'left'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$caption</span><span style="color: #339933;">=</span><span style="">'&lt;p class=&quot;singlepic-caption&quot; style=&quot;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'px;&quot; '</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&lt;/p&gt;'</span>;
<span style="color: #b1b100;">break</span>;
&nbsp;
<span style="color: #b1b100;">case</span> <span style="">'right'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">' style=&quot;float:right;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'px;&quot; '</span>;
<span style="color: #b1b100;">case</span> <span style="">'right'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$caption</span><span style="color: #339933;">=</span><span style="">'&lt;p class=&quot;singlepic-caption&quot; style=&quot;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'px;&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&lt;/p&gt;'</span>;
<span style="color: #b1b100;">break</span>;</pre></div></div>

<p>This makes sure that captions get only added when the picture has a float attached to it. I didn&#8217;t want any captions on my centered images. If you do then just change it to:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #b1b100;">case</span> <span style="">'left'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">' style=&quot;float:left;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'px;&quot; '</span>;
<span style="color: #b1b100;">break</span>;
&nbsp;
<span style="color: #b1b100;">case</span> <span style="">'right'</span><span style="color: #339933;">:</span> <span style="color: #000088;">$float</span><span style="color: #339933;">=</span><span style="">' style=&quot;float:right;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'px;&quot; '</span>;
<span style="color: #b1b100;">break</span>;</pre></div></div>

</p>
<p><!--wsa:TJ2--></p>
<p>So far so good. Now look for this bit:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// add fullsize picture as link</span>
<span style="color: #000088;">$content</span>  <span style="color: #339933;">=</span> <span style="">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">imagePath</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_thumbcode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;singlepic&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$imageID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">' &gt;'</span>;
<span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img class=&quot;ngg-singlepic&quot; src=&quot;'</span><span style="color: #339933;">.</span>NGGALLERY_URLPATH<span style="color: #339933;">.</span><span style="">'nggshow.php?pid='</span><span style="color: #339933;">.</span><span style="color: #000088;">$imageID</span><span style="color: #339933;">.</span><span style="">'&amp;amp;width='</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'&amp;amp;height='</span><span style="color: #339933;">.</span><span style="color: #000088;">$height</span><span style="color: #339933;">.</span><span style="">'&amp;amp;mode='</span><span style="color: #339933;">.</span><span style="color: #000088;">$mode</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$float</span><span style="color: #339933;">.</span><span style="">' /&gt;'</span>;
<span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span> <span style="">'&lt;/a&gt;'</span>;</pre></div></div>

<p>and change that to:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// add fullsize picture as link</span>
<span style="color: #000088;">$content</span>  <span style="color: #339933;">=</span> <span style="">'&lt;div'</span><span style="color: #339933;">.</span><span style="color: #000088;">$float</span><span style="color: #339933;">.</span><span style="">'&gt;&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">imagePath</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_thumbcode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;singlepic&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$imageID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">' &gt;'</span>;
<span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img class=&quot;ngg-singlepic&quot; src=&quot;'</span><span style="color: #339933;">.</span>NGGALLERY_URLPATH<span style="color: #339933;">.</span><span style="">'nggshow.php?pid='</span><span style="color: #339933;">.</span><span style="color: #000088;">$imageID</span><span style="color: #339933;">.</span><span style="">'&amp;amp;width='</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'&amp;amp;height='</span><span style="color: #339933;">.</span><span style="color: #000088;">$height</span><span style="color: #339933;">.</span><span style="">'&amp;amp;mode='</span><span style="color: #339933;">.</span><span style="color: #000088;">$mode</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; /&gt;'</span>;
<span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$caption</span>;
<span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span> <span style="">'&lt;/a&gt;'</span>;
<span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span> <span style="">'&lt;/div&gt;'</span>;</pre></div></div>

<p>Here I put the picture and the caption in a < div >, moved the float from the image to the < div > and added the caption.<br />
<strong>UPDATE:</strong> Moved the $caption into the link. Mainly, this is useful if you&#8217;re running Highslide.<br />
Exchange $caption with:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="">'&lt;p class=&quot;singlepic-caption&quot; style=&quot;width:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'px;&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&lt;/p&gt;'</span>;</pre></div></div>

<p>if you want to add a caption to every singlepic and not just the ones with a float attached.
</p>
<p>The only thing left to do is adjust the CSS so the caption looks good. Open the CSS file and look for Single picture. Add this bit:</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #6666ff;">.singlepic-caption</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span>;padding<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> 0 <span style="color: #933;">3px</span> 0;margin<span style="color: #00AA00;">:</span>0 0 <span style="color: #933;">4px</span>;color<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span>;background<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999</span>;font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">80</span>%</span>;border<span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#999</span>;<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover </span><span style="color: #6666ff;">.singlepic-caption</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span>;<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Change the colors to your liking. You might want to set the bottom margin in .ngg-singlepic to 0 so there is no gap between the image and the caption.</p>
<p>Now upload all the files and you should be all set. If you run into any trouble then let me know. Enjoy!!</p>
]]></content:encoded>
			<wfw:commentRss>http://travel-junkie.com/geeky-stuff/captions-for-nextgen-gallery-singlepics/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Highslide and Nextgen Gallery</title>
		<link>http://travel-junkie.com/geeky-stuff/highslide-and-nextgen-gallery/</link>
		<comments>http://travel-junkie.com/geeky-stuff/highslide-and-nextgen-gallery/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 15:17:27 +0000</pubDate>
		<dc:creator>traveljunkie</dc:creator>
		
		<category><![CDATA[Geeky Stuff]]></category>

		<category><![CDATA[Highslide]]></category>

		<category><![CDATA[NextGen Gallery]]></category>

		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://travel-junkie.com/2007/11/14/highslide-and-nextgen-gallery/</guid>
		<description><![CDATA[This post has absolutely nothing to do with travelling, so stop reading if you&#8217;re not interested in geeky Wordpress stuff. In the process of making Travel-Junkie.com a better experience for my visitors I have discovered the excellent Highslide effect for images and loads of other stuff by Torstein Hønsi. So I started implementing this effect, [...]]]></description>
			<content:encoded><![CDATA[<p>This post has absolutely nothing to do with travelling, so stop reading if you&#8217;re not interested in geeky <a href="http://wordpress.org/">Wordpress</a> stuff. In the process of making Travel-Junkie.com a better experience for my visitors I have discovered the excellent <a href="http://vikjavev.no/highslide/">Highslide</a> effect for images and loads of other stuff by Torstein Hønsi. So I started implementing this effect, which should have been pretty straight forward, especially considering that the gallery plugin I use for Wordpress, <a href="http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/">NextGen Gallery</a>, comes with built in support for Highslide. In the end it took me far longer to get it to work exactly the way I wanted.</p>
<p>The support in NextGen Gallery only gets a basic version of Highslide to work. Captions won&#8217;t display and there won&#8217;t be any navigation from one picture to the next, both of which I wanted. After I had everything implemented I thought of just writing a little How-To in the NextGen Gallery Forums, but that post would have been a bit too long, hence the post here on my blog. It could even be helpful for people just wanting to get Highslide working on a Wordpress blog, that do not want to install yet another plugin.</p>
<h3>Alrighty, let&#8217;s get all the necessary files first</h3>
<p>First of all, go to the <a href="http://vikjavev.no/highslide/">Highslide homepage</a> and get yourself the latest stable release and unzip that. Don&#8217;t worry about all the different folders in there. You just need the &#8216;highslide&#8217;-folder. Then download from your server following files from your theme folder: </p>
<ul>
<li>header.php</li>
<li>footer.php</li>
</ul>
<p>Then grab from your plugin/nggallery/ folder these files: </p>
<ul>
<li>nggfunctions.php</li>
<li>nggwidget.php</li>
</ul>
<p>Make a backup of those last 4 files in case something goes wrong.
</p>
<p>After that open your editor, name the file highslide.css, put following code into it, fill in the WP plugin path and save it into the &#8216;highslide&#8217;-folder:</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*MAKE SURE TO FILL IN THE PATH TO YOUR PLUGIN DIRECTORY EVERYWHERE IT SAYS, SURPRISE...'PATH TO PLUGIN DIR'*/</span>
.highslide<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>/PATH TO PLUGIN DIR/highslide/graphics/zoomin.cur<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">pointer</span>;
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span>;
	<span style="color: #00AA00;">&#125;</span>
.highslide-caption<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span>;
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #993333;">white</span>;
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span>;
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">10pt</span>;
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span>;
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">white</span>;
	<span style="color: #00AA00;">&#125;</span>
.highslide-loading<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span>;
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span>;
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span>;
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span>;
	<span style="color: #808080; font-style: italic;">/*you might have to adjust the width and the height to suit your loading image,
	or if you want text, then edit the option in highslide.js and adjust the css here*/</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">16px</span>;
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">16px</span>;
	<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>/PATH TO PLUGIN DIR/highslide/graphics/loader.gif<span style="color: #00AA00;">&#41;</span>;
	<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #3333ff;">:no-</span>repeat;
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">2px</span>;
	<span style="color: #00AA00;">&#125;</span>
.highslide-move<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span>move;
	<span style="color: #00AA00;">&#125;</span>
.highslide-overlay<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span>;
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.controlbar</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>/PATH TO PLUGIN DIR/highslide/graphics/controlbar4.gif<span style="color: #00AA00;">&#41;</span>;
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">167px</span>;
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">34px</span>;
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.controlbar</span> a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span>;
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span>;
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span>;
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.controlbar</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>/PATH TO PLUGIN DIR/highslide/graphics/controlbar4-hover.gif<span style="color: #00AA00;">&#41;</span>;
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.controlbar</span> .previoushs<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span>;
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.controlbar</span> .nexths<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span>;
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-50px</span> 0;
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.controlbar</span> .highslide-move<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span>;
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-90px</span> 0;
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.controlbar</span> .closehs<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">36px</span>;
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-130px</span> 0;
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/*DO NOT DELETE THIS, YOU WILL REGRET IT...*/</span>
.highslide-display-<span style="color: #993333;">block</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span>;
	<span style="color: #00AA00;">&#125;</span>
.highslide-display-<span style="color: #993333;">none</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span>;
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

</p>
<p><!--wsa:TJ2--></p>
<h3>Adjusting the files</h3>
<h4>highslide.js</h4>
<p>The only thing you have to do here is adjust the options at the top of the file. That is basically up to you, but there are three options you will have to check. The most important one is that you set &#8216;graphicsDir&#8217; to the correct directory, like /PATH TO PLUGIN DIR/highslide/graphics/. If this is not set correctly, nothing will happen at all when an image gets clicked. Then change the &#8216;loadingText&#8217; to an empty string to be able to use an image. If you want to display a text fill it in here and then adjust the CSS in highslide.css. The last one to adjust would be &#8216;outlineType&#8217;. It works best with ‘rounded-white’, but whatever you like is cool.
</p>
<h4>header.php</h4>
<p>Open header.php and add the following code between the < head >< /head >, preferably at the end. Then, again, change all the /PATH TO PLUGIN DIR/-instances to the path of your plugin directory</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'/PATH TO PLUGIN DIR/highslide/highslide.css'</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'stylesheet'</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'text/css'</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'text/javascript'</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'/PATH TO PLUGIN DIR/highslide/highslide.js'</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
	hs.registerOverlay(
    	{
    		thumbnailId: null,
    		overlayId: 'controlbar',
    		position: 'top right',
    		hideOnMouseOut: true
		}
	);
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>The first two lines make sure that all the needed highslide-files are loaded and the rest is needed for the navigation between pictures within the highslide effect
<p>If you are worried about the overhead, that gets added by the script, then use the following code instead. This loads highslide.packed.js instead of highslide.js, which is about half the size. All options that you want to change <strong>have to</strong> be put into the header this time, like in this example:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'/PATH TO PLUGIN DIR/highslide/highslide.css'</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'stylesheet'</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'text/css'</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'text/javascript'</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'/PATH TO PLUGIN DIR/highslide/highslide.packed.js'</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
	hs.registerOverlay(
    	{
    		thumbnailId: null,
    		overlayId: 'controlbar',
    		position: 'top right',
    		hideOnMouseOut: true
		}
	);
hs.graphicsDir = &quot;/PATH TO PLUGIN DIR/wp-content/plugins/highslide/graphics/&quot;;
hs.loadingText = &quot;&quot;;	
hs.fullExpandTitle = &quot;Expand to actual size&quot;;
hs.restoreTitle = &quot;Click to close image, click and drag to move. Use arrow keys for next and previous.&quot;;
hs.focusTitle = &quot;Click to bring to front&quot;;
hs.loadingTitle = &quot;Click to cancel&quot;;
hs.captionSlideSpeed = 0;
hs.showCredits = false;
hs.align = &quot;center&quot;;
hs.outlineType = &quot;rounded-white&quot;;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p><strong>EDIT:</strong>With Highslide 3.3.0 onwards you have to add following option to the above:</p>
<pre>
hs.captionEval = "this.thumb.title";
</pre>
<p><strong>UPDATE:</strong> Now you can put all of the configuration javasript into a seperate file. Name it highslide.config.js and save it into the highslide folder. Then change the bits in header.php to just this:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'/PATH TO PLUGIN DIR/highslide/highslide.css'</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'stylesheet'</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'text/css'</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'text/javascript'</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'/PATH TO PLUGIN DIR/highslide/highslide.packed.js'</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'text/javascript'</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'/PATH TO PLUGIN DIR/highslide/highslide.config.js'</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>For whatever reason this wouldn&#8217;t work for me with versions below 3.3.0.
</p>
<h4>footer.php</h4>
<p>Open that file and add following code right after all the < div > have been closed, but before < /body ></p>

<div class="wp_syntax"><div class="code"><pre class="html4strict html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;controlbar&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;highslide-overlay controlbar&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;previoushs&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;return hs.previous(this)&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php _e('Previous (left arrow key)'); ?&gt;</span></span>&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nexths&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;return hs.next(this)&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php _e('Next (right arrow key)'); ?&gt;</span></span>&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;highslide-move&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;return false&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php _e('Click and drag to move'); ?&gt;</span></span>&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;closehs&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;return hs.close(this)&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php _e('Close'); ?&gt;</span></span>&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>This is the navigation part. Highslide will grab that bit when it needs the navigation. Usually it is hidden by the CSS</p>
<h4>nggfunctions.php</h4>
<p>Subsitute at line 301 this bit of code</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$link</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumbcode</span><span style="color: #339933;">.</span><span style="">' &gt;'</span>;</pre></div></div>

<p>with this</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;a id=&quot;thumb'</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pid</span><span style="color: #339933;">.</span><span style="">'&quot; href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$link</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumbcode</span><span style="color: #339933;">.</span><span style="">' &gt;'</span>;</pre></div></div>

<p>This gives every picture a unique ID, which is needed for the captions.</p>
<p>So captions get added you need to add the following code after all the image output at line 303<br />
<strong>EDIT:</strong>Not necessary anymore with Highslide 3.3.0 onwards</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//this is for highslide</span>
<span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="">'&lt;div class=&quot;highslide-caption&quot; id=&quot;caption-for-thumb'</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pid</span><span style="color: #339933;">.</span><span style="">'&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&lt;/div&gt;'</span>;
<span style="color: #666666; font-style: italic;">//end highslide</span></pre></div></div>

<p>The unique ID is repeated here and now Highslide knows which caption belongs to which image.</p>
<p>What we just did sorted the gallery output, now we need to do the same for singlepics in posts as well.  At line 569 substitute this code</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// add fullsize picture as link</span>
<span style="color: #000088;">$content</span>  <span style="color: #339933;">=</span> <span style="">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">imagePath</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_thumbcode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;singlepic&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$imageID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">' &gt;'</span>;
<span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span> <span style="">'&lt;img class=&quot;ngg-singlepic&quot; src=&quot;'</span><span style="color: #339933;">.</span>NGGALLERY_URLPATH<span style="color: #339933;">.</span><span style="">'nggshow.php?pid='</span><span style="color: #339933;">.</span><span style="color: #000088;">$imageID</span><span style="color: #339933;">.</span><span style="">'&amp;amp;width='</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="">'&amp;amp;height='</span><span style="color: #339933;">.</span><span style="color: #000088;">$height</span><span style="color: #339933;">.</span><span style="">'&amp;amp;mode='</span><span style="color: #339933;">.</span><span style="color: #000088;">$mode</span><span style="color: #339933;">.</span><span style="">'&quot; alt=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">alttext</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$float</span><span style="color: #339933;">.</span><span style="">' /&gt;'</span>;
<span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span> <span style="">'&lt;/a&gt;'</span>;</pre></div></div>

<p>with this<br />
<strong>EDIT:</strong>If you use Highslide 3.3.0, then you won&#8217;t need all the //this is for highslide blablabla //end highslide stuff</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><s