Archive

Archive for June, 2009

A http request process in WordPress

June 20th, 2009 No comments

WordPress is my favorite blog system. Some time I will design some wordpress plugin, like Domain Change. Or sometimes I would design some wordpress themes, like grey blue.

All we know, wordpress is written by PHP, and recently I am reading the wordpress source code. I will share my what I could learn from this project in wordpress online. :-)

This post is just part 1, I will write more later.

When a audience visit your wordpress blog, for instance, your wordpress blog address is: http://www.webtoolol.com . It means the audience type this domain in their browsers, for example, Firefox.

Then, your wordpress blog hosting, as a http server, will receive the audience’s request, and will process the information from the request through HTTP protocol.

Once your server finished processing the request, it will send the browser the information which is the audience wanted.

Every URL request will be processed by the index.php in the WP root directory. So, let’s find the index.php in your WP root directory. It’s very simple, just two lines’ codes. Defined the constant var WP_USE_THEMES to true, and require the wp-blog-header.php in the same directory.

So, let’s go to the wp-blog-header.php.

In the wp-blog-header.php, it did the follow things.

  1. define the var $wp_did_header to true
  2. require the wp-load.php
  3. execute the function wp()
  4. require the template-loader.php

So, all things will finish in this file. Here, I recommend a project named wp-roadmap, you can click and go to have a look at  the intro of this project.

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

WordPress 2.8 released

June 11th, 2009 No comments

This is a short and quick post.

Post begin:

From wordpress blog, the lasted wordpress version 2.8 is released today.

Matt said this is the best wordpress version. The biggest change is the themes, widgets, category, and the whole speed.

It fixed 790 bugs. If you are a heavy wordpress fan, you can see180 updates here.

End post.

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

domain change is released

June 9th, 2009 14 comments

This is a wordpress plugins from WordPress online.

Note: the  Domain change version is version 1.3

DownLoad

Update log:

  1. Rewrite all the class and function.
  2. Fixed a big bug. 
  3. Support old domain including directory, for example, it is supported if your old blog siteurl is some link like http://www.old.com/blog/, this is not supported before this version.
  4. Fixed the ‘No bar’ bug!

Feature:

You will need this plugin if your blog domain is changed, this plugin will make your old domain 301 redirect to your new domain.

if your blog’s old domain is: http://www.old.com/blog
and you got a new domain, you want to use the new domain on the blog
the new domain like this: http://www.new.com

the best way is to redirect to your old domain to the new domain, with 301 http code.
this is good for the new domain and the search engine.

this plugin can help you to do this.

Install and setting

Once you active this plugin. Follow the next steps.

  1. Go to the setting page, and fill your old blog siteurl, for example: http://www.old.com/blog/
  2. The plugin will auto load your new blog site from Settings->General->Blog Address URL. So there is no need to setting for new domain :-)
  3. Choose the option to open or close this feature.

Example

your old blog siteurl: http://www.old.com/blog/
your new blog siteurl: http://www.new.com/

if you use this plugin
when people visit your blog with url: http://www.old.com/blog/207/
this plugin will changed the domain to the url: http://www.new.com/207 with 301 redirect.

Download

Domain change plugin was hosted on wordpress plugins directory. your can download here.

FAQS

If you have any questions, just leave a comment or go to the connect me page to connect me :-)

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

6 steps to keep your wordpress safer

June 7th, 2009 No comments

Wordpress is not always safe, in fact, almost every soft is not safe.

So, in order to keep our wordpress safer, we offered the 6 steps to keep your wordpress safer. Here we go :-)

  1. Protect your admin password. It’s easy to do this, but you must lay store by it.
  2. Make sure your wordpress is the latest version. Here is a plugin can make sure your wordpress is the latest version, Wordpress Automatic Upgrade
  3. Hide your wordpress version.
  4. Protect the important directories. Like /wp-admin, /wp-content/plugin, /wp-content/themes.
  5. Setup to config the directories’ purview.
  6. Back up your database periodically, here is a wordpress plugin you can use: wordpress back up plugin.

OK, here  is the 6 ways to make your wordpress safer :-)

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

How do you meet WordPress

June 5th, 2009 No comments

Maybe not everyone know wordpress first, like me :-)

I ask some people (they write blog with wordpress) how do they know wordpress. Many people said that they are attracted by its beautiful wordpress themes or wordpress plugins.

But I know, it is not easy for anyone to change some blog soft to wordpress, like drupal or joomla. But once they use Wordpress, the will love it like crazy.

Here I will show you some people’s cases, how do they meet wordpress? it is interesting!

  1. Through Wordpress online. How ever, this man even did not know until he visit wordpress online.
  2. Through other friends.
  3. I forget about it, long long ago…
  4. I use google to search php blog. wordpress is the first rank.
  5. Many free hosting provider support wordpress.
  6. stumble on my blog is powered by wordpress :-)
  7. I used joomla before.
  8. I like it’s crazy plugins!
  9. Could it be said that there is other better one than wordpress?
  10. wordpress is very clean.

Now, how do you meet wordpress? the answer is full of fan :-)

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Why do you must choose WordPress

June 2nd, 2009 No comments

If you have 4 answers in the 10 options below, I think you would like to use WordPress.

  1. I don’t like the expert blogsite, because they miss individuality.
  2. I don’t like the AD in the expert blogsite, and I may add AD in my own blog.
  3. I don’s like the astrict in the expert blogsite, I like freedom.
  4. The blog I support is longer than the expert blogsite.
  5. Blog is my favorite, I want to do it myself.
  6. Expert blogsite have no self-governed domain.
  7. Just for fun.
  8. Others.
  9. I like DIY.
  10. I like WordPress. No reason.

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Categories: WordPress ideas Tags:

Powered by Yahoo! Answers