<?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"
	>

<channel>
	<title>smugblog: Web Tricks</title>
	<atom:link href="http://blogs.smugmug.com/web-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.smugmug.com/web-tricks</link>
	<description>what, you don't like the way it works already?</description>
	<pubDate>Mon, 14 Jul 2008 21:42:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6-bleeding2</generator>
	<language>en</language>
			<item>
		<title>Customizing over on Dgrin</title>
		<link>http://blogs.smugmug.com/web-tricks/2008/07/14/closing-up-shop/</link>
		<comments>http://blogs.smugmug.com/web-tricks/2008/07/14/closing-up-shop/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 21:31:04 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.smugmug.com/web-tricks/?p=24</guid>
		<description><![CDATA[Want more web tricks?  Head on over to Digital Grin - it&#8217;s our photography, support, and customizing forum. It&#8217;s easy to join, free, and you get amazing help there, from dedicated Smuggers and photography pros.  Here&#8217;s the direct link to the customizing forum  and here&#8217;s a great thread to start out  [...]]]></description>
			<content:encoded><![CDATA[<p>Want more web tricks?  Head on over to <a href="http://www.dgrin.com">Digital Grin</a> - it&#8217;s our photography, support, and customizing forum. It&#8217;s easy to join, free, and you get amazing help there, from dedicated Smuggers and photography pros.  Here&#8217;s the direct link to the <a href="http://www.dgrin.com/forumdisplay.php?f=31">customizing forum</a>  and here&#8217;s a <a href="http://www.dgrin.com/showthread.php?t=52812">great thread to start out  with</a>, for your customization needs:<br />
If you&#8217;d like help in registering and posting on Dgrin, that&#8217;s right <a href="http://dgrin.smugmug.com/gallery/2588068/1/136393291">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.smugmug.com/web-tricks/2008/07/14/closing-up-shop/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Changing slideshow options</title>
		<link>http://blogs.smugmug.com/web-tricks/2005/09/19/changing-slideshow-options/</link>
		<comments>http://blogs.smugmug.com/web-tricks/2005/09/19/changing-slideshow-options/#comments</comments>
		<pubDate>Mon, 19 Sep 2005 17:47:15 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.smugmug.com/web-tricks/2005/09/19/changing-slideshow-options/</guid>
		<description><![CDATA[Here is how to change the duration for the slideshow. In the body tag put this:

&#60;body onload=&#34;updateSS();&#34;&#62; &#60;/body&#62;
In the javascript section, put this:

function updateSS() {
     // look at the body tags classes, if it is the homepage then swap
     bodyClass = document.getElementsByTagName(&#34;body&#34;)[0].className;
     if [...]]]></description>
			<content:encoded><![CDATA[<p>Here is how to change the duration for the slideshow. In the body tag put this:</p>
<pre class="codebox"><code>
&lt;body onload=&quot;updateSS();&quot;&gt; &lt;/body&gt;</code></pre>
<p>In the javascript section, put this:</p>
<pre class="codebox"><code>
function updateSS() {
     // look at the body tags classes, if it is the homepage then swap
     bodyClass = document.getElementsByTagName(&quot;body&quot;)[0].className;
     if (bodyClass.indexOf(&quot;slideshow&quot;) != -1) {
          slideDuration = 3;
          document.getElementById(&quot;duration&quot;).value = &quot;3&quot;;
     }
}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blogs.smugmug.com/web-tricks/2005/09/19/changing-slideshow-options/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Changing shopping cart action text</title>
		<link>http://blogs.smugmug.com/web-tricks/2005/09/06/changing-shopping-cart-action-text/</link>
		<comments>http://blogs.smugmug.com/web-tricks/2005/09/06/changing-shopping-cart-action-text/#comments</comments>
		<pubDate>Wed, 07 Sep 2005 02:22:51 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.smugmug.com/web-tricks/2005/09/06/changing-shopping-cart-action-text/</guid>
		<description><![CDATA[We came up with our &#8220;this photo&#8221; and &#8220;multiple photos&#8221; after much thought - but we understand that everyone has their own idea of perfection. Here is how you could change what the cart action text says for the top nav (feel free to swap out albumNav_top with albumNav_bottom):

onload  = redoCart;
function redoCart() {
  [...]]]></description>
			<content:encoded><![CDATA[<p>We came up with our &#8220;this photo&#8221; and &#8220;multiple photos&#8221; after much thought - but we understand that everyone has their own idea of perfection. Here is how you could change what the cart action text says for the top nav (feel free to swap out albumNav_top with albumNav_bottom):</p>
<pre class="codebox"><code>
onload  = redoCart;
function redoCart() {
   bodyClass = document.getElementsByTagName(&quot;body&quot;)[0].className;
   if (bodyClass.indexOf(&quot;smugmug&quot;) != -1 || bodyClass.indexOf(&quot;journal&quot;) != -1 || bodyClass.indexOf(&quot;default&quot;) != -1 || bodyClass.indexOf(&quot;singleImage&quot;) != -1) {
      topCart = document.getElementById(&quot;albumNav_top&quot;).innerHTML;
      topCart = topCart.replace(&#8217;this photo&#8217;,'just this photo&#8217;);
      topCart = topCart.replace(&#8217;multiple photos&#8217;,'this photo and others&#8217;);
      document.getElementById(&quot;albumNav_top&quot;).innerHTML = topCart;
   }
}
</code></pre>
<p>Smugmug small needs some totally different tests since it uses different wording - but you should get the jist <img src='http://blogs.smugmug.com/web-tricks/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.smugmug.com/web-tricks/2005/09/06/changing-shopping-cart-action-text/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Squaring up Bio and Journal Text</title>
		<link>http://blogs.smugmug.com/web-tricks/2005/09/02/squaring-up-bio-and-journal-text/</link>
		<comments>http://blogs.smugmug.com/web-tricks/2005/09/02/squaring-up-bio-and-journal-text/#comments</comments>
		<pubDate>Fri, 02 Sep 2005 20:34:11 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.smugmug.com/web-tricks/2005/09/02/squaring-up-bio-and-journal-text/</guid>
		<description><![CDATA[Some of you don&#8217;t prefer the new wrapping of the text around the bio image; here is some code to get it to be squared up again:

#userBio {
     width: 550px;
     display: inline;
     float: left;
     position: relative;
}
.journal_entry .caption {
  [...]]]></description>
			<content:encoded><![CDATA[<p>Some of you don&#8217;t prefer the new wrapping of the text around the bio image; here is some code to get it to be squared up again:</p>
<pre class="codebox"><code>
#userBio {
     width: 550px;
     display: inline;
     float: left;
     position: relative;
}
.journal_entry .caption {
     width: 325px;
     display: inline;
     float: left;
     position: relative;
}
</code></pre>
<p>You may need to tweak the width of both to get them just right - and the journal code is a generic width, so it may not work for every single image on the page - you may want to switch to using the caption_id that is specifically assigned to each one.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.smugmug.com/web-tricks/2005/09/02/squaring-up-bio-and-journal-text/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hidden captions and navigation</title>
		<link>http://blogs.smugmug.com/web-tricks/2005/09/02/hidden-captions-and-navigation/</link>
		<comments>http://blogs.smugmug.com/web-tricks/2005/09/02/hidden-captions-and-navigation/#comments</comments>
		<pubDate>Fri, 02 Sep 2005 15:42:53 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.smugmug.com/web-tricks/2005/09/02/hidden-captions-and-navigation/</guid>
		<description><![CDATA[So every gallery style on the site now has a caption above and below the photo; here is how to turn off the caption below and turn on the caption above:

#caption_top {
     display: block;
}
#caption_bottom {
     display: none;
}

Also, smugmug and smugmug small have navigation hidden at the bottom [...]]]></description>
			<content:encoded><![CDATA[<p>So every gallery style on the site now has a caption above and below the photo; here is how to turn off the caption below and turn on the caption above:</p>
<pre class="codebox"><code>
#caption_top {
     display: block;
}
#caption_bottom {
     display: none;
}
</code></pre>
<p>Also, smugmug and smugmug small have navigation hidden at the bottom of the page as well - you just need to turn it on:</p>
<pre class="codebox"><code>
#smugmug_small #albumNav_bottom, #smugmug #albumNav_bottom {
	display: none;
}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blogs.smugmug.com/web-tricks/2005/09/02/hidden-captions-and-navigation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using HTML in your bio, caption or description</title>
		<link>http://blogs.smugmug.com/web-tricks/2005/09/02/using-html-in-your-bio-caption-or-description/</link>
		<comments>http://blogs.smugmug.com/web-tricks/2005/09/02/using-html-in-your-bio-caption-or-description/#comments</comments>
		<pubDate>Fri, 02 Sep 2005 15:29:23 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.smugmug.com/web-tricks/2005/09/02/using-html-in-your-bio-caption-or-description/</guid>
		<description><![CDATA[So for a while now we have let you use HTML in some areas and not others, and even where you could put HTML up - we tweaked it for you because not everyone knows HTML. We would auto convert linebreaks to  tags and auto-link any website or email address we found - making [...]]]></description>
			<content:encoded><![CDATA[<p>So for a while now we have let you use HTML in some areas and not others, and even where you could put HTML up - we tweaked it for you because not everyone knows HTML. We would auto convert linebreaks to <br /> tags and auto-link any website or email address we found - making your anchor tags pretty much useless.</p>
<p>Well, I got smart about it. All previous entries will work the same way. However, if you want to use HTML in your Bio, desctiption or caption, please wrap the code in <html></html> tags. Doing this will tell us NOT to convert line breaks and not to auto link sites/emails.</p>
<p>Sample:</p>
<pre class="codebox"><code>
&lt;html&gt;
&lt;h2&gt;This is my bio&lt;/h2&gt;
&lt;/html&gt;
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blogs.smugmug.com/web-tricks/2005/09/02/using-html-in-your-bio-caption-or-description/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Swapping homepage boxes</title>
		<link>http://blogs.smugmug.com/web-tricks/2005/09/01/swapping-homepage-boxes/</link>
		<comments>http://blogs.smugmug.com/web-tricks/2005/09/01/swapping-homepage-boxes/#comments</comments>
		<pubDate>Thu, 01 Sep 2005 19:33:04 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.smugmug.com/web-tricks/2005/09/01/swapping-homepage-boxes/</guid>
		<description><![CDATA[So let&#8217;s say you want friends and family down at the bottom of the page and you galleries up higher. This code will do it for you:

// look to swap after the page is loaded
onload = swapFF;
// the swap function
function swapFF() {
     // look at the body tags classes, if it [...]]]></description>
			<content:encoded><![CDATA[<p>So let&#8217;s say you want friends and family down at the bottom of the page and you galleries up higher. This code will do it for you:</p>
<pre class="codebox"><code>
// look to swap after the page is loaded
onload = swapFF;
// the swap function
function swapFF() {
     // look at the body tags classes, if it is the homepage then swap
     bodyClass = document.getElementsByTagName(&quot;body&quot;)[0].className;
     if (bodyClass.indexOf(&quot;homepage&quot;) != -1) {
          swap = document.getElementById(&quot;ffBox&quot;).innerHTML;
          document.getElementById(&quot;ffBox&quot;).innerHTML = document.getElementById(&quot;galleriesBox&quot;).innerHTML;
          document.getElementById(&quot;galleriesBox&quot;).innerHTML = swap;
     }
}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blogs.smugmug.com/web-tricks/2005/09/01/swapping-homepage-boxes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Green borders</title>
		<link>http://blogs.smugmug.com/web-tricks/2005/08/23/green-borders/</link>
		<comments>http://blogs.smugmug.com/web-tricks/2005/08/23/green-borders/#comments</comments>
		<pubDate>Tue, 23 Aug 2005 18:39:52 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.smugmug.com/web-tricks/2005/08/23/green-borders/</guid>
		<description><![CDATA[To change the borders for the images; use this code in your style section:

.imgBorderOn {
     border-color: red;
}

If you want to change what the default border color is; use this:

.imgBorder {
     border-color: blue;
}

]]></description>
			<content:encoded><![CDATA[<p>To change the borders for the images; use this code in your style section:</p>
<pre class="codebox"><code>
.imgBorderOn {
     border-color: red;
}
</code></pre>
<p>If you want to change what the default border color is; use this:</p>
<pre class="codebox"><code>
.imgBorder {
     border-color: blue;
}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blogs.smugmug.com/web-tricks/2005/08/23/green-borders/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Changing the homepage link</title>
		<link>http://blogs.smugmug.com/web-tricks/2005/08/23/changing-the-homepage-link/</link>
		<comments>http://blogs.smugmug.com/web-tricks/2005/08/23/changing-the-homepage-link/#comments</comments>
		<pubDate>Tue, 23 Aug 2005 16:14:30 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.smugmug.com/web-tricks/2005/08/23/changing-the-homepage-link/</guid>
		<description><![CDATA[Some of you have figured out that you can change the smugmug logo in the top left to something that suits your site.
But did you know that with some javascript you can also change what the image is linked to:

onload = changeHomelink;
function changeHomelink () {
     document.getElementById('homelink').href = 'http://www.dgrin.com';
}

]]></description>
			<content:encoded><![CDATA[<p>Some of you have <a href="http://bigwebguy.smugmug.com/gallery/626191">figured out</a> that you can change the smugmug logo in the top left to something that suits your site.</p>
<p>But did you know that with some javascript you can also change what the image is linked to:</p>
<pre class="codebox"><code>
onload = changeHomelink;
function changeHomelink () {
     document.getElementById('homelink').href = 'http://www.dgrin.com';
}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blogs.smugmug.com/web-tricks/2005/08/23/changing-the-homepage-link/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Styling individual pages</title>
		<link>http://blogs.smugmug.com/web-tricks/2005/08/18/styling-individual-pages/</link>
		<comments>http://blogs.smugmug.com/web-tricks/2005/08/18/styling-individual-pages/#comments</comments>
		<pubDate>Thu, 18 Aug 2005 16:22:02 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.smugmug.com/web-tricks/2005/08/18/styling-individual-pages/</guid>
		<description><![CDATA[With the release of the last of the gallery templates, I want to share with you some new functionality that you can use. You can now target your style to individual templates and/or specific galleries.
To make the green text red for only the journal pages on your site you could use:

.journal .title {
   [...]]]></description>
			<content:encoded><![CDATA[<p>With the release of the last of the gallery templates, I want to share with you some new functionality that you can use. You can now target your style to individual templates and/or specific galleries.</p>
<p>To make the green text red for only the journal pages on your site you could use:</p>
<pre class="codebox"><code>
.journal .title {
     color: red;
}
</code></pre>
<p>But remember, you don&#8217;t only have access to changing the title, you can change anything on the page that has a class or an ID, you can even target specific classes within IDs using the above method.</p>
<p>You can also target specific galleries now too (as well as images, keywords and dates pages) using this trick:</p>
<pre class="codebox"><code>
.gallery_417126 .title {
     color: red;
}
</code></pre>
<p>Now pay attention to the 417126 in the code above - that is the gallery number that I want to target, so you will have to change that to match the gallery number you want to target. You can also target images, keyword and date pages. The following example text that is in all caps are variables depending on what Image# you want, or the keywords you have searched for, or the dates you have sepcified; simply swap .gallery_GALLERY# in my previous example with one of them.</p>
<p>.image_IMAGE#<br />
.keyword_KEYWORDREQUEST<br />
.date_DATESTART-DATESTOP</p>
<p>We can even take all of this a step further and target a specific gallery style and gallery by using this code:</p>
<pre class="codebox"><code>
.journal.gallery_417126 .title {
     color: red;
}
</code></pre>
<p>As you can see, the new changes open up a lot of possibilites. I&#8217;d love to start seeing <a href="http://mikelane.smugmug.com/gallery/641933">more examples</a> of what is going on out there!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.smugmug.com/web-tricks/2005/08/18/styling-individual-pages/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
