Archive

Archive for July, 2009

Antivirus plugin for wordpress,Protects your blog effectively and efficiently

July 8th, 2009 carlgreat No comments

http://wpantivirus.com/img/love.png

Protects your blog effectively and efficiently

Viruses, worms and malware exist for WordPress and could easily attack your WordPress installation. AntiVirus for WordPress monitors malicious injections and warns you of any possible attacks. With multilingual support. Simply, the plugin you must have.

Ideal as a supplement to the manual security measures in your blogs. Hey, it’s free!

Download AntiVirus for WordPress

http://wpantivirus.com/img/icon.png

Plugin Site: http://wpantivirus.com/

Categories: Web Tags: ,

SEO in Wordpress (Related Contents)

July 7th, 2009 carlgreat No comments

The widget aim is trying to reduce the bounce rate of your blog and provide the visitor a better navigation experience.

When a visitor lands on your site from a search engine result page, he is in need of a certain information / service your page might satisfy. It often happens the visitor go away just after reading that page, for various reasons. Why not to try suggesting him more posts on the topic he is interested in at that moment, so that he might visit more pages?

The Search Engine Query in Wordpress widget grabs the query the visitor used on the search engine, executes it in the blog search and displays results, suggesting the visitor more information about what he is actually looking for.

If the visitor does not come from a search engine and the current page is the single post template, the widget can display the most recent posts in the current post category. There is an option in the widget control panel to turn this feature down. In that case, if the user does not come from the search engine the widget box simply doesn’t appear.

Widget Features

  • If the visitor comes from a search engine result page, the widget grabs the search engine query, executes it in the internal search (with the WP_Query object) and shows results
  • If the visitor is browsing a post detail (is_single()) and the visit source was not a search engine result page, the widget get the current post category and shows the most recent posts in that category
  • If the “Track clicks” option is enabled in the widget control panel, the plugin adds campaign dimension tags to links in the widget box.
    If your web analytics tool supports them, you’ll find a “Search engine query in WP widget” campaign that will allow you to understand how many clicks where produced by the widget box and if they were made from the category search or the search engine query search
  • The widget contrtrol panel lets you choose:
    1. The widget box title
    2. The number of related posts to display
    3. To search by category if the search engine query is not available
    4. To track clicks with campaign link tags
  • The widget layout can be customized by editing the seq_in_wp.css css file located in the plugin directory

Installation

  1. Unzip and upload ’search-engine-query-in-wp’ directory to your ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in the admin panel
  3. Activete the widget in the ‘Appearance -> Widgets’ section of the Admin panel
  4. Edit widget settings in the ‘Appearance -> Widgets -> Search Engine Query in WP’ for fine tuning (Title, number of posts, ajax, email etc.)
  5. Edit the seq_in_wp.css to change the box layout so that it fits your blog theme (not mandatory)

Changelog

  • 1.2.4: if jQuery is not loaded by default, the plugin enqueues the script in the <head> section (fixes the “emply box” bug)
  • 1.2.3: Far lighter Ajax scripts, integrated with Wordpress Jquery, the plugin auto-check requirements upon installation and deactivate itself it something is missing
  • 1.2.2: “Install” bug and “wp-config.php not found” bug fixed. Php 5.0 or higher is required anyway. Will work on backwards compatibility soon indeed
  • 1.2: option for executing the search on Ajax technology after the page has loaded, WP Super Cache compatibility, translations, logs by email, cool fade out effect if there are no related posts and much more ;)
  • 1.1.1: more search engines supported, safer coding
  • 1.0.7: first public release

Enhancements / todo list

  • Support more search engines (suggest your favourite and I’ll add it)
  • Better coding (Class instead of functions, some comments are in Italian)
  • Option for showing random posts if related are not found

Download Search Engine Query in Wordpress widget now! It’s free :P

Categories: Web Tags: ,

Tweetable Twitter Plugin for Wordpress

July 7th, 2009 carlgreat No comments

Description:

Compatible up to: 2.8

Tweetable is a WordPress Plugin intended to help integrate Twitter into your blog. It can tweet your blog posts as they are published, shortening the URLs with either Tr.im or Is.gd and optionally including Google Analytics campaign tags. You can display your latest tweet(s) in your blog sidebar with a customizable widget, which can even display your follower count.

Tweetable adds functions that turn the WordPress admin into a twitter client. The Tweet screen lets you update your status and browse your friends’. The Track page let’s you save keywords to be searched so you can keep an eye on what Twitter as a whole is saying about a given topic. You can set the minimum user level required to access the menus if you would like to allow other authors access.

