<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: jQuery: adding Slimbox lightbox effect to Galleria</title>
	<atom:link href="http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/</link>
	<description>Random ramblings from a freelance web developer in Dublin, Ireland</description>
	<lastBuildDate>Thu, 29 Jul 2010 11:29:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=889</generator>
	<item>
		<title>By: Alex</title>
		<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/comment-page-1/#comment-132593</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 16 May 2010 00:46:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.janinedalton.com/blog/?p=237#comment-132593</guid>
		<description>This is great and everything explained here works properly for me. BUT
I would need a caption to be visible INSIDE the slimbox viewer. 
By now, I&#039;m only able to see the caption generated by Galleria (written in the html code).
Is there a way to get the caption along the image into the slimbox viewer (by changing some lines in galleria.js maybe?).
I really need this.
Thank you for everything.</description>
		<content:encoded><![CDATA[<p>This is great and everything explained here works properly for me. BUT<br />
I would need a caption to be visible INSIDE the slimbox viewer.<br />
By now, I&#8217;m only able to see the caption generated by Galleria (written in the html code).<br />
Is there a way to get the caption along the image into the slimbox viewer (by changing some lines in galleria.js maybe?).<br />
I really need this.<br />
Thank you for everything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janine</title>
		<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/comment-page-1/#comment-130169</link>
		<dc:creator>janine</dc:creator>
		<pubDate>Wed, 07 Apr 2010 23:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.janinedalton.com/blog/?p=237#comment-130169</guid>
		<description>Just want to thank Mari again for the howto for getting previous/next navigation working for the lightbox enlargements. I hadn&#039;t needed this when I first combined Galleria and Slimbox and wrote this post. But I really needed that to work on my current build, and having had my head out of this for a long while, Mari&#039;s method for this was really useful. I hope to add some basic demos at some stage - just up the walls with work at the moment!</description>
		<content:encoded><![CDATA[<p>Just want to thank Mari again for the howto for getting previous/next navigation working for the lightbox enlargements. I hadn&#8217;t needed this when I first combined Galleria and Slimbox and wrote this post. But I really needed that to work on my current build, and having had my head out of this for a long while, Mari&#8217;s method for this was really useful. I hope to add some basic demos at some stage &#8211; just up the walls with work at the moment!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blaat</title>
		<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/comment-page-1/#comment-129335</link>
		<dc:creator>Blaat</dc:creator>
		<pubDate>Thu, 25 Mar 2010 14:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.janinedalton.com/blog/?p=237#comment-129335</guid>
		<description>Thx, this solved my problem! Would have been easier if you showed a demo &amp; example code tho</description>
		<content:encoded><![CDATA[<p>Thx, this solved my problem! Would have been easier if you showed a demo &amp; example code tho</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Banago</title>
		<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/comment-page-1/#comment-123568</link>
		<dc:creator>Banago</dc:creator>
		<pubDate>Sun, 27 Dec 2009 20:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.janinedalton.com/blog/?p=237#comment-123568</guid>
		<description>This is really great information on what you have done with Galleria and Slimbox. I was wandering if there is a dome of this somewhere.</description>
		<content:encoded><![CDATA[<p>This is really great information on what you have done with Galleria and Slimbox. I was wandering if there is a dome of this somewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JM</title>
		<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/comment-page-1/#comment-120435</link>
		<dc:creator>JM</dc:creator>
		<pubDate>Wed, 04 Nov 2009 04:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.janinedalton.com/blog/?p=237#comment-120435</guid>
		<description>Found this from the developer:

Adding


 thumb.click(function() {
      window.location = $(this).attr(&#039;longdesc&#039;);
	      });

To the OnThumb function grabs the longdesc attribute and directs the page to the URL you specify, but it simply redirects.  There has to be a way to get this link to call the slimbox instead, maybe with a different function - can anyone help?</description>
		<content:encoded><![CDATA[<p>Found this from the developer:</p>
<p>Adding</p>
<p> thumb.click(function() {<br />
      window.location = $(this).attr(&#8216;longdesc&#8217;);<br />
	      });</p>
<p>To the OnThumb function grabs the longdesc attribute and directs the page to the URL you specify, but it simply redirects.  There has to be a way to get this link to call the slimbox instead, maybe with a different function &#8211; can anyone help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JM</title>
		<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/comment-page-1/#comment-120434</link>
		<dc:creator>JM</dc:creator>
		<pubDate>Wed, 04 Nov 2009 04:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.janinedalton.com/blog/?p=237#comment-120434</guid>
		<description>Hi Janine - really like this, very helpful.

I wanted to see if you or anyone else could help me out with what bakkelun was trying to do: when clicking on a certain thumbnail, I want to open the slimbox instead of in the galleria (only for certain images).  I tried your technique, but like you said, the underlying code seems to override the link around the thumbnail.  

I am not an expert in Java but I know this is where the code needs to change, and I have added a longdesc reference here:

	                        // add the rel attribute
				
				_thumb.attr(&#039;rel&#039;,_src);
				
				//add the long desc
				
				_thumb.attr(&#039;longdesc&#039;,_longdesc);
				
				// add the title attribute
				_thumb.attr(&#039;title&#039;,_title);
				
				// add the click functionality to the _thumb
				_thumb.click(function() {					
					$.galleria.activate(_src);
				});

I cannot figure out what to put underneath the _thumb.click function -- it would make sense to create an If longdesc exists statement, then link to the slimbox rel; if not do what galleria normally does. 

Any thoughts?</description>
		<content:encoded><![CDATA[<p>Hi Janine &#8211; really like this, very helpful.</p>
<p>I wanted to see if you or anyone else could help me out with what bakkelun was trying to do: when clicking on a certain thumbnail, I want to open the slimbox instead of in the galleria (only for certain images).  I tried your technique, but like you said, the underlying code seems to override the link around the thumbnail.  </p>
<p>I am not an expert in Java but I know this is where the code needs to change, and I have added a longdesc reference here:</p>
<p>	                        // add the rel attribute</p>
<p>				_thumb.attr(&#8216;rel&#8217;,_src);</p>
<p>				//add the long desc</p>
<p>				_thumb.attr(&#8216;longdesc&#8217;,_longdesc);</p>
<p>				// add the title attribute<br />
				_thumb.attr(&#8216;title&#8217;,_title);</p>
<p>				// add the click functionality to the _thumb<br />
				_thumb.click(function() {<br />
					$.galleria.activate(_src);<br />
				});</p>
<p>I cannot figure out what to put underneath the _thumb.click function &#8212; it would make sense to create an If longdesc exists statement, then link to the slimbox rel; if not do what galleria normally does. </p>
<p>Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mari</title>
		<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/comment-page-1/#comment-118078</link>
		<dc:creator>mari</dc:creator>
		<pubDate>Mon, 21 Sep 2009 18:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.janinedalton.com/blog/?p=237#comment-118078</guid>
		<description>Re: my suggestion to add display:none to the gallery_unstyled class so that the images dont show while the page loads... totally broke it in IE. (God, I hate IE.) visibility:hidden works tho. Go figure.</description>
		<content:encoded><![CDATA[<p>Re: my suggestion to add display:none to the gallery_unstyled class so that the images dont show while the page loads&#8230; totally broke it in IE. (God, I hate IE.) visibility:hidden works tho. Go figure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mari</title>
		<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/comment-page-1/#comment-117886</link>
		<dc:creator>mari</dc:creator>
		<pubDate>Thu, 17 Sep 2009 18:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.janinedalton.com/blog/?p=237#comment-117886</guid>
		<description>Here is working code for next/prev image group navigation via slimbox when you are using only one size image for all views and not linking to a larger image. It requires that you leave the galleria thumbs/images alone and just create a separate set of hidden images to use as the group. 

First duplicate all your images in a hidden DIV and give them all the same class:
&lt;code&gt;






&lt;/code&gt;

In the galleria onImage function add that class to the clicked image:

image.addClass(&#039;image_group&#039;);


Then call slimbox on that image with a linkMapper  that pulls the src of the image for the larger display, and a linkFilter that filters out the duplicate images -- you will have a dupe because the one you clicked on is also in the hidden DIV.

$(&#039;.image_group&#039;).slimbox({loop: true}, 
	function(el) {return [el.src, el.title];}, 
	function(el) {return (this == el) &#124;&#124; (this.src != el.src);});


If you are linking to larger images, then you&#039;ll have to wrap the clicked image in A tags like Janine shows and then set up your hidden DIV images in the same way. You won&#039;t need the linkMapper (second argument) then, but you will have to change the linkFilter (3rd arg) to compare hrefs instead of srcs.

I say it&#039;s working.. but I haven&#039;t tested it in all browsers yet.</description>
		<content:encoded><![CDATA[<p>Here is working code for next/prev image group navigation via slimbox when you are using only one size image for all views and not linking to a larger image. It requires that you leave the galleria thumbs/images alone and just create a separate set of hidden images to use as the group. </p>
<p>First duplicate all your images in a hidden DIV and give them all the same class:<br />
<code></p>
<p></code></p>
<p>In the galleria onImage function add that class to the clicked image:</p>
<p>image.addClass(&#8216;image_group&#8217;);</p>
<p>Then call slimbox on that image with a linkMapper  that pulls the src of the image for the larger display, and a linkFilter that filters out the duplicate images &#8212; you will have a dupe because the one you clicked on is also in the hidden DIV.</p>
<p>$(&#8216;.image_group&#8217;).slimbox({loop: true},<br />
	function(el) {return [el.src, el.title];},<br />
	function(el) {return (this == el) || (this.src != el.src);});</p>
<p>If you are linking to larger images, then you&#8217;ll have to wrap the clicked image in A tags like Janine shows and then set up your hidden DIV images in the same way. You won&#8217;t need the linkMapper (second argument) then, but you will have to change the linkFilter (3rd arg) to compare hrefs instead of srcs.</p>
<p>I say it&#8217;s working.. but I haven&#8217;t tested it in all browsers yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mari</title>
		<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/comment-page-1/#comment-117843</link>
		<dc:creator>mari</dc:creator>
		<pubDate>Wed, 16 Sep 2009 17:22:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.janinedalton.com/blog/?p=237#comment-117843</guid>
		<description>Another thing I thought of last night for a group of images with next/prev nav w/o having the click functionality added to the galleria thumbs would be to add a hidden DIV/UL to the page that duplicates all your thumbs/images and give them a special class. Then add whatever class you used for them to the main image in the onImage function, then call slimbox on that selector. You have to have a separate set of images cuz you don&#039;t want to mess with the ones that are turned into galleria thumbs.

image.wrap(&#039;&lt;a href=&quot;&#039; + image.attr(&#039;src&#039;) + &#039;&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&#039;);
image.addClass(&#039;my_group_of_images&#039;);
$(&#039;.my_group_of_images&#039;).slimbox(); 

This probably is a lot better than my other method. Since they are hidden, there is  no worries about the click functionality applied to them. 

Another note: since I only use 1 image for all the levels, I really don&#039;t need to wrap a tags on anything. The a tag is just always used in lightboxes to specify the bigger src in the href, and I am using the big images everywhere as the src so I don&#039;t need it in an href. So you can easily change slimbox&#039;s functionality by passing it a link mapping function to grab the src of the image, instead of the href of the A.. then you don&#039;t need a tags and you can target the images instead.

for a single image:
image.slimbox({loop: true}, function(el) {return [el.src, el.title];});

or with my yet to be tested example:
image.addClass(&#039;my_group_of_images&#039;);
$(&#039;.my_group_of_images&#039;).slimbox({loop: true}, function(el) {return [el.src, el.title];});

In the above case, you wouldn&#039;t have to add links around any of the image group images in the hidden div.

Also, one other helpful hack (I think) that I made to galleria was to add display:none to the unstyled UL class (.gallery_unstyled) so that the images don&#039;t show briefly while galleria loads. Then you have to go into the galleria core and remove this class after the thumbs are made.. Line 220 in version 1.0. is where the thumb-making loop ends. Add this code:

$(this).removeClass(&#039;gallery_unstyled&#039;);

Trying to remove the class with jquery in the doc didn&#039;t work for me.. and because it has precedence over the other classes added to the UL via galleria, it makes the newly created thumbs invisible if it is not removed.

Thanks for posting the initial post Janine, it really helped a lot. Just one little thing makes a difference!&lt;!--more--&gt;</description>
		<content:encoded><![CDATA[<p>Another thing I thought of last night for a group of images with next/prev nav w/o having the click functionality added to the galleria thumbs would be to add a hidden DIV/UL to the page that duplicates all your thumbs/images and give them a special class. Then add whatever class you used for them to the main image in the onImage function, then call slimbox on that selector. You have to have a separate set of images cuz you don&#8217;t want to mess with the ones that are turned into galleria thumbs.</p>
<p>image.wrap(&#8216;&lt;a href=&#8221;&#8216; + image.attr(&#8216;src&#8217;) + &#8216;&#8221; rel=&#8221;nofollow&#8221;&gt;&lt;/a&gt;&#8217;);<br />
image.addClass(&#8216;my_group_of_images&#8217;);<br />
$(&#8216;.my_group_of_images&#8217;).slimbox(); </p>
<p>This probably is a lot better than my other method. Since they are hidden, there is  no worries about the click functionality applied to them. </p>
<p>Another note: since I only use 1 image for all the levels, I really don&#8217;t need to wrap a tags on anything. The a tag is just always used in lightboxes to specify the bigger src in the href, and I am using the big images everywhere as the src so I don&#8217;t need it in an href. So you can easily change slimbox&#8217;s functionality by passing it a link mapping function to grab the src of the image, instead of the href of the A.. then you don&#8217;t need a tags and you can target the images instead.</p>
<p>for a single image:<br />
image.slimbox({loop: true}, function(el) {return [el.src, el.title];});</p>
<p>or with my yet to be tested example:<br />
image.addClass(&#8216;my_group_of_images&#8217;);<br />
$(&#8216;.my_group_of_images&#8217;).slimbox({loop: true}, function(el) {return [el.src, el.title];});</p>
<p>In the above case, you wouldn&#8217;t have to add links around any of the image group images in the hidden div.</p>
<p>Also, one other helpful hack (I think) that I made to galleria was to add display:none to the unstyled UL class (.gallery_unstyled) so that the images don&#8217;t show briefly while galleria loads. Then you have to go into the galleria core and remove this class after the thumbs are made.. Line 220 in version 1.0. is where the thumb-making loop ends. Add this code:</p>
<p>$(this).removeClass(&#8216;gallery_unstyled&#8217;);</p>
<p>Trying to remove the class with jquery in the doc didn&#8217;t work for me.. and because it has precedence over the other classes added to the UL via galleria, it makes the newly created thumbs invisible if it is not removed.</p>
<p>Thanks for posting the initial post Janine, it really helped a lot. Just one little thing makes a difference!<!--more--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janine</title>
		<link>http://www.janinedalton.com/blog/archives/2009/jquery-adding-slimbox-lightbox-effect-to-galleria/comment-page-1/#comment-117825</link>
		<dc:creator>janine</dc:creator>
		<pubDate>Wed, 16 Sep 2009 08:57:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.janinedalton.com/blog/?p=237#comment-117825</guid>
		<description>Thanks for posting such a detailed explanation of your progress with this Mari. I&#039;ll have to get my head around it when I get a chance! It&#039;s a great feeling when you manage to get some cool scripts to play together :)</description>
		<content:encoded><![CDATA[<p>Thanks for posting such a detailed explanation of your progress with this Mari. I&#8217;ll have to get my head around it when I get a chance! It&#8217;s a great feeling when you manage to get some cool scripts to play together <img src='http://www.janinedalton.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
