<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Webmaster Juice - All Forums]]></title>
		<link>http://webmasterjuice.com/</link>
		<description><![CDATA[Webmaster Juice - http://webmasterjuice.com]]></description>
		<pubDate>Wed, 10 Mar 2010 13:10:05 -0600</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[How to view Flash FLV Videos offline]]></title>
			<link>http://webmasterjuice.com/thread-367.html</link>
			<pubDate>Tue, 09 Mar 2010 05:29:16 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-367.html</guid>
			<description><![CDATA[I viewed the source of a website and cut and pasted the URL of the Flash FLV video to VLC media player in the Network Video option. Then it played back fine.<br />
<br />
The site I was sent to was broken but I could spot the video link in the source of the webpage, so copied and pasted that link to VLC, and it worked fine.<br />
<br />
Nothing dodgey, just a Tony Robbins video.]]></description>
			<content:encoded><![CDATA[I viewed the source of a website and cut and pasted the URL of the Flash FLV video to VLC media player in the Network Video option. Then it played back fine.<br />
<br />
The site I was sent to was broken but I could spot the video link in the source of the webpage, so copied and pasted that link to VLC, and it worked fine.<br />
<br />
Nothing dodgey, just a Tony Robbins video.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Script to include WP config file]]></title>
			<link>http://webmasterjuice.com/thread-366.html</link>
			<pubDate>Tue, 09 Mar 2010 03:36:43 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-366.html</guid>
			<description><![CDATA[If you are tempted to include the WordPress config.php file in your script to make use of the database settings, there is a problem in that they have an include at the end which includes a whole bunch of WordPress files in a cascade which can do a lot more than simply defining some values.<br />
<br />
So the answer is to parse the config file, and pull out the database settings.<br />
<br />
Here is a script I wrote to do just that:<br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">pre</span><span style="color: #007700">&gt;<br />&lt;?</span><span style="color: #0000BB">php<br /></span><span style="color: #FF8000">//&nbsp;Read&nbsp;and&nbsp;parse&nbsp;wp&nbsp;config&nbsp;file<br /><br /></span><span style="color: #0000BB">&#36;config&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">'wp-config.php'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">preg_match_all</span><span style="color: #007700">(</span><span style="color: #DD0000">"|'DB_([A-Z&#93;+)',&nbsp;'([^'&#93;+)|"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;matches</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">PREG_SET_ORDER</span><span style="color: #007700">);<br /><br />foreach(</span><span style="color: #0000BB">&#36;matches&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">&#93;;<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
Run this script and it will print out an associated array of the values.<br />
<br />
Notice how I use the pattern [^'&#93;+ which matches the text of the value up until the closing apostrophe. It is saying: match any character that is not an apostrophe. This is an easy way to match say a password which can contain weird characters.]]></description>
			<content:encoded><![CDATA[If you are tempted to include the WordPress config.php file in your script to make use of the database settings, there is a problem in that they have an include at the end which includes a whole bunch of WordPress files in a cascade which can do a lot more than simply defining some values.<br />
<br />
So the answer is to parse the config file, and pull out the database settings.<br />
<br />
Here is a script I wrote to do just that:<br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">pre</span><span style="color: #007700">&gt;<br />&lt;?</span><span style="color: #0000BB">php<br /></span><span style="color: #FF8000">//&nbsp;Read&nbsp;and&nbsp;parse&nbsp;wp&nbsp;config&nbsp;file<br /><br /></span><span style="color: #0000BB">&#36;config&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">'wp-config.php'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">preg_match_all</span><span style="color: #007700">(</span><span style="color: #DD0000">"|'DB_([A-Z]+)',&nbsp;'([^']+)|"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;matches</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">PREG_SET_ORDER</span><span style="color: #007700">);<br /><br />foreach(</span><span style="color: #0000BB">&#36;matches&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">]]&nbsp;=&nbsp;</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">];<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
Run this script and it will print out an associated array of the values.<br />
<br />
Notice how I use the pattern [^']+ which matches the text of the value up until the closing apostrophe. It is saying: match any character that is not an apostrophe. This is an easy way to match say a password which can contain weird characters.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Useful MySQL Statements]]></title>
			<link>http://webmasterjuice.com/thread-365.html</link>
			<pubDate>Wed, 03 Mar 2010 06:36:14 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-365.html</guid>
			<description><![CDATA[Sometimes you can waste a lot of time coding elaborate solutions to problems that can be coded far more easily if only you were aware of the code to use.<br />
<br />
We've all been there right? So let's share cool SQL that we may tend to overlook or not know about.<br />
<br />
Here's some:<br />
<br />
CREATE TABLE IF NOT EXISTS - better than simply CREATE TABLE which may give you an error<br />
<br />
SHOW TABLES - list all the table names in a database<br />
<br />
Some PHP showing the use of tick "`" marks which are useful to prevent conflicts between column names and SQL directives:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&#36;sql&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"UPDATE&nbsp;`"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#36;table_prefix&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"options`&nbsp;SET&nbsp;`option_name`&nbsp;=&nbsp;REPLACE(`option_name`,&nbsp;'wp_',&nbsp;'"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#36;table_prefix&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"')"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;r&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;sql</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
<br />
Also, in LIKE matches, you can use the wild card symbol of %<br />
<br />
And to get hold of data more easily you use the "as" assignment such as:<br />
<br />
SELECT COUNT(*) as `nRecords` WHERE `size` &lt; 3 LIMIT 0,10<br />
<br />
Which gives up to the first 10 results, and the number is accessible via a key of "nRecords" rather than a bug-prone, and non-intuitive way of accessing the 1st element in the results array.<br />
<br />
Another quick tip when using PHP is that you only need to connect to the database once when running your script, and on exit from the script, the PHP engine will automatically disconnect from the database server.<br />
<br />
It doesn't time out so fast that you have to reconnect at every query.]]></description>
			<content:encoded><![CDATA[Sometimes you can waste a lot of time coding elaborate solutions to problems that can be coded far more easily if only you were aware of the code to use.<br />
<br />
We've all been there right? So let's share cool SQL that we may tend to overlook or not know about.<br />
<br />
Here's some:<br />
<br />
CREATE TABLE IF NOT EXISTS - better than simply CREATE TABLE which may give you an error<br />
<br />
SHOW TABLES - list all the table names in a database<br />
<br />
Some PHP showing the use of tick "`" marks which are useful to prevent conflicts between column names and SQL directives:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&#36;sql&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"UPDATE&nbsp;`"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#36;table_prefix&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"options`&nbsp;SET&nbsp;`option_name`&nbsp;=&nbsp;REPLACE(`option_name`,&nbsp;'wp_',&nbsp;'"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#36;table_prefix&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"')"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;r&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;sql</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
<br />
Also, in LIKE matches, you can use the wild card symbol of %<br />
<br />
And to get hold of data more easily you use the "as" assignment such as:<br />
<br />
SELECT COUNT(*) as `nRecords` WHERE `size` &lt; 3 LIMIT 0,10<br />
<br />
Which gives up to the first 10 results, and the number is accessible via a key of "nRecords" rather than a bug-prone, and non-intuitive way of accessing the 1st element in the results array.<br />
<br />
Another quick tip when using PHP is that you only need to connect to the database once when running your script, and on exit from the script, the PHP engine will automatically disconnect from the database server.<br />
<br />
It doesn't time out so fast that you have to reconnect at every query.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[SEO Software Submitter.]]></title>
			<link>http://webmasterjuice.com/thread-364.html</link>
			<pubDate>Wed, 03 Mar 2010 01:39:30 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-364.html</guid>
			<description><![CDATA[All in one - Software to optimise keywords On Page and Off Page.<br />
Link building submitters - PAD editor, PAD submitter,Sitemap Generator, Sitemap Submitter, Weblink Submitter, RSS Submitter, Article Submitter, Directory Submitter.<br />
<br />
SEO Software Submitter can fit into all kinds of organisation or individuals looking for internet SEO marketing solution. SEO Software Submitter is not only an SEO Submission tool but is also comes with PAD Editor, CMS Editor and Keyword Editor for On-page optimisation.<br />
Suitable for any kind of organisation such as<br />
· SEO Marketing companies,<br />
· Individuals looking SEO software,<br />
· Product promotion Companies,<br />
· Web design companies, etc.<br />
<br />
SEO Software Submitter Enterprise Edition has the most extensive and robust features to make the Search Engine Optimisation as simple as possible.<br />
<br />
* FTP Manager<br />
* PAD Generator<br />
* Sitemap Generator<br />
* CMS Editor<br />
* Keyword Editor (Title, Meta, Img, Href)<br />
* FAQ Generator<br />
* News Generator<br />
* Article Generator<br />
* Weblink Manager<br />
* Weblink Submitter<br />
* PAD Submitter<br />
* Press release(PR) Submitter<br />
* Article Submitter<br />
* Directory Submitter<br />
* RSS Submitter<br />
* Sitemap Submitter<br />
* Ad/Video Submitter]]></description>
			<content:encoded><![CDATA[All in one - Software to optimise keywords On Page and Off Page.<br />
Link building submitters - PAD editor, PAD submitter,Sitemap Generator, Sitemap Submitter, Weblink Submitter, RSS Submitter, Article Submitter, Directory Submitter.<br />
<br />
SEO Software Submitter can fit into all kinds of organisation or individuals looking for internet SEO marketing solution. SEO Software Submitter is not only an SEO Submission tool but is also comes with PAD Editor, CMS Editor and Keyword Editor for On-page optimisation.<br />
Suitable for any kind of organisation such as<br />
· SEO Marketing companies,<br />
· Individuals looking SEO software,<br />
· Product promotion Companies,<br />
· Web design companies, etc.<br />
<br />
SEO Software Submitter Enterprise Edition has the most extensive and robust features to make the Search Engine Optimisation as simple as possible.<br />
<br />
* FTP Manager<br />
* PAD Generator<br />
* Sitemap Generator<br />
* CMS Editor<br />
* Keyword Editor (Title, Meta, Img, Href)<br />
* FAQ Generator<br />
* News Generator<br />
* Article Generator<br />
* Weblink Manager<br />
* Weblink Submitter<br />
* PAD Submitter<br />
* Press release(PR) Submitter<br />
* Article Submitter<br />
* Directory Submitter<br />
* RSS Submitter<br />
* Sitemap Submitter<br />
* Ad/Video Submitter]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Neat Way To Create A Comma Separated List of Array Keys]]></title>
			<link>http://webmasterjuice.com/thread-363.html</link>
			<pubDate>Mon, 01 Mar 2010 03:29:19 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-363.html</guid>
			<description><![CDATA[<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&#36;options&nbsp;</span><span style="color: #007700">=&nbsp;array(<br />&nbsp;&nbsp;</span><span style="color: #0000BB">forum&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">'MyBB'</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">lang&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">'en'</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">pr&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">10<br /></span><span style="color: #007700">);<br /><br />foreach(</span><span style="color: #0000BB">&#36;options&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">&#36;key</span><span style="color: #007700">=&gt;</span><span style="color: #0000BB">&#36;value</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;option_names</span><span style="color: #007700">[&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">&#36;key</span><span style="color: #007700">;<br />}<br />echo&nbsp;</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">','</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;option_names</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
<br />
This should output: forum,lang,pr<br />
<br />
To list the values is even easier:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">','</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;options</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
]]></description>
			<content:encoded><![CDATA[<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&#36;options&nbsp;</span><span style="color: #007700">=&nbsp;array(<br />&nbsp;&nbsp;</span><span style="color: #0000BB">forum&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">'MyBB'</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">lang&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">'en'</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">pr&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">10<br /></span><span style="color: #007700">);<br /><br />foreach(</span><span style="color: #0000BB">&#36;options&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">&#36;key</span><span style="color: #007700">=&gt;</span><span style="color: #0000BB">&#36;value</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;option_names</span><span style="color: #007700">[]&nbsp;=&nbsp;</span><span style="color: #0000BB">&#36;key</span><span style="color: #007700">;<br />}<br />echo&nbsp;</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">','</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;option_names</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
<br />
This should output: forum,lang,pr<br />
<br />
To list the values is even easier:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">','</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;options</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[GEO IP Script]]></title>
			<link>http://webmasterjuice.com/thread-362.html</link>
			<pubDate>Sun, 28 Feb 2010 10:41:29 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-362.html</guid>
			<description><![CDATA[This is how to detect which country a website visitor comes from.<br />
<br />
You need to download a database and code from MaxMind.com and implement php code like:<br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">include(</span><span style="color: #DD0000">"geoip.inc"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Check&nbsp;country<br /></span><span style="color: #0000BB">&#36;gi&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">geoip_open</span><span style="color: #007700">(</span><span style="color: #DD0000">"GeoIP.dat"</span><span style="color: #007700">,</span><span style="color: #0000BB">GEOIP_STANDARD</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">&#36;ip&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">get_ip</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">&#36;country&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">geoip_country_code_by_addr</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;gi</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;ip</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">geoip_close</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;gi</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">&#36;fp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #DD0000">"log/country.txt"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"a"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fwrite</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"Y-m-d&nbsp;D&nbsp;H-i-s"</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&#092;t&#36;country&#092;t&#36;ip&#092;n"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fclose</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;fp</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">&#36;banned_countries&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #DD0000">'PK'</span><span style="color: #007700">);<br /><br />if&nbsp;(&nbsp;</span><span style="color: #0000BB">in_array</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;country</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;banned_countries</span><span style="color: #007700">)&nbsp;)&nbsp;die&nbsp;(</span><span style="color: #DD0000">"Sorry:&nbsp;access&nbsp;is&nbsp;denied."</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
<br />
In this example, I am blocking out posters from Pakistan, which I found to be spamming one of my sites.<br />
<br />
So the first part of the script logs all the hits so that you can cut and paste the spam country codes over to the next part of the script;<br />
<br />
At regular intervals, delete the log file; it rebuilds on it's own.<br />
<br />
Using this code, you can spot patterns of IP address access to your site against the country code and when the retards post their shit to your blog or forum, you can work out how to stamp out these spamming scum.]]></description>
			<content:encoded><![CDATA[This is how to detect which country a website visitor comes from.<br />
<br />
You need to download a database and code from MaxMind.com and implement php code like:<br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">include(</span><span style="color: #DD0000">"geoip.inc"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Check&nbsp;country<br /></span><span style="color: #0000BB">&#36;gi&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">geoip_open</span><span style="color: #007700">(</span><span style="color: #DD0000">"GeoIP.dat"</span><span style="color: #007700">,</span><span style="color: #0000BB">GEOIP_STANDARD</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">&#36;ip&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">get_ip</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">&#36;country&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">geoip_country_code_by_addr</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;gi</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;ip</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">geoip_close</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;gi</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">&#36;fp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #DD0000">"log/country.txt"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"a"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fwrite</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"Y-m-d&nbsp;D&nbsp;H-i-s"</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&#092;t&#36;country&#092;t&#36;ip&#092;n"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fclose</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;fp</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">&#36;banned_countries&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #DD0000">'PK'</span><span style="color: #007700">);<br /><br />if&nbsp;(&nbsp;</span><span style="color: #0000BB">in_array</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;country</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;banned_countries</span><span style="color: #007700">)&nbsp;)&nbsp;die&nbsp;(</span><span style="color: #DD0000">"Sorry:&nbsp;access&nbsp;is&nbsp;denied."</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
<br />
In this example, I am blocking out posters from Pakistan, which I found to be spamming one of my sites.<br />
<br />
So the first part of the script logs all the hits so that you can cut and paste the spam country codes over to the next part of the script;<br />
<br />
At regular intervals, delete the log file; it rebuilds on it's own.<br />
<br />
Using this code, you can spot patterns of IP address access to your site against the country code and when the retards post their shit to your blog or forum, you can work out how to stamp out these spamming scum.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Effective E-marketing]]></title>
			<link>http://webmasterjuice.com/thread-361.html</link>
			<pubDate>Thu, 25 Feb 2010 22:57:26 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-361.html</guid>
			<description><![CDATA[E-Marketing Tips <br />
<br />
<br />
10 Mistakes<br />
Always proof read your emails. Your customers spend a lot of time researching and reviewing the quality of your products or services. One superficial mistake could make or break an otherwise done deal.<br />
<br />
9 Email Address databases<br />
Whether you're renting email list databases or devising your own lists you must make sure that your email addresses are current or you are wasting your time and effort.<br />
<br />
8 Denial of Service (DOS)<br />
Be aware of your Internet Service Providers (ISP) usage terms on sending emails. You do not want to be landed with a DOS because other ISPs may not touch you either. For example, your ISP may brand you a spammer if your email marketing program sends 10000 emails in 10 minutes.<br />
<br />
7 Manage your campaign<br />
Always have a means for recipients to Unsubscribe to your emails. These should go to a separate email address. Be aware of which emails designs are working and which are not. Test specific designs across different email browsers to ensure cross compatibility.<br />
<br />
6 Separate email addresses<br />
Be aware that you will need a number of email addresses if you are proceeding with an Email Marketing using your own system. For example, noreply for sending messages. Unsubscribe email, etc. This depends on your setup. Ensure that your web hosting company has supplied sufficient email addresses on your account or upgrade as required.<br />
<br />
5 Seek expert advice<br />
If you're at tip 5 and all this is starting to sound a little daunting to you. If you'd prefer to just get on with doing what you do best and run your business and are happy to let an experienced Email Marketer do what they do best then hiring an expert may provide better use of your time and budget.<br />
<br />
4 Small sample trial<br />
Test specific designs across different email browsers to ensure cross compatibility. If you're sending 10000 emails in total then test 1000 for bounce rate.<br />
<br />
3 Measure your success (or failure)<br />
1% or 2% is the norm from permission based Email Marketing campaigns. Learn from your failures. Was your design unsuitable for the target market. Were your company colours used for maximum effect and brand awareness? Did you use too much text? Inappropriate images? Is your data quality? What percentage of your emails were opened? What percentage even reached a valid email address? All of this can and should be measured to track the marketing campaign's success.<br />
<br />
2 Targeted prospects<br />
Don't send email to just anyone. You've gone to the trouble of targeting a particular market so stick with that market. If you are purchasing data is the best to purchase only what you need. You wouldn't go into a supermarket and buy every type of fruit and vegetables if you onyl eat apples, bananas, kiwis and cabbage would you? So don't buy all data that is available. This is not only expensive but is also inefficient and more of a hit and miss approx. Your Email Marketing campaign must be realistic and managable depending on your resources.<br />
<br />
1 Legal<br />
Adhere to the Email Marketing laws of your country. You should make yourself very familiar with Permission Based Email Marketing (try Googling the term). If your email marketing campaign is international then research and keep up to date with the particular law of the destination country. Specific country laws are outside the scope of this article but feel free to contact us with any queries.]]></description>
			<content:encoded><![CDATA[E-Marketing Tips <br />
<br />
<br />
10 Mistakes<br />
Always proof read your emails. Your customers spend a lot of time researching and reviewing the quality of your products or services. One superficial mistake could make or break an otherwise done deal.<br />
<br />
9 Email Address databases<br />
Whether you're renting email list databases or devising your own lists you must make sure that your email addresses are current or you are wasting your time and effort.<br />
<br />
8 Denial of Service (DOS)<br />
Be aware of your Internet Service Providers (ISP) usage terms on sending emails. You do not want to be landed with a DOS because other ISPs may not touch you either. For example, your ISP may brand you a spammer if your email marketing program sends 10000 emails in 10 minutes.<br />
<br />
7 Manage your campaign<br />
Always have a means for recipients to Unsubscribe to your emails. These should go to a separate email address. Be aware of which emails designs are working and which are not. Test specific designs across different email browsers to ensure cross compatibility.<br />
<br />
6 Separate email addresses<br />
Be aware that you will need a number of email addresses if you are proceeding with an Email Marketing using your own system. For example, noreply for sending messages. Unsubscribe email, etc. This depends on your setup. Ensure that your web hosting company has supplied sufficient email addresses on your account or upgrade as required.<br />
<br />
5 Seek expert advice<br />
If you're at tip 5 and all this is starting to sound a little daunting to you. If you'd prefer to just get on with doing what you do best and run your business and are happy to let an experienced Email Marketer do what they do best then hiring an expert may provide better use of your time and budget.<br />
<br />
4 Small sample trial<br />
Test specific designs across different email browsers to ensure cross compatibility. If you're sending 10000 emails in total then test 1000 for bounce rate.<br />
<br />
3 Measure your success (or failure)<br />
1% or 2% is the norm from permission based Email Marketing campaigns. Learn from your failures. Was your design unsuitable for the target market. Were your company colours used for maximum effect and brand awareness? Did you use too much text? Inappropriate images? Is your data quality? What percentage of your emails were opened? What percentage even reached a valid email address? All of this can and should be measured to track the marketing campaign's success.<br />
<br />
2 Targeted prospects<br />
Don't send email to just anyone. You've gone to the trouble of targeting a particular market so stick with that market. If you are purchasing data is the best to purchase only what you need. You wouldn't go into a supermarket and buy every type of fruit and vegetables if you onyl eat apples, bananas, kiwis and cabbage would you? So don't buy all data that is available. This is not only expensive but is also inefficient and more of a hit and miss approx. Your Email Marketing campaign must be realistic and managable depending on your resources.<br />
<br />
1 Legal<br />
Adhere to the Email Marketing laws of your country. You should make yourself very familiar with Permission Based Email Marketing (try Googling the term). If your email marketing campaign is international then research and keep up to date with the particular law of the destination country. Specific country laws are outside the scope of this article but feel free to contact us with any queries.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Keyword Selection]]></title>
			<link>http://webmasterjuice.com/thread-360.html</link>
			<pubDate>Thu, 25 Feb 2010 22:55:58 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-360.html</guid>
			<description><![CDATA[Keyword Selection for Search Engine Optimisation<br />
As we all know that keyword plays the most important role in search Engine Optimisation.Well Here I am sharing some tips which I have concluded from my experience..<br />
<br />
Get realistic estimate of keyword popularity<br />
Don't Pick Single Word Phrases<br />
Evaluate the competition<br />
Choose Specific but Not Popular Keywords<br />
Constantly Change Your Keywords]]></description>
			<content:encoded><![CDATA[Keyword Selection for Search Engine Optimisation<br />
As we all know that keyword plays the most important role in search Engine Optimisation.Well Here I am sharing some tips which I have concluded from my experience..<br />
<br />
Get realistic estimate of keyword popularity<br />
Don't Pick Single Word Phrases<br />
Evaluate the competition<br />
Choose Specific but Not Popular Keywords<br />
Constantly Change Your Keywords]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Web Earnings Reports]]></title>
			<link>http://webmasterjuice.com/thread-359.html</link>
			<pubDate>Sat, 20 Feb 2010 09:51:00 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-359.html</guid>
			<description><![CDATA[Post a summary of what monthly earnings you make online and what methods you use to make the money.<br />
<br />
I'll kick it off with:<br />
<br />
Google: &gt; &#36;130<br />
eBay: &gt; &#36;45<br />
Other: &#36;0<br />
<br />
Methods used:<br />
<br />
SEO<br />
<br />
So we can maybe compile our detailed methods into a product later maybe to sell on other forums as a how-to guide?]]></description>
			<content:encoded><![CDATA[Post a summary of what monthly earnings you make online and what methods you use to make the money.<br />
<br />
I'll kick it off with:<br />
<br />
Google: &gt; &#36;130<br />
eBay: &gt; &#36;45<br />
Other: &#36;0<br />
<br />
Methods used:<br />
<br />
SEO<br />
<br />
So we can maybe compile our detailed methods into a product later maybe to sell on other forums as a how-to guide?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Is copying iTunes music from Mac to PC fairly simple?]]></title>
			<link>http://webmasterjuice.com/thread-358.html</link>
			<pubDate>Mon, 15 Feb 2010 06:56:26 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-358.html</guid>
			<description><![CDATA[I have a Mac laptop and a PC laptop, and my Mac has all my music. I want to copy all the music to my PC, but I'm not sure how easy it'll be. Will there be some sort of issue since they're different operating systems? Any tips?]]></description>
			<content:encoded><![CDATA[I have a Mac laptop and a PC laptop, and my Mac has all my music. I want to copy all the music to my PC, but I'm not sure how easy it'll be. Will there be some sort of issue since they're different operating systems? Any tips?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Worpress Sidebar Widgets]]></title>
			<link>http://webmasterjuice.com/thread-354.html</link>
			<pubDate>Thu, 11 Feb 2010 02:46:05 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-354.html</guid>
			<description><![CDATA[The latest versions of WordPress now include a dynamic sidebar where widgets can be dragged and dropped onto the sidebar.<br />
<br />
These widgets are like plugins. Also, this makes template design easier since the sidebar code is now greatly simplified.<br />
<br />
Code for a widgetized sidebar:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&lt;div id="sidebar" role="complementary"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php if ( !dynamic_sidebar() ) echo "&lt;li&gt;No sidebar widgets yet!&lt;/li&gt;"; ?&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<br />
&lt;/div&gt;</code></div></div>
<br />
The widget is uploaded to the plugins folder and activated in the same way as a plugin.<br />
<br />
Basic code for a sidebar widget:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">/*<br />Plugin&nbsp;Name:&nbsp;Widget<br />Plugin&nbsp;URI:&nbsp;http://webmasterjuice.com<br />Description:&nbsp;This&nbsp;is&nbsp;a&nbsp;widget<br />Version:&nbsp;1<br />Author:&nbsp;Ned&nbsp;Storm<br />Author&nbsp;URI:&nbsp;http://webmasterjuice.com<br />*/<br /><br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">widget_myuniquewidget_register</span><span style="color: #007700">()&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;</span><span style="color: #0000BB">widget_myuniquewidget</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;args</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">extract</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;args</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">&#36;before_widget</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">&#36;before_title<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">'My&nbsp;Unique&nbsp;Widget'<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#36;after_title</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">?&gt;<br /></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hello,&nbsp;World!<br /><span style="color: #0000BB">&lt;?php&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">&#36;after_widget</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_sidebar_widget</span><span style="color: #007700">(</span><span style="color: #DD0000">'My&nbsp;Unique&nbsp;Widget'</span><span style="color: #007700">,</span><span style="color: #DD0000">'widget_myuniquewidget'</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">add_action</span><span style="color: #007700">(</span><span style="color: #DD0000">'init'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">widget_myuniquewidget_register</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
Save this file as mywidget.php and upload to the plugins directory.<br />
Then activate it in the WP admin area.<br />
Then find it in the Appearance-&gt;Widgets area.<br />
Then drag it to the sidebar to have it appear on your test blog.<br />
<br />
------------<br />
Hacker notes.<br />
<br />
The Widget data is stored in the database in the options table with the option_id of sidebars_widgets<br />
<br />
The data is stored as a serialized form of an array such as:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">Array<br />(<br />&nbsp;&nbsp;&nbsp;&nbsp;[</span><span style="color: #0000BB">wp_inactive_widgets</span><span style="color: #007700">&#93;&nbsp;=&gt;&nbsp;Array<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;[</span><span style="color: #0000BB">sidebar</span><span style="color: #007700">-</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;&nbsp;=&gt;&nbsp;Array<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[</span><span style="color: #0000BB">0</span><span style="color: #007700">&#93;&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">recent</span><span style="color: #007700">-</span><span style="color: #0000BB">posts</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">categories</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">&#93;&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">archives</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">3</span><span style="color: #007700">&#93;&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">text</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">4</span><span style="color: #007700">&#93;&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">links</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">5</span><span style="color: #007700">&#93;&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">search</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">6</span><span style="color: #007700">&#93;&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">my</span><span style="color: #007700">-</span><span style="color: #0000BB">unique</span><span style="color: #007700">-</span><span style="color: #0000BB">widget<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;[</span><span style="color: #0000BB">array_version</span><span style="color: #007700">&#93;&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">3<br /></span><span style="color: #007700">)&nbsp;<br /></span></code></div></div></div>
Note: the above is pseudo code and not PHP (I like the syntax highlighting of php).]]></description>
			<content:encoded><![CDATA[The latest versions of WordPress now include a dynamic sidebar where widgets can be dragged and dropped onto the sidebar.<br />
<br />
These widgets are like plugins. Also, this makes template design easier since the sidebar code is now greatly simplified.<br />
<br />
Code for a widgetized sidebar:<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&lt;div id="sidebar" role="complementary"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php if ( !dynamic_sidebar() ) echo "&lt;li&gt;No sidebar widgets yet!&lt;/li&gt;"; ?&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<br />
&lt;/div&gt;</code></div></div>
<br />
The widget is uploaded to the plugins folder and activated in the same way as a plugin.<br />
<br />
Basic code for a sidebar widget:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">/*<br />Plugin&nbsp;Name:&nbsp;Widget<br />Plugin&nbsp;URI:&nbsp;http://webmasterjuice.com<br />Description:&nbsp;This&nbsp;is&nbsp;a&nbsp;widget<br />Version:&nbsp;1<br />Author:&nbsp;Ned&nbsp;Storm<br />Author&nbsp;URI:&nbsp;http://webmasterjuice.com<br />*/<br /><br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">widget_myuniquewidget_register</span><span style="color: #007700">()&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;</span><span style="color: #0000BB">widget_myuniquewidget</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;args</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">extract</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;args</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">&#36;before_widget</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">&#36;before_title<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">'My&nbsp;Unique&nbsp;Widget'<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#36;after_title</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">?&gt;<br /></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hello,&nbsp;World!<br /><span style="color: #0000BB">&lt;?php&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">&#36;after_widget</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_sidebar_widget</span><span style="color: #007700">(</span><span style="color: #DD0000">'My&nbsp;Unique&nbsp;Widget'</span><span style="color: #007700">,</span><span style="color: #DD0000">'widget_myuniquewidget'</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">add_action</span><span style="color: #007700">(</span><span style="color: #DD0000">'init'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">widget_myuniquewidget_register</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
Save this file as mywidget.php and upload to the plugins directory.<br />
Then activate it in the WP admin area.<br />
Then find it in the Appearance-&gt;Widgets area.<br />
Then drag it to the sidebar to have it appear on your test blog.<br />
<br />
------------<br />
Hacker notes.<br />
<br />
The Widget data is stored in the database in the options table with the option_id of sidebars_widgets<br />
<br />
The data is stored as a serialized form of an array such as:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">Array<br />(<br />&nbsp;&nbsp;&nbsp;&nbsp;[</span><span style="color: #0000BB">wp_inactive_widgets</span><span style="color: #007700">]&nbsp;=&gt;&nbsp;Array<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;[</span><span style="color: #0000BB">sidebar</span><span style="color: #007700">-</span><span style="color: #0000BB">1</span><span style="color: #007700">]&nbsp;=&gt;&nbsp;Array<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[</span><span style="color: #0000BB">0</span><span style="color: #007700">]&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">recent</span><span style="color: #007700">-</span><span style="color: #0000BB">posts</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">]&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">categories</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">]&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">archives</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">3</span><span style="color: #007700">]&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">text</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">4</span><span style="color: #007700">]&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">links</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">5</span><span style="color: #007700">]&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">search</span><span style="color: #007700">-</span><span style="color: #0000BB">3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">6</span><span style="color: #007700">]&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">my</span><span style="color: #007700">-</span><span style="color: #0000BB">unique</span><span style="color: #007700">-</span><span style="color: #0000BB">widget<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;[</span><span style="color: #0000BB">array_version</span><span style="color: #007700">]&nbsp;=&gt;&nbsp;</span><span style="color: #0000BB">3<br /></span><span style="color: #007700">)&nbsp;<br /></span></code></div></div></div>
Note: the above is pseudo code and not PHP (I like the syntax highlighting of php).]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Flavors of Linux for Servers?]]></title>
			<link>http://webmasterjuice.com/thread-353.html</link>
			<pubDate>Thu, 11 Feb 2010 00:19:26 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-353.html</guid>
			<description><![CDATA[I have been setting up a computer station in my home. I have several towers and I want to dedicate one of them as a server.<br />
<br />
Several years ago I came up with an idea, theme if you will, for a website, but it was too complicated for me at the time and I had developed the CargoShip as a prototype.<br />
<br />
Well, I've been putting off that website for long enough ad want to do some work on it. I'm wanting to use one of my towers as strictly an offline server to develop the website; rather than paying hosting fees to develop it online.<br />
<br />
I've been looking at some Linux distros, well primarily Ubuntu Server as it seems to be a popular choice.<br />
<br />
I'm wondering what distros others have used for a server, specifically setting up a lamp server, as for ease and flexibility?]]></description>
			<content:encoded><![CDATA[I have been setting up a computer station in my home. I have several towers and I want to dedicate one of them as a server.<br />
<br />
Several years ago I came up with an idea, theme if you will, for a website, but it was too complicated for me at the time and I had developed the CargoShip as a prototype.<br />
<br />
Well, I've been putting off that website for long enough ad want to do some work on it. I'm wanting to use one of my towers as strictly an offline server to develop the website; rather than paying hosting fees to develop it online.<br />
<br />
I've been looking at some Linux distros, well primarily Ubuntu Server as it seems to be a popular choice.<br />
<br />
I'm wondering what distros others have used for a server, specifically setting up a lamp server, as for ease and flexibility?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Hello all]]></title>
			<link>http://webmasterjuice.com/thread-352.html</link>
			<pubDate>Wed, 10 Feb 2010 04:43:52 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-352.html</guid>
			<description><![CDATA[Hi everyone! <br />
I am a new member here. My self David Brown. This is my first post. The thing I like about this community is it is a place where I can feel safe asking hard questions or talking about hard emotions. Where I can have a little anonymity and vent the stuff I wouldn't otherwise. It's a place where I can laugh. I love to come here and ask almost anything without being ridiculed, and receive honest answers from several different perspectives. I also love that I can share advice, life stories and opinions without feeling as though I'm sharing it with all of my friends and family. Hope for great time here with all you guys.]]></description>
			<content:encoded><![CDATA[Hi everyone! <br />
I am a new member here. My self David Brown. This is my first post. The thing I like about this community is it is a place where I can feel safe asking hard questions or talking about hard emotions. Where I can have a little anonymity and vent the stuff I wouldn't otherwise. It's a place where I can laugh. I love to come here and ask almost anything without being ridiculed, and receive honest answers from several different perspectives. I also love that I can share advice, life stories and opinions without feeling as though I'm sharing it with all of my friends and family. Hope for great time here with all you guys.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Who is your top 3 favourite guitarists and why?]]></title>
			<link>http://webmasterjuice.com/thread-351.html</link>
			<pubDate>Wed, 10 Feb 2010 03:08:42 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-351.html</guid>
			<description><![CDATA[Mine are:<br />
<br />
1. Eddie Van Halen - the most innovative guitarist of all-time. He has the total package tone, touch, technique, feel, and musicianship.<br />
<br />
2. Joe Satriani - very melodic and that wicked legato technique.<br />
<br />
3. Paul Gilbert - the best picking technique I've ever seen and one of the last real innovaters left out there.]]></description>
			<content:encoded><![CDATA[Mine are:<br />
<br />
1. Eddie Van Halen - the most innovative guitarist of all-time. He has the total package tone, touch, technique, feel, and musicianship.<br />
<br />
2. Joe Satriani - very melodic and that wicked legato technique.<br />
<br />
3. Paul Gilbert - the best picking technique I've ever seen and one of the last real innovaters left out there.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Avatar 3D Movie]]></title>
			<link>http://webmasterjuice.com/thread-349.html</link>
			<pubDate>Tue, 09 Feb 2010 09:46:42 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-349.html</guid>
			<description><![CDATA[Has anyone seen this yet?<br />
<br />
I went to a cinema/theater today and it was in 2D so I backed away.<br />
<br />
WTF, 2D is like watching movies in monochrome now, is it not?<br />
<br />
It has to be 3D or I bit-torrent download from the web!]]></description>
			<content:encoded><![CDATA[Has anyone seen this yet?<br />
<br />
I went to a cinema/theater today and it was in 2D so I backed away.<br />
<br />
WTF, 2D is like watching movies in monochrome now, is it not?<br />
<br />
It has to be 3D or I bit-torrent download from the web!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Difference between Opera and Firefox]]></title>
			<link>http://webmasterjuice.com/thread-348.html</link>
			<pubDate>Tue, 09 Feb 2010 03:52:58 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-348.html</guid>
			<description><![CDATA[Hi Guys,<br />
I am using Opera browser from last one year but my all friends suggest me to use Firefox, <br />
So can anybody tell me what's the basic difference between both the browser?]]></description>
			<content:encoded><![CDATA[Hi Guys,<br />
I am using Opera browser from last one year but my all friends suggest me to use Firefox, <br />
So can anybody tell me what's the basic difference between both the browser?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Easiest Web Programming Languages?]]></title>
			<link>http://webmasterjuice.com/thread-347.html</link>
			<pubDate>Mon, 08 Feb 2010 22:09:48 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-347.html</guid>
			<description><![CDATA[Hi<br />
My name is Steve and i would like to learn on how to code backend of sites..<br />
was wondering whats the best way to go about it ..]]></description>
			<content:encoded><![CDATA[Hi<br />
My name is Steve and i would like to learn on how to code backend of sites..<br />
was wondering whats the best way to go about it ..]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Google has disabled my Adsense account]]></title>
			<link>http://webmasterjuice.com/thread-346.html</link>
			<pubDate>Mon, 08 Feb 2010 14:14:09 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-346.html</guid>
			<description><![CDATA[What an absolute joke Google is.<br />
<br />
I tried to login today and got a message that my account was disabled.<br />
<br />
I checked my email and had received this:<br />
<br />
<blockquote><cite>Quote:</cite>Hello,<br />
<br />
While going through our records recently, we found that your AdSense<br />
account has posed a significant risk to our AdWords advertisers. Since<br />
keeping your account in our publisher network may financially damage our<br />
advertisers in the future, we've decided to disable your account.<br />
<br />
Please understand that we consider this a necessary step to protect the<br />
interests of both our advertisers and our other AdSense publishers. We<br />
realize the inconvenience this may cause you, and we thank you in advance<br />
for your understanding and cooperation.<br />
<br />
If you have any questions about your account or the actions we've taken,<br />
please do not reply to this email. You can find more information by<br />
visiting<br />
***EDIT***The link these incompetent fools sent does not work***EDIT***<br />
<br />
Sincerely,<br />
<br />
The Google AdSense Team</blockquote>
<br />
Arrogant, and no explanation. No way to contact them.<br />
<br />
I found an appeal form online; I'm not interested in appealing, I just wanted to tell them what I thought of them and that they are stealing my space by presently still running ads on some sites.<br />
<br />
I would try other advertising services, but I would have to check them out as too many ad servers are incompetently run and have spyware being fed through them; I'm just not going to bother with that.<br />
<br />
I had been building up my adsense earnings from just a few dollars a month, tripling last month, and hitting at about a dollar a day this month.<br />
<br />
In one simple click, Google has just ended my online earning without one speck of consideration.<br />
<br />
In the meantime, webmasters are spamming content to their blogs written by hacks for pennies an articles, who have no knowledge of what they are writing about, just to get keywords on their sites to lure surfers to worthless content, and Google of course approves of this.<br />
<br />
Create your own unique and valid content and Google smacks you down.<br />
<br />
I'm so sick and tired of what the internet has become, and how Google has contributed to that.<br />
<br />
I'm just going to shut down the majority of my websites and all of my blogs; I don't see any point in wasting money on domains and hosting for sites which are going to produce nothing. I don't see any point in wasting time with an income generator which can be yanked from you in a blink of an eye and bring your earnings to zero.]]></description>
			<content:encoded><![CDATA[What an absolute joke Google is.<br />
<br />
I tried to login today and got a message that my account was disabled.<br />
<br />
I checked my email and had received this:<br />
<br />
<blockquote><cite>Quote:</cite>Hello,<br />
<br />
While going through our records recently, we found that your AdSense<br />
account has posed a significant risk to our AdWords advertisers. Since<br />
keeping your account in our publisher network may financially damage our<br />
advertisers in the future, we've decided to disable your account.<br />
<br />
Please understand that we consider this a necessary step to protect the<br />
interests of both our advertisers and our other AdSense publishers. We<br />
realize the inconvenience this may cause you, and we thank you in advance<br />
for your understanding and cooperation.<br />
<br />
If you have any questions about your account or the actions we've taken,<br />
please do not reply to this email. You can find more information by<br />
visiting<br />
***EDIT***The link these incompetent fools sent does not work***EDIT***<br />
<br />
Sincerely,<br />
<br />
The Google AdSense Team</blockquote>
<br />
Arrogant, and no explanation. No way to contact them.<br />
<br />
I found an appeal form online; I'm not interested in appealing, I just wanted to tell them what I thought of them and that they are stealing my space by presently still running ads on some sites.<br />
<br />
I would try other advertising services, but I would have to check them out as too many ad servers are incompetently run and have spyware being fed through them; I'm just not going to bother with that.<br />
<br />
I had been building up my adsense earnings from just a few dollars a month, tripling last month, and hitting at about a dollar a day this month.<br />
<br />
In one simple click, Google has just ended my online earning without one speck of consideration.<br />
<br />
In the meantime, webmasters are spamming content to their blogs written by hacks for pennies an articles, who have no knowledge of what they are writing about, just to get keywords on their sites to lure surfers to worthless content, and Google of course approves of this.<br />
<br />
Create your own unique and valid content and Google smacks you down.<br />
<br />
I'm so sick and tired of what the internet has become, and how Google has contributed to that.<br />
<br />
I'm just going to shut down the majority of my websites and all of my blogs; I don't see any point in wasting money on domains and hosting for sites which are going to produce nothing. I don't see any point in wasting time with an income generator which can be yanked from you in a blink of an eye and bring your earnings to zero.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Problem in Windows Firewall .]]></title>
			<link>http://webmasterjuice.com/thread-345.html</link>
			<pubDate>Sun, 07 Feb 2010 23:45:43 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-345.html</guid>
			<description><![CDATA[I have used NIS version has turned off Windows firewall and also disabled the windows security notifications so the windows will not keep telling me about the disabled firewall.I noticed in NIS that both Norton and windows firewall are turned on but do not seem to causing any issues with each other.I pretty much let NIS do all of it's default settings so is this normal for NIS to keep Windows firewall turned on?]]></description>
			<content:encoded><![CDATA[I have used NIS version has turned off Windows firewall and also disabled the windows security notifications so the windows will not keep telling me about the disabled firewall.I noticed in NIS that both Norton and windows firewall are turned on but do not seem to causing any issues with each other.I pretty much let NIS do all of it's default settings so is this normal for NIS to keep Windows firewall turned on?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Benefits Of Social Bookmarking]]></title>
			<link>http://webmasterjuice.com/thread-344.html</link>
			<pubDate>Sun, 07 Feb 2010 23:07:58 -0600</pubDate>
			<guid isPermaLink="false">http://webmasterjuice.com/thread-344.html</guid>
			<description><![CDATA[1) More Targeted Traffic: Since your bookmarks are categorized into different TAGS, you will get very targeted traffic from people searching within a particular TAG. They will click on your bookmark link and visit your site. Your tags will rank well in the search engines due to the authority these sites have. <br />
2) Faster Search Engine Indexing: Most of these Social Bookmarking sites are authoritative sites. The search engine spiders visit these sites so often that your links will be crawled almost immediately!<br />
3) Higher Search Engine Ranking: Getting one-way incoming links is the main factor to higher search engine ranking. With Social Bookmarking, you can get unlimited 'keyword' links to your site. Having more keyword links that are relevant to your site will result in higher ranking.<br />
4) Better PageRank: Having high PR Social Bookmarking sites linked to your site will improve your site's PR. With a higher PR, you can link to your new/existing sites and improve their ranking too! You can even monetize on it by selling links from your site!]]></description>
			<content:encoded><![CDATA[1) More Targeted Traffic: Since your bookmarks are categorized into different TAGS, you will get very targeted traffic from people searching within a particular TAG. They will click on your bookmark link and visit your site. Your tags will rank well in the search engines due to the authority these sites have. <br />
2) Faster Search Engine Indexing: Most of these Social Bookmarking sites are authoritative sites. The search engine spiders visit these sites so often that your links will be crawled almost immediately!<br />
3) Higher Search Engine Ranking: Getting one-way incoming links is the main factor to higher search engine ranking. With Social Bookmarking, you can get unlimited 'keyword' links to your site. Having more keyword links that are relevant to your site will result in higher ranking.<br />
4) Better PageRank: Having high PR Social Bookmarking sites linked to your site will improve your site's PR. With a higher PR, you can link to your new/existing sites and improve their ranking too! You can even monetize on it by selling links from your site!]]></content:encoded>
		</item>
	</channel>
</rss>