<?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>Newport Creative Group</title>
	<atom:link href="http://newportcreativegroup.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://newportcreativegroup.com</link>
	<description>Website Design and Development</description>
	<lastBuildDate>Sat, 28 May 2011 15:03:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Modifying the Members Plugin by Justin Tadlock for Multisite Installations</title>
		<link>http://newportcreativegroup.com/blog/2011/01/27/modifying-the-members-plugin-by-justin-tadlock-for-multisite-installations/</link>
		<comments>http://newportcreativegroup.com/blog/2011/01/27/modifying-the-members-plugin-by-justin-tadlock-for-multisite-installations/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 17:52:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks & Mods]]></category>
		<category><![CDATA[Members Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://newportcreativegroup.com/?p=219</guid>
		<description><![CDATA[Justin Tadlock&#39;s Members plugin has become pretty much a default piece of every project I do lately. The ability to fine grain user permissions is almost always a critical part of any business website built using WordPress. A typical set up might involve employees having low level access to backend functions, managers having greater abilities, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://justintadlock.com/archives/2009/09/17/members-wordpress-plugin">Justin Tadlock&#39;s Members plugin</a> has become pretty much a default piece of every project I do lately. The ability to fine grain user permissions is almost always a critical part of any business website built using WordPress. A typical set up might involve employees having low level access to backend functions, managers having greater abilities, and owners having access to nearly everything &#8230; with &quot;nearly&quot; being the key word. There are a number of things &#8212; like the ability to switch themes or update plugins &#8212; that I don&#39;t want clients accessing in case they accidentally make a change that causes problems with their site.</p>
<p>With the Members plugin you can pretty easily set up roles that are appropriate for your particular application. On a recent project using a multisite install of WordPress, however, I came across a slightly annoying issue &#8212; the Members plugin is designed to not allow you to delete the default role or the role you&#39;re currently logged in with. In the case of the default role, you need to first change the default to something else, then you can go back and delete the current default role. All members who are assigned the current default role will be assigned the new default role when you delete the old one. So if your default was Subscriber and you make the new default be a custom role you created, say Member, when you delete Subscriber everyone with that role will be reassigned to Member.</p>
<p>If you&#39;re logged in and your account has the custom role Owner, you won&#39;t be able to delete that role for obvious reasons. You&#39;d need to log out and log back in as another role with delete_roles permissions. The issue I ran into is that with Multisite, when I&#39;m logged in as a Super Admin I have no ability to delete roles. I don&#39;t want to have to create an account for each site, give that account the delete_roles capability, and then log out and back in everytime I want to make a change.</p>
<p>The solution? A small modification to the edit-roles.php file, located in <strong>/plugins/members/components/</strong>. Change as follows:</p>
<div style="padding:10px;border:1px solid black;margin-bottom:10px;background:#f2f2f2;"><span style="background-color:yellow;">#160</span>&nbsp;&nbsp; &lt;?php if ( $role !== $default_role &amp;&amp; !$user-&gt;has_cap( $role ) ) { ?&gt;</div>
<p>To</p>
<div style="padding:10px;border:1px solid black;margin-bottom:10px;background:#f2f2f2;"><span style="background-color:yellow;">#160</span> &nbsp;&lt;?php if ( $role !== $default_role &amp;&amp; ( !$user-&gt;has_cap( $role ) || is_super_admin() &amp;&amp; $role !==&#39;administrator&#39;)) { ?&gt;</div>
<p>Now super admins will be able to delete any role except for their own (Administrator) and the default role.</p>
<p>If you prefer, you can download the modified file here and simply replace the existing one:</p>
<div><a href="http://newportcreativegroup.com/wp-content/plugins/download-monitor/download.php?id=4"><img class='download' src="http://newportcreativegroup.com/down.png" alt="Members Plugin revised edit-roles.php File" /></a> Downloaded 90 times</div>
<p>Wondering how to change the default role for a particular site when you&#39;re using Multisite? You don&#39;t have the option on your General Settings tab like you do on a single site install. To do it in Multisite go to your Super Admin menu and click on Sites. Go to the site you want to change and click on Edit. Then scroll down the screen full of settings and you&#39;ll find Default Role with a text box next to it showing your current default. To change it type the name of the new role you wish to substitute using the role name, not the role display name. For example, you might have created a role called Paid Members but the role name might be <strong>paid-members</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://newportcreativegroup.com/blog/2011/01/27/modifying-the-members-plugin-by-justin-tadlock-for-multisite-installations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solution For Mailpress Causing Errors with the Lost Password Email in WordPress</title>
		<link>http://newportcreativegroup.com/blog/2011/01/14/solution-for-mailpress-causing-errors-with-the-lost-password-email-in-wordpress/</link>
		<comments>http://newportcreativegroup.com/blog/2011/01/14/solution-for-mailpress-causing-errors-with-the-lost-password-email-in-wordpress/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 01:24:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks & Mods]]></category>
		<category><![CDATA[mailpress]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://newportcreativegroup.com/?p=213</guid>
		<description><![CDATA[I came across a problem today with a client site where I&#8217;m using Mailpress to handle both a newsletter and all of the default WordPress emails. Everything was working beautifully except for the lost password emails. If a user submitted the lost password form they got the email they were supposed to with the link [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a problem today with a client site where I&#8217;m using Mailpress to handle both a newsletter and all of the default WordPress emails. Everything was working beautifully except for the lost password emails. If a user submitted the lost password form they got the email they were supposed to with the link to reset their password. But clicking on the link resulted in the dreaded:</p>
<p><strong>The email could not be sent. Possible reason: your host may have disabled the mail() function.</strong></p>
<p>But weirdly enough the email COULD be sent, and in fact it was.</p>
<p>For those who simply want the solution, here you go. For those who are curious about what caused the problem, it&#8217;s explained below.</p>
<p>Solution:</p>
<p>In the Mailpress plugin folder open /mp-includes/wp_pluggable.class.php and replace the following code:</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">/**</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> * wp_mail() - Function to send mail</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> */</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">if ( !function_exists( 'wp_mail' ) ) :</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	function wp_mail( $to, $subject, $message, $headers = '', $attachements = false )</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	{</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		MP_Pluggable::wp_mail( $to, $subject, $message, $headers, $attachements);</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	}</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">endif;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">/plugins/mailpress/mp-includes/wp_pluggable.class.php</div></li></ol></pre></div></div>
<p>With this modified version:</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">/**</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> * wp_mail() - Function to send mail</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> */</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">if ( !function_exists( 'wp_mail' ) ) :</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	function wp_mail( $to, $subject, $message, $headers = '', $attachements = false )</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	{</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	$result =	MP_Pluggable::wp_mail( $to, $subject, $message, $headers, $attachements);</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	if($result!=0){</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	return $result;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	}</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	}</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">endif;</div></li></ol></pre></div></div>
<p>That&#8217;s it, you&#8217;re good to go.</p>
<p>Now, for those who are wondering why this happened. WordPress allows programmers to override it&#8217;s wp_mail function and several others by simply declaring a function with the same name. It does this by wrapping the wp_mail( ) function in the following condition:</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">if ( !function_exists( 'wp_mail' ) ) :</div></li></ol></pre></div></div>
<p>What this means is, if there isn&#8217;t already a function called wp_mail, then go ahead and proceed with creating one. But if there is, then skip this. Since your plugin and theme files get loaded before the file where this code is (/wp-includes/pluggable.php starting at line 233), your version of wp_mail already exists and hence it&#8217;s the one that gets used.</p>
<p>Mailpress takes advantage of this to define it&#8217;s own version of wp_mail &#8212; that&#8217;s what you just changed in the code above. And it works great. Except for when it comes to the reset password process. The reason is this: When you click on the reset password link in the first email, you are being sent to <strong>wp-login.php</strong> with two pieces of info. appended to the URL &#8212; a unique reset password key and your user login. The wp-login.php file does some magic to verify that key and generate a new password which is inserted into the database and then emailed to you. But before it generates the new password, it checks to make sure that it can actually send it to you.</p>
<p>In wp-login.php starting at line 259 you&#8217;ll find the following code:</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">if ( $message &amp;&amp; !wp_mail($user-&gt;user_email, $title, $message) )</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  		wp_die( __('The e-mail could not be sent.') . &quot;&lt;br /&gt;\n&quot; . __('Possible reason: your host may have disabled the mail() function.') );</div></li></ol></pre></div></div>
<p>It looks to see if a message has been created and if so it calls the wp_mail function. The ! &#8212; which is a PHP operator meaning NOT &#8212; means that if wp_mail() doesn&#8217;t return some value, then something is wrong so stop the process (otherwise you&#8217;d never get your new password).</p>
<p>And that&#8217;s where the bug is. WordPress expects wp_mail to return &#8220;true&#8221; if it was successful. Mailpress&#8217;s version of wp_mail returns the number of emails sent. So when you hit the login page and WordPress does it&#8217;s check to see if it should go ahead and reset your password, it never gets back a response and it fails. By making the slight tweak to return the result, it gets the response it&#8217;s looking for and all is good.</p>
<p>Hope that helps a few of you out.</p>
]]></content:encoded>
			<wfw:commentRss>http://newportcreativegroup.com/blog/2011/01/14/solution-for-mailpress-causing-errors-with-the-lost-password-email-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Pagination Class for WP Plugins &amp; Projects</title>
		<link>http://newportcreativegroup.com/blog/2011/01/06/easy-pagination-class-for-wp-plugins-projects/</link>
		<comments>http://newportcreativegroup.com/blog/2011/01/06/easy-pagination-class-for-wp-plugins-projects/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 01:48:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://newportcreativegroup.com/?p=210</guid>
		<description><![CDATA[I&#8217;m currently working on a client project built using WordPress that involves a number of custom templates and some custom database tables. I have a few pages where I need to show client records in table form with navigation through through the results (previous, next, jump to record X, etc.). As I was about to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working on a client project built using WordPress that involves a number of custom templates and some custom database tables. I have a few pages where I need to show client records in table form with navigation through through the results (previous, next, jump to record X, etc.). As I was about to start coding up a class to handle it I thankfully did a quick Google search first and found: <a href="http://www.catchmyfame.com/2007/07/28/finally-the-simple-pagination-class/">http://www.catchmyfame.com/2007/07/28/finally-the-simple-pagination-class/</a></p>
<p>The one file class allows you to easily paginate any database results with all of the above navigation options. Integrating it into WordPress was a matter of tweaking the URL parameters it was based on. With that done I simply included the class in a custom plugin I&#8217;m writing for this project, declared a new global instance of the paginator class (so that I could access it on my templates) and that was it, all set.</p>
<p>I&#8217;ve attached the modified file as a download. The original site has great instructions on how to use it as well. The section of the site where I&#8217;m using it isn&#8217;t publicly accessible but I&#8217;ll stick a demo up here shortly showing how to use it in WordPress.</p>
<a href="http://newportcreativegroup.com/wp-content/plugins/download-monitor/download.php?id=3"><img class='download' src="http://newportcreativegroup.com/down.png" alt="Wordpress Paginator" /></a> Downloaded 105 times
]]></content:encoded>
			<wfw:commentRss>http://newportcreativegroup.com/blog/2011/01/06/easy-pagination-class-for-wp-plugins-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gravity Forms Ajax Submits Fails in IE &#8212; Here&#8217;s the Fix</title>
		<link>http://newportcreativegroup.com/blog/2010/12/07/gravity-forms-ajax-submits-fails-in-ie-heres-the-fix/</link>
		<comments>http://newportcreativegroup.com/blog/2010/12/07/gravity-forms-ajax-submits-fails-in-ie-heres-the-fix/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 04:32:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Gravity Forms]]></category>
		<category><![CDATA[Hacks & Mods]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://newportcreativegroup.com/?p=205</guid>
		<description><![CDATA[Ran into a problem with Gravity Forms, IE8 and ajax form submission where it was kicking out an &#8220;error, object expected&#8221; every time. After many hours of digging through the code I figured out the issue. Short version is that the way it was written, when you first load a page with a form it [...]]]></description>
			<content:encoded><![CDATA[<p>Ran into a problem with Gravity Forms, IE8 and ajax form submission where it was kicking out an &#8220;error, object expected&#8221; every time. After many hours of digging through the code I figured out the issue.</p>
<p>Short version is that the way it was written, when you first load a page with a form it gets output on the page. When you submit via ajax, the request goes back to that same form function, and checks to see what the result is. The result is passed to a hidden iframe, then that content is used to replace the existing form HTML.</p>
<p>The issue is that what is being passed to the iframe INCLUDES the jquery call to make it all work, wrapped in a document.ready() call. When it is passed to the iframe, IE8 doesn&#8217;t see jquery as being loaded &#8212; it treats the iframe like a totally separate page. The solution was to split the jquery stuff out on ajax pages so that it is loaded only the first time the page is loaded, and all that is sent to the iframe is the actual form.</p>
<p>An updated copy of form_display.php is attached. Just download, replace the one in your plugin folder and you&#8217;re good to go.</p>
<a href="http://newportcreativegroup.com/wp-content/plugins/download-monitor/download.php?id=2"><img class='download' src="http://newportcreativegroup.com/down.png" alt="Gravity Forms Form-Display.PHP Update" /></a> Downloaded 184 times
]]></content:encoded>
			<wfw:commentRss>http://newportcreativegroup.com/blog/2010/12/07/gravity-forms-ajax-submits-fails-in-ie-heres-the-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Access a New WordPress Install without the Admin Account Info</title>
		<link>http://newportcreativegroup.com/blog/2010/12/06/access-a-new-wordpress-install-without-the-admin-account-info/</link>
		<comments>http://newportcreativegroup.com/blog/2010/12/06/access-a-new-wordpress-install-without-the-admin-account-info/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 23:08:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks & Mods]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://newportcreativegroup.com/?p=203</guid>
		<description><![CDATA[If you&#8217;ve ever done a new install of WordPress and for whatever reason not gotten the initial email with the admin user name and password, you know it can be a real pain in the arse. I know people who have ended  up deleting the install and doing it over again thinking there was no [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever done a new install of WordPress and for whatever reason not gotten the initial email with the admin user name and password, you know it can be a real pain in the arse. I know people who have ended  up deleting the install and doing it over again thinking there was no other way to access WP.</p>
<p>If you have access to the WP database however, you are in luck.</p>
<p>Using PhpMyAdmin or your dbase tool of choice, access the new WordPress table and browse the wp_users table &#8211; there will be one record, for the new admin user.</p>
<p>WP uses a function called wp_hash_password() to generate the passwords. So I just did an echo of wp_hash_password(‘password’) to see what it would store in the database if you used “password” as your password. Output is: <strong>$P$BWRXG..rmf7CMNWqugvFlwWj.7pwQl/</strong></p>
<p>So just paste that in the admin password field and then you can login to WP using “password” as your password and then change it from your Profile link.<span id="_marker"> *Make sure you do change that password immediately for security reasons.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://newportcreativegroup.com/blog/2010/12/06/access-a-new-wordpress-install-without-the-admin-account-info/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let Mailpress Themes Live in Your Blogs Theme Directory</title>
		<link>http://newportcreativegroup.com/blog/2010/12/02/let-mailpress-themes-live-in-your-blogs-theme-directory/</link>
		<comments>http://newportcreativegroup.com/blog/2010/12/02/let-mailpress-themes-live-in-your-blogs-theme-directory/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 22:52:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks & Mods]]></category>
		<category><![CDATA[mailpress]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://newportcreativegroup.com/?p=197</guid>
		<description><![CDATA[*Note: Code revised Dec. 5, 2010 Mailpress is a great plugin that continues to develop into a more commercial grade product even though it is still completely free. While it isn&#8217;t as robust (yet) as PhpList or some of the other options out there, it does integrate entirely with WordPress and has some really great [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #800000;">*Note: Code revised Dec. 5, 2010</span></p>
<p>Mailpress is a great plugin that continues to develop into a more commercial grade product even though it is still completely free. While it isn&#8217;t as robust (yet) as PhpList or some of the other options out there, it does integrate entirely with WordPress and has some really great functionality. What it suffers from most is a lack of clear documentation and some residual quirks in programming. One of the most annoying of those quirks is the &#8220;Don&#8217;t use automatic upgrade&#8221; warning it always shows you on the plugins page. Why does it say that? Because your custom mail templates are stored in the plugin&#8217;s folder and would get overwritten if you updated automatically. That lovingly crafted &#8220;Welcome to my site&#8221; template you labored over for hours would be gone.</p>
<p>Looking for a workaround to that issue also brought up another issue: On a WPMU or 3.0+ site with multiple blogs, I don&#8217;t want the various custom templates for each blog being shown to all the others. Site 1&#8242;s templates shouldn&#8217;t be visible to Site 2, and vice versa.</p>
<p>The latest version of Mailpress (v 5.0.1) includes a sample config file and has some typically crpytic notes indicating you can use this to move your template files somewhere else within the plugin folder structure, but isn&#8217;t too clear on how to do it and offers no help for getting them out of the plugin and into the theme folders. But with a little hacking, I was able to work that one out.</p>
<p>Take the mailpress-config-sample.php file in the main Mailpress folder and rename it to mailpress-config.php. It&#8217;s mostly some hard to follow comments with a bit of code at the bottom. Replace that code with the following:</p>
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://newportcreativegroup.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">/*NCG CUSTOM CODE TO PUT MAILPRESS THEMES IN EACH BLOG'S THEME FOLDER */</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">add_filter('MailPress_theme_root', 'MailPress_theme_root', 8, 1);</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">function MailPress_theme_root($path) {</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	$folder = 'mail-templates';</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	$my_path = get_theme_root() . '/' . get_template() . '/' . $folder;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	return (is_dir($my_path)) ? $my_path : $path;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">}</div></li></ol></pre></div></div>
<p><span style="color: #800000;">*The code above is updated with the improved version by Mailpress, see comments below.</span></p>
<p>What we&#8217;re doing is looking to see if the current theme has a folder in it called <strong>mail-templates</strong> (feel free to change that to whatever you like). If it does, then Mailpress will look in there for theme folders. If it doesn&#8217;t, then Mailpress defaults to the standard themes that come with the plugin (and are located in the plugin&#8217;s mp-content folder).</p>
<p>Now all of my email templates are right alongside the rest of my themes, safe and sound from future upgrades and my various site users only see files that are applicable to them.</p>
]]></content:encoded>
			<wfw:commentRss>http://newportcreativegroup.com/blog/2010/12/02/let-mailpress-themes-live-in-your-blogs-theme-directory/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Contact Information</title>
		<link>http://newportcreativegroup.com/blog/2010/10/12/contact-information/</link>
		<comments>http://newportcreativegroup.com/blog/2010/10/12/contact-information/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 22:19:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://newportcreativegroup.com/?p=183</guid>
		<description><![CDATA[Newport Creative Group 1300 Park Newport Drive Newport Beach, CA 92660 tel: 949-734-0758 fax: 208-493-4001]]></description>
			<content:encoded><![CDATA[<div style="border: 1px solid black;margin-bottom: 30px"><div id='map_1' style='width:348px; height:248px;' class='googleMap'></div>
<div id='dir_1'></div>
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function(){
if (GBrowserIsCompatible()) {
    wpGMaps.wpNewMap(1, {"name":"Newport Creative Group","mousewheel":true,"zoompancontrol":false,"typecontrol":false,"directions_to":true,"directions_from":false,"width":"348px","height":"248px","description":"Newport Creative Group","address":"1300 Park Newport Drive #317, Newport Beach, CA 92660"});
}
});
//]]&gt;
</script></div>
<p><strong>Newport Creative Group</strong></p>
<p>1300 Park Newport Drive<br />
Newport Beach, CA 92660</p>
<p>tel: 949-734-0758<br />
fax: 208-493-4001</p>
]]></content:encoded>
			<wfw:commentRss>http://newportcreativegroup.com/blog/2010/10/12/contact-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Essential Oils for Us</title>
		<link>http://newportcreativegroup.com/blog/2010/10/05/essential-oils-for-us/</link>
		<comments>http://newportcreativegroup.com/blog/2010/10/05/essential-oils-for-us/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 16:22:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://newportcreativegroup.com/?p=169</guid>
		<description><![CDATA[Website: EssentialOilsForUs.com Description: Client needed a site designed and launched within one week in order to capitalize on sales opportunities at a national equestrian event. The site needed to incorporate the ability to display videos and integrate with an Amazon.com mechant referral account.]]></description>
			<content:encoded><![CDATA[<p><strong>Website</strong>: <a href="http://EssentialOilsForUs.com" target="_blank">EssentialOilsForUs.com</a><br />
<strong>Description</strong>: Client needed a site designed and launched within one week in order to capitalize on sales opportunities at a national equestrian event. The site needed to incorporate the ability to display videos and integrate with an Amazon.com mechant referral account.</p>
]]></content:encoded>
			<wfw:commentRss>http://newportcreativegroup.com/blog/2010/10/05/essential-oils-for-us/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quillin Consulting</title>
		<link>http://newportcreativegroup.com/blog/2010/10/04/quillin-consulting/</link>
		<comments>http://newportcreativegroup.com/blog/2010/10/04/quillin-consulting/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 01:49:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Testimonials]]></category>

		<guid isPermaLink="false">http://newportcreativegroup.com/?p=166</guid>
		<description><![CDATA[I really appreciate your expertise in all of this process. The site is really polished and well received. It is an awesome face for my rapidly-growing company.]]></description>
			<content:encoded><![CDATA[<p>I really appreciate your expertise in all of this process. The site is really polished and well received. It is an awesome face for my rapidly-growing company.</p>
]]></content:encoded>
			<wfw:commentRss>http://newportcreativegroup.com/blog/2010/10/04/quillin-consulting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for WP Query Posts Plugin Not Displaying Single Posts</title>
		<link>http://newportcreativegroup.com/blog/2010/09/24/fix-for-wp-query-posts-plugin-not-displaying-single-posts/</link>
		<comments>http://newportcreativegroup.com/blog/2010/09/24/fix-for-wp-query-posts-plugin-not-displaying-single-posts/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 20:04:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks & Mods]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://newportcreativegroup.com/?p=111</guid>
		<description><![CDATA[http://wordpress.org/support/topic/plugin-query-posts-show-specific-id-doesnt-work?replies=8#post-1708609 Problem and my fix are documented there. In a nutshell, the plug-in won&#8217;t work correctly when you&#8217;re attempting to show a single post by ID #. Fix is to add in the following code at line 123: /*NCG edit */ if( $instance['post']) $args['p'] = $instance['post'];]]></description>
			<content:encoded><![CDATA[<p>http://wordpress.org/support/topic/plugin-query-posts-show-specific-id-doesnt-work?replies=8#post-1708609</p>
<p>Problem and my fix are documented there. In a nutshell, the plug-in won&#8217;t work correctly when you&#8217;re attempting to show a single post by ID #. Fix is to add in the following code at line 123:</p>
<p>		/*NCG edit */<br />
		if( $instance['post'])<br />
		$args['p'] = $instance['post'];</p>
]]></content:encoded>
			<wfw:commentRss>http://newportcreativegroup.com/blog/2010/09/24/fix-for-wp-query-posts-plugin-not-displaying-single-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

