Archive for category Wordpress plugin

Top wordpress plugin for your blog

  • Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a WordPress.com API key to use it. You can review the spam it catches under “Comments.” This is a default plugin for wp. You just need to activate it.
  • All in One SEO Pack. Out-of-the-box SEO for your WordPress blog.
  • Contact Form. Just another contact form plugin. Simple but flexible. It’s important to have contact form on your blog.
  • Easy Retweet. Adds a Retweet button to your WordPress posts.
  • Global Translator. Automatically translates a blog in fourteen different languages. This can help you gain more pages indexed at Google.
  • Google XML Sitemaps. This plugin will generate a sitemaps.org compatible sitemap of your WordPress blog which is supported by Ask.com, Google, MSN Search and YAHOO. Configuration Page. After having the sitemap, submit it to Google webmaster.
  • Link Cloaker. Maintains a list of ‘cloaked’ URLs for redirection to outside URLs
  • Subscribe To Comments. Allows readers to receive notifications of new comments that are posted to an entry.
  • Tag content from amazon. Add product based from Amazon on your tag page. Contact me if you want this plugin. Demo here.
  • Twitter Tools. A complete integration between your WordPress blog and Twitter. Bring your tweets into your blog and pass your blog posts to Twitter. Show your tweets in your sidebar, and post tweets from your WordPress admin.
  • Whydowork Adsense. Show adsense on your blog.
  • Wordbook. Cross-post your blog updates to your Facebook account.
  • WordPress Related Posts. Generate a related posts list via tags of WordPress. This helps your blog’s inner linking.
  • WP Auto Tagger. Automatically finds tags based on your post content. This will create more pages for your blog, but you need to have Tag content from amazon plugin that I create.

, , , , , , , , , , , , , , , , , , ,

No Comments

WordPress plugin setup

I have a lot of niche blog and I feel it is a waste of time to do the exact thing to all my blogs when I setup it. So I create a plugin to do the dirty work. Here what it will do:

  1. Set permalink to /%postname%/
  2. Delete all default links, like wordpress themes link
  3. Create privacy policy page
  4. Create contact us page based on http://takayukister.chipin.com/contact-form-7-20
  5. Update writing ping option to include more websites

You can download it here.

BTW, you can check my Internet Marketing Tool here. It’s a great tool that saves a lot of my time too.

, , , , , , , ,

No Comments

How to use widget multiple times

In WordPress 2.8, there’s a new widget API. The new widgets API is a class that abstracts away much of the complexity involved in writing a widget, especially multi-widgets.

Basically, you extend WP_Widget with your own class that provides a constructor and three methods — widget(), form(), and update().

  • widget() – outputs the actual content of the widget.
  • update() – processes options to be saved.
  • form() – outputs the options form.

* The WP_Widget source can be viewed here (read the phpdoc for moreinfo on usage): http://core.trac.wordpress.org/browser/trunk/wp-includes/widgets.php
* You can see examples of how to use it here: http://core.trac.wordpress.org/browser/trunk/wp-includes/default-widgets.php

Here’s an execelent example of the widget.

, , , , , , , , ,

No Comments

WordPress google map plugin

Here’s  a cool plugin that I will use. This plugin allows you to add multiple addresses to a post/page and have those addresses automatically plotted on a Google Map in a sidebar widget or directly in the post/page. This is a great plugin to help localize your stories, events, news, etc. Hovering over a plot will display the title of the post, address, and also a thumbnail from the post if any images exist. Easily add and delete a single or multiple addresses to each post/page. Viewing a single post/page displays only addresses attached to that post/page, viewing anything else will show the most recent plots across your entire site. You can also set a custom title and description for each address saved. If no title or description is entered the post title and excerpt will be used.

Download here

, , , , , , ,

No Comments

How to make wordpress plugin: General

This article will present you with the basics of wordpress plugin. I have create a plugin to help you understand how to create a plugin. This simple plugin shows a digg button to all your post. You can download the full code here. Below is several code I use:

class diggme
{
function diggme() {

add_action(‘init’, array($this, ‘init’));
add_action(‘admin_menu’, array(&$this, ‘setmenu’));
add_filter(‘the_content’, array(&$this, ‘the_content_filter’));
}

function init()
{
?>
<link href=”<?php echo get_option(‘siteurl’); ?>/wp-content/plugins/diggme/css.css” rel=”stylesheet” type=”text/css” />
<?php
}

function managepage(){
echo “<div id=’setting’>This is setting page. Just ignore this</div>”;
}

function setmenu () {
add_options_page(
‘DiggMe’,
‘DiggMe’,
‘manage_options’,
__FILE__,
array(&$this,’managepage’ ) );
}

function the_content_filter($content)
{
return $this->displaydigg() . $content;
}

function displaydigg()
{
global $post;

return “<div id=\”diggbutton\”><a href=\”http://digg.com/submit?phase=2&amp;url=”.get_permalink($post->ID).”\”><img src=\”".get_settings(‘siteurl’).”/wp-content/plugins/diggme/digg.png\”></a></div>”;
}

}

$diggme = new diggme();

  • The code will first create a class called diggme. Every time the plugin loads it will create an object of this class using $diggme = new diggme();

The constructor

  • add_action(‘init’, array($this, ‘init’)); -> This will tell your blog to execute function init whenever it loads.
  • add_action(‘admin_menu’, array(&$this, ‘setmenu’)); -> This will tell your blog to create menu at your admin page. You can place any settings here.
  • add_filter(‘the_content’, array(&$this, ‘the_content_filter’)); -> This will be executed every time when your post loads. In this example we will load function the_content_filter every time the page loads, read the post content and add a digg button to the post.

Other function is easy to understand if you have basic PHP skill. If you have any question just comment below.

, , , , , , , , , , , , , , , , , , , ,

1 Comment