<?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; Tips and Tricks</title>
	<atom:link href="http://www.socalwebsites.com/blog/category/tips-and-tricks/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>Use Minefield at the same time as Firefox</title>
		<link>http://www.socalwebsites.com/blog/2008/11/01/use-minefield-at-the-same-time-as-firefox/</link>
		<comments>http://www.socalwebsites.com/blog/2008/11/01/use-minefield-at-the-same-time-as-firefox/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 23:28:24 +0000</pubDate>
		<dc:creator>Alan Hartung</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.socalwebsites.com/blog/?p=34</guid>
		<description><![CDATA[Using MultiFirefox, you can use Minefield, the new beta version of Firefox, at the same time as Firefox 2 or 3.
You need to rename Firefox to something like Firefox Beta or Firefox Minefield to get MultiFirefox to recognize Minefield as a version of Firefox.
After renaming it and restarting multifirefox, you will be able to load [...]]]></description>
			<content:encoded><![CDATA[<p>Using <a href="http://codecontortionist.com/software/2008/multifirefox-20.html">MultiFirefox</a>, you can use Minefield, the new beta version of Firefox, at the same time as Firefox 2 or 3.</p>
<p>You need to rename Firefox to something like Firefox Beta or Firefox Minefield to get MultiFirefox to recognize Minefield as a version of Firefox.</p>
<p>After renaming it and restarting multifirefox, you will be able to load Minefield and any other version of Firefox compatible with multifirefox.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.socalwebsites.com/blog/2008/11/01/use-minefield-at-the-same-time-as-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel Set Default Address to :fail: no such address here</title>
		<link>http://www.socalwebsites.com/blog/2008/09/05/cpanel-set-default-address-to-fail-no-such-address-here/</link>
		<comments>http://www.socalwebsites.com/blog/2008/09/05/cpanel-set-default-address-to-fail-no-such-address-here/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 17:20:50 +0000</pubDate>
		<dc:creator>Alan Hartung</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Website Hosting]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://www.socalwebsites.com/blog/?p=30</guid>
		<description><![CDATA[Spam can cause problems with exim when it is both incoming and outgoing. Recently, we started getting excessive resource usage notices for two different customers. At first, it looked like their mail accounts were being used to spam the server.
After further analysis, we realized it was actually that the domains were being bombarded with spam [...]]]></description>
			<content:encoded><![CDATA[<p>Spam can cause problems with exim when it is both incoming and outgoing. Recently, we started getting excessive resource usage notices for two different customers. At first, it looked like their mail accounts were being used to spam the server.</p>
<p>After further analysis, we realized it was actually that the domains were being bombarded with spam to their accounts. Exim was raising the server load dramatically, because neither account had the default address set to <b>:fail: no such address here</b>.<span id="more-30"></span></p>
<p>By using <b>:fail:</b>, &#8220;the email is never accepted into the server. During the initial SMTP negotiation when the senders SMTP server connects to your SMTP server, the sending SMTP server issues a RCPT command notifying your server which email address the email to follow is intended for. Your server then checks whether the recipient email actually exists on your server (a POP3 account, an alias or a catchall alias) and if it does not, it issues an SMTP DENY which terminates the attempt to deliver the email.&#8221; (source: <a href="http://www.configserver.com/free/fail.html" rel="nofollow">ConfigServer</a>)</p>
<p>These two accounts were being bombarded in such a way that they actually brought the server to a crawl by not having the default address set to :fail:.</p>
<p>So in your cPanel installations, you should make sure the default address is set to :fail: for all accounts to ensure a safe, stable hosting environment.</p>
<p>In WHM, if you go to &#8220;Tweak Settings&#8221; under &#8220;Server Configuration,&#8221; you can set the default for new accounts to go to :fail: and prevent high server load from mail attacks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.socalwebsites.com/blog/2008/09/05/cpanel-set-default-address-to-fail-no-such-address-here/feed/</wfw:commentRss>
		<slash:comments>0</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>Firefox Tabs &#8211; Drag and Drop</title>
		<link>http://www.socalwebsites.com/blog/2007/12/22/firefox-tabs-drag-and-drop/</link>
		<comments>http://www.socalwebsites.com/blog/2007/12/22/firefox-tabs-drag-and-drop/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 03:26:01 +0000</pubDate>
		<dc:creator>Alan Hartung</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.socalwebsites.com/blog/2007/12/22/firefox-tabs-drag-and-drop/</guid>
		<description><![CDATA[I can&#8217;t really remember the time before tabbed browsing and Firefox&#8217;s session restore feature. On average, I probably have 5-7 tabs open at a time, and I often close Firefox with that many tabs open. It has become part of my workflow.

The other day, I learned &#8211; quite by accident &#8211; that I can rearrange [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t really remember the time before tabbed browsing and Firefox&#8217;s session restore feature. On average, I probably have 5-7 tabs open at a time, and I often close Firefox with that many tabs open. It has become part of my workflow.<br />
<span id="more-26"></span><br />
The other day, I learned &#8211; quite by accident &#8211; that I can rearrange the tabs on Firefox just by clicking and dragging them to another position. It&#8217;s a simple trick, and it has helped with my workflow.</p>
<p>Now, my tabs can reflect groupings in my workflow. When I come back to the tab in the third position, I may want to open additional tabs related to the website contained therein. Rather than just opening new tabs at the end, I can now group them all together and bring a little more organization to my tabbed browsing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.socalwebsites.com/blog/2007/12/22/firefox-tabs-drag-and-drop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
