<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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>Support Forum - Topic: Download links inside the lightbox</title>
		<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox</link>
		<description>Support Forum - Topic: Download links inside the lightbox</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 19:45:22 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/download-links-inside-the-lightbox" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-94262</link>
			<pubDate>Thu, 31 Jan 2013 07:23:37 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">94262@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi! &#60;/p&#62;
&#60;p&#62; Thanks for the hint :) &#60;/p&#62;
&#60;p&#62; Best regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nuforms on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-94232</link>
			<pubDate>Wed, 30 Jan 2013 22:45:29 +0000</pubDate>
			<dc:creator>nuforms</dc:creator>
			<guid isPermaLink="false">94232@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Dude,&#60;/p&#62;
&#60;p&#62;Thanks for this solution!&#60;br /&#62;
First I thought prepend method works best for me, since you can add html element where you want without replacing existed content like html does, it cuts out all content from block which is applied to.&#60;br /&#62;
Only one small problem with prepend, when you browse more than one image in prettyphoto gallery, it prepend urls to existed ones, so after switching some images you have mix of urls :)&#60;/p&#62;
&#60;p&#62;So it's better to use html:&#60;/p&#62;
&#60;p&#62;First insert:&#60;br /&#62;
&#60;code&#62;&#38;lt;div class=&#38;quot;pp_download_place&#38;quot;&#38;gt;&#38;lt;/div&#38;gt; \&#60;/code&#62;&#60;br /&#62;
Before:&#60;br /&#62;
&#60;code&#62;&#38;lt;a class=&#38;quot;pp_close&#38;quot; href=&#38;quot;#&#38;quot;&#38;gt;Close&#38;lt;/a&#38;gt; \&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;And then as you described with html method:&#60;br /&#62;
&#60;code&#62;$pp_pic_holder.find(&#38;#39;.pp_details .pp_download_place&#38;#39;).html(&#38;#39;&#38;lt;a class=&#38;quot;pp_download&#38;quot; href=&#38;quot;&#38;#39;+pp_images[set_position]+&#38;#39;&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;&#38;#39;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;BR,&#60;br /&#62;
Aleksandr
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-24472</link>
			<pubDate>Tue, 09 Aug 2011 20:11:11 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24472@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that I could help you :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Monsoon on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-24468</link>
			<pubDate>Tue, 09 Aug 2011 17:59:57 +0000</pubDate>
			<dc:creator>Monsoon</dc:creator>
			<guid isPermaLink="false">24468@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;/clap&#60;br /&#62;
that did it thank you so much I have been banging my head on the desk and it was so simple :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-24422</link>
			<pubDate>Tue, 09 Aug 2011 05:57:18 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24422@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ok, I looked into it and the problem is that the parser function doesn't use the markup itself but only small snippets. The easiest way is to replace:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;image_markup: &#38;#39;&#38;lt;img id=&#38;quot;fullResImage&#38;quot; src=&#38;quot;{path}&#38;quot; /&#38;gt;&#38;#39;,&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;image_markup: &#38;#39;&#38;lt;img id=&#38;quot;fullResImage&#38;quot; src=&#38;quot;{path}&#38;quot; /&#38;gt;&#38;lt;a class=&#38;quot;pp_download&#38;quot; href=&#38;quot;{path}&#38;quot;&#38;gt;Download&#38;lt;/a&#38;gt;&#38;#39;,&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Another way is to use the jquery append functions: &#60;a href=&#34;http://api.jquery.com/append/&#34; rel=&#34;nofollow&#34;&#62;http://api.jquery.com/append/&#60;/a&#62; , &#60;a href=&#34;http://api.jquery.com/prepend/&#34; rel=&#34;nofollow&#34;&#62;http://api.jquery.com/prepend/&#60;/a&#62; and/or the html function: &#60;a href=&#34;http://api.jquery.com/html/&#34; rel=&#34;nofollow&#34;&#62;http://api.jquery.com/html/&#60;/a&#62; to inject the download link somewhere. You can write your code after following line:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$pp_pic_holder.find(&#38;#39;#pp_full_res&#38;#39;)[0].innerHTML = settings.image_markup.replace(/{path}/g,pp_images[set_position]);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and you can use this variable:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;pp_images[set_position]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62; to get the image url. I'm not sure what's the best methode because you can rearrange and style the download link with html classes and css too.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Monsoon on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-24393</link>
			<pubDate>Mon, 08 Aug 2011 20:35:13 +0000</pubDate>
			<dc:creator>Monsoon</dc:creator>
			<guid isPermaLink="false">24393@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Nahh tried that and the url becomes /folder/{path}&#60;/p&#62;