Tweetable 'Tweet' Screen

An optional dashboard widget is available, so you can post quick tweets while managing other tasks.

Note: Tweetable requires WordPress 2.7 or later and PHP 5 and up to function.

Installation:

  1. Download the Tweetable plugin
  2. FTP the entire “tweetable” directory to your plugins folder (/wp-content/plugins/).
  3. Activate the plugin on the “Plugins” tab of the administration panel.
  4. Choose an option from the Twitter menu in the left-side admin navigation to run the setup wizard and connect your Twitter account to the blog.

>>Download Tweetable Twitter Plugin

What’s the best place to sit on a roller coaster?

July 7th, 2009 carlgreat No comments

It depends what kind of a roller coaster you are going on. If it is a ride with a lot of loops and inversions, than try to sit in the front because you have a much better view and you can see what’s coming. If the roller coaster doesn’t have any loops, but has a lot of big drops instead, I would sit in the very last row.

I know that people disagree on this, but in the last row you do get the most speed down the first drop. This is because as the front car starts moving down the hill, it is going slowly, but it starts to gain momentum as it drops. By the time the last car is at the top of the hill, the front cars have already gained a lot of momentum, causing the last car to be pulled over and then down the hill at a faster speed.

Categories: Ask Tags:

Highest-Quality Cars List Of 2009

July 7th, 2009 carlgreat No comments

2009’s Highest-Quality Cars

1. Toyota Yaris

Toyota Yaris

Segment: Sub-Compact Car

Brand PP100:101

MSRP: $12,205

Read on for more auto coverage, including lists and rankings, and facts about the hottest all-electric motorcycles and diesel’s newfound potential on American roads.

2. Hyundai Elantra Sedan

Hyundai Elantra Sedan

Segment: Compact Car

Brand PP100: 95

MSRP: $14,120

Read on for more auto coverage, including lists and rankings, and facts about the hottest all-electric motorcycles and diesel’s newfound potential on American roads.

3. Scion tC

Scion tC

Segment: Compact Sporty Car

Brand PP100:118

MSRP: $17,670

Read on for more auto coverage, including lists and rankings, and facts about the hottest all-electric motorcycles and diesel’s newfound potential on American roads.

4. Nissan Z

Nissan Z

Segment: Compact Premium Sporty Car

Brand PP100: 110

MSRP: $29,930

Read on for more auto coverage, including lists and rankings, and facts about the hottest all-electric motorcycles and diesel’s newfound potential on American roads.

5. Lexus IS

Lexus IS

Segment: Entry Premium Vehicle

Brand PP100: 84

MSRP: $31,305

Read on for more auto coverage, including lists and rankings, and facts about the hottest all-electric motorcycles and diesel’s newfound potential on American roads.

Categories: Travel Tags:

Wordpress 2.8 Plugin WP-PostViews 1.50 Installation Instructions

July 5th, 2009 carlgreat No comments

» Installation Instructions

  1. Put the folder wp-postviews to wp-content/plugins Folder
  2. Activate WP-PostViews Plugin

» Usage Instructions

General Usage
  1. Open wp-content/themes/<YOUR THEME NAME>/index.phpYou may place it in archive.php, single.php, post.php or page.php also.
  2. Find:

    <?php while (have_posts()) : the_post(); ?>

  3. Add Anywhere Below It:

    <?php if(function_exists(‘the_views’)) { the_views(); } ?>

  4. Go to ‘WP-Admin -> Settings -> PostViews’ to configure the plugin.
View Stats (With Widgets)
  1. Go to ‘WP-Admin -> Appearance -> Widgets
  2. The widget name is Views.
View Stats (Outside WP Loop)
  • To Display Least Viewed Posts
  • Use:

    <?php if (function_exists(‘get_least_viewed’)): ?>
    <ul>
    <?php get_least_viewed(); ?>
    </ul>
    <?php endif; ?>

    The first value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
    The second value you pass in is the maximum number of post you want to get.

    Default: get_least_viewed(‘both’, 10);

  • To Display Most Viewed Posts
  • Use:

    <?php if (function_exists(‘get_most_viewed’)): ?>
    <ul>
    <?php get_most_viewed(); ?>
    </ul>
    <?php endif; ?>

    The first value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
    The second value you pass in is the maximum number of post you want to get.

    Default: get_most_viewed(‘both’, 10);

  • To Display Least Viewed Posts By Tag
  • Use:

    <?php if (function_exists(‘get_least_viewed_tag’)): ?>
    <ul>
    <?php get_least_viewed_tag(); ?>
    </ul>
    <?php endif; ?>

    The first value you pass in is the tag id.
    The second value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
    The third value you pass in is the maximum number of post you want to get.

    Default: get_least_viewed_tag(1, ‘both’, 10);

  • To Display Most Viewed Posts By Tag
  • Use:

    <?php if (function_exists(‘get_most_viewed_tag’)): ?>
    <ul>
    <?php get_most_viewed_tag(); ?>
    </ul>
    <?php endif; ?>

    The first value you pass in is the tag id.
    The second value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
    The third value you pass in is the maximum number of post you want to get.

    Default: get_most_viewed_tag(1, ‘both’, 10);

  • To Display Least Viewed Posts For A Category
  • Use:

    <?php if (function_exists(‘get_least_viewed_category’)): ?>
    <ul>
    <?php get_least_viewed_category(); ?>
    </ul>
    <?php endif; ?>

    The first value you pass in is the category id.
    The second value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
    The third value you pass in is the maximum number of post you want to get.

    Default: get_least_viewed_category(1, ‘both’, 10);

  • To Display Most Viewed Posts For A Category
  • Use:

    <?php if (function_exists(‘get_most_viewed_category’)): ?>
    <ul>
    <?php get_most_viewed_category(); ?>
    </ul>
    <?php endif; ?>

    The first value you pass in is the category id.
    The second value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
    The third value you pass in is the maximum number of post you want to get.

    Default: get_most_viewed_category(1, ‘both’, 10);

  • To Sort Most/Least Viewed Posts
  • You can use:

    <?php query_posts(‘v_sortby=views&v_orderby=desc’) ?>

    Or pass in the variables to the URL:

    http://yoursite.com/?v_sortby=views&v_orderby=desc

    You can replace desc with asc if you want the least viewed posts.

Categories: Web Tags: ,

WordPress Features That Didn’t Make it into Version 2.8

July 5th, 2009 carlgreat No comments

The latest version of Wordpress 2.8 ia avalable, I had it installed and tested,and I find these features didn’t make it into Version 2.8 (or Version 2.7).

  • Some default shortcodes, maybe the most popular 10 from WordPress.com
  • oEmbed support, tied in with shortcodes
  • Better UI for post revisions, maybe an optional field to say what changed in a version
  • OAuth support
  • GeoData for posts, comments, attachments, etc.
  • Template tags to do everything the custom gallery on ma.tt does
  • Menu editor
  • Unbalanced tags across more and nextpage tags (Ticket 6297)
  • Sitemaps by default
  • Refresh of the importers (LiveJournal was refreshed)
  • Gallery post_type
  • Versioning of template edits
  • Documentation links for functions used in currently edited template
  • MPTT (Modified Preorder Tree Traversal) for hierarchies
Categories: Web Tags:

WordPress 2.8 Theme Compatibility List

July 5th, 2009 carlgreat No comments

Note: Please include the version number of the theme you tested. This will help both WordPress users and theme developers determine what needs to be addressed. If your WordPress Theme works only with specific WordPress Plugins, make sure they are compatible with WordPress 2.8.

Working Themes, no issues

0 – 9

A – D

E – H

I – L

M – P

Q – T

U – Z

Non-Compatible Themes (or Works Conditionally)

A – D

E – H

I – L

M – P

Q – T

U – Z

Categories: Web Tags:

The latest stable release of WordPress 2.8 is available.

July 5th, 2009 carlgreat No comments

The popular blog code Wordpress versi0n 2.8 is available,you can download it from offical site or from the link of this page.

Download WordPress 2.8

Categories: Web Tags:

8 Helpful WordPress SQL Hacks

July 5th, 2009 carlgreat No comments

Over the past 10 years, the MySQL database has become incredibly popular on the Web. Every WordPress blog is driven by a MySQL database, which contains the blog’s posts, settings, comments and much more.

While plug-ins and even coding hacks can solve some problems and achieve some tasks, sometimes you don’t have any other choice than to execute SQL commands in phpMyAdmin or directly to the database via SSH. Let’s take a look at 8 useful SQL hacks for WordPress. Each section of this post presents a problem, suggests a solution and provides an explanation to help you understand the solution.

1. Creating a Backup of Your Database

8 Useful Wordpress SQL Hacks

