<?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>SoCal Websites &#187; Scripts</title>
	<atom:link href="http://www.socalwebsites.com/blog/category/open-source/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.socalwebsites.com/blog</link>
	<description>Web hosting, SEO, Marketing, PR, WordPress, cPanel w/Fantastico and more!</description>
	<lastBuildDate>Sat, 20 Dec 2008 23:34:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Use iframe in WordPress</title>
		<link>http://www.socalwebsites.com/blog/2008/12/19/use-iframe-in-wordpress/</link>
		<comments>http://www.socalwebsites.com/blog/2008/12/19/use-iframe-in-wordpress/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:01:00 +0000</pubDate>
		<dc:creator>Alan Hartung</dc:creator>
				<category><![CDATA[Blogs]]></category>
		<category><![CDATA[Content Management Systems]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.socalwebsites.com/blog/?p=44</guid>
		<description><![CDATA[With WordPress&#8217;s custom page templates, you can now get iframes to work in the body of your pages.
After searching the internet far and wide for an iframe solution for WordPress, I mostly found uppity comments about how it was not secure, and you just should not use them.

Well, sometimes there are good uses for the [...]]]></description>
			<content:encoded><![CDATA[<p>With WordPress&#8217;s custom page templates, you can now get iframes to work in the body of your pages.</p>
<p>After searching the internet far and wide for an iframe solution for WordPress, I mostly found uppity comments about how it was not secure, and you just should not use them.</p>
<p><span id="more-44"></span><br />
Well, sometimes there are good uses for the iframe. Such as using an iframe for Google Calendar, or if a client uses some other third-party calendar provider and get their content through the use of the html tag iframe.</p>
<p>Remembering what I had to do to extend WordPress to be a more full-featured content management system, I took my cue and created a new page template. You could call it &#8220;calendar.php.&#8221;</p>
<p>It is in the template where I just chose to place all of my code for that page and pulled the iframe in rather nicely.</p>
<p>I used a PHP include to bring in the actual html, but I&#8217;m pretty sure it will work just putting the iframe code directly into the template file (though I have not tested that).</p>
<p>So if you&#8217;ve been beating your head against the wall looking for a way to get an iframe into the body of a WordPress page, this is a simple solution. Though one that is more technical than you should have to be for a content management system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.socalwebsites.com/blog/2008/12/19/use-iframe-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use sIFR with WordPress dropdown menus</title>
		<link>http://www.socalwebsites.com/blog/2008/11/25/use-sifr-with-wordpress-dropdown-menus/</link>
		<comments>http://www.socalwebsites.com/blog/2008/11/25/use-sifr-with-wordpress-dropdown-menus/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 05:26:24 +0000</pubDate>
		<dc:creator>Alan Hartung</dc:creator>
				<category><![CDATA[Blogs]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.socalwebsites.com/blog/?p=36</guid>
		<description><![CDATA[After much searching across the webosphere, I decided very few people have shared how to integrate sIFR with dropdown menus.
I found one example, but his solution did not work for me.
Taking his cue, however, I did implement SuperFish as a starting point.
Implementing SuperFish is pretty simple, so I&#8217;ll leave their documentation for that part of [...]]]></description>
			<content:encoded><![CDATA[<p>After much searching across the webosphere, I decided very few people have shared how to integrate sIFR with dropdown menus.</p>
<p>I found <a href="http://awesomoto.com/2008/02/15/make-sifr-and-suckerfish-play-nice-in-wordpress/">one example</a>, but his solution did not work for me.</p>
<p>Taking his cue, however, I did implement <a href="http://users.tpg.com.au/j_birch/plugins/superfish/">SuperFish</a> as a starting point.</p>
<p><span id="more-36"></span>Implementing SuperFish is pretty simple, so I&#8217;ll leave their documentation for that part of this &#8220;how to.&#8221;</p>
<p>After you get the SuperFish plugin working with wp_list_pages in WordPress, you run into a major problem with sIFR and any of the dropdown solutions for Wordpress. The CSS wp_list_pages creates is applied to the &lt;li&gt; tags, and sIFR will want to replace all of the sub-pages text as well as the text for the top level pages.</p>
<p>To get around this, I installed the plugin <a href="http://wordpress.org/extend/plugins/list-pages-plus/">List Pages Plus</a> and made a couple modifications.</p>
<p>Once you have the plugin activated, you need to edit the &#8220;list-pages-plus.php&#8221; file included. Change the following line:</p>
<p>$litem[$k] = &quot;\n\t&quot; . &#8216;&lt;li class=&quot;&#8217;.$class1.$ac.&#8217;&quot;&gt;&lt;a href=&quot;&#8217;.$href1.&#8217;&quot; title=&quot;&#8217;.$title1.$at.&#8217;&quot;&gt;&#8217;.$pre.$text1.$post.&#8217;&lt;/a&gt;&#8217;. &quot;\n\t &lt;ul&gt; \n\t&quot; .&#8217;&lt;li class=&quot;&#8217;.$class2.$sac.&#8217;&quot;&gt;&lt;a href=&quot;&#8217;.$href2.$sah.&#8217;&quot; title=&quot;&#8217;.$title2.$sat.&#8217;&quot;&gt;&#8217;.$spre.$text2.$spost.&#8217;&lt;/a&gt;&#8217;;</p>
<p>to:</p>
<p>$litem[$k] = &quot;\n\t&quot; . &#8216;&lt;li class=&quot;&#8217;.$class1.$ac.&#8217;&quot;&gt;&#8217;.$pre.&#8217;&lt;a href=&quot;&#8217;.$href1.&#8217;&quot; title=&quot;&#8217;.$title1.$at.&#8217;&quot;&gt;&#8217;.$text1.&#8217;&lt;/a&gt;&#8217;.$post. &quot;\n\t &lt;ul&gt; \n\t&quot; .&#8217;&lt;li class=&quot;&#8217;.$class2.$sac.&#8217;&quot;&gt;&lt;a href=&quot;&#8217;.$href2.$sah.&#8217;&quot; title=&quot;&#8217;.$title2.$sat.&#8217;&quot;&gt;&#8217;.$spre.$text2.$spost.&#8217;&lt;/a&gt;&#8217;;</p>
<p>And then change this line:</p>
<p>$litem[$k] = &quot;\n\t&quot; . &#8216;&lt;li class=&quot;&#8217;.$class.$ac.&#8217;&quot;&gt;&lt;a href=&quot;&#8217;.$href.&#8217;&quot; title=&quot;&#8217;.$title.$at.&#8217;&quot;&gt;&#8217;.$pre.$text.$post.&#8217;&lt;/a&gt;&#8217;;</p>
<p> endif;</p>
<p>to:</p>
<p>$litem[$k] = &quot;\n\t&quot; . &#8216;&lt;li class=&quot;&#8217;.$class.$ac.&#8217;&quot;&gt;&#8217;.$pre.&#8217;&lt;a href=&quot;&#8217;.$href.&#8217;&quot; title=&quot;&#8217;.$title.$at.&#8217;&quot;&gt;&#8217;.$text.&#8217;&lt;/a&gt;&#8217;.$post;</p>
<p> endif;</p>
<p>Now, if you really wanted to be complete, you should also change the position of the input box in the form for the admin, but it is not a necessary step. The hack will work whether it looks right in the admin form or not.</p>
<p>After you have made the above code changes, go into the settings for List Pages Plus and add &lt;div class=navReplace&gt; and &lt;/div&gt; to the last two input fields for the parent item.</p>
<p>Now, change wp_list_pages to wp_list_pages_plus in your header file (or wherever you are implementing your dropdown menu with sIFR for the top level).</p>
<p>Your last step is to use the span tag as your selector for your sIFR replacements. Using the class example I gave above, your selector would be &#8220;.navReplace&#8221;</p>
<p>If you do the above, you can get sIFR working on your top level navigation items with dropdown menus.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.socalwebsites.com/blog/2008/11/25/use-sifr-with-wordpress-dropdown-menus/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PRM &#8211; Keep the server load down</title>
		<link>http://www.socalwebsites.com/blog/2008/04/16/prm-keep-the-server-load-down/</link>
		<comments>http://www.socalwebsites.com/blog/2008/04/16/prm-keep-the-server-load-down/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 17:36:30 +0000</pubDate>
		<dc:creator>Alan Hartung</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Website Hosting]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://www.socalwebsites.com/blog/?p=29</guid>
		<description><![CDATA[Process Resource Monitor

When running a shared server environment, you must be extremely aware of activity which can take down your server. One rogue hosting account can ruin things for everyone.
While you should not allow an account to run poorly written scripts which create server intensive processes, a host should also not leave the server unprotected [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rfxnetworks.com/prm.php">Process Resource Monitor</a>
<prm @r-fx.org>
<p>When running a shared server environment, you must be extremely aware of activity which can take down your server. One rogue hosting account can ruin things for everyone.</prm><span id="more-29"></span></p>
<p>While you should not allow an account to run poorly written scripts which create server intensive processes, a host should also not leave the server unprotected from scripts which will increase the server load and bog or bring down the server.</p>
<p>Enter <a href="http://rfxnetworks.com/prm.php">PRM</a>. Process Resource Monitor will monitor processes on the server and check it for exceeding resource limits which you set in the config file. To be sure it doesn&#8217;t kill legitimate processes, you set the number of times a process must exceed your rules and the number of seconds between checks for a process to be killed.</p>
<p>PRM will keep your shared enviromnent running smoothly and help ensure one account does not bog down the server for everyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.socalwebsites.com/blog/2008/04/16/prm-keep-the-server-load-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bad Behavior Locked Up Websites</title>
		<link>http://www.socalwebsites.com/blog/2007/12/06/bad-behavior-locked-up-websites/</link>
		<comments>http://www.socalwebsites.com/blog/2007/12/06/bad-behavior-locked-up-websites/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 18:02:04 +0000</pubDate>
		<dc:creator>Alan Hartung</dc:creator>
				<category><![CDATA[Blogs]]></category>
		<category><![CDATA[Content Management Systems]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.socalwebsites.com/blog/2007/12/06/bad-behavior-locked-up-websites/</guid>
		<description><![CDATA[Possibly thousands of bloggers were thrown into a panic by being locked out of their own blogs the last couple of days. The popular &#8220;Bad Behavior&#8221; plug-in started banning nearly all IP&#8217;s and in many cases locking individual users out of their own blogs.
A friend could not even access his wp-admin page, because of the [...]]]></description>
			<content:encoded><![CDATA[<p>Possibly thousands of bloggers were thrown into a panic by being locked out of their own blogs the last couple of days. The popular &#8220;Bad Behavior&#8221; plug-in started banning nearly all IP&#8217;s and in many cases locking individual users out of their own blogs.</p>
<p>A friend could not even access his wp-admin page, because of the glitch in the plug-in!</p>
<p><span id="more-24"></span><br />
To the Bad Behavior author&#8217;s credit, he did issue a patched upgrade rather quickly. This is quite disturbing, however.</p>
<p>We noticed that this blog did not block us out of the main content or the admin, but it did prohibit MarsEdit from posting or retrieving posts. Very interesting. I&#8217;m not sure why the plug-in would only block certain types of access coming from the same IP. Because it was through MarsEdit, we did not see the standard Bad Behavior message. This makes it even more disturbing as we would have had no idea what was causing this failure in our offline blog editor.</p>
<p><a href="http://www.hybrid6.com/webgeek/">WebGeek</a> posts on &#8220;<a href="http://www.hybrid6.com/webgeek/2007/12/bad-behavior-behaving-badly.php">Bad Behavior Behaving Badly</a>&#8220;:</p>
<blockquote><p>This was no minor glitch, and something like this could have serious consequences for websites and businesses. If left unattended in this state for a long time, a site could lose valuable search engine rankings, after the spiders of the Big 3 (Google, Yahoo, and MSN) find that they are locked out repeatedly with 403 errors. It’s most likely that these losses would be temporary, but there’s no guarantee, and by that point the damage is done.</p></blockquote>
<p>And the <a href="http://www.bad-behavior.ioerror.us/2007/12/06/bad-behavior-2011/">explanation</a> comes from the <a href="http://www.bad-behavior.ioerror.us/">Bad Behavior blog</a>:</p>
<blockquote><p>Update: Some people have asked for more details on what exactly happened. In brief, yesterday I moved all of my sites to a new dedicated server. In the process, I decommissioned an old blacklist I was running which I thought wasn’t being used, not realizing that Bad Behavior was still set to use it. Shortly afterward, I found myself locked out of my own blog, just as you all did. So therefore, this release.</p></blockquote>
<p>WebGeek has recommended the removal of Bad Behavior from all blogs until stability can be assured. We agree, but suggest if you want to keep the updated version of Bad Behavior going on personal blogs you monitor closely, it will help to see if this plug-in has truly stabilized.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.socalwebsites.com/blog/2007/12/06/bad-behavior-locked-up-websites/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JavaScript Fix &#8211; IE ActiveX &#8211; Embedding QuickTime Video</title>
		<link>http://www.socalwebsites.com/blog/2007/04/27/javascript-fix-ie-activex-embedding-quicktime-video/</link>
		<comments>http://www.socalwebsites.com/blog/2007/04/27/javascript-fix-ie-activex-embedding-quicktime-video/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 18:32:52 +0000</pubDate>
		<dc:creator>Alan Hartung</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.socalwebsites.com/blog/2007/04/27/javascript-fix-ie-activex-embedding-quicktime-video/</guid>
		<description><![CDATA[JavaScript Fix for ActiveX
IE 7 changed the way it dealt with ActiveX, and if you have straight coded your object and embed tags in HTML, you need to change it to using JavaScript to call it.
Apple has provided a couple of different methods, I used Solution Two on a site very recently.
This fix works, and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://developer.apple.com/internet/ieembedprep.html">JavaScript Fix for ActiveX</a></p>
<p>IE 7 changed the way it dealt with ActiveX, and if you have straight coded your object and embed tags in HTML, you need to change it to using JavaScript to call it.</p>
<p>Apple has provided a couple of different methods, I <a href="http://www.jackmaxwell.com/jack-maxwell-video.php">used Solution Two</a> on a site very recently.</p>
<p>This fix works, and it is very simple to implement.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.socalwebsites.com/blog/2007/04/27/javascript-fix-ie-activex-embedding-quicktime-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