&#60;p&#62;the {path} is not being rewritten with the image location. I looked for a solution for weeks and gave up last may&#60;/p&#62;
&#60;p&#62;If you can make it work you will make a lot of people on the prettyphoto forums happy. I have no idea why the author after 8 months of being requested to add the option to have a download link still hasn t come through.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-24387</link>
			<pubDate>Mon, 08 Aug 2011 17:54:36 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24387@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Yes of course :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Monsoon on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-24385</link>
			<pubDate>Mon, 08 Aug 2011 17:44:54 +0000</pubDate>
			<dc:creator>Monsoon</dc:creator>
			<guid isPermaLink="false">24385@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You mean in the jquery.prettyPhoto.js ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-24244</link>
			<pubDate>Sat, 06 Aug 2011 08:28:50 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24244@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I didn't look into it in detail and maybe I'm missing something but it seems pretty easy to implement a download link. Prettyphoto uses this code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;img id=&#38;quot;fullResImage&#38;quot; src=&#38;quot;{path}&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to generate the main/fullwidth image. I assume that you can use the parameter everywhere in the code - i.e. it should be possible to replace:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;{pp_social} \
&#38;lt;a class=&#38;quot;pp_close&#38;quot; href=&#38;quot;#&#38;quot;&#38;gt;Close&#38;lt;/a&#38;gt; \&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;{pp_social} \
  &#38;lt;a class=&#38;quot;pp_download&#38;quot; href=&#38;quot;{path}&#38;quot;&#38;gt;Download&#38;lt;/a&#38;gt; \
  &#38;lt;a class=&#38;quot;pp_close&#38;quot; href=&#38;quot;#&#38;quot;&#38;gt;Close&#38;lt;/a&#38;gt; \&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Maybe styling, etc. is required but the code itself should work....
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Monsoon on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-24218</link>
			<pubDate>Fri, 05 Aug 2011 20:50:15 +0000</pubDate>
			<dc:creator>Monsoon</dc:creator>
			<guid isPermaLink="false">24218@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;A crapload of people for more than a year have been asking the guy who develops the lightbox (prettyphoto) to provide a simple way to have a download link in the lightbox. I spent countless hours trying to do so and had to use serious hacks to work around which is really stupid when all you need is a simple link to the asset. The only thing I could do was to pass the url of the image to another page.&#60;/p&#62;
&#60;p&#62;For your page you should be able to duplicate the place where it links to the lightbox in full size and remove the rel=prettyphoto or whatever the rel is so that it simply links to the image instead of launching the lightbox.&#60;/p&#62;
&#60;p&#62;Does that make sense?&#60;/p&#62;
&#60;p&#62;ie the button you have that says ORIGINAL, duplicate the code that generates that and remove the rel= and that should work&#60;/p&#62;
&#60;p&#62;EDIT: oh wait I think the theme rewrites the links hmmm
&#60;/p&#62;</description>
		</item>
		<item>
			<title>devilstar1987 on "Download links inside the lightbox"</title>
			<link>http://www.kriesi.at/support/topic/download-links-inside-the-lightbox#post-24203</link>
			<pubDate>Fri, 05 Aug 2011 13:16:49 +0000</pubDate>
			<dc:creator>devilstar1987</dc:creator>
			<guid isPermaLink="false">24203@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey guys,&#60;/p&#62;
&#60;p&#62;Is it very complicated to add a download image button to the lightbox?&#60;/p&#62;
&#60;p&#62;I've got it working so that you can view all the different sized images on the page (similar to how flickr works) however there is no way to download them!&#60;/p&#62;
&#60;p&#62;you can see an example here &#60;a href=&#34;http://www.pixelcove.co.uk/4colourprogress/pixels/picture/99/&#34; rel=&#34;nofollow&#34;&#62;http://www.pixelcove.co.uk/4colourprogress/pixels/picture/99/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
