Saturday, December 15, 2007

How To Turning Off WordPress Autosave

WordPress autosave is the best features which I hate in WordPress. My WordPress hosting is very slow, when I post new article, sometimes I got two saved post. The autosave features almost make me crazy. How can I turn off the autosave?

I finally patched core program post_new.php to disable autosave for a "new" post and the problem went away. Do not know if this will help you or not. My patch for v.2.3.1 follows. Newer versions might be around the same location.

Edit the file wp-admin/post_new.php WP v2.3.1 and insert "//" (without the quotes) at the beginning of this line (currently line 8):

wp_enqueue_script('autosave');

Save and upload the file post_new.php, and the WordPress autosave features is now disable.

Sunday, December 9, 2007

WordPress Robots.txt For SEO

The robots.txt file is used to instruct search engine robots about what pages on your website should be crawled and consequently indexed. Most websites have files and folders that are not relevant for search engines (like images or admin files) therefore creating a robots.txt file can actually improve your website indexation.

Implementing an effective SEO robots.txt file for WordPress will help your blog to rank higher in Search Engines, receive higher paying relevant Ads, and increase your blog traffic.

Here is my robots.txt files, which can further protect WordPress from this duplicate content issue.

User-agent: *
Disallow: /wp-
Disallow: /feed/
Disallow: /trackback/
Disallow: /comments/feed/
Disallow: /page/
Disallow: /comments/


After you created the robots.txt file just upload it to your root directory and you are done!

Friday, December 7, 2007

WordPress MU AdSense Plugin

WordPress MU AdSense Plugin is an easy-to-use plugin for WordPress MU 1.3+ (also including WordPress 2.3+) for quickly inserting Google or Yahoo! ads into all of the WordPress multi-user's blog posts. Wordpress MU allows webmasters to easily integrate Google Adsense inside wordpress using this plugins. Google Adsense has become the most popular online contextual advertising program and proper custom integration with Wordpress can help to increase Adsense earnings.

Installation / Configuration Instructions:

1. Edit wp-adsense.php, replace the Google AdSense code in the plugin with your own customized Google Adsense code.

2. Upload wp-adsense.php to your WordPress plugin directory(not the mu-plugins directory).

3. Download and install a WordPress MU Plugin - Plugin Commander, upload Plugin Commander to mu-plugins directory.

4. Login WordPress MU's Site Admin, click Plugin Commander, find WordPress Adsense plugin and click "Activate all" to mass activate the wordpress adsense plugin.

Download Latest:

Click here to download the latest version of WordPress MU AdSense plugin.

WordPress MU AdSense plugin can display AdSense ads inline with blog posts. Wish you would like this plugin.

Monday, December 3, 2007

WordPress Plugin: MySQL Server Crash Monitor

Since end of October our MySQL Server crashed on or two times a day. We don't no exactly why. Maybe the Databases are to big. We run several WordPress system on this MySQL Server. but the MySQL services often crashed, then my WordPress can't connect to MySQL server and show the error. So I develop this program to monitor the WordPress MySQL server, when the server is down, WordPress will auto send me an e-mail and write to a text log file in a recorded. We can look trough the log file to analysis the MySQL server databse, in order to cantact the host administrators to fix the error.

Here is the source code of the MySQL Server Crash Monitor.


// Change the e-mail address below .
$from = "[email protected]";
$to = "[email protected]";
$subject = "MySQL Crashed!";
$body = date("Y-m-d H:i:s");
$headers = 'From: '.$from . "\r\n"
.'Reply-To: '.$from . "\r\n"
.'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $body, $headers);
// Log to file
$filename = 'log.txt';
$somecontent = date("Y-m-d H:i:s");
$somecontent = $somecontent . "\r\n";
if (is_writable($filename)) {
if (!$handle = fopen($filename, 'a')) {
exit;
}
if (!fwrite($handle, $somecontent)) {
exit;
}
fclose($handle);
}


First, upload a file named log.txt to the WordPress root directory, chmod it to 666.

Second, replace the e-mail address of the code to your own e-mail.

Then,opening wp-includes/wp-db.php, find "if (! $ This-> dbh)", 66 lines in WordPress 2.3.1, paste the code after that. Save and upload the file.

Now, When the database lost connection or get problems, WordPress will automatically mail the error message to your mailbox, at the same time the message will be recorded in log.txt document.

Saturday, December 1, 2007

Wordpress Plugin: Keyword Filter

The WordPress keyword filter plugin plugin provided with WordPress. Not like the WordPress Comment Filter Plugin, the Keyword Filter Plugin aim at the post content. Keyword filter plugin works by creating a WordPress filter for the post contents. When the post get displayed, WordPress gives the post content to the  keyword filter plugin and the plugin returns some modified content. Replace the sensitive keyword with specific keyword.

The WordPress keyword plugin support Far East Characters (such as Chinese Characters). You may also create your own keyword filter lists as needed.

Installation / Configuration Instructions:

1. Edit wp-keywordfilter.php to add words that you wish to filter, or change the words that are already listed inside the file.

2. Upload wp-keywordfilter.php to your WordPress plugin directory.

3. Activate the plugin.

Download Latest:

Click here to download the latest version of WordPress keyword filter plugin.

Thursday, November 29, 2007

Wordpress Plugin: Comment Filter

WordPress Comment Filter is a plugin that allows for filtering of bad words used during commenting. Comment filter plugin works by creating a WordPress filter for the comment contents. When the comments get displayed, WordPress gives the comment content to the comment filter plugin and the plugin returns some modified content. Replace the bad word with asterisk. It's The modified version of the "No Shit" plugin, and have the following Features:

1. Well setting of filtering keywords.

2. Support Far East Characters (such as Chinese Characters).

Installation / Configuration Instructions:

1. Edit wp-noshit.php to add words that you wish to filter, or change the words that are already listed inside the file.

2. Upload wp-noshit.php to your WordPress plugin directory.

3. Activate the plugin.

Download Latest:

Click here to download the latest version of WordPress Comment Filter Plugin.

Wednesday, November 21, 2007

Free Access to MySQL Database Converter

DB2MYSQL Converter is a totally free software that will convert Microsoft Access Databases to MySQL. It's easy fast and accurate MS Access to MySQL Database Converter easily converts database records of Microsoft MS Access databases to MySQL server.

DB2MYSQL is very easy to use, just follow the simple screens and let the program automatically do all the work for you. We use a very fast conversion algorithm to provide you with the best possible performance level.

Free Access to MySQL Database Converter


Its Features include: Supports common MySQL data types and attributes. Supports common MS Access column data types and attributes. Works with all versions of MySQL servers running all platforms. Works with MS Access 97, 2000 and XP. Create a dump file. Select tables to transfer. Easy install, uninstall and upgrade.

Limitations

  • Does not convert forms, queries, reports and Visual Basic scripts

  • Does not convert system (hidden) tables


Requirements

  • At least 32 MB RAM

  • MS Access 7.0 or higher (ODBC is not required)

  • Necessary privileges to write into the destination database


MySQL dump file

Access-to-MySQL converter allows users to do indirect conversion and get more control over the process. Following this way, the program converts MS Access data into a local MySQL dump file instead of moving it to MySQL server directly. This dump file contains MySQL statements to create all tables and to fill them with the data. Click here to learn how to import dump file into MySQL database.

Price

DB2MYSQL Converter is totally free with no limited features.

Download

Click here to download totally free version of Access-to-MySQL converter.

Installation

After downloading the zip program you should simply unzip it and run the db2mysql program.

Contact