<?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:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>marco ryan photography &#187; Slideshow</title>
	<atom:link href="http://www.marcoryanphotography.com/index.php/tag/slideshow/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcoryanphotography.com</link>
	<description>Marco Ryan - Travel and Landscape photographer based in Cairo, Egypt</description>
	<lastBuildDate>Sun, 29 Aug 2010 20:00:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Adding more slideshow images to your GraphPaperPress Modularity WordPress theme</title>
		<link>http://www.marcoryanphotography.com/index.php/2009/12/adding-more-slideshow-images-to-your-graphpaperpress-modularity-wordpress-theme/</link>
		<comments>http://www.marcoryanphotography.com/index.php/2009/12/adding-more-slideshow-images-to-your-graphpaperpress-modularity-wordpress-theme/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 14:59:53 +0000</pubDate>
		<dc:creator>Marco Ryan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[GraphPaperPress]]></category>
		<category><![CDATA[Modularity]]></category>
		<category><![CDATA[Slideshow]]></category>

		<guid isPermaLink="false">http://www.marcoryanphotography.com/?p=304</guid>
		<description><![CDATA[You will see that I updated my blog recently to use GraphPaperPress’ modularity theme – following Gavin Gough&#8217;s and Matt Brandon’s articles pointing out the options open to photographers with these excellent templates, especially the SEO capabilities and the integration with Photoshelter. The standard out of the box themes work really well, but inevitably I wanted [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.marcoryanphotography.com/wordpress/wp-content/uploads/2009/12/graph-paper-press-300x144.jpg"><img class="alignleft size-full wp-image-313" title="graph-paper-press-300x144" src="http://www.marcoryanphotography.com/wordpress/wp-content/uploads/2009/12/graph-paper-press-300x144.jpg" alt="" width="300" height="144" /></a>You will see that I updated my blog recently to use <a href="http://www.graphpaperpress.com" target="_blank">GraphPaperPress</a>’ modularity theme – following <a href="http://www.gavingough.com">Gavin Gough&#8217;s</a> and <a href="http://www.thedigitaltrekker.com" target="_blank">Matt Brandon’s</a> articles pointing out the options open to photographers with these excellent templates, especially the SEO capabilities and the integration with <a href="http://www.photoshelter.com" target="_blank">Photoshelter</a>. The standard out of the box themes work really well, but inevitably I wanted to tweak or change a few things, so I thought it might be helpful to spend a couple of posts sharing with others what I have done.The first of these is on adding images to the slideshow, the second will be on an amazing eCommerce integration option I have unearthed.</p>
<p>This post tells you how to to increase the number of images that are in the slideshow.</p>
<p>The good news is it is pretty simple. It does require  you to edit some code, but providing that you are careful and follow what I have done below, you can do this without any technical knowledge whatsoever. Before you start, just back-up a copy of your modularity theme, which you can find under your wordpress directory, eg ../wordpress/wp-content/themes/.</p>
<p>Okay, there are two php files that you will need to change, and we are going to make the changes using the built-in text editor within wordpress. From your wordpress dashboard, go to &#8220;Appearance&#8221; and select the &#8220;Editor&#8221; option. This will open up a screen with a box containing the file &#8220;customs.css&#8221; open and ready for editing. On the right there will be a list of all the files that are contained in the modularity theme. Go over to that list and double click on slideshow.php.</p>
<p>The page  will refresh and the text box will now contain the the php code that makes up  the slideshow.php file. Scroll down towards the bottom until you find the following Les the [code] tag which I have put in there so that is displays correctly and you can cut and paste it easily) :</p>
<p>[code]&lt;li&gt;&lt;img src="&lt;?php if ( get_option('gpp_slideshow_image_5') &lt;&gt; "" ) { echo get_option('gpp_slideshow_image_5'); } else { bloginfo('template_directory'); ?&gt;/images/slideshow/image5.jpg&lt;?php } ?&gt;" alt="&lt;?php bloginfo('name'); ?&gt;" /&gt;&lt;/li&gt;[code]</p>
<p>This is the code that displays your images into the slideshow - in this case in the 5th slot. The first thing we need to do is create some more slots in the slideshow to display how ever many more images you want to show. Effectively you need to copy this block  of code that refers to image number 5 and replicate it by the number images you want to add, ensuring that you change the numbers each time. Or you can copy and paste the code I have posted below to add another 5 images.</p>
<p>Here is the code for another 5 image (remember to strip out the two {code} tags):</p>
<p>[code]&lt;li&gt;&lt;img src="&lt;?php if ( get_option('gpp_slideshow_image_6') &lt;&gt; "" ) { echo get_option('gpp_slideshow_image_6'); } else { bloginfo('template_directory'); ?&gt;/images/slideshow/image6.jpg&lt;?php } ?&gt;" alt="&lt;?php bloginfo('name'); ?&gt;" /&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="&lt;?php if ( get_option('gpp_slideshow_image_7') &lt;&gt; "" ) { echo get_option('gpp_slideshow_image_7'); } else { bloginfo('template_directory'); ?&gt;/images/slideshow/image7.jpg&lt;?php } ?&gt;" alt="&lt;?php bloginfo('name'); ?&gt;" /&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="&lt;?php if ( get_option('gpp_slideshow_image_8') &lt;&gt; "" ) { echo get_option('gpp_slideshow_image_8'); } else { bloginfo('template_directory'); ?&gt;/images/slideshow/image8.jpg&lt;?php } ?&gt;" alt="&lt;?php bloginfo('name'); ?&gt;" /&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="&lt;?php if ( get_option('gpp_slideshow_image_9') &lt;&gt; "" ) { echo get_option('gpp_slideshow_image_9'); } else { bloginfo('template_directory'); ?&gt;/images/slideshow/image9.jpg&lt;?php } ?&gt;" alt="&lt;?php bloginfo('name'); ?&gt;" /&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="&lt;?php if ( get_option('gpp_slideshow_image_10') &lt;&gt; "" ) { echo get_option('gpp_slideshow_image_10'); } else { bloginfo('template_directory'); ?&gt;/images/slideshow/image10.jpg&lt;?php } ?&gt;" alt="&lt;?php bloginfo('name'); ?&gt;" /&gt;&lt;/li&gt;[code]</p>
<p>Now click on the "Update" button underneath the box. Okay part one done and you are about half way through!</p>
<p>Now we need to update the Homepage slideshow section of the modularity interface, to add the ability for us to upload the images and assign them to each of the slots that you have just created. In the editor, go back to the right hand side of the page and now open up theme_options.php</p>
<p>Scroll down until you find:</p>
<p>$options[] = array( "name" =&gt; "Slideshow image 5", "desc" =&gt; "Upload your fifth slideshow. Images should be sized at 950 pixels wide max, jpg only, compressed to 6, in sRGB mode.", "id" =&gt; $shortname."_slideshow_image_5", "std" =&gt; "", "type" =&gt; "upload");</p>
<p>Between the end of that code and the next block (that begins: $options[] = array( "name" =&gt; "Slideshow height", "desc" =&gt; "Enter the height, in pixels, that you want your slideshow to be.")</p>
<p>Insert the following:</p>
<p>[code]$options[] = array( "name" =&gt; "Slideshow image 6", "desc" =&gt; "Upload your sixth slideshow. Images should be sized at 950 pixels wide max, jpg only, compressed to 6, in sRGB mode.", "id" =&gt; $shortname."_slideshow_image_6", "std" =&gt; "", "type" =&gt; "upload");</p>
<p>$options[] = array( "name" =&gt; "Slideshow image 7", "desc" =&gt; "Upload your seventh slideshow. Images should be sized at 950 pixels wide max, jpg only, compressed to 6, in sRGB mode.", "id" =&gt; $shortname."_slideshow_image_7", "std" =&gt; "", "type" =&gt; "upload");</p>
<p>$options[] = array( "name" =&gt; "Slideshow image 8", "desc" =&gt; "Upload your eighth slideshow. Images should be sized at 950 pixels wide max, jpg only, compressed to 6, in sRGB mode.", "id" =&gt; $shortname."_slideshow_image_8", "std" =&gt; "", "type" =&gt; "upload");</p>
<p>$options[] = array( "name" =&gt; "Slideshow image 9", "desc" =&gt; "Upload your ninth slideshow. Images should be sized at 950 pixels wide max, jpg only, compressed to 6, in sRGB mode.", "id" =&gt; $shortname."_slideshow_image_9", "std" =&gt; "", "type" =&gt; "upload");</p>
<p>$options[] = array( "name" =&gt; "Slideshow image 10", "desc" =&gt; "Upload your tenth slideshow. Images should be sized at 950 pixels wide max, jpg only, compressed to 6, in sRGB mode.", "id" =&gt; $shortname."_slideshow_image_10", "std" =&gt; "", "type" =&gt; "upload");[code]</p>
<p>Now press the "Update" button below the text box to save and update the changes to the theme_options.php file.</p>
<p>That's it - all done!  To check everything is ok, go back to the modularity section, open up the Homepage slideshow section, and you will now find that you can upload another 5 images</p>
<p>Good luck</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcoryanphotography.com/index.php/2009/12/adding-more-slideshow-images-to-your-graphpaperpress-modularity-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
