Adding no follow for links in wp comments

Don't Follow MeOne of my senior brother just asked me, how to add no follow rel for comments in wordpress. May be there is plugin for this. Look to my code 🙂
How to use:
1.Open the functions.php file in ur current theme and put these code within php tags.

What it will do:
1. Will add ‘no follow’ as rel in url , if comment contains any url.
2. Will ad ‘external’ as rel in url , if comment contains any url.
3. Will add target=”_blank” in comment author’s url so that their web url open’s in new window/new tab as in browser settings
4. Will add target=”_blank” to url, if comment contains any url
5. Wp adds ‘no follow’, ‘external’ rel in comment author’s url by default. So we don’t need to add this 😛

Tips:
1.If possible upgrade to wp2.8.2

[code language=”php”]
function nofollow($text) {
$text = preg_replace(‘/<a /i’,'<a rel="nofollow external" ‘,$text);
$text = preg_replace(‘/<a /i’,'<a target="_blank" ‘,$text);
return $text;
}
function targetblank($text){
$text = preg_replace(‘/<a /i’,'<a target="_blank" ‘,$text);
return $text;
}

add_filter(‘comment_text’, ‘nofollow’);
add_filter(‘get_comment_author_link’,’targetblank’);
[/code]

any question ask me 🙂
p.s.: post image is just for fun 😛

BTW, are you afraid of editing your functions.php ? Ok, no problem you can add the above piece of code using the bellow wp plugin.
[download id=”9″]

Duh, you are totally unhappy with this post, na ? You can to treat your commentors with “cake and cook”, ok no problem.Just forget my post and read this blog post …“The Single, Most Profound Way To Thank Your Commenters”.
Happy now ?

How to use timthumb in WP MU

I think to show the first image as thumb in wp front page or blog layout is very common for any theme. But to use it in wordpress mu version is not direct or need to do some hack or modify the normall process of adding timthub. Normally we upload images from wp media manager and use those in posts. In normal wordpress the upload dir is wp-content/uploads and files and images are uploaded to that directory. In wordpress mu version files are uploaded by user basis folder and for this wp-content/blogs.dir/userid is the uploaded dir for any image. here user id is named as folder name for each user. then wp-content/blogs.dir/userid/files. But when u browse the site the image link format is like http://yoursitename/files/year/month/image name but format is reshaped by the wp mu htacces which real physical path is like wp-content/blogs.dir/userid/files/year/month/image name.
Continue reading

How to make menu like news.bbc.co.uk

bbcNow a days I am a great fan of wordpress. Recently I have done some projects on wordpress and getting expert day by day 😛 heh heh.

This post about how can we make menu in wordpress like news.bbc.co.uk. Now a days some clients want clone sites. They don’t think about all the functionality but the look and feel clone 🙂 .
So to clone the menu like news.bbc.co.uk we what we need:
1. wp function wp_list_categories(args)
2. CSS to give look and feel like news.bbc.co.uk

Before we start let’s check what we are going to do:
here is the image that we are going to make or the menu that we are doing to make using wp_list_categories function and css. Look this menu is 2 level deep. To keep the theme clean u can make a function in functions.php file like bellow and just call the function in theme where u want to place the menu.
Look here we are using echo= 0 as want to just return the output from this function. and depth =2 as we want to make two level hirarachyâ€Ļ check others params that I have used. To know details about the template tag wp_list_categories pls check this page in wp codex.

Now what we need is to apply the css to style the menu like news.bbc.co.ukâ€Ļ one thing to keep in mind. When u will browse through the category I mean u click the any category from the menu and posts will be shown using category.php template then active category will get an extra class automatic which is helpfull to highlight using css but if u browse any single.
[code=’php’]function get_leftcatmenu(){
$excludecats = array();
$excludecats = array(1,2,3); //categories to exlclude
//or
//$includecats = array ();
//$includecats = array(1,2,3); //categories to include

/*
// same thing can be done using a simple plugin and saving the categories in option table , bellow code is for comma seperated cat list
$excludecats = explode(‘,’, get_option(‘bbcnews_leftmenucid’));
$excludecats = implode( “,”,$excludecats);
*/
/*
$includecats = explode(‘,’, get_option(‘bbcnews_leftmenuscid’));
$includecats = implode( “,”,$seccats);

//sample code to exclude
return wp_list_categories(‘orderby=name&amp;amp;style=list&amp;amp;hide_empty=0&amp;amp;show_count=0&amp;amp;title_li=&amp;amp;exclude=’.$excludecats.’&amp;amp;hierarchical=true&amp;amp;depth=2&amp;amp;echo=0′);

// sample code to inlclude
return wp_list_categories(‘orderby=id&amp;amp;style=list&amp;amp;hide_empty=0&amp;amp;show_count=0&amp;amp;title_li=&amp;amp;include=’.$includecats.’&amp;amp;hierarchical=true&amp;amp;depth=2&amp;amp;echo=0′);
*/
}
[/code]
post we need the hightlight the category in the menu to which the single post belongs to. But to make this happen that adding an extra class to the menu to make active while browsing any single posts I have used a plugin 🙂 named “Show Active Category (while browsing a post)“. Note if any post belongs to more one category then it will add extra active class to each category.

Uffâ€Ļ.now check the css code that I used:
Note: this css code works fine in ff3 and ie6 and I have no interest with other browser at this moment.
Code to use in theme:
[code=’php’]

  • home”>

is_home-is_single-is_category-is-not-working-in-wp!

If u are reached here using search engine then I am sure that you are just fucked up 🙁 .. is_home(), is_single(), is_category() are not workingâ€Ļspecially in footer and other places. I faced the same problem. While working with a wordpress theme, this functions were working fine in footer but once I noticed that they are not working as they should be !â€Ļ.

Let me explain why and how this problem occurs and what’s the solution :

I think if u are familiar with the famus LOOP in wordpress. The following is_home(), is_single(), is_category() functions depends on the loop. ACtually when u visit the home page then header.php, index.php, sidebar.php and footer.php files are executed and in the same way when u visit a single post then normally header.php, single.php, sidebar.php and footer.php files are executed. Actually some global page specific query is done for single.php, index.php etc. is_home(), is_single(), is_category() they will work fine if u use the default theme and don’t add any custom query !

Let’s check the code for is_home() function â€Ļ
[code=’php’]/**
* Whether current page view is the blog homepage.
*
* @since 1.5.0
* @uses $wp_query
*
* @return bool True if blog view homepage.
*/
function is_home () {
global $wp_query;
return $wp_query->is_home;
}
[/code]
Ok, for custom query maximum time I use this function get_posts. But to get more control I used query_posts. They are same and share some common arguments but query_posts gives more controls and more arguments to pass to get the exact query. Now Let’s check the code for query_posts() function

[code=’php’]/**
* Setup the Loop based on the query variables.
*
* @uses WP::$query_vars
* @since 2.0.0
*/
function query_posts() {
global $wp_the_query;
$this->build_query_string();
$wp_the_query->query($this->query_vars);
}
[/code]

and code for get_posts

[code=’php’]/**
* Retrieve list of latest posts or posts matching criteria.
*
* The defaults are as follows:
* ‘numberposts’ – Default is 5. Total number of posts to retrieve.
* ‘offset’ – Default is 0. See {@link WP_Query::query()} for more.
* ‘category’ – What category to pull the posts from.
* ‘orderby’ – Default is ‘post_date’. How to order the posts.
* ‘order’ – Default is ‘DESC’. The order to retrieve the posts.
* ‘include’ – See {@link WP_Query::query()} for more.
* ‘exclude’ – See {@link WP_Query::query()} for more.
* ‘meta_key’ – See {@link WP_Query::query()} for more.
* ‘meta_value’ – See {@link WP_Query::query()} for more.
* ‘post_type’ – Default is ‘post’. Can be ‘page’, or ‘attachment’ to name a few.
* ‘post_parent’ – The parent of the post or post type.
* ‘post_status’ – Default is ‘published’. Post status to retrieve.
*
* @since 1.2.0
* @uses $wpdb
* @uses WP_Query::query() See for more default arguments and information.
* @link http://codex.wordpress.org/Template_Tags/get_posts
*
* @param array $args Optional. Override defaults.
* @return array List of posts.
*/
function get_posts($args = null) {
$defaults = array(
‘numberposts’ => 5, ‘offset’ => 0,
‘category’ => 0, ‘orderby’ => ‘post_date’,
‘order’ => ‘DESC’, ‘include’ => ”,
‘exclude’ => ”, ‘meta_key’ => ”,
‘meta_value’ =>”, ‘post_type’ => ‘post’,
‘suppress_filters’ => true
);

$r = wp_parse_args( $args, $defaults );
if ( empty( $r[‘post_status’] ) )
$r[‘post_status’] = ( ‘attachment’ == $r[‘post_type’] ) ? ‘inherit’ : ‘publish’;
if ( ! empty($r[‘numberposts’]) )
$r[‘posts_per_page’] = $r[‘numberposts’];
if ( ! empty($r[‘category’]) )
$r[‘cat’] = $r[‘category’];
if ( ! empty($r[‘include’]) ) {
$incposts = preg_split(‘/[\s,]+/’,$r[‘include’]);
$r[‘posts_per_page’] = count($incposts); // only the number of posts included
$r[‘post__in’] = $incposts;
} elseif ( ! empty($r[‘exclude’]) )
$r[‘post__not_in’] = preg_split(‘/[\s,]+/’,$r[‘exclude’]);

$r[‘caller_get_posts’] = true;

$get_posts = new WP_Query;
return $get_posts->query($r);

}
[/code]

get_posts will not make any problem for is_single(), is_home(), is_category() etc functions.

Solution: To avoid this problem you can use this trick:

[code=’php’]$query_backup = clone($GLOBALS[‘wp_query’]); //keep backup
……
query_posts(…..)

$GLOBALS[‘wp_query’] = $query_backup; //restore from backup
[/code]

Further info: Please keep in mind that the php function clone() will not work in php4, it’s just for php5 becuase Php5 handles objects in different way. Like in php5 you can copy a object in this way
$new_object = clone ($old_object);
here $new_object will not copy the object actually though it will just point to $old_object but in php4 the thing is just copy like bellow.
$new_object = $old_object;

You can check this link for better explanation.

Sometimes pain gives us a way to think 😛

thanks

āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻĨā§€āĻŽ āĻ•āĻŋāĻ­āĻžāĻŦā§‡ āĻ•āĻžāĻœ āĻ•āĻ°ā§‡-āĻĒāĻ°ā§āĻŦ-ā§§

[āĻ¯āĻĻāĻŋ āĻ†āĻĒāĻ¨āĻžāĻ° āĻ¨āĻ°āĻŽāĻžāĻ˛ āĻāĻ‡āĻŸāĻŋāĻāĻŽāĻāĻ˛ āĻāĻŦāĻ‚ āĻāĻ•āĻĻāĻŽ āĻŦā§‡āĻ¸āĻŋāĻ• āĻĒāĻŋāĻāĻ‡āĻšāĻĒāĻŋ āĻœā§āĻžāĻžāĻ¨ āĻ¨āĻž āĻĨāĻžāĻ•ā§‡ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻāĻ‡ āĻĒā§‹āĻ¸ā§āĻŸā§‡āĻ° āĻ•āĻŋāĻ›ā§ āĻŦāĻŋāĻˇāĻ¯āĻŧ āĻœāĻŸāĻŋāĻ˛ āĻŽāĻ¨ā§‡ āĻšāĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡ ]
āĻ…āĻ¨ā§‡āĻ•ā§‡āĻ‡ āĻŦā§āĻ¯āĻ•ā§āĻ¤āĻŋāĻ—āĻ¤ āĻšā§‹āĻ¸ā§āĻŸāĻŋāĻ‚ āĻ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻ‡āĻ¨āĻ¸ā§āĻŸāĻ˛ āĻ•āĻ°ā§‡ āĻŦā§āĻ˛āĻ—āĻŋāĻ‚ āĻ•āĻ°āĻ›ā§‡āĻ¨ āĻāĻŦāĻ‚ āĻĒāĻ›āĻ¨ā§āĻĻā§‡āĻ° āĻ•ā§‹āĻ¨ āĻĢā§āĻ°āĻŋ āĻĨā§€āĻŽ āĻ‡āĻ¨āĻ¸ā§āĻŸāĻ˛ āĻ•āĻ°ā§‡ āĻĻāĻŋāĻŦā§āĻ¯āĻŋ āĻ¸ā§āĻ¨ā§āĻĻāĻ° āĻŦā§āĻ¯āĻ•ā§āĻ¤āĻŋāĻ—āĻ¤ āĻŦā§āĻ˛āĻ— āĻŦāĻžāĻ¨āĻŋāĻ¯āĻŧā§‡ āĻ¨āĻŋāĻšā§āĻ›ā§‡āĻ¨āĨ¤ āĻ¯āĻĻāĻŋ āĻāĻŽāĻ¨ āĻšāĻ¯āĻŧ āĻāĻ‡ āĻĨā§€āĻŽ āĻ•āĻŋāĻ­āĻžāĻŦā§‡ āĻ•āĻžāĻœ āĻ•āĻ°ā§‡ āĻ¤āĻž āĻ¯āĻĻāĻŋ āĻœāĻžāĻ¨āĻž āĻĨāĻžāĻ•ā§‡ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻ†āĻ°ā§‹ āĻŽāĻœāĻž āĻ¨āĻž ? āĻ‡āĻšā§āĻ›āĻž āĻšāĻ˛ā§‹ āĻāĻ•āĻŸā§ āĻ¸āĻŽā§āĻĒāĻžāĻĻāĻ¨āĻž āĻ•āĻ°ā§‡ āĻĨā§€āĻŽāĻŸāĻžāĻ•ā§‡ āĻ¨āĻŋāĻœā§‡āĻ° āĻŽāĻ¤ā§‹ āĻ¸āĻžāĻœāĻŋāĻ¯āĻŧā§‡ āĻ¨āĻŋāĻ˛ā§‡āĻ¨āĨ¤ āĻ†āĻŽāĻžāĻ° āĻŦāĻ•āĻŦāĻ• āĻļā§āĻ°ā§āĻ° āĻ†āĻ—ā§‡ āĻ†āĻ¸ā§āĻ¨ āĻœā§‡āĻ¨ā§‡ āĻ¨ā§‡āĻ‡ āĻāĻ‡ āĻĒā§‹āĻ¸ā§āĻŸā§‡āĻ° āĻ‰āĻĻā§āĻĻā§‡āĻļā§āĻ¯āĻ—ā§āĻ˛ā§‹āĻƒ

āĻāĻ•āĻƒ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻĨā§€āĻŽ āĻ•āĻŋāĻ­āĻžāĻŦā§‡ āĻ•āĻžāĻœ āĻ•āĻ°ā§‡
āĻĻā§āĻ‡āĻƒ āĻĨā§€āĻŽ āĻĢā§‹āĻ˛ā§āĻĄāĻžāĻ°ā§‡āĻ° āĻ•ā§‹āĻ¨ āĻĢāĻžāĻ‡āĻ˛ā§‡āĻ° āĻ•āĻžāĻœ āĻ•āĻŋ
āĻ¤āĻŋāĻ¨āĻƒ āĻĨā§€āĻŽ āĻ¸āĻŽā§āĻĒāĻžāĻĻāĻ¨āĻž āĻ•āĻ°āĻž
āĻšāĻžāĻ°āĻƒ āĻ‡āĻ¤ā§āĻ¯āĻžāĻĻāĻŋ :ttt:
Continue reading

āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡ āĻāĻĄāĻŽāĻŋāĻ¨ āĻ˛āĻ—āĻŋāĻ¨ āĻĒā§‡āĻœāĻ•ā§‡ āĻĒāĻ°āĻŋāĻŦāĻ°ā§āĻ¤āĻ¨ āĻ•āĻ°ā§āĻ¨ āĻ¨āĻŋāĻœā§‡āĻ° āĻŽāĻ¤ā§‹ āĻ•āĻ°ā§‡

āĻ§āĻ°ā§āĻ¨ āĻ†āĻĒāĻ¨āĻžāĻ° āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻŦā§āĻ˛āĻ—ā§‡āĻ°(āĻ¸ā§‡āĻ˛āĻĢ āĻšā§‹āĻ¸ā§āĻŸā§‡āĻĄ) āĻ˛āĻŋāĻ™ā§āĻ• āĻ¯āĻĻāĻŋ āĻšāĻ¯āĻŧ http://www.mysite.com āĻ¤āĻžāĻšāĻ˛ā§‡ āĻ†āĻĒāĻ¨āĻžāĻ° āĻāĻĄāĻŽāĻŋāĻ¨ āĻĒā§āĻ¯āĻžāĻ¨ā§‡āĻ˛ā§‡ āĻĸā§āĻ•āĻžāĻ° āĻ˛āĻŋāĻ™ā§āĻ• āĻšāĻŦā§‡ āĻāĻ‡ āĻ°āĻ•āĻŽāĻƒ http://www.mysite.com/wp-admin āĨ¤ āĻāĻ‡ āĻĒāĻžāĻ¤āĻžāĻ¯āĻŧ āĻ—ā§‡āĻ˛ā§‡āĻ‡ āĻŦāĻŋāĻļāĻžāĻ˛ āĻāĻ•āĻŸāĻž āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻ›āĻŦāĻŋāĨ¤ āĻ†āĻĒāĻ¨āĻŋ āĻšāĻžāĻ‡āĻ˛ā§‡āĻ‡ āĻ•āĻŋāĻ¨ā§āĻ¤ā§ āĻāĻ‡ āĻ›āĻŦāĻŋ, āĻ›āĻŦāĻŋāĻ° āĻ‰āĻĒāĻ° āĻŽāĻžāĻ‰āĻ¸ āĻ¨āĻŋāĻ˛ā§‡ āĻ¯ā§‡ āĻŸā§āĻĒ āĻŸāĻŋāĻĒ/āĻŸāĻžāĻ‡āĻŸā§‡āĻ˛(powered by wordpress ) āĻĻā§‡āĻ–āĻžāĻ¯āĻŧ āĻāĻŦāĻ‚ āĻ›āĻŦāĻŋāĻŸāĻžāĻ° āĻ˛āĻŋāĻ™ā§āĻ• (āĻĄāĻŋāĻĢāĻ˛ā§āĻŸ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻ¸āĻžāĻ‡āĻŸā§‡āĻ° āĻ˛āĻŋāĻ™ā§āĻ• āĻĨāĻžāĻ•ā§‡) āĻ‡āĻ¤ā§āĻ¯āĻžāĻĻāĻŋ āĻĒāĻ°āĻŋāĻŦāĻ°ā§āĻ¤āĻ¨ āĻ•āĻ°ā§‡ āĻ¸āĻŽā§āĻĒā§‚āĻ°ā§āĻŖ āĻ¨āĻŋāĻœā§‡āĻ° āĻŽāĻ¤ā§‹ āĻ•āĻ°ā§‡ āĻ¨āĻŋāĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡āĻ¨āĨ¤

āĻāĻ° āĻœāĻ¨ā§āĻ¯ āĻĒā§āĻ˛āĻžāĻ—āĻŋāĻ¨ āĻĒāĻžāĻ“āĻ¯āĻŧāĻž āĻ¯āĻžāĻ¯āĻŧ āĻ•āĻŋāĻ¨ā§āĻ¤ā§ āĻ¯āĻĻāĻŋ āĻ¨āĻŋāĻœā§‡āĻ‡ āĻļāĻŋāĻ–ā§‡ āĻĢā§‡āĻ˛ā§‡āĻ¨ āĻ•āĻŋāĻ­āĻžāĻŦā§‡ āĻ•āĻžāĻœāĻŸāĻž āĻ•āĻ°āĻ¤ā§‡ āĻšāĻŦā§‡ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻŽāĻœāĻžāĻŸāĻž āĻŦā§‡āĻļāĻŋâ€Ļ āĻ¤āĻžāĻ‡ āĻ¨āĻž ? āĻ†āĻ° āĻšā§āĻ¯āĻžāĻ āĻāĻ‡ āĻ§āĻ°āĻ¨ā§‡āĻ° āĻĒāĻ°āĻŋāĻŦāĻ°ā§āĻ¤āĻ¨ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻ¸āĻžāĻĒā§‹āĻ°ā§āĻŸ āĻ•āĻ°ā§‡ āĻŦāĻ˛ā§‡āĻ‡ āĻ•ā§‹āĻ° āĻĢāĻžāĻ‡āĻ˛ā§‡āĻ° āĻ•ā§‹āĻ¨ āĻ§āĻ°āĻ¨ā§‡āĻ° āĻĒāĻ°āĻŋāĻŦāĻ°ā§āĻ¤āĻ¨ āĻ¨āĻž āĻ•āĻ°ā§‡ āĻ†āĻĒāĻžāĻ¨āĻžāĻ•ā§‡ āĻĒā§āĻ˛āĻžāĻ—āĻŋāĻ¨ āĻĻāĻŋāĻ¯āĻŧā§‡ āĻŦāĻž āĻĨā§€āĻŽ āĻĨā§‡āĻ•ā§‡ āĻšā§āĻ• āĻ•āĻ°āĻžāĻ° āĻŽāĻžāĻ§ā§āĻ¯āĻŽā§‡ āĻ¨āĻŋāĻœā§‡āĻ° āĻ‡āĻšā§āĻ›āĻžāĻŽāĻ¤ āĻ•āĻŋāĻ›ā§ āĻŦāĻ¸āĻŋāĻ¯āĻŧā§‡ āĻĻā§‡āĻ“āĻ¯āĻŧāĻžāĻ° āĻ¸ā§āĻ¯ā§‹āĻ— āĻ°ā§‡āĻ–ā§‡āĻ›ā§‡āĨ¤ :C
Continue reading

āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄāĻĒā§āĻ°ā§‡āĻ¸ā§‡ āĻĒā§‹āĻ¸ā§āĻŸ āĻ°āĻŋāĻ­āĻŋāĻļāĻ¨ āĻŦāĻ¨ā§āĻ§ āĻ•āĻ°ā§āĻ¨

āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄāĻĒā§āĻ°ā§‡āĻ¸ā§‡ āĻāĻ•āĻŸāĻž āĻ¸ā§āĻŦāĻŋāĻ§āĻž āĻ†āĻ›ā§‡ āĻ¯ā§‡ āĻ†āĻĒāĻ¨āĻŋ āĻ¯āĻ¤āĻŦāĻžāĻ° āĻ•ā§‹āĻ¨ āĻĒā§‹āĻ¸ā§āĻŸ āĻ¸āĻŽā§āĻĒāĻžāĻĻāĻ¨āĻž āĻ•āĻ°āĻŦā§‡āĻ¨ āĻ¤āĻ¤ āĻŦāĻžāĻ° āĻĒā§‹āĻ¸ā§āĻŸ āĻŸā§‡āĻŦāĻŋāĻ˛ā§‡ āĻ¨āĻ¤ā§āĻ¨ āĻāĻ•āĻŸāĻž row āĻ¤ā§ˆāĻ°āĻŋ āĻ•āĻ°āĻŦā§‡ āĻŽāĻžāĻ¨ā§‡ āĻ†āĻĒāĻ¨āĻžāĻ° āĻĒā§āĻ°āĻ¤āĻŋāĻŦāĻžāĻ°ā§‡āĻ° āĻĒāĻ°āĻŋāĻŦāĻ°ā§āĻ¤āĻ¨ āĻ—ā§āĻ˛ā§‹ āĻ āĻŋāĻ• āĻ āĻžāĻ• āĻŽāĻ¤ā§‹ āĻ†āĻ˛āĻžāĻĻāĻž āĻ†āĻ˛āĻžāĻĻāĻž āĻĒā§‹āĻ¸ā§āĻŸ āĻšāĻŋāĻ¸āĻžāĻŦā§‡ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°āĻŦā§‡āĨ¤ āĻ¯āĻžāĻ°āĻž āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄāĻĒā§āĻ°ā§‡āĻ¸ āĻŦā§āĻ˛āĻ— āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°ā§‡āĻ¨ āĻ¤āĻžāĻ°āĻž āĻ¯āĻĻāĻŋ āĻāĻ•āĻŸā§ āĻ–ā§‡āĻ¯āĻŧāĻžāĻ˛ āĻ•āĻ°ā§‡āĻ¨ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻĻā§‡āĻ–āĻŦā§‡āĻ¨ āĻĒā§‹āĻ¸ā§āĻŸ āĻ¸āĻŽā§āĻĒāĻžāĻĻāĻ¨āĻž āĻ•āĻ°āĻ¤ā§‡ āĻ—ā§‡āĻ˛ā§‡ āĻ¨āĻŋāĻšā§‡āĻ° āĻĻāĻŋāĻ•ā§‡ “Post Revisions” āĻ¨āĻžāĻŽā§‡ āĻāĻ•āĻŸāĻž āĻŦā§āĻ˛āĻ• āĻĒāĻžāĻŦā§‡āĻ¨āĨ¤ āĻāĻŸāĻž āĻŦā§‡āĻļ āĻ¸ā§āĻŦāĻŋāĻ§āĻžāĻ° āĻ•āĻžāĻ°āĻŖ āĻ†āĻĒāĻ¨āĻŋ āĻšāĻžāĻ‡āĻ˛ā§‡ āĻ†āĻĒāĻ¨āĻžāĻ° āĻ†āĻ—ā§‡āĻ° āĻ•ā§‹āĻ¨ āĻ°āĻŋāĻ­āĻŋāĻļāĻ¨ā§‡āĻ° āĻ°ā§‹āĻ˛ āĻŦā§āĻ¯āĻžāĻ• āĻ•āĻ°āĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡āĻ¨āĨ¤ āĻšāĻ¯āĻŧāĻ¤ā§‹ āĻ­ā§āĻ˛ āĻ•āĻ°ā§‡ āĻ•ā§‹āĻ¨ āĻ¸āĻŽā§āĻĒāĻžāĻĻāĻ¨āĻž āĻ•āĻ°āĻ˛ā§‡āĻ¨ āĻ†āĻŦāĻžāĻ° āĻ†āĻ—ā§‡āĻ° āĻ…āĻŦāĻ¸ā§āĻĨāĻžāĻ¯āĻŧ āĻĢāĻŋāĻ°ā§‡ āĻ†āĻ¸āĻ˛ā§‡āĻ¨āĨ¤ āĻāĻ° āĻ…āĻ¸ā§āĻŦāĻŋāĻ§āĻžāĻ“ āĻ†āĻ›ā§‡ āĻ¯ā§‡āĻŽāĻ¨, āĻĒā§‹āĻ¸ā§āĻŸ āĻ¸āĻ‚āĻ–ā§āĻ¯āĻžāĻ° āĻŦāĻžāĻĄāĻŧāĻžāĻ° āĻ¸āĻžāĻĨā§‡ āĻ¸āĻžāĻĨā§‡ āĻāĻ‡ āĻ°āĻ•āĻŽ āĻ…āĻ¸āĻ‚āĻ–ā§āĻ¯ āĻ°āĻŋāĻ­āĻŋāĻļāĻ¨ āĻĄāĻžāĻŸāĻžāĻŦā§‡āĻœā§‡ āĻ¸ā§‡āĻ‡āĻ­ āĻšāĻŦā§‡āĨ¤ āĻ‰āĻ˛ā§āĻ˛ā§‡āĻ–ā§āĻ¯ āĻ¯ā§‡ āĻĒā§āĻ°āĻ¤āĻŋ āĻ°āĻŋāĻ­āĻŋāĻļāĻ¨ā§‡āĻ° āĻĒā§‹āĻ¸ā§āĻŸā§‡āĻ° āĻ¸āĻžāĻĨā§‡ āĻ¸āĻ‚āĻļā§āĻ˛āĻŋāĻˇā§āĻŸ āĻ¸āĻŦ āĻ•āĻŋāĻ›ā§ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻšāĻ¯āĻŧāĨ¤ āĻ¤āĻžāĻ‡ āĻ¯āĻžāĻĻā§‡āĻ° āĻĄāĻžāĻŸāĻžāĻŦā§‡āĻœ āĻ¸āĻžāĻ‡āĻœā§‡āĻ° āĻ˛āĻŋāĻŽāĻŋāĻŸā§‡āĻļāĻ¨ āĻ°āĻ¯āĻŧā§‡āĻ›ā§‡ āĻ¤āĻžāĻ°āĻž āĻšāĻžāĻ‡āĻ˛ā§‡ āĻāĻ‡ āĻ°āĻŋāĻ­āĻŋāĻļāĻ¨ āĻ•āĻ°āĻžāĻ° āĻŦā§āĻ¯āĻŦāĻ¸ā§āĻĨāĻž/āĻ…āĻĒāĻļāĻ¨ āĻŦāĻ¨ā§āĻ§ āĻ•āĻ°ā§‡ āĻĻāĻŋāĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡āĻ¨āĨ¤ Continue reading

New theme “Chitra2009”

For somedays I was thinking to make a new wordpress theme for my own blog and  I did at last. My new theme is live now though it’s not completed yet but working fine. I gave my theme name “Chitra2009” as the name of river Chitra . I like my theme and hope u will like this. The theme is little bit special as it loads faster and ajax based. Max widgets are ajaxified and the theme specially supports some popular plugins. I have used jQuery as js library and for ajax works. I got the design concept from  jquery.com and prothom-aloblog.com.

Still I need to do many thing. BTW, there is a special feature for bengali community as the theme can be used for bangla unicode blog too (But for personal blog, I didn’t think multi user blog). As bengali fonts are small , there is a option to write bangla and english in same post with same font size in frontend with a special tag. Even the whole post can be mark as bangla so that the title and post text every things is shown in large bangla font.

I want to make this theme free for all and it will be released under GPL or some thing like that at the end of feb,2009. I want your kind feedback to improve it.

Thanks,
Manchumahara

āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄāĻĒā§āĻ°ā§‡āĻ¸ā§‡ āĻ•ā§‹āĻ¨ āĻĒā§‡āĻœā§‡āĻ° āĻœāĻ¨ā§āĻ¯ āĻ•āĻžāĻ¸ā§āĻŸāĻŽ āĻŸā§‡āĻŽāĻĒā§āĻ˛ā§‡āĻŸ āĻĢāĻžāĻ‡āĻ˛

āĻ¨ā§‹āĻŸāĻƒ āĻāĻ‡ āĻĒā§‹āĻ¸ā§āĻŸ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ ā§¨.ā§­ āĻāĻ° āĻœāĻ¨ā§āĻ¯ āĻ˛ā§‡āĻ–āĻž āĻ¤āĻŦā§‡ ā§¨.ā§Ŧ.x āĻ āĻ•āĻžāĻœ āĻ•āĻ°āĻŦā§‡āĨ¤
āĻšāĻžāĻ‡āĻ˛ā§‡ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄāĻĒā§āĻ°ā§‡āĻ¸āĻ•ā§‡ āĻ•ā§‹āĻ¨ āĻ¸āĻŋāĻāĻŽāĻāĻ¸(āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻāĻ•āĻŸāĻž āĻ¸āĻŋāĻāĻŽāĻāĻ¸ āĻ‡ āĻ¤āĻŦā§‡ āĻ¤āĻž āĻŦā§āĻ˛āĻ—ā§‡āĻ° āĻœāĻ¨ā§āĻ¯ āĻŦāĻŋāĻļā§‡āĻˇ āĻ­āĻžāĻŦā§‡ āĻ¤ā§ˆāĻ°āĻŋ) āĻŽāĻ¤ā§‹ āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°āĻž āĻ¯āĻžāĻ¯āĻŧāĨ¤ āĻ§āĻ°ā§āĻ¨ āĻ†āĻĒāĻ¨āĻŋ āĻ†āĻ˛āĻžāĻĻāĻž āĻāĻ•āĻŸāĻž āĻĒā§‡āĻœ āĻ¤ā§ˆāĻ°āĻŋ āĻ•āĻ°āĻ¤ā§‡ āĻšāĻžāĻ¨ āĻ¯ā§‡āĻ–āĻžāĻ¨ā§‡ āĻ‡āĻšā§āĻ›āĻž āĻŽāĻ¤ā§‹ āĻ•ā§‹āĻ¯āĻŧāĻžāĻ°ā§€ āĻ•āĻ°ā§‡ āĻĄāĻžāĻŸāĻž āĻļā§‹ āĻ•āĻ°āĻŦā§‡āĻ¨āĨ¤ āĻ•āĻžāĻœāĻŸāĻž āĻ•āĻŋāĻ­āĻžāĻŦā§‡ āĻ•āĻ°āĻž āĻ¯ā§‡āĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡ āĻ¤āĻž āĻ¨āĻŋāĻ¯āĻŧā§‡āĻ‡ āĻ†āĻ˛ā§‹āĻšāĻ¨āĻž āĻ•āĻ°āĻ¤ā§‡ āĻšāĻžāĻ‡āĻ›āĻŋāĨ¤

āĻĒā§āĻ°āĻĨāĻŽā§‡ āĻ†āĻĒāĻ¨āĻžāĻ° āĻĨā§€āĻŽā§‡ āĻĢā§‹āĻ˛ā§āĻĄāĻžāĻ°ā§‡ āĻāĻ•āĻŸāĻž āĻ¨āĻ¤ā§āĻ¨ āĻĢāĻžāĻ‡āĻ˛ āĻ¯ā§āĻ•ā§āĻ¤ āĻ•āĻ°āĻ¤ā§‡ āĻšāĻŦā§‡āĨ¤ āĻ§āĻ°ā§āĻ¨ blog.php. āĻāĻ–āĻ¨ āĻĢāĻžāĻ‡āĻ˛āĻŸāĻž āĻ“āĻĒā§‡āĻ¨ āĻ•āĻ°ā§āĻ¨ āĻ†āĻ° āĻĒā§āĻ°āĻĨāĻŽā§‡āĻ‡ āĻ˛āĻŋāĻ–ā§āĻ¨
/*
Template Name: Blog Template
*/

Template Name: Blog Template āĻāĻ‡ āĻ˛āĻžāĻ‡āĻ¨ āĻāĻ° āĻ…āĻ°ā§āĻĨ āĻšāĻ˛ā§‹ āĻāĻ‡ āĻŸā§‡āĻŽāĻĒā§āĻ˛ā§‡āĻŸ āĻĢāĻžāĻ‡āĻ˛āĻŸāĻž āĻ•ā§‹āĻ¨ āĻŦāĻŋāĻļā§‡āĻˇ āĻĒā§‡āĻœā§‡āĻ° āĻœāĻ¨ā§āĻ¯ āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°āĻž āĻ¯ā§‡āĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡āĨ¤ āĻĄāĻŋāĻĢāĻ˛ā§āĻŸ āĻ•ā§‹āĻ¨ āĻĒā§‡āĻœā§‡ (āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻāĻĄāĻŽāĻŋāĻ¨ āĻĒā§āĻ¯āĻžāĻ¨ā§‡āĻ˛ āĻĨā§‡āĻ•ā§‡ āĻ¯ā§‡ āĻĒā§‡āĻœ āĻ¤ā§ˆāĻ°āĻŋ āĻ•āĻ°āĻž āĻ¯āĻžāĻ¯āĻŧ) āĻĻā§‡āĻ–āĻžāĻ¨ā§‹āĻ° āĻœāĻ¨ā§āĻ¯ āĻĨā§€āĻŽā§‡āĻ° page.php āĻĢāĻžāĻ‡āĻ˛ āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°āĻž āĻšāĻ¯āĻŧāĨ¤ āĻ¯āĻĻāĻŋ āĻ†āĻĒāĻ¨āĻžāĻ° āĻĨā§€āĻŽ āĻĢā§‹āĻ˛ā§āĻĄāĻžāĻ°ā§‡āĻ° āĻ­ā§‡āĻ¤āĻ° āĻāĻŽāĻ¨ āĻ•ā§‹āĻ¨ āĻĢāĻžāĻ‡āĻ˛ āĻĨāĻžāĻ•ā§‡ āĻ¯āĻžāĻ° āĻļā§āĻ°ā§āĻ¤ā§‡ āĻ‰āĻĒāĻ°ā§‡āĻ° āĻŽāĻ¤ā§‹ āĻ•ā§‹āĻĄ āĻ˛ā§‡āĻ–āĻž āĻĨāĻžāĻ•ā§‡ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻ¸ā§‡āĻŸāĻž āĻ•ā§‹āĻ¨ āĻ•ā§‹āĻ¨ āĻĒā§‡āĻœā§‡āĻ° āĻœāĻ¨ā§āĻ¯ āĻŸā§‡āĻŽāĻĒā§āĻ˛ā§‡āĻŸ āĻĢāĻžāĻ‡āĻ˛ āĻšāĻŋāĻ¸āĻžāĻŦā§‡ āĻ†āĻĒāĻ¨āĻŋ āĻ¸āĻŋāĻ˛ā§‡āĻ•ā§āĻŸ āĻ•āĻ°āĻ¤ā§‡ āĻĒāĻžāĻ°āĻŦā§‡āĻ¨āĨ¤
Continue reading

Export wordpress mu db from localhost to live

My maximum blogs are related to my problems that I face while working with diff projects. Yesterday I was working with wordpress mu. Hope you may know that wp mu can be installed in two diff ways.

  • blog.yourdomain.com
  • yourdomain.com/blog.

As I was using localhost I used yourdomain.com/blog though subdomain can be configured in localhost. 🙂

One thing I don’t like about wordpress is it saved siteurl and domain path name in db. I worked with joomla and phpbb. They use relative url. No need to think about the site url. Continue reading