<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: NextGen Gallery: Random Photos from a Specific Gallery</title>
	<atom:link href="http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/</link>
	<description></description>
	<pubDate>Thu, 09 Feb 2012 02:37:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: PSPerkins</title>
		<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/#comment-1723</link>
		<dc:creator>PSPerkins</dc:creator>
		<pubDate>Sat, 30 Apr 2011 13:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.vuthy.com/?p=342#comment-1723</guid>
		<description>Thanks for this. I had figured out how to copy and rename those functions in my own functions.php file to customize the slideshow without hacking nextgen core files, but I couldn&#39;t quite figure out the $exclude bit. Thankfully this solution ranked high in my search so I found it easily.&lt;br&gt;&lt;br&gt;Thanks so much for your tip, very helpful and the last piece of my particular puzzle.</description>
		<content:encoded><![CDATA[<p>Thanks for this. I had figured out how to copy and rename those functions in my own functions.php file to customize the slideshow without hacking nextgen core files, but I couldn&#39;t quite figure out the $exclude bit. Thankfully this solution ranked high in my search so I found it easily.</p>
<p>Thanks so much for your tip, very helpful and the last piece of my particular puzzle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elley</title>
		<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/#comment-1703</link>
		<dc:creator>elley</dc:creator>
		<pubDate>Mon, 18 Apr 2011 13:06:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.vuthy.com/?p=342#comment-1703</guid>
		<description>Hi can you tell me how to use the side bar widget to pull random images from 1 gallery as oppesed to multiple galleries? I have built a site with a "gallery page but the front page I just want the side bar to display random images from the 1 gallery.</description>
		<content:encoded><![CDATA[<p>Hi can you tell me how to use the side bar widget to pull random images from 1 gallery as oppesed to multiple galleries? I have built a site with a &#8220;gallery page but the front page I just want the side bar to display random images from the 1 gallery.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamesspratt</title>
		<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/#comment-1692</link>
		<dc:creator>jamesspratt</dc:creator>
		<pubDate>Fri, 15 Apr 2011 10:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.vuthy.com/?p=342#comment-1692</guid>
		<description>Thanks for this.</description>
		<content:encoded><![CDATA[<p>Thanks for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vuthy</title>
		<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/#comment-1627</link>
		<dc:creator>vuthy</dc:creator>
		<pubDate>Fri, 04 Mar 2011 19:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.vuthy.com/?p=342#comment-1627</guid>
		<description>Glad it helped you! I wasn&#39;t sure if it was still relevant since this blog entry is old and there may have been changes to NextGen and Wordpress since then but if it helps point people in the right direction, I&#39;m glad for that. :-)</description>
		<content:encoded><![CDATA[<p>Glad it helped you! I wasn&#39;t sure if it was still relevant since this blog entry is old and there may have been changes to NextGen and Wordpress since then but if it helps point people in the right direction, I&#39;m glad for that. <img src='http://www.vuthy.com/wp-content/plugins/smilies-themer/kopete/smile.png' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mpez7</title>
		<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/#comment-1625</link>
		<dc:creator>mpez7</dc:creator>
		<pubDate>Fri, 04 Mar 2011 13:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.vuthy.com/?p=342#comment-1625</guid>
		<description>Thanks a lot for that piece of code! You make my day and i feel happy!&lt;br&gt;Many wishes my brother,&lt;br&gt;Greetings from Greece!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for that piece of code! You make my day and i feel happy!<br />Many wishes my brother,<br />Greetings from Greece!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vuthy</title>
		<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/#comment-1599</link>
		<dc:creator>vuthy</dc:creator>
		<pubDate>Fri, 11 Feb 2011 00:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.vuthy.com/?p=342#comment-1599</guid>
		<description>This is awesome Tobi! I&#39;ve wanted to do this for a while but have been too busy cough lazy cough to look into it! I&#39;m going to try it soon. Thanks for sharing!</description>
		<content:encoded><![CDATA[<p>This is awesome Tobi! I&#39;ve wanted to do this for a while but have been too busy cough lazy cough to look into it! I&#39;m going to try it soon. Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobi</title>
		<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/#comment-1597</link>
		<dc:creator>Tobi</dc:creator>
		<pubDate>Thu, 10 Feb 2011 14:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.vuthy.com/?p=342#comment-1597</guid>
		<description>Sorry, the "&#60;_a_href" seams to turn into links, so i try it again with underscores:&lt;br&gt;&lt;br&gt;4. Now we duplicate the full function (ngg_widget_output) we just renamed the line above and rename it as well and change this:&lt;br&gt;$out = &#39;&#60;_a_href="&#39; . $image-&#62;imageURL . &#39;" title="&#39; . $description . &#39;" &#39; . $thumbcode .&#39;&#62;&#39;;&lt;br&gt;to that:&lt;br&gt;$out = &#39;&#60;_a_href="?page_id=&#39; . $image-&#62;pageid. &#39;" title="HI&#39; . $description . &#39;" &#39; . $thumbcode .&#39;&#62;&#39;;&lt;br&gt;So you got this:&lt;br&gt;function ngg_widget_outputTN($args, $widget_args = 1 , $options = false) {&lt;br&gt;######LEAVE THE CODE IN HERE I&#39;M JUST SAVING SPACE #############&lt;br&gt;				//TODO:For mixed portrait/landscape it&#39;s better to use only the height setting, if widht is 0 or vice versa&lt;br&gt;				$out = &#39;&#60;_a_href="?page_id=&#39; . $image-&#62;pageid. &#39;" title="HI&#39; . $description . &#39;" &#39; . $thumbcode .&#39;&#62;&#39;;&lt;br&gt;				// Typo fix for the next updates (happend until 1.0.2)&lt;br&gt;######LEAVE THE CODE IN HERE I&#39;M JUST SAVING SPACE #############&lt;br&gt;		echo $after_widget;		&lt;br&gt;	}&lt;br&gt;}&lt;br&gt;5. Now you can use this wherever you need it and the images link to the gallery that includes them:&lt;br&gt;if (function_exists("nggDisplayRandomImagesTN"))&lt;br&gt;nggDisplayRandomImagesTN($number_of_pic,$Width,$Height);&lt;br&gt;&lt;br&gt;... and remember to turn the underscores from "&#60;_a_href" into links again.</description>
		<content:encoded><![CDATA[<p>Sorry, the &#8220;&lt;_a_href&#8221; seams to turn into links, so i try it again with underscores:</p>
<p>4. Now we duplicate the full function (ngg_widget_output) we just renamed the line above and rename it as well and change this:<br />$out = &#39;&lt;_a_href=&#8221;&#39; . $image-&gt;imageURL . &#39;&#8221; title=&#8221;&#39; . $description . &#39;&#8221; &#39; . $thumbcode .&#39;&gt;&#39;;<br />to that:<br />$out = &#39;&lt;_a_href=&#8221;?page_id=&#39; . $image-&gt;pageid. &#39;&#8221; title=&#8221;HI&#39; . $description . &#39;&#8221; &#39; . $thumbcode .&#39;&gt;&#39;;<br />So you got this:<br />function ngg_widget_outputTN($args, $widget_args = 1 , $options = false) {<br />######LEAVE THE CODE IN HERE I&#39;M JUST SAVING SPACE #############<br />				//TODO:For mixed portrait/landscape it&#39;s better to use only the height setting, if widht is 0 or vice versa<br />				$out = &#39;&lt;_a_href=&#8221;?page_id=&#39; . $image-&gt;pageid. &#39;&#8221; title=&#8221;HI&#39; . $description . &#39;&#8221; &#39; . $thumbcode .&#39;&gt;&#39;;<br />				// Typo fix for the next updates (happend until 1.0.2)<br />######LEAVE THE CODE IN HERE I&#39;M JUST SAVING SPACE #############<br />		echo $after_widget;		<br />	}<br />}<br />5. Now you can use this wherever you need it and the images link to the gallery that includes them:<br />if (function_exists(&#8221;nggDisplayRandomImagesTN&#8221;))<br />nggDisplayRandomImagesTN($number_of_pic,$Width,$Height);</p>
<p>&#8230; and remember to turn the underscores from &#8220;&lt;_a_href&#8221; into links again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobi</title>
		<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/#comment-1598</link>
		<dc:creator>Tobi</dc:creator>
		<pubDate>Thu, 10 Feb 2011 14:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.vuthy.com/?p=342#comment-1598</guid>
		<description>Thanks! You helped me to figure out how to edit the nggDisplayRandomImage() function to link from random images to the particular page where the gallery is displayed.&lt;br&gt;Somebody interested? Let me show you:&lt;br&gt;1. Go to wp-content/plugins/nextgen-gallery/widgets/widgets.php&lt;br&gt;2. Duplicate the function nggDisplayRandomImage() and rename it:&lt;br&gt;/* Tobis Funktion*/&lt;br&gt;function nggDisplayRandomImagesTN($number, $width = &#39;75&#39;, $height = &#39;50&#39;, $exclude = &#39;all&#39;, $list = &#39;&#39;, $show = &#39;thumbnail&#39;) {&lt;br&gt;	&lt;br&gt;	$options[1] = array(&#39;title&#39;=&#62;&#39;&#39;, &lt;br&gt;						&#39;items&#39;=&#62;$number,&lt;br&gt;						&#39;show&#39;=&#62;&#39;original&#39; , &lt;br&gt;						&#39;type&#39;=&#62;&#39;random&#39;,&lt;br&gt;						&#39;width&#39;=&#62;$width, &lt;br&gt;						&#39;height&#39;=&#62;$height, &lt;br&gt;						&#39;exclude&#39;=&#62;$exclude,&lt;br&gt;						&#39;list&#39;=&#62;$list   );&lt;br&gt;	&lt;br&gt;	nggWidget::ngg_widget_outputTN($args = array(), 1, $options); # &#60;--3. Change the name of this function&lt;br&gt;&lt;br&gt;4. Now we duplicate the full function (ngg_widget_output) we just renamed the line above and rename it as well and change this:&lt;br&gt;$out = &#39;&lt;a href="&#39; . $image-&gt;imageURL . &#39;" rel="nofollow" title="&#39; . $description . &#39;"&gt;&#39;;&lt;br&gt;to that:&lt;br&gt;$out = &#39;&lt;/a&gt;&lt;a href="?page_id=&#39; . $image-&gt;pageid. &#39;" rel="nofollow" title="HI&#39; . $description . &#39;"&gt;&#39;;&lt;br&gt;So you got this:&lt;br&gt;function ngg_widget_outputTN($args, $widget_args = 1 , $options = false) {&lt;br&gt;######LEAVE THE CODE IN HERE I&#39;M JUST SAVING SPACE #############&lt;br&gt;				//TODO:For mixed portrait/landscape it&#39;s better to use only the height setting, if widht is 0 or vice versa&lt;br&gt;				$out = &#39;&lt;/a&gt;&lt;a href="?page_id=&#39; . $image-&gt;pageid. &#39;" rel="nofollow" title="HI&#39; . $description . &#39;"&gt;&#39;;&lt;br&gt;				// Typo fix for the next updates (happend until 1.0.2)&lt;br&gt;######LEAVE THE CODE IN HERE I&#39;M JUST SAVING SPACE #############&lt;br&gt;		echo $after_widget;		&lt;br&gt;	}&lt;br&gt;}&lt;br&gt;5. Now you can use this wherever you need it and the images link to the gallery that includes them:&lt;br&gt;if (function_exists("nggDisplayRandomImagesTN"))&lt;br&gt;nggDisplayRandomImagesTN($number_of_pic,$Width,$Height);&lt;br&gt;Sorry I tried my best to make it clear, hopefully you understood. &lt;br&gt;Take care, Tobi&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thanks! You helped me to figure out how to edit the nggDisplayRandomImage() function to link from random images to the particular page where the gallery is displayed.<br />Somebody interested? Let me show you:<br />1. Go to wp-content/plugins/nextgen-gallery/widgets/widgets.php<br />2. Duplicate the function nggDisplayRandomImage() and rename it:<br />/* Tobis Funktion*/<br />function nggDisplayRandomImagesTN($number, $width = &#39;75&#39;, $height = &#39;50&#39;, $exclude = &#39;all&#39;, $list = &#39;&#39;, $show = &#39;thumbnail&#39;) {</p>
<p>	$options[1] = array(&#39;title&#39;=&gt;&#39;&#39;, <br />						&#39;items&#39;=&gt;$number,<br />						&#39;show&#39;=&gt;&#39;original&#39; , <br />						&#39;type&#39;=&gt;&#39;random&#39;,<br />						&#39;width&#39;=&gt;$width, <br />						&#39;height&#39;=&gt;$height, <br />						&#39;exclude&#39;=&gt;$exclude,<br />						&#39;list&#39;=&gt;$list   );</p>
<p>	nggWidget::ngg_widget_outputTN($args = array(), 1, $options); # &lt;&#8211;3. Change the name of this function</p>
<p>4. Now we duplicate the full function (ngg_widget_output) we just renamed the line above and rename it as well and change this:<br />$out = &#39;<a href="&#39; . $image->imageURL . &#39;&#8221; rel=&#8221;nofollow&#8221; title=&#8221;&#39; . $description . &#39;&#8221;>&#39;;<br />to that:<br />$out = &#39;</a><a href="?page_id=&#39; . $image->pageid. &#39;&#8221; rel=&#8221;nofollow&#8221; title=&#8221;HI&#39; . $description . &#39;&#8221;>&#39;;<br />So you got this:<br />function ngg_widget_outputTN($args, $widget_args = 1 , $options = false) {<br />######LEAVE THE CODE IN HERE I&#39;M JUST SAVING SPACE #############<br />				//TODO:For mixed portrait/landscape it&#39;s better to use only the height setting, if widht is 0 or vice versa<br />				$out = &#39;</a><a href="?page_id=&#39; . $image->pageid. &#39;&#8221; rel=&#8221;nofollow&#8221; title=&#8221;HI&#39; . $description . &#39;&#8221;>&#39;;<br />				// Typo fix for the next updates (happend until 1.0.2)<br />######LEAVE THE CODE IN HERE I&#39;M JUST SAVING SPACE #############<br />		echo $after_widget;		<br />	}<br />}<br />5. Now you can use this wherever you need it and the images link to the gallery that includes them:<br />if (function_exists(&#8221;nggDisplayRandomImagesTN&#8221;))<br />nggDisplayRandomImagesTN($number_of_pic,$Width,$Height);<br />Sorry I tried my best to make it clear, hopefully you understood. <br />Take care, Tobi</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ARI</title>
		<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/#comment-1375</link>
		<dc:creator>ARI</dc:creator>
		<pubDate>Wed, 29 Sep 2010 15:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.vuthy.com/?p=342#comment-1375</guid>
		<description>Thanks! I was looking for a way to display random images from specific gallery!</description>
		<content:encoded><![CDATA[<p>Thanks! I was looking for a way to display random images from specific gallery!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vuthy</title>
		<link>http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/#comment-1121</link>
		<dc:creator>vuthy</dc:creator>
		<pubDate>Thu, 01 Apr 2010 17:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.vuthy.com/?p=342#comment-1121</guid>
		<description>I&#39;m glad it works for you. I&#39;ve been meaning to upgrade to the latest version which I&#39;m sure has a lot of bug fixes, but I&#39;m reluctant because mine works fine now, is already rather customized, and I don&#39;t want anything to break - eek!</description>
		<content:encoded><![CDATA[<p>I&#39;m glad it works for you. I&#39;ve been meaning to upgrade to the latest version which I&#39;m sure has a lot of bug fixes, but I&#39;m reluctant because mine works fine now, is already rather customized, and I don&#39;t want anything to break - eek!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

