<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>The Source Lounge</title>
	
	<link>http://www.thesourcelounge.com</link>
	<description>Web Development Tips and Tricks.</description>
	<lastBuildDate>Tue, 30 Mar 2010 05:59:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/thesourceloungecom" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="thesourceloungecom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Cu3er Slow to Load</title>
		<link>http://www.thesourcelounge.com/js/cu3er-slow-to-load</link>
		<comments>http://www.thesourcelounge.com/js/cu3er-slow-to-load#comments</comments>
		<pubDate>Tue, 30 Mar 2010 05:56:22 +0000</pubDate>
		<dc:creator>Head Lounger</dc:creator>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.thesourcelounge.com/?p=175</guid>
		<description><![CDATA[If you haven&#8217;t seen this flash gallery, check it out here.
It has some very cool effects for images. I had added it to a site and it was taking FOREVER to load. After searching cu3er forum, they were of no help, just contact theme developer.
Well I did find my issue with it&#8230; Maybe it could [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t seen this flash gallery, check it out <a href="http://www.progressivered.com/cu3er/" target="_blank">here</a>.</p>
<p>It has some very cool effects for images. I had added it to a site and it was taking FOREVER to load. After searching cu3er forum, they were of no help, just contact theme developer.</p>
<p>Well I did find my issue with it&#8230; Maybe it could help someone else who is using it.</p>
<p>The issue stemmed from the config.xml.  The images were taking forever to load.</p>
<p>I also moved the xml file to a php file.</p>
<p><strong>Step 1:</strong> Open a new file, name it something you will remember &#8220;slideshow.php&#8221;.</p>
<p>Inside this new file, add</p>
<pre class="brush: php">
&lt;?php
header(&#039;Content-Type: text/xml&#039;);
print &#039;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;&#039;;
?&gt;
</pre>
<p>to the top of the file.</p>
<p>Follow this up now with the rest of your content from the config.xml, minus the first line.</p>
<p>Would look something like this in the end:</p>
<pre class="brush: php">
&lt;?php
header(&#039;Content-Type: text/xml&#039;);
print &#039;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;&#039;;
?&gt;
&lt;cu3er&gt;
&lt;settings&gt;
&lt;auto_play&gt;
&lt;defaults symbol=&quot;circular&quot;/&gt;
&lt;tweenIn x=&quot;850&quot; y=&quot;25&quot; width=&quot;30&quot; height=&quot;30&quot; tint=&quot;0x999999&quot; alpha=&quot;0.5&quot;/&gt;
&lt;tweenOver alpha=&quot;1&quot;/&gt;
&lt;/auto_play&gt;
&lt;prev_button&gt;
&lt;defaults round_corners=&quot;5,5,5,5&quot;/&gt;
&lt;tweenOver tint=&quot;0xFFFFFF&quot; scaleX=&quot;1.1&quot; scaleY=&quot;1.1&quot;/&gt;
&lt;tweenOut tint=&quot;0x000000&quot; /&gt;
&lt;/prev_button&gt;

&lt;prev_symbol&gt;
&lt;tweenOver tint=&quot;0x000000&quot; /&gt;
&lt;/prev_symbol&gt;

&lt;next_button&gt;
&lt;defaults round_corners=&quot;5,5,5,5&quot;/&gt;
&lt;tweenOver tint=&quot;0xFFFFFF&quot;  scaleX=&quot;1.1&quot; scaleY=&quot;1.1&quot;/&gt;
&lt;tweenOut tint=&quot;0x000000&quot; /&gt;
&lt;/next_button&gt;

&lt;next_symbol&gt;
&lt;tweenOver tint=&quot;0x000000&quot; /&gt;
&lt;/next_symbol&gt;    

&lt;/settings&gt;    

&lt;slides&gt;

&lt;slide&gt;
&lt;url&gt;/one.jpg&lt;/url&gt;
&lt;/slide&gt;
&lt;!-- changing transition between first &amp; second slide --&gt;
&lt;transition num=&quot;3&quot; slicing=&quot;vertical&quot; direction=&quot;down&quot;/&gt;
&lt;slide&gt;
&lt;url&gt;/two.jpg&lt;/url&gt;
&lt;/slide&gt;
&lt;!-- changing transition between second &amp; third slide --&gt;
&lt;transition num=&quot;4&quot; direction=&quot;right&quot; shader=&quot;flat&quot; /&gt;
&lt;slide&gt;
&lt;url&gt;/three.jpg&lt;/url&gt;
&lt;/slide&gt;
&lt;!-- transitions properties defined in transitions template --&gt;
&lt;slide&gt;
&lt;url&gt;/four.jpg&lt;/url&gt;
&lt;/slide&gt;
&lt;transition num=&quot;6&quot; slicing=&quot;vertical&quot; direction=&quot;up&quot; shader=&quot;flat&quot; delay=&quot;0.05&quot; z_multiplier=&quot;4&quot; /&gt;
&lt;slide&gt;
&lt;url&gt;/five.jpg&lt;/url&gt;
&lt;/slide&gt;

&lt;/slides&gt;
&lt;/cu3er&gt;
</pre>
<p><strong>Step 2:</strong> Update the call to your new file. Look for the JS that embeds the flash.</p>
<pre class="brush: php">
var flashvars = {};
		flashvars.xml = &quot;/slideshow.php&quot;;
</pre>
<p><strong>Step 3:</strong><br />
Now to make the update that fixed the issue.</p>
<p>Find in your config  the following lines:</p>
<pre class="brush: php">
&lt;slide&gt;
&lt;url&gt;/one.jpg&lt;/url&gt;
&lt;/slide&gt;
</pre>
<p>This is what I originally had. The file was in the root. If your xml looks similar to this, all you need to do is add the full url to your image path. So in the end it would look like this:</p>
<pre class="brush: php">
&lt;slide&gt;
&lt;url&gt;http://www.yoursite.com/one.jpg&lt;/url&gt;
&lt;/slide&gt;
</pre>
<p>Hope that helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesourcelounge.com/js/cu3er-slow-to-load/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Value onFocus in Input Box</title>
		<link>http://www.thesourcelounge.com/js/remove-value-onfocus-in-input-box</link>
		<comments>http://www.thesourcelounge.com/js/remove-value-onfocus-in-input-box#comments</comments>
		<pubDate>Sun, 14 Mar 2010 22:35:23 +0000</pubDate>
		<dc:creator>Head Lounger</dc:creator>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.thesourcelounge.com/?p=171</guid>
		<description><![CDATA[A nice touch to any text box on your site, is to easily remove the default text on the users &#8220;click&#8221; of that text box (&#8217;search&#8230;&#8217;). You can add the line of code directly to your input box. It has come in handy many times in building out web pages.
Example:







&#60;form&#62; &#60;input name=&#34;name&#34; type=&#34;text&#34; value=&#34;Search...&#34; /&#62;
&#60;/form&#62;
There [...]]]></description>
			<content:encoded><![CDATA[<p>A nice touch to any text box on your site, is to easily remove the default text on the users &#8220;click&#8221; of that text box (&#8217;search&#8230;&#8217;). You can add the line of code directly to your input box. It has come in handy many times in building out web pages.</p>
<p>Example:<br />
<code><br />
<form>
<input type="text" value="Search..." name="name" onblur="if (this.value == '') {this.value = 'Search...';}"  onfocus="if (this.value == 'Search...') {this.value = '';}" />
</form>
<p></code></p>
<pre class="brush: javascript">

&lt;form&gt; &lt;input name=&quot;name&quot; type=&quot;text&quot; value=&quot;Search...&quot; /&gt;
&lt;/form&gt;</pre>
<p>There you go. Simple and adds a touch of ease to any site.</p>
<p>Cheers!~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesourcelounge.com/js/remove-value-onfocus-in-input-box/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery Image Rotator</title>
		<link>http://www.thesourcelounge.com/general/jquery-image-rotator</link>
		<comments>http://www.thesourcelounge.com/general/jquery-image-rotator#comments</comments>
		<pubDate>Fri, 12 Mar 2010 01:21:16 +0000</pubDate>
		<dc:creator>Head Lounger</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[rotator]]></category>

		<guid isPermaLink="false">http://www.thesourcelounge.com/?p=168</guid>
		<description><![CDATA[I had to create a simple image rotator for a client with static text over the image. So I am throwing it up here in case anyone else needed it.
You will need JQuery for this. You can download it here.

&#60;script src=&#34;js/jquery.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34;&#62;// &#60;![CDATA[
$(function(){
var $container = $(&#039;#images&#039;); //ID to your containing DIV
var i = [...]]]></description>
			<content:encoded><![CDATA[<p>I had to create a simple image rotator for a client with static text over the image. So I am throwing it up here in case anyone else needed it.</p>
<p>You will need JQuery for this. You can download it <a title="JQuery" href="http://docs.jquery.com/Downloading_jQuery" target="_blank">here</a>.</p>
<pre class="brush: javascript">
&lt;script src=&quot;js/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt;// &lt;![CDATA[
$(function(){
var $container = $(&#039;#images&#039;); //ID to your containing DIV
var i = 1;
var scrollInterval = setInterval(function(){
var currentClass = &#039;img&#039;+i;
if(i &gt;= 4){//Number of images +1
i = 0;
}

var ii = i+1;
var nextClass = &#039;img&#039;+ii;
$container.removeClass(currentClass);
$container.fadeIn().addClass( nextClass);
i++;

},5000); //Time Interval between fade
});
// ]]&gt;&lt;/script&gt;
</pre>
<p>The code above is set to change the class name of the container.</p>
<pre class="brush: html">
&lt;div id=&quot;images&quot; class=&quot;img1&quot;&gt;
&lt;h1&gt;Title Tag&lt;/h1&gt;
&lt;/div&gt;
</pre>
<p>Now you will need to create the CSS classes for the rotator.</p>
<pre class="brush: css">
.img1 {background:url(image1.gif) no-repeat;}
.img2 {background:url(image2.gif) no-repeat;}
.img3 {background:url(image3.gif) no-repeat;}
</pre>
<p>That is it. I wanted a quick and dirty rotator. This also minimizes the external JS files the page calls. I know there are many JQuery plugins to handle rotators, but I just wanted the library includes. </p>
<p>Enjoy!<br />
Cheers!~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesourcelounge.com/general/jquery-image-rotator/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing wordpress using SSH</title>
		<link>http://www.thesourcelounge.com/wordpress/installing-wordpress-using-ssh</link>
		<comments>http://www.thesourcelounge.com/wordpress/installing-wordpress-using-ssh#comments</comments>
		<pubDate>Thu, 04 Mar 2010 21:05:53 +0000</pubDate>
		<dc:creator>Head Lounger</dc:creator>
				<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[Word Press]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.thesourcelounge.com/?p=159</guid>
		<description><![CDATA[Most of my clients are on a WordPress platform. It is much easier to install new wordpresses through SSH, then through the traditional Cpanel/plesk and ftp. Here is how you install WordPress using SSH.
Step1: Login to your server via SSH. (I like using puTTY for this.)
Your will need your:
ip:
user:
pass:
Step2: Navigate to your current directory on [...]]]></description>
			<content:encoded><![CDATA[<p>Most of my clients are on a WordPress platform. It is much easier to install new wordpresses through SSH, then through the traditional Cpanel/plesk and ftp. Here is how you install WordPress using SSH.</p>
<p><strong>Step1:</strong> Login to your server via SSH. (I like using <a title="Putty" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">puTTY</a> for this.)</p>
<p style="padding-left: 30px;">Your will need your:<br />
ip:<br />
user:<br />
pass:</p>
<p><strong>Step2:</strong> Navigate to your current directory on the server</p>
<p style="padding-left: 30px;">
<pre class="brush: bash">cd /var/www/vhosts/domain.com/httpdocs/</pre>
</p>
<p><strong>Step3:</strong> Download the latest version of wordpress to your server.</p>
<p style="padding-left: 30px;">
<pre class="brush: bash">wget http://wordpress.org/latest.zip</pre>
</p>
<p><strong>Step4:</strong> Unzip the download</p>
<p style="padding-left: 30px;">
<pre class="brush: bash">unzip wordpress-2.9.2.zip</pre>
</p>
<p><strong>Step5:</strong> Move contents from wordpress directory to current location on server.</p>
<p style="padding-left: 30px;">
<pre class="brush: bash">cp -rf ./wordpress/* ./</pre>
</p>
<p><strong>Step6:</strong> Creating MySQL DB</p>
<p style="padding-left: 30px;">-Login to MySQL</p>
<p style="padding-left: 60px;">
<pre class="brush: bash">mysql -uusername -ppassword</pre>
</p>
<p style="padding-left: 30px;">-Create Database</p>
<p style="padding-left: 60px;">
<pre class="brush: bash">create database dbname</pre>
</p>
<p style="padding-left: 30px;">-Grant user access to new db</p>
<p style="padding-left: 60px;">
<pre class="brush: bash">grant usage on *.* to username@localhost identified by &#039;password&#039;</pre>
</p>
<p style="padding-left: 30px;">-Set Privileges to this user on this db</p>
<p style="padding-left: 60px;">
<pre class="brush: bash">grant all privileges on dbname.* to username@localhost</pre>
</p>
<p style="padding-left: 30px;">-Test conntection, change values below with the newly created info from above and user that was granted access.</p>
<p style="padding-left: 60px;">
<pre class="brush: bash">mysql -uusername -ppassword dbname</pre>
</p>
<p style="padding-left: 30px;"><strong>Note: </strong>If all was successful with no errors, your db is installed.</p>
<p>Step7:  Your wordpress is ready for the final installation.  Go to your site with the new WordPress files are located and follow the steps.</p>
<p><strong>Note: </strong>You can remove the zip file now as well.</p>
<p style="padding-left: 30px;">
<pre class="brush: bash">rm wordpress-2.9.2.zip</pre>
</p>
<p><strong>Note: </strong>To remove an entire directory</p>
<p style="padding-left: 30px;">
<pre class="brush: bash">rm -rf DirectoryName</pre>
</p>
<p>That is it. Congrats on setting up your first WordPress through SSH.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesourcelounge.com/wordpress/installing-wordpress-using-ssh/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Soap with PHP5 On Media Temple (dv)</title>
		<link>http://www.thesourcelounge.com/web-servers/enable-soap-with-php5-on-media-temple-dv</link>
		<comments>http://www.thesourcelounge.com/web-servers/enable-soap-with-php5-on-media-temple-dv#comments</comments>
		<pubDate>Fri, 26 Feb 2010 17:33:30 +0000</pubDate>
		<dc:creator>Head Lounger</dc:creator>
				<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Media Temple]]></category>
		<category><![CDATA[soap]]></category>

		<guid isPermaLink="false">http://www.thesourcelounge.com/?p=157</guid>
		<description><![CDATA[So here we go again with another Media Temple Update. I currently moved my development server to Media Temple (dv). Everything so far has been pretty smooth. I had a Magento Cart to set up and needed SOAP enabled. Low and behold, Soap was not enabled on the server.
Note: If you are uncertain if your [...]]]></description>
			<content:encoded><![CDATA[<p>So here we go again with another Media Temple Update. I currently moved my development server to Media Temple (dv). Everything so far has been pretty smooth. I had a Magento Cart to set up and needed SOAP enabled. Low and behold, Soap was not enabled on the server.</p>
<p style="padding-left: 30px;">Note: If you are uncertain if your server has SOAP enabled or not, create a phpinfo(); file. If you do not see Soap enabled, you will need to add it.</p>
<p><strong>Step 1: </strong> Download PHP5 (I am using version 5.2.6, so replace to whatever version you have). <a title="Previous PHP Versions" href="http://museum.php.net/php5/" target="_blank">List of previous PHP versions</a>.<br />
<code><br />
wget http://museum.php.net/php5/php-5.2.6.tar.gz<br />
</code><br />
<strong>Step 2:</strong> Unpack the PHP file<br />
<code>tar -zxf php-5.2.6.tar.gz</code></p>
<p><strong>Step 3:</strong> Configure PHP to enable SOAP.<br />
<code>cd php-5.2.6<br />
./configure --enable-soap=shared</code></p>
<p><strong>Step 4:</strong> Rebuild PHP (This takes some time).<br />
<code>make</code></p>
<p><strong>Step 5:</strong> Now we just copy over the SOAP module to your existing PHP module directory.<br />
<code>cp modules/soap.so /usr/lib/php/modules/</code></p>
<p><strong>Step 6: </strong>Add the new SOAP configuration to your existing configuration<br />
<code>echo "extension=soap.so" &gt; /etc/php.d/soap.ini</code></p>
<p><strong>Step 7:</strong> Restart Server<br />
<code>/etc/init.d/httpd restart</code></p>
<p><strong>Step 8: </strong>Remove the PHP folder you just downloaded for this process.<br />
<code>rm -rf /home/php-5.2.6/</code></p>
<p>Check your PHPINFO file again. You should now see soap enabled.<br />
Cheers!</p>
<p>Special Thanks to <a title="DotJay.co.uk" href="http://dotjay.co.uk/" target="_blank">dotjay.co.uk</a> for pointing this out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesourcelounge.com/web-servers/enable-soap-with-php5-on-media-temple-dv/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress iframe Redirect Hack!</title>
		<link>http://www.thesourcelounge.com/wordpress/header-php-redirect-hacked</link>
		<comments>http://www.thesourcelounge.com/wordpress/header-php-redirect-hacked#comments</comments>
		<pubDate>Sat, 06 Feb 2010 20:52:21 +0000</pubDate>
		<dc:creator>Head Lounger</dc:creator>
				<category><![CDATA[Word Press]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://www.thesourcelounge.com/?p=151</guid>
		<description><![CDATA[I was just reading up on a new hack going around for WordPress. Sure enough a day later I find
this on my site. It is a nasty little script that will redirect the visitor to another site. The
script gets embedded on the Header.php file of your wordpress theme, right after the &#60;/head&#62; tag
and right before [...]]]></description>
			<content:encoded><![CDATA[<p>I was just reading up on a new hack going around for WordPress. Sure enough a day later I find</p>
<p>this on my site. It is a nasty little script that will redirect the visitor to another site. The</p>
<p>script gets embedded on the Header.php file of your wordpress theme, right after the &lt;/head&gt; tag</p>
<p>and right before the &lt;body&gt; tag.</p>
<p>I have the most recent version of wordpress too. I had heard of some security holes in the</p>
<p>previous version, so I did like any other good developer and upgraded the software. However, my</p>
<p>theme was still attacked. The code looks like a long line of javascript between two script tags.</p>
<p>It is pretty hard to miss when you open your Header.php file.</p>
<p>I have seen another one that hit wordpress blogs. That hack look similar to this one, however it</p>
<p>targets the index files on the server and injects a similar line of script to the end of your</p>
<p>index file. Another wordpress hack was to add a file to the root of your theme directory which</p>
<p>would allow the hacker access to your server.</p>
<p>If someone wants to get to your files bad enough, they will, but you don&#8217;t have to make it easy</p>
<p>for them. Here are some changes to your site that you can make if you have been hacked or even if</p>
<p>you just want to update your WordPress!</p>
<p>1. Upgrade your version of WordPress.</p>
<p>2. <a href="http://wordpress.org/extend/plugins/exploit-scanner/" target="_blank">Exploit Scanner </a>- There are several scanner tools, but this is the one I liked. You can</p>
<p>download and install a WordPress plugin that will scan your wordpress files, db tables, and</p>
<p>plugins for anything out of the ordinary. It will not remove any files for you, it leaves this to</p>
<p>the user. You can even allocate how much memory the scan can use if youre on a host with limited</p>
<p>access. Run this scan on your site.</p>
<p>3. Change your .htaccess file &#8211; There is a hack that adds new items to this file. Original</p>
<p>htaccess should look like this<br />
<code># BEGIN WordPress<br />
&lt;ifmodule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/ifmodule&gt;<br />
# END WordPress</code></p>
<p>Hacked addition<br />
<code>&lt;ifmodule mod_security.c&gt;<br />
&lt;files async-upload.php&gt;<br />
SecFilterEngine Off<br />
SecFilterScanPOST Off<br />
&lt;/files&gt;<br />
&lt;/ifmodule&gt;</code></p>
<p>4. Check that there are no new users added to your Wordpress. Changing your passwords should be a</p>
<p>must. Having a hard time coming up with secure passwords? I love <a title="Password Generator" href="http://www.pctools.com/guides/password/" target="_blank">this site</a> for creating long</p>
<p>crazy passwords.</p>
<p>5. Update or add the SECRET_KEY in your wp-config.php file. If you have never done this, you can</p>
<p>open the wp-config.php file in your wp root and follow the comments on where to get this updated.</p>
<p>WordPress does have some security updates they promote. You can find them here for more information.</p>
<p>You can also go to WordPress site. They have an article about <a title="Hardening WordPress" href="http://codex.wordpress.org/Hardening_WordPress" target="_blank">Hardening Wordpress</a>.</p>
<p>Best wishes and keep on blogging!<br />
Cheers <img src='http://www.thesourcelounge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesourcelounge.com/wordpress/header-php-redirect-hacked/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Favorite Wordpress Plugins</title>
		<link>http://www.thesourcelounge.com/wordpress/my-favorite-wordpress-plugins</link>
		<comments>http://www.thesourcelounge.com/wordpress/my-favorite-wordpress-plugins#comments</comments>
		<pubDate>Fri, 11 Dec 2009 07:06:53 +0000</pubDate>
		<dc:creator>Head Lounger</dc:creator>
				<category><![CDATA[Word Press]]></category>
		<category><![CDATA[Word Press Plugins]]></category>

		<guid isPermaLink="false">http://www.thesourcelounge.com/?p=107</guid>
		<description><![CDATA[I don&#8217;t know how many of these posts I have read, but in the spirit of spamming the internet, here is my list of my all time favorite WordPress plug-ins. When picking a plug-in, I keep in mind that I will not be making the updates, but my clients will be. So I try to [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know how many of these posts I have read, but in the spirit of spamming the internet, here is my list of my all time favorite WordPress plug-ins. When picking a plug-in, I keep in mind that I will not be making the updates, but my clients will be. So I try to pick plug-ins that are easy to operate only.  I do not want my clients to update html or code files, so as a wise man once said&#8230;</p>
<p>&#8220;Keep it simple stupid&#8217;.<br />
<span id="more-107"></span><br />
Here we go:</p>
<p><strong>1.  All-in-one SEO</strong></p>
<p style="padding-left: 30px;">I love this plug-in. It is probably my favorite. It is very easy to install and allows the end-user to make updates to meta tags, sef urls, and can even handle canonical urls. Just install it! You&#8217;ll be happy later. You can download the plug-in <a title="All-in-one SEO" href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank">here</a>.</p>
<p><strong>2. WordPress Navigation List Plugin NAVT</strong></p>
<p style="padding-left: 30px;">Another favorite of mine. This requires a bit more time to setup. You need to add the plug-in calls to your theme. Once you can get passed that part, this plug-in is a dream. It allows the end-user to update navigation/menu items with a very nice AJAX interface. I mentioned earlier, these plug-ins are for the end-user. I have yet to see a menu admin as nice as this. You can find this plug-in <a href="http://wordpress.org/extend/plugins/wordpress-navigation-list-plugin-navt/" target="_blank">here</a>.</p>
<p><strong>3. Contact Form 7</strong></p>
<p style="padding-left: 30px;">Contact Form 7 is a very handy contact form tool. I will admit it is limited in advanced input types, but for most of your contact needs, it is very handy. CF7 is very nice to update and edit the email that is sent. I used to use ChronoII for a long time, but switched over to Contact Form 7. ChronoII has their quirks too, but I found CF7 was just sweet and simple. You can download this plug-in <a href="http://wordpress.org/extend/plugins/contact-form-7/" target="_blank">here</a>.</p>
<p><strong>4. Google XML Sitemaps</strong></p>
<p style="padding-left: 30px;">Google Sitemaps is a must. Google makes up most of the searched traffic and you would be silly not to get indexed with Google. This plug-in requires you to create two additional files after the plug-in has been activated and permissions changed. After that, its a self-cleaning oven. Updates, sets recheck times. It gets the job done. You can download the plug-in <a href="http://wordpress.org/extend/plugins/google-sitemap-generator/" target="_blank">here</a>.</p>
<p><strong>5. NextGen Gallery</strong></p>
<p style="padding-left: 30px;">NextGen is a beast! It&#8217;s the only Photo Gallery plug-in I use. There are also add-on plug-ins that work very well with this. You can manage galleries very nicely and even crate albums. There is a nice widget extension as well. I have used this on a few websites. It has the options to set how many thumbnails to display in the widget and even set up a random rotation of images from a particular gallery. You can add gallery Main Images as well as update text for each image in the gallery. Just a wonderful plug-in. Cheers! You can download this plug-in <a href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank">here</a>.</p>
<p><strong>6. Smart Youtube</strong></p>
<p style="padding-left: 30px;">Smart Youtube is a great plug-in if you have youtube videos. I had a client who needed a video gallery of his youtube videos. I scoured through many wordpress plug-ins to get an album view. I think I ran through every last one until I got to this plug-in. You are able to pull in play lists, a youtube user account, related videos, and all kinds of settings. This plug-in sets up a nice paginated gallery of youtube videos. You can download this plug-in <a href="http://wordpress.org/extend/plugins/smart-youtube/" target="_blank">here</a>.</p>
<p><strong>7. Simply Show IDs</strong></p>
<p style="padding-left: 30px;">Simply Show IDs adds a new column to your post, page, and category edit view that simple shows the post, page, or category ID. I started out telling clients to hover over the link and just grab the ID. That didn&#8217;t go over too well. This plug-in puts the IDs right in the admin and makes it easy for the end-user to grab. Certain plug-ins need this to redirect to a certain page or condition for a page/post. This has come in handy many times. You can download this plug-in <a href="http://wordpress.org/extend/plugins/simply-show-ids/" target="_blank">here</a>.</p>
<p style="padding-left: 30px;">
<p>Hope these were insiteful. I will update as I think of more later. There are some plug-ins that are fantastic to recreate carts, membership sites, landing pages. etc&#8230; But that will be for a later post.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesourcelounge.com/wordpress/my-favorite-wordpress-plugins/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Get Review URL</title>
		<link>http://www.thesourcelounge.com/magento/magento-get-review-url</link>
		<comments>http://www.thesourcelounge.com/magento/magento-get-review-url#comments</comments>
		<pubDate>Sat, 17 Oct 2009 21:14:33 +0000</pubDate>
		<dc:creator>Head Lounger</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[code fix]]></category>
		<category><![CDATA[core]]></category>

		<guid isPermaLink="false">http://www.thesourcelounge.com/?p=102</guid>
		<description><![CDATA[My latest project is a Magento Shopping cart. Alot of this theme needed some custom features added, not in the code core already. The first of this was adding the Review Link outside of the summary review template. This used to be done by using the reviews helper. In the latest version of Magento, this [...]]]></description>
			<content:encoded><![CDATA[<p>My latest project is a Magento Shopping cart. Alot of this theme needed some custom features added, not in the code core already. The first of this was adding the Review Link outside of the summary review template. This used to be done by using the reviews helper. In the latest version of Magento, this no longer exists.  After digging through core files, I finally found the class that creates the review URL. I first noticed the getReviewURL() was returning the curent products link page and NOT the review form page. I am not sure if this is a bug or was done on purpose. So I added a  new method to the class so that I can call the Review URL.<br />
<span id="more-102"></span><br />
Location of the file: app\code\core\Mage\Review\Block\Product\View\List.php</p>
<p><code><br />
public function getReviewLink($id)<br />
	{<br />
	 return Mage::getUrl('review/product/list', array('id'=> $id));<br />
	}<br />
</code></p>
<p>After adding this method, I can now call it on the Review listing template.</p>
<p>Location of review listing template: app\design\frontend\faction\template\review\product\view\list.phtml</p>
<p><code>< a href="< ?php echo $this->getReviewLink($this->getProductId()) ? >#review-form">Post a review.< / a></code></p>
<p>We pass the product&#8217;s ID to the method and the link is construct and returned.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesourcelounge.com/magento/magento-get-review-url/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sIFR Change Color on Roll Over</title>
		<link>http://www.thesourcelounge.com/bugs-fixes/sifr-change-color-on-roll-over</link>
		<comments>http://www.thesourcelounge.com/bugs-fixes/sifr-change-color-on-roll-over#comments</comments>
		<pubDate>Sat, 17 Oct 2009 20:51:40 +0000</pubDate>
		<dc:creator>Head Lounger</dc:creator>
				<category><![CDATA[Bugs/Fixes]]></category>

		<guid isPermaLink="false">http://www.thesourcelounge.com/?p=100</guid>
		<description><![CDATA[In a latest project, I had to add keep the designers font throughout the site. So the solution I ended up with is sIFR. I wanted to avoid using images for all links.
I started out using sIFR on the li and not on the achors. Then you can manipulate the a:hover tag. However, when you [...]]]></description>
			<content:encoded><![CDATA[<p>In a latest project, I had to add keep the designers font throughout the site. So the solution I ended up with is sIFR. I wanted to avoid using images for all links.</p>
<p><P>I started out using sIFR on the li and not on the achors. Then you can manipulate the a:hover tag. However, when you start getting into second level (sub-lists), things got complicated.</p>
<p><span id="more-100"></span></p>
<p>So here&#8217;s the code snippet I had used on the anchor tag.</p>
<p><code>,onRollOver: function(fi) { fi.changeCSS('.sIFR-root { letter-spacing: 1.2; color: #F6DA07;text-transform:uppercase; cursor:pointer;}'); },onRollOut: function(cb) { cb.changeCSS('.sIFR-root { letter-spacing: 1.2;text-transform:uppercase;cursor:pointer;color: #ffffff;}');},</code></p>
<p>That is it!</p>
<p>This went into a Magento Cart. The client was very pleased we were able to keep the same font.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesourcelounge.com/bugs-fixes/sifr-change-color-on-roll-over/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Zend Optimizer on Media Temple (dv)</title>
		<link>http://www.thesourcelounge.com/web-servers/mediatemple-dv-zend-optimizer</link>
		<comments>http://www.thesourcelounge.com/web-servers/mediatemple-dv-zend-optimizer#comments</comments>
		<pubDate>Thu, 24 Sep 2009 23:42:27 +0000</pubDate>
		<dc:creator>Head Lounger</dc:creator>
				<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[dv]]></category>
		<category><![CDATA[Media Temple]]></category>
		<category><![CDATA[Zend Optimizer]]></category>

		<guid isPermaLink="false">http://www.thesourcelounge.com/?p=98</guid>
		<description><![CDATA[So I recently had an upgrade on a client server from Media Temple. They had a gs account and was upgraded to a dedicated server. Sounds great? Well the first thing I ran into was that their admin no longer worked since it used Zend Optimizer for some of the plugins. Media Temple (dv) uses [...]]]></description>
			<content:encoded><![CDATA[<p>So I recently had an upgrade on a client server from Media Temple. They had a gs account and was upgraded to a dedicated server. Sounds great? Well the first thing I ran into was that their admin no longer worked since it used Zend Optimizer for some of the plugins. Media Temple (dv) uses ion cube. Oh shit&#8230;<br />
So I decided to list my steps for getting zend optimizer on a dv sever in case anyone else needed it.<br />
<span id="more-98"></span><br />
You will need to ssh into your account. I like putty for ssh, you can get it <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">here</a>.</p>
<p>1) Go to Zend official site. http://www.zend.com/<br />
2) Find and download the Zend Optimizer 3.3. I am using the 3.3.3 package.<br />
3) Download it directly to your server.<br />
<code>wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz</code><br />
4) Decompress it.<br />
<code>tar xvfz ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz</code><br />
5)Move to the new folder and install.<br />
<code> cd ZendOptimizer-3.3.3-linux-glibc23-i386<br />
./install</code></p>
<p>6. Follow the steps to install.</p>
<p>7. After the installation, you will notice some new lines in your php.ini file.<br />
<code>cd /etc<br />
vi php.ini</code></p>
<p>8. Comment out all of the new Zend lines. (generally at the very end of the .ini file).</p>
<blockquote><p>Example:<br />
<code>[Zend]<br />
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.9<br />
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3<br />
zend_optimizer.version=3.3.4<br />
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so<br />
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so</code></p></blockquote>
<p>9. Now we will disable ioncube.<br />
<code>/etc/php.d/<br />
vi ioncube-loader.ini</code></p>
<p>10. comment out the line<br />
<code>zend_extension=/usr/lib/php/php_ioncube_loader_lin.so</code></p>
<p>and replace with your zend optimizer lines</p>
<p><code>zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/php-5.2.x/ZendOptimizer.so<br />
zend_optimizer.optimization_level=15</code></p>
<p>Now save your .ini file and restart apache.<br />
<code>Service httpd restart</code></p>
<p>You should set up a phpinfo file to test that you have successfully installed Zend Optimizer.<br />
I am sure there are many ways of doing this, but this is what worked for me on a MediaTemple 3.5(dv) server. Hope it helps someone else too!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesourcelounge.com/web-servers/mediatemple-dv-zend-optimizer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
