<?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>Wordpress Melbourne</title>
	<atom:link href="http://www.wordpressmelbourne.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wordpressmelbourne.com</link>
	<description>blog designer</description>
	<lastBuildDate>Fri, 06 Jan 2012 01:24:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>moving wordpress..</title>
		<link>http://www.wordpressmelbourne.com/wordpress-support/moving-wordpress/</link>
		<comments>http://www.wordpressmelbourne.com/wordpress-support/moving-wordpress/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 12:52:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Support]]></category>
		<category><![CDATA[wordpress-blog]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://www.wordpressmelbourne.com/?p=627</guid>
		<description><![CDATA[..and correcting the new image paths. I recently changed the directory that one of my WordPress sites was in. For SEO Reasons i thought &#8220;websites-melbourne&#8221; is a much more semantic directory name then &#8220;pixelstormv5&#8243;. I followed the method listed on the wordpress codex Moving WordPress and everything went smoothly. Except my images were not visible. [...]]]></description>
			<content:encoded><![CDATA[<h3>..and correcting the new image paths.</h3>
<p>I recently changed the directory that one of my WordPress sites was in.<br />
For SEO Reasons i thought &#8220;websites-melbourne&#8221; is a much more semantic directory name then &#8220;pixelstormv5&#8243;.</p>
<p>I followed the method listed on the wordpress codex <a href="http://codex.wordpress.org/Moving_WordPress">Moving WordPress</a> and everything went smoothly. Except my images were not visible. All my images where hardcoded in using custom fields with relative urls. eg:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php"><span class="php-operator">/</span>pixelstormv<span class="php-number">5</span><span class="php-operator">/</span>images<span class="php-operator">/</span>website<span class="php-operator">-</span><span class="php-number">0</span><span class="php-number">5</span><span class="php-operator">.</span>jpg<span class="php-operator">.</span></span></pre>
</div>
<p>So the problem was the image path needed to be changed on each individual post. Changing 187 image paths manually is time intensive. I try to avoid manual alterations like this and went searching for a more dynamic way.</p>
<p>Here is that dynamic way.</p>
<p>access you database via php myAdmin. Click the SQL button. No do a SQL find and replace using the below code.</p>
<h3>Find and replace meta data in the mysql database.</h3>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php">update TABLE_NAME set FIELD_NAME <span class="php-operator">=</span> replace<span class="php-brackets">(</span>FIELD_NAME, ‘find this <span class="php-var-type">string</span>’, ‘replace found <span class="php-var-type">string</span> with this <span class="php-var-type">string</span>’<span class="php-brackets">)</span>;</span></pre>
</div>
<p>As i mentioned before. I use custom fields for all my image paths.<br />
<img title="screenshot_01" src="http://www.wordpressmelbourne.com/wp-content/uploads/2012/01/screenshot_01.jpg" alt="" width="504" height="67" /></p>
<p>So all my image paths are in the table &#8220;wp_postmeta&#8221; table of the database. Therefore, my script looked like this.</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php">update wp_postmeta SET meta_value <span class="php-operator">=</span> replace<span class="php-brackets">(</span>meta_value,<span class="php-string">&quot;pixelstormv5&quot;</span>,<span class="php-string">&quot;websites-melbourne&quot;</span><span class="php-brackets">)</span>;</span></pre>
</div>
<p>Click go and let the script run. If it worked. the Script just saved you hours of frustrating manual adjustments. And was far more accurate then a human could be. Computers don&#8217;t get distracted and start day dreaming of more enjoyable tasks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpressmelbourne.com/wordpress-support/moving-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>budget wordpress website in 1 hour</title>
		<link>http://www.wordpressmelbourne.com/wordpress-support/budget-wordpress-website-in-1-hour/</link>
		<comments>http://www.wordpressmelbourne.com/wordpress-support/budget-wordpress-website-in-1-hour/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 01:09:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Support]]></category>
		<category><![CDATA[wordpress-blog]]></category>
		<category><![CDATA[training]]></category>

		<guid isPermaLink="false">http://www.wordpressmelbourne.com/?p=617</guid>
		<description><![CDATA[Setting up the foundation of a WordPress website will take about 1 hour. Providing: The domain name has been purchased and the domain name server is pointing to the correct location (your hosting space). The hosting space has been setup and has the ability to create at least one Mysql database. The Parental Animations website [...]]]></description>
			<content:encoded><![CDATA[<p>Setting up the foundation of a WordPress website will take about 1 hour. Providing:</p>
<ul>
<li>The domain name has been purchased and the domain name server is pointing to the correct location (your hosting space). </li>
<li>The hosting space has been setup and has the ability to create at least one Mysql database. </li>
</ul>
<p>The Parental Animations website below is a real world example of what can be accomplished in just one hour of website training with WordPress.<br />
It&#8217;s a pretty good starting point for a website on a budget.</p>
<p><a href="http://parentinganimations.org/">visit site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpressmelbourne.com/wordpress-support/budget-wordpress-website-in-1-hour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feather theme</title>
		<link>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/feather-theme/</link>
		<comments>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/feather-theme/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 07:02:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress designer folio melbourne]]></category>
		<category><![CDATA[wordpress-blog]]></category>
		<category><![CDATA[premium]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.wordpressmelbourne.com/?p=522</guid>
		<description><![CDATA[I had the pleasure of modifying the Elegant Themes premium &#8220;Feather&#8221; theme recently. And it&#8217;s a step in the right direction for the WordPress community. Visit Site Handy little features such as swappable background: textures / colors give the owner a chance to input a little of their own creativity into the theme. Along with [...]]]></description>
			<content:encoded><![CDATA[<p>I had the pleasure of modifying the <a href="http://www.elegantthemes.com/">Elegant Themes</a> premium &#8220;Feather&#8221; theme recently. And it&#8217;s a step in the right direction for the WordPress community.</p>
<p><a href="http://redtreeconsulting.com.au/" />Visit Site</a></p>
<div class="clear"><span></span></div>
<p><img src="http://www.wordpressmelbourne.com/wp-content/gallery/cache/21__559x_screenshot_04_0.jpg" alt="screenshot_04_0" title="screenshot_04_0"></p>
<div class="clear"><span></span></div>
<p>Handy little features such as swappable background: textures / colors give the owner a chance to input a little of their own creativity into the theme.</p>
<div class="clear"><span></span></div>
<p><img class="alignleft size-full wp-image-526" title="screenshot_02" src="http://www.wordpressmelbourne.com/wp-content/uploads/2011/10/screenshot_02.jpg" alt="" width="486" height="551" /></p>
<div class="clear"><span></span></div>
<p>Along with picture overlay graphics which add a bit more depth to the design.</p>
<div class="clear"><span></span></div>
<p><img class="alignleft size-full wp-image-528" title="screenshot_03" src="http://www.wordpressmelbourne.com/wp-content/uploads/2011/10/screenshot_03.jpg" alt="" width="218" height="145" /></p>
<div class="clear"><span></span></div>
<p>It comes with all your standard page templates with a few extras thrown in too. The final list is plentiful and looks like this.</p>
<div class="clear"><span></span></div>
<p><img class="alignleft size-full wp-image-524" title="Picture-1(2)_03" src="http://www.wordpressmelbourne.com/wp-content/uploads/2011/10/Picture-12_03.jpg" alt="" width="292" height="211" /></p>
<div class="clear"><span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/feather-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>E-commerce Multisite on WordPress.</title>
		<link>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/e-commerce-multisite-on-wordpress/</link>
		<comments>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/e-commerce-multisite-on-wordpress/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 04:24:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress designer folio melbourne]]></category>
		<category><![CDATA[wordpress-blog]]></category>
		<category><![CDATA[e-commerce]]></category>

		<guid isPermaLink="false">http://www.wordpressmelbourne.com/?p=423</guid>
		<description><![CDATA[I&#8217;ve spent countless hours looking for a wordPress multi-site e-commerce solution. Here is what i went through before settling on my final solution. WpEcommerce There where a few bugs when i was testing this. And answers in the forum where hard to come by. This was the premium version of the plugin too. Shopp Nice [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent countless hours looking for a wordPress multi-site e-commerce solution. Here is what i went through before settling on my final solution.</p>
<ul id = "E-commerce-software-list">
<li><strong>WpEcommerce</strong> There where a few bugs when i was testing this. And answers in the forum where hard to come by. This was the premium version of the plugin too.</li>
<li><strong>Shopp</strong> Nice plugin but, doesn&#8217;t support multisite as yet.</li>
<li><strong>YAK</strong> Probably not suited to my audience, the use of shortcodes could make it a hard to explain to users how to upload products. </li>
<li><strong>Cart66 (phpurchase)</strong> Tax options not available for Australia </li>
</ul>
<p>I used <a href="http://premium.wpmudev.org/" target = "_blank" alt="wordpress e-commerce software"><strong>WPMU&#8217;s Marketpress</strong></a> for the final solution. It was really the only option i had for an E-commerce multisite with wordpress.</p>
<p>The draw-backs to WPMU where plentiful. </p>
<ul>
<li>WPMU products themes/plugins are loaded with unused buddypress code. I don&#8217;t use buddypress. I don&#8217;t even know what it is exactly.</li>
<li>The marketpress software i&#8217;snt brilliant but it works.</li>
<li>The only source of documentation is the forum</li>
<li>I found The support team frustrating. They would prefer to dodge questions rather then provide straight answers on the software capabilities. They are in america somewhere and there is a massive time difference to Melbourne. This made the process so slow.</li>
<li>So many times i asked the support team detailed questions, with screenshots etc, only to wait 15 hours for a basic routine response like &#8220;Is the plugin switched on?&#8221;</li>
<li>Fortunately for WPMU, when your monthly membership expires you aren&#8217;t allowed to post forum messages. I think this is quite an unethical business practice. I feel as if I&#8217;m paying to notify them of bugs in their software</li>
<li>WPMU are expensive.</li>
<p>This was a difficult project in general as there is plenty of functionality to consider with multisites. You have multiple accounts, multiple sites, different user roles and capabilities <i>Gasp</i> I got in done, and i have got to say I quite enjoyed creating this monster. New people sign up everyday. New products being uploaded consistently and for me, it&#8217;s a peek inside a world of craft I never new existed.</p>
<p>
<a target="_blank" href="http://www.ybrmarket.com.au">Visit Site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/e-commerce-multisite-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress lessons melbourne</title>
		<link>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/wordpress-lessons-melbourne/</link>
		<comments>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/wordpress-lessons-melbourne/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 04:06:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress designer folio melbourne]]></category>
		<category><![CDATA[wordpress-blog]]></category>
		<category><![CDATA[premium]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.wordpressmelbourne.com/?p=492</guid>
		<description><![CDATA[WordPress themes can often be quite simple and easy to workout. That&#8217;s fine simple is good. But what about some of those jaw-dropping, must-have Wp themes. Are they simple? Easy to work out? Well, some of them can test you. They will test your time, your patience and your knowledge of WordPress. Remember many themes [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress themes can often be quite simple and easy to workout. That&#8217;s fine simple is good. But what about some of those jaw-dropping, must-have Wp themes. Are they simple? Easy to work out?</p>
<p>Well, some of them can test you. They will test your time, your patience and your knowledge of WordPress. Remember many themes come with access to a forum. But often support these kaotic forums are scary and its hard to get the support you require.</p>
<p>The High Art Theme is one of those drop dead gorgeous WP themes that comes with a couple advanced techniques ingrained into its core. It expects everyone to have a certain level of knowledge in order to use the theme as advertised.</p>
<p>I&#8217;m here for those who don&#8217;t want to spent the time working things out. I can show you how. Provide wordpress and theme specific training. Its quick, it&#8217;s painless, its friendly and effective.</p>
<p>Below is the HighArt theme which i got know quit intimately whilst working through a few customizations for &#8220;Girl Printer&#8221; Carolyn Fraser. </p>
<p>
<a target="_blank" href="http://www.carolynfraser.com">Visit Site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/wordpress-lessons-melbourne/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple facebook Connect. What is the shortcode for manual Like</title>
		<link>http://www.wordpressmelbourne.com/wordpress-blog/simple-facebook-connect-what-is-the-shortcode-for-manual-like/</link>
		<comments>http://www.wordpressmelbourne.com/wordpress-blog/simple-facebook-connect-what-is-the-shortcode-for-manual-like/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 02:16:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress-blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[social media]]></category>

		<guid isPermaLink="false">http://www.wordpressmelbourne.com/?p=496</guid>
		<description><![CDATA[Social media is not just a link to facebook. For far more in-depth facebook integration checkout &#8220;simple facebook connect&#8221; http://wordpress.org/extend/plugins/simple-facebook-connect/ This wordpress plugin is very popular, And its creator &#8220;Otto&#8221; is a busy man, so finding snippets of specific information can be difficult. I&#8217;m going to do you a solid and spare you the trouble [...]]]></description>
			<content:encoded><![CDATA[<p>Social media is not just a link to facebook. For far more in-depth facebook integration checkout &#8220;simple facebook connect&#8221; <a href ="http://wordpress.org/extend/plugins/simple-facebook-connect/">http://wordpress.org/extend/plugins/simple-facebook-connect/</a> This wordpress plugin is very popular, And its creator &#8220;Otto&#8221; is a busy man, so finding snippets of specific information can be difficult. I&#8217;m going to do you a solid and spare you the trouble of finding the shortcode for manual insertion of the facebook like button. </p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre>[fb-like]</pre>
</div>
<p>This code, can go straight into any wordpress post or page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpressmelbourne.com/wordpress-blog/simple-facebook-connect-what-is-the-shortcode-for-manual-like/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom theme creation</title>
		<link>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/custom-theme-creation/</link>
		<comments>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/custom-theme-creation/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 23:48:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress designer folio melbourne]]></category>
		<category><![CDATA[custom wordpress theme]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.wordpressmelbourne.com/?p=483</guid>
		<description><![CDATA[Although there is plenty of free wordPress themes out there. Nothing beats custom made. Custom made themes are great for people that know exactly what they want. Custom made themes have a reputation for being expensive. Not true. Custom made themes will become expensive if you don&#8217;t know what you want. Being crystal clear about [...]]]></description>
			<content:encoded><![CDATA[<p>Although there is plenty of free wordPress themes out there. Nothing beats custom made. Custom made themes are great for people that know exactly what they want. Custom made themes have a reputation for being expensive. Not true. Custom made themes will become expensive if you don&#8217;t know what you want. Being crystal clear about what you want can be quite the money saver.</p>
<p>
<a target="_blank" href="http://www.mydogeatspoop.net">Visit Site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/custom-theme-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress template help</title>
		<link>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/wordpress-template-help/</link>
		<comments>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/wordpress-template-help/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 23:39:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress designer folio melbourne]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.wordpressmelbourne.com/?p=475</guid>
		<description><![CDATA[Some templates look great, but can be a little difficult to figure out. MVP Sports Marketing had a little trouble with their template &#8220;Work-A-Holic&#8221;, so they called me. I was able to fix the template issues and teach them how it all worked in less then an hour. Visit Site]]></description>
			<content:encoded><![CDATA[<p>Some templates look great, but can be a little difficult to figure out. MVP Sports Marketing had a little trouble with their template &#8220;Work-A-Holic&#8221;, so they called me. I was able to fix the template issues and teach them how it all worked in less then an hour.</p>
<p>
<a target="_blank" href="http://www.mvpsportsbranding.com">Visit Site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpressmelbourne.com/wordpress-designer-folio-melbourne/wordpress-template-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import large mysql database file using terminal</title>
		<link>http://www.wordpressmelbourne.com/wordpress-blog/impor-large-mysql-database-using-terminal/</link>
		<comments>http://www.wordpressmelbourne.com/wordpress-blog/impor-large-mysql-database-using-terminal/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 01:07:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress-blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.wordpressmelbourne.com/?p=453</guid>
		<description><![CDATA[Some databases are to big to copy using phpMyAdmin. So we need to use terminal. Firstly, save your large database file from Php myAdmin as an Sql file to you hard drive folder on your desktop. Fire up terminal. Now change the cd (current directory) of terminal by typing in 1 cd / Desktop Hit [...]]]></description>
			<content:encoded><![CDATA[<p>Some databases are to big to copy using phpMyAdmin. So we need to use terminal.</p>
<p>Firstly, save your large database file from Php myAdmin as an Sql file to you hard drive folder on your desktop. </p>
<p>Fire up terminal.</p>
<p>Now change the cd (current directory) of terminal by typing in
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php">cd <span class="php-operator">/</span> Desktop</span></pre>
</div>
<p> Hit enter.</p>
<p>Now, according to terminal, your Desktop location is actually your main Hard drive folder not the place that displays your screen savers. So that is where we will be importing your file from.</p>
<p>Next step is to tell terminal the location of your Sql file and grant access to the database you want to copy your large SQL file into. So copy in this code</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php"><span class="php-operator">/</span>path<span class="php-operator">-</span>to<span class="php-operator">-</span>the<span class="php-operator">-</span>mysql<span class="php-operator">-</span>database<span class="php-operator">-</span>you<span class="php-operator">-</span>are<span class="php-operator">-</span>copying<span class="php-operator">-</span>to<span class="php-operator">/</span> <span class="php-operator">-</span>u database_username <span class="php-operator">-</span>p database_name <span class="php-operator">&lt;</span> my_database<span class="php-operator">.</span>sql</span></pre>
</div>
<p> Change the path to your mysql file, database name, database username, and the file name of the large database file accordingly.<br />
Hit the Enter key.</p>
<p>If successful, it will ask for the password of the database. Type it in, hit Enter. Wait a moment&#8230;</p>
<p>Terminal will return with the current location.<br />
No &#8220;Congratulations&#8221; messages, just the current location. Terminal is all business.</p>
<p>For safety, exit terminal by typing in
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php">exit</span></pre>
</div>
<p>Hit Enter</p>
<p>Hoped this helped. there are already plenty of tutorials that cover this topic, but I wanted to write one for my own records, plus When i was following the other tutorials none actually worked for me the first time.<br />
So in writing this I got a chance to iron out some of the inaccuracies of the efforts of others.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpressmelbourne.com/wordpress-blog/impor-large-mysql-database-using-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom links for nextgen gallery single pics</title>
		<link>http://www.wordpressmelbourne.com/nextgen-gallery/custom-links-for-nextgen-gallery-single-pics/</link>
		<comments>http://www.wordpressmelbourne.com/nextgen-gallery/custom-links-for-nextgen-gallery-single-pics/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 09:14:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[nextgen gallery]]></category>
		<category><![CDATA[wordpress-blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.wordpressmelbourne.com/?p=426</guid>
		<description><![CDATA[I like to use Nextgen gallery to handle all my site images. But what happens when you want to display a &#8220;singlepic&#8221; ie: 1 But! You want it to link to some place special, rather then just enlarging the image in a thickbox. Firstly you obviously need the sensational NextGen Gallery installed, with at least [...]]]></description>
			<content:encoded><![CDATA[<p>I like to use Nextgen gallery to handle all my site images. But what happens when you want to display a &#8220;singlepic&#8221; ie:
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php"><span class="php-brackets">[</span>singlepic id<span class="php-operator">=</span><span class="php-number">1</span><span class="php-number">3</span> w<span class="php-operator">=</span><span class="php-number">3</span><span class="php-number">1</span><span class="php-number">2</span> h<span class="php-operator">=</span><span class="php-number">2</span><span class="php-number">1</span><span class="php-number">2</span><span class="php-brackets">]</span></span></pre>
</div>
<p> But! You want it to link to some place special, rather then just enlarging the image in a thickbox.</p>
<p>Firstly you obviously need the sensational <a href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank">NextGen Gallery</a> installed, with at least one gallery of images ready to go.</p>
<p>Secondly, get the <a href="http://wordpress.org/extend/plugins/nextgen-gallery-custom-fields/" target="_blank">NextGen Gallery Custom Fields</a> module. Install it, activate it, click on it (available from the left hand side admin menu) and create a new custom field for the &#8220;images&#8221; option rather then galleries. Give it a name. I called my custom field &#8220;link&#8221; as that&#8217;s what I&#8217;m using it for. I&#8217;m overriding the default link.</p>
<p>Then you&#8217;ll be asked what galleries you want your new &#8220;link&#8221; custom field to be available in. I created a gallery specifically for my front page and for my blog. So I linked my new custom field to both.</p>
<p>You need to make an adjustment to your nextgen gallery &#8220;singlepic.php&#8221; located in plugins/nextgengallery/view/.<br />
replace this: </p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
</pre>
<pre><span class="php"><span class="php-operator">&lt;</span>a href<span class="php-operator">=</span><span class="php-string">&quot;&lt;?php echo $image-&gt;imageURL ?&gt;&quot;</span> title<span class="php-operator">=</span><span class="php-string">&quot;&lt;?php echo $image-&gt;linktitle ?&gt;&quot;</span> <span class="php-script-tag">&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>thumbcode <span class="php-script-tag">?&gt;<span class="html"> &gt;
	<span class="html-image-element">&lt;img class=<span class="html-attribute">&quot;</span></span></span>&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>classname <span class="php-script-tag">?&gt;<span class="html">&quot; src=&quot;</span>&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>thumbnailURL <span class="php-script-tag">?&gt;<span class="html">&quot; alt=&quot;</span>&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>alttext <span class="php-script-tag">?&gt;<span class="html">&quot;
	title=&quot;</span>&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>alttext <span class="php-script-tag">?&gt;<span class="html">&quot; /&gt;<span class="html-anchor-element">&lt;/a&gt;</span>
</span>&lt;?php</span> <span class="php-keyword">if</span> <span class="php-brackets">(</span><span class="php-operator">!</span><span class="php-keyword">empty</span> <span class="php-brackets">(</span><span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>caption<span class="php-brackets">)</span><span class="php-brackets">)</span> <span class="php-operator">:</span> <span class="php-script-tag">?&gt;<span class="html"><span class="html-other-element">&lt;span&gt;</span></span>&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>caption <span class="php-script-tag">?&gt;<span class="html"><span class="html-other-element">&lt;/span&gt;</span></span>&lt;?php</span> <span class="php-keyword">endif</span>; <span class="php-script-tag">?&gt;<span class="html">
</span>&lt;?php</span> <span class="php-keyword">endif</span>; <span class="php-script-tag">?&gt;<span class="html"></span></span></span></pre>
</div>
<p>With this:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre>
<pre><span class="php"><span class="php-operator">&lt;</span>a href<span class="php-operator">=</span><span class="php-string">&quot;&lt;?php echo $image-&gt;ngg_custom_fields[&quot;</span><span class="php-function">link</span><span class="php-string">&quot;]; ?&gt;&quot;</span>
title<span class="php-operator">=</span><span class="php-string">&quot;&lt;?php echo $image-&gt;description ?&gt;&quot;</span>
<span class="php-script-tag">&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>thumbcode <span class="php-script-tag">?&gt;<span class="html">  &gt;
<span class="html-image-element">&lt;img title=<span class="html-attribute">&quot;</span></span></span>&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>alttext <span class="php-script-tag">?&gt;<span class="html">&quot;
alt=&quot;</span>&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>alttext <span class="php-script-tag">?&gt;<span class="html">&quot; src=&quot;</span>&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>
thumbnailURL <span class="php-script-tag">?&gt;<span class="html">&quot;
</span>&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>size <span class="php-script-tag">?&gt;<span class="html"> /&gt;<span class="html-anchor-element">&lt;/a&gt;</span>

</span>&lt;?php</span> <span class="php-keyword">if</span> <span class="php-brackets">(</span><span class="php-operator">!</span><span class="php-keyword">empty</span> <span class="php-brackets">(</span><span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>caption<span class="php-brackets">)</span><span class="php-brackets">)</span> <span class="php-operator">:</span> <span class="php-script-tag">?&gt;<span class="html"><span class="html-other-element">&lt;span&gt;</span></span>&lt;?php</span> <span class="php-keyword">echo</span> <span class="php-var">$image</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>caption <span class="php-script-tag">?&gt;<span class="html"><span class="html-other-element">&lt;/span&gt;</span></span>&lt;?php</span> <span class="php-keyword">endif</span>; <span class="php-script-tag">?&gt;<span class="html">
</span>&lt;?php</span> <span class="php-keyword">endif</span>; <span class="php-script-tag">?&gt;<span class="html"></span></span></span></pre>
</div>
<p>Notice how we are echoing out a custom field called &#8220;link&#8221;. Which was the name given to the custom field we made earlier.</p>
<p>Back to NgGallery now and you will see you are free to add whatever link you like, to whatever image you like. Effectively overriding the default nextgen gallery links.</p>
<p>Remember, If you update nextgen gallery plugin, this change will be overwritten, and the images will link to full size images again. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpressmelbourne.com/nextgen-gallery/custom-links-for-nextgen-gallery-single-pics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