The problem. While the tips in the rest of this post have been tested, you should definitely not try any of them without first having a proper backup of your MySQL database.

The solution. To create a manual backup of your WordPress database, follow these simple steps:

  1. Log in to phpMyAdmin and select your WordPress database.
  2. Once done, click the “Export” button located in the horizontal menu.
  3. Choose a compression method (personally, I use gzip), and click the “Execute” button.
  4. Your browser will ask you if you want to download the backup. Of course, select “Yes,” and then store it on your hard drive.

Explanation. Note that creating a backup of your WordPress database can be more easily executed with the WP-DB-Backup plug-in. WordPress users should install this plug-in if they have not yet done so and create regular backups of their data.

2. Batch Delete Post Revisions

8 Useful Wordpress SQL Hacks

The problem. Post revisions, a new WordPress 2.6 feature, can be very useful, but they also increase the size of your MySQL database. Sure, you can manually delete posts revisions, but that’s very long and boring work.

The solution. The solution to this problem is simple: we batch delete post revisions by using a simple SQL query. The result can be almost unbelievable if you have a lot of posts: Your database size will be reduced by half!

  1. Log in to phpMyAdmin and select your WordPress database.
  2. Click the “SQL” button. Paste the following code in the SQL command window:
    1. DELETE FROM wp_posts WHERE post_type = “revision”;
    DELETE FROM wp_posts WHERE post_type = "revision";
  3. You’re done. Depending on how many posts you had in your WordPress database, you may have saved lots of precious space!

Code explanation. The wp_posts table has a field named post_type. This field can have one of many values, such as “post,” “page” or “revision.” When we want to get rid of post revisions, we simply run a command to delete any entry in the wp_posts table in which the post_type field is equal to “revision.”

Source:

3. Erase 5000 Spam Comments in a Second

8 Useful Wordpress SQL Hacks

The problem. True story: a friend of mine recently created his own blog and started to promote it everywhere on the Internet. After some weeks of intensive work, he spent some days on vacation without Internet access.

When he came back home, he looked at his blog and saw… 5000+ comments awaiting moderation! Of course, most of them were spam, but he was actually about to check them all to make sure he did not delete a valid comment made by one of his regular readers.

The solution. Happily, my friend told me about his spam problem. He had already spent 45 minute manually deleting spam when I showed him this useful SQL tip.

  1. Log in to phpMyAdmin and select your WordPress database.
  2. Click the “SQL” button. Paste the following code in the SQL command window:
    1. DELETE from wp_comments WHERE comment_approved = ‘0′;
    DELETE from wp_comments WHERE comment_approved = '0';
  3. Goodbye bad comments! Enjoy your spam-free database!

Explanation. The wp_comments table contains a field named comment_approved, which is a boolean value (1 or 0). Approved comments have a value of 1, and comments awaiting moderation have a value of 0. By running the above command, we simply delete any comments that haven’t been approved yet.

Be careful. While this solution can be pretty useful if you have millions of spam comments to delete, it will also erase valid unapproved comments. If you don’t already use Akismet, install it now to prevent spamming.

Source:

4. Change the Post Attribution

8 Useful Wordpress SQL Hacks

The problem. When you installed WordPress, an “admin” account was created. Some bloggers make the mistake of using that account to write their posts, until they realize that it’s not personal at all.

The solution. Modifying author attribution on each post takes a lot of time. Happily, SQL can help you get things done:

  1. Log in to your phpMyAdmin and select your WordPress database.
  2. First, we have to get the right user IDs. To do so, open the SQL command window and execute the following command:
    1. SELECT ID, display_name FROM wp_users;
    SELECT ID, display_name FROM wp_users;
  3. phpMyAdmin will display a list of user IDs associated with WordPress users. Let’s say that NEW_AUTHOR_ID is the ID of the more recently created author, and OLD_AUTHOR_ID is the original admin account ID.
  4. After you swap the NEW_AUTHOR_ID and OLD_AUTHOR_ID IDs, run the following command:
    1. UPDATE wp_posts SET post_author=NEW_AUTHOR_ID WHERE post_author=OLD_AUTHOR_ID;
    UPDATE wp_posts SET post_author=NEW_AUTHOR_ID WHERE post_author=OLD_AUTHOR_ID;
  5. That’s all. All posts previously attributed to admin are now attributed to whichever valid user you have selected.

Source:

5. Manually Reset Your Password

8 Useful Wordpress SQL Hacks

The problem. In order to protect their blogs, people often pick strong passwords, such as u7*KoF5i8_. Of course, this is a good thing, but I have heard many stories of forgotten admin passwords.

The solution. When you lose your password, WordPress can email you a link to reset it. But if you don’t have access to the email address recorded in the WordPress database anymore, or if you prefer just running a simple command instead, here is the hack.

  1. Log in to your phpMyAdmin, select your WordPress database and open the SQL window.
  2. Insert the following command (assuming your username is “admin”):
    1. UPDATE `wp_users` SET `user_pass` = MD5(‘PASSWORD’) WHERE `wp_users`.`user_login` =`admin` LIMIT 1;
    UPDATE `wp_users` SET `user_pass` = MD5('PASSWORD') WHERE `wp_users`.`user_login` =`admin` LIMIT 1;
  3. You’re done. Your password has been successfully replaced by whatever you inserted in space above marked “PASSWORD.”

Explanation. User passwords are stored in the wp_users table. Of course, an MD5 hash is used to secure the password.

We have to set up an “UPDATE” SQL request and use the built-in MD5() MySQL function to convert our password to MD5 and then update it. The “WHERE” clause ensures that we’re updating only the admin’s password. The same request without the “WHERE” clause would result in all passwords being updated!

Source:

6. Change Your WordPress Domain Name

8 Useful Wordpress SQL Hacks

The problem. Although it is not recommended, you may want at some point to change your domain name while keeping your blog and its data. Because WordPress records your domain name in the database, you have to change the database in order to connect your new domain name to your WordPress blog.

The solution.

  1. You guessed it: the first thing to do is log in to your phpMyAdmin and select your WordPress database.
  2. Click the “SQL” button to open the SQL command window. In order to change your WordPress URL, execute this first command:
    1. UPDATE wp_options SET option_value = replace(option_value, ‘http://www.oldsite.com’, ‘http://www.newsite.com’) WHERE option_name = ‘home’ OR option_name = ’siteurl’;
    UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsite.com', 'http://www.newsite.com') WHERE option_name = 'home' OR option_name = 'siteurl';
  3. Then, we have to replace the relative URL (guid) of each post. The following command will do that job:
    1. UPDATE wp_posts SET guid = replace(guid, ‘http://www.oldsite.com’,‘http://www.newsite.com’);
    UPDATE wp_posts SET guid = replace(guid, 'http://www.oldsite.com','http://www.newsite.com');
  4. We’re almost done. The last thing to do is a search and replace in the wp_posts table to make sure that no absolute URL is still here:
    1. UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.oldsite.com’, ‘http://www.newsite.com’);
    UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldsite.com', 'http://www.newsite.com');
  5. You’re done. You should be able to log in to your WordPress dashboard using your new URL.

Explanation. To easily change our WordPress domain name, I took advantage of the super-useful MySQL function “replace,” which allows you to replace one term by another.

Source:

7. Display the Number of SQL Queries on Your blog

8 Useful Wordpress SQL Hacks

The problem. When trying to optimize your blog’s loading time, knowing the number of queries made to the database is important. In order to reduce queries, the first thing to know is how many queries are made on a single page.

The solution.

  1. This time, no need to log in to phpMyAdmin. Simply open the footer.php file in your theme and append the following lines of code:
    1. <?php if (is_user_logged_in()) { ?>
    2. <?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.
    3. <?php } ?>
    <?php if (is_user_logged_in()) { ?>
        <?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.
    <?php } ?>
  2. Save the file and visit your blog. In the footer, you’ll see the number of queries made to the WordPress database as well as the time it took to make them.

Explanation. Seems that many WordPress users aren’t aware of this useful function. The get_num_queries() function returns the number of executed queries during a page load.

Note that the above code will only display the number of queries to logged-in users, because regular visitors and search engine bots don’t need to know about it. But, if you’d like to make it public, simply remove the if (is_user_logged_in()) conditional instruction.

Source:

8. Restore Your WordPress Database

8 Useful Wordpress SQL Hacks

The problem. Let’s say, for some reason, such as a hacking or upgrade problem, you have lost your blog data or it has become corrupted. If you have a backup (and I hope you do!) you will have to import it to your WordPress database.

The solution.

  1. Log in to phpMyAdmin and select your WordPress database.
  2. Click the “Import” button in the horizontal menu.
  3. Click the “Browse” button and select the most recent database backup on your hard disk.
  4. Click the “Execute” button. If everything went well, your WordPress database is fully functional again.
Categories: Web Tags: