မေန႕တုန္း အစည္းအေဝးမွာ blog content ေတြအေၾကာင္း ေျပာတယ္။ company တစ္ခုရဲ႕ blog content က အေရးပါသလို ေငြေပါင္းေျမာက္ျမားစြာ ရေအာင္လည္း ဖန္တီးေပးႏိုင္တယ္ဆိုတာလည္း သိလုိက္ရတယ္။ CMS နဲ႕ blog က မတူပါဘူး။ ဆင္မေယာင္နဲ႕ ကြဲျပားပါတယ္။ CMS ျဖစ္တဲ့ joomla တို႕ drupal တို႕ နဲ႕ blog engine ျဖစ္တဲ့ wordpress တုိ႕နဲ႕ ပံုစံ သြင္ျပင္ကြာပါတယ္။ အေတာ္မ်ားမ်ားက CMS နဲ႕ blog မကြဲျပားၾကဘူး။
Continue Reading »
Why blog ?
Testing Post Thumbnail
I love wordpress so much. Wordpress 2.9 support Post Thumbnail.
add following code in function.php of theme. You will see Post Thumbnail in right sidebar. You can add Post Thumbnail.
add_theme_support( ‘post-thumbnails’ );
see more in there
http://justintadlock.com/archives/2009/11/16/everything-you-need-to-know-about-wordpress-2-9s-post-image-feature
Wordpress beyond the Blog
Wordpress ကို အမ်ားစုက Blog လုပ္တဲ့ script အေနနဲ႕ပဲသိၾကပါတယ္။ Wordpress က blog တစ္ခုထပ္ပိုပါတယ္။ ကၽြန္ေတာ္တို႕ေတြ wordpress ကို အသံုးျပဳျပီးေတာ့ အမ်ားၾကီး ဖန္တီးလို႕ရတယ္။ Wordpress မွာ ေျမာက္မ်ားလွတဲ့ Plugins ေတြ ေကာင္းမြန္လွတဲ့ supporting ေတြ ရွိပါတယ္။ Wordpress ကို အသံုးျပဳျပီး ကၽြန္ေတာ္တုိ႕ေတြ ဘာေတြ လုပ္ႏိုင္လဲဆိုေတာ့
၁။ Social Network
၂။ Showcase ( Photo, Video, any other showcase )
၃။ Website (CMS)
၄။ e-Commerce
အျပင္ အျခား အမ်ားၾကီး လုပ္လုိ႕ရပါေသးတယ္။ Wordpress ကိုလည္း ကိုယ္ေရးထားတဲ့ Site နဲ႕လည္း လြယ္လြယ္ကူကူ Integrate လုပ္ႏုိင္ပါတယ္။ ေနာက္ထပ္ ေကာင္းမြန္တဲ့အခ်က္က Plugins ေတြ ေရးလို႕ရတယ္။ Theme ေတြ ေရးလို႕ရတယ္။ အဲဒီအတြက္ကေတာ့ PHP နဲ႕ Web Essential ပိုင္းကိုေတာ့ မျဖစ္မေန သိဖို႕ လိုတယ္။
Wordpress တစ္ခုလံုးမွာ တကယ္အဓိက အပိုင္းက template ပါ။ Template ပံုစံကတင္ CMS လား Blog လားကို ခြဲထုတ္ေပးတာပါ။ Template ကပဲ Showcase site ပံုစံေျပာင္းေပးတာပါ။ e-Commerce လိုမ်ဳိး site ကလည္း template နဲ႕ plugins ကို အသံုးျပဳရျပန္ေကာ။ Social Network အတြက္ Layer တစ္ခုျဖစ္တဲ့ buddypress ကို အသံုးျပဳႏိုင္တယ္။ Forum နဲ႕တြဲခ်င္ရင္လည္း bbpress ဆိုတဲ့ forum နဲ႕ လြယ္ကူစြာ တြဲသံုးလို႕ရတယ္။ အျခား Forum ေတြနဲ႕ bridge ေတြရိွတတ္ပါတယ္။ တကယ္လုိ႕မရိွဘူးဆိုရင္လည္း ကိုယ္တိုင္ျပန္ေရးႏိုင္ျပီး Wordpress ရဲ႕core function ေတြကို ယူသံုးလုိ႕ရပါတယ္။
Plugins ေတြ ဘယ္က ရမလဲ
Plugins ေပါင္း ၈၀၀၀ နီးပါး ရိွျပီး ေန႕စဥ္ plugins အသစ္ေတြ တင္ေနတာကေတာ့ http://wordpress.org/extend/plugins/ မွာပါ။ Plugins ေတာ္ေတာ္မ်ားမ်ားက ရိိွေနတတ္ပါတယ္။ ဒါေၾကာင့္ အရင္ရွာၾကည့္လုိက္ပါ။ Wordpress ကိုယ္တိုင္က Plugins တစ္ခုမေရးခင္ အရင္ရွာၾကည့္ဖုိ႕ request လုပ္ထားပါတယ္။ လိုအပ္တဲ့ plugins ေတာ္ေတာ္မ်ားမ်ား ၇ိွျပီးသားပါ။
Plugins ေတြက ဘာလုပ္ေပးႏိုင္လဲ
Plugins က လိုအပ္တာေတြ ျဖည့္ေပးႏိုင္တယ္။ ဥပမာ Gallery , Syntax Highlighting အျပင္ ေတာ္ေတာ္မ်ားမ်ားကို ျဖည့္ဆည္းေပးႏိုင္ပါတယ္။ Wordpress သမာရိုးက်က ရိုးရွင္းတဲ့ Blog အတြက္ပဲ ျဖစ္ေပမယ့္ Plugins ေတြကို အသံုးျပဳျပီး သီခ်င္းေတြထည့္တာ Picture Gallery ေတြ လုပ္တာ Video Gallery ေတြလုပ္တာ စတာေတြကို ကိုယ့္ Post ေတြထဲမွာ ထည့္သြင္းလာႏိုင္မွာပါ။ Plugins ေတြကအမ်ားၾကီးျဖစ္ျပီး ကိုယ္ဘာလုပ္ခ်င္လဲေပၚမွာ မူတည္ျပီး ဖန္တီးယူရံုပါပ၊
Plugins ဘယ္လိုေရးမလဲ
http://codex.wordpress.org/Writing_a_Plugin မွာ ေသေသခ်ာခ်ာ ေရးေပးထားပါတယ္။ နည္းနည္းေတာ့ ရႈပ္ေပမယ့္ တကယ္လုပ္ရင္ေတာ့ ရသြားမွာပါ။
Theme ဆိုတာ
Theme ဆိုတာကေတာ့ ကိုယ့္ site ရဲ႕ skins ေပါ့။ တနည္းေျပာရင္ Design ေပါ့။ site တစ္ခုလံုး ပံုစံကို Theme က အဓိက ပံုေပၚေပးတာပါ။ ဥပမာ Jquery Slideshow ေတြ ထည့္တာ ေနာက္ျပီး macforus.com မွာလို ပံုေတြမွာ အျမဲ ဘယ္ဘက္မွာ icon ေလးေတြ ပါေနတာ စတာေတြေပါ့။ Post တင္တဲ့ေနရာရဲ႕ ေအာက္မွာ Custom Fields ဆိုတာ ပါပါတယ္။ အဲဒါက Template နဲ႕ တြဲသံုးဖို႕အတြက္ေပါ့။ Template ဆိုတာက Archive template, Page Template, Single Template စတာေတြေပါ့။ Theme က ကိုယ့္ site က ဘာ site လဲဆိုတာကို ဖန္တီးေပးသြားတာပါ။ CMS ဆိုရင္ CMS Theme ကို အသံုးျပဳလုိက္ရံုပါပဲ။
Theme ေတြ ဘယ္ကရမလဲ
http://wordpress.org/extend/themes/ မွာရိွေပမယ့္ google ကေန ရွာလိုက္တာ ပိုသင့္ေတာပါတယ္။ Theme ေတြအမ်ားၾကီးရိွပါတယ္။
Theme ေတြ ဘယ္လိုေရးမလဲ
http://codex.wordpress.org/Main_Page မွာ သြားေရာက္ဖတ္ရႈႏိုင္ပါတယ္။ Theme ေရးမယ္ဆိုရင္ template tag ေတြကို သိထားဖုိ႕ လိုပါတယ္။
Integrate with your own PHP site
http://codex.wordpress.org/Integrating_WordPress_with_Your_Website မွာ ၾကည့္လိုက္ရံုပါပဲ။ wp-blog-header.php ကိုလွမ္းေခၚျပီး wordpress template tag ေတြ ေခၚသံုးလို႕ရပါျပီ။
Wordpress ဟာ Blog တစ္ခုဆိုတာထက္ ပိုပါတယ္။ ျပည့္စံုေကာင္းမြန္တဲ့ community နဲ႕ forum ရိွပါတယ္။ http://wordpress.org/support/ မွာ Wordpress နဲ႕ ပတ္သက္ျပီး မသိတာေတြ ေမးလို႕ရပါတယ္။ Wordpress မွာ အဆင္မေျပတာ တစ္ခုကေတာ့ User Level ေတြအမ်ားၾကီး မပါဝင္တာပါပဲ။ User Level ေတြ Permission ေတြ လိုသလို ထပ္ခြဲလို႕မရတာကေတာ့ အခ်ဳိ႕ ကိစၥေတြမွာ အခက္ၾကံဳရတတ္ပါတယ္။
Wordpress , Drupal , Google Apps API
အခုတေလာ Wordpress , Drupal , Google Apps API ေတြနဲ႕ ပဲ ရႈပ္ေနတာပဲ။
Wordpress
wordpress ကေတာ့ ျပႆနာမရိွဘူး။ ဒါေပမယ့္ လုပ္လုိက္ေတာ့ ပိုသေဘာက်ျပီး ပိုလုပ္တတ္သြားတယ္။ wordpress customization တစ္ခုလံုးက template ကစားသြားတာပဲ။လုိအပ္တဲ့ plugins ေတြ ထပ္ေရးေနတာထက္ template ေလး တစ္ခုေဆာက္တာက ပိုျပီး ထိေရာက္ျမန္ဆန္တယ္။ template ေလးကစားသြားလုိက္ရံုနဲ႕ ေတာ္ေတာ္ေလးကို ထိထိေရာက္ေရာက္ ျဖစ္သြားတာပဲ။ wordpress မွာလည္း သူ႕ function ေတြ ေခၚယူျပီးေတာ့ စိတ္ၾကိဳက္ျပဳျပင္လုိ႕ရတာေတာ့ ေတာ္ေတာ္မိုက္တယ္။ function ေတြလည္း ျပည့္ျပည့္စံုစံုေပးထားေတာ့ အဆင္ေျပတယ္။ ဟိုတစ္ခါက MZ မွာ emo ေမးထားဘူးတယ္။ wordpress က page ေနာက္တစ္ခုအတြက္ template ပံုစံေျပာင္းလုိ႕မရဘူးတဲ့။ အဲဒါေတာ့ ဟုတ္ပါတယ္။ ဟုတ္လည္း မဟုတ္ျပန္ဘူး။ ကိုယ့္ဘာသာကိုယ္ template page တစ္ခု ထပ္ျဖည့္လိုက္ျပီး လုိအပ္တဲ့ ပံုစံေျပာင္းလို႕ရတယ္။ ကိုယ္လုိခ်င္တဲ့ file ေတြကိုလည္း include ေတြနဲ႕ ထပ္ျဖည့္လိုက္ျပီး လိုသလို ေျပာင္းလို႕ရပါတယ္။ ေရးရတာလည္း မခက္ပါဘူး။
<?php /* Template Name: Snarfer */ ?>
ဆုိရင္ template တစ္ခုျဖစ္သြားျပီး ကိုယ္လိုသလို page မွာ ေခၚျပီး ေျပာင္းလဲေရးလို႕ရပါတယ္။ codex မွာ အျပည့္အစံု ရိွပါတယ္။ Wordpress ကိုေတာ့ အရင္ ကတည္းက crazy ဆိုေတာ့ wordpress ပိုင္းလုပ္ရတာ သိပ္ခက္ခဲလွတယ္မဟုတ္ဘူး။ အားရင္ေတာ့ plugins ေလးတစ္ခု ထပ္စမ္းေရးၾကည့္အံုးမယ္။ admin panel setting ပါတဲ့ plugins မေရးဘူးေသးဘူးဆိုေတာ့ အဲဒါေလး စမ္းၾကည့္မယ္။ ဘယ္လိုေရးရမလဲဆိုတာ စာေတြ႕ပဲရိွတယ္။ အျခား admin panel setting မပါတာေတြေတာ့ ေရးဘူးတယ္။
Drupal
အရင္ကတည္းက မၾကိဳက္။ အခုေတာ့ ပိုဆိုးေပါ့။ Drupal အစစ္ၾကီးဆိုလည္းထားလုိက္။ အခုက သူက ကၽြန္ေတာ္တို႕wordpress မွာ လုပ္သလို template ကစားထားတာကို ျပန္ျပင္ေနရတာ။ လုပ္သြားတဲ့သူက Drupal ကို ေတာ္ေတာ္ေလး ကၽြမ္းက်င္တယ္။ Admin Panel တစ္ခုလံုးလည္း ေျပာင္းခ်သြားတယ္။ ကိုယ္ပိုင္ module ေတြလည္း ထပ္ျဖည့္သြားေတာ့ ဘယ္ဟာကို ဘယ္မွာ ျပင္ရမွန္းမသိပဲ ျဖစ္ကုန္ေရာ။ online မွာလည္း ရွာမရနဲ႕။ ဒီလိုပဲ စမ္းတဝါးဝါးနဲ႕ လုပ္ရင္း ေတာ္ေတာ္အဆင္ေျပလာတာပဲ။ Drupal လည္း ေတာ္ေတာ္ေကာင္းတယ္။ သူ႕ကို ကၽြမ္းက်င္ရင္ ေတာ္ေတာ္ေလးကို လုပ္လို႕ရတာပဲ။ စိတ္ၾကိဳက္ ဖန္တီးလုိ႕ရတယ္။ သူလည္း wordpress လိုမ်ဳိးပဲ။ သူက wordpress ထက္သာတဲ့ အပိုင္းေတြ အမ်ားၾကီးပဲ။ သူက ေကာင္းေပမယ့္ ရႈပ္လြန္းတယ္။ function ေတြ မ်ားေတာ့ GUI လည္း ရႈပ္ကုန္ေကာ။ သူ႕ရဲ႕ သေဘာတရားနားမလည္လို႕လား မသိဘူး။ သူက နည္းနည္းရႈပ္ေထြးတယ္။ CMS သေဘာတရားကို အျပည့္အဝသံုးထားျပီး block ေတြဘာေတြနဲ႕ စနစ္တက်ေတာ့ ရိွတယ္။ wordpress က CMS လံုးလံုးကို မဟုတ္ေပမယ့္ လုပ္ၾကံျပီး အျမင္မွာ CMS ထင္ေအာင္ ေတာ့ ဖန္တီးႏိုင္တယ္ေလ။
Google Apps API
ေခါင္းအစားဆံုး အပိုင္းပဲ။ Zend အတြက္ပဲ support ရိွတယ္။ Zend framework မသံုးပဲ Zend Library အျပည့္အဝ သံုးလိုက္ရင္ေတာ့ ရတယ္။ ဒါေပမယ့္ Domain share contact က .NET အတြက္ရိွတယ္။ python အတြက္ရိွတယ္။ PHP Native အတြက္ မရိွျပန္ဘူး။ Protocol သံုးရင္ေတာ့ အေကာင္းဆံုးဆိုျပီး သံုးဖုိ႕လုပ္ျပန္ေကာ။ oAuth , AuthSub ေတြကေတာ့ PHP Native နဲ႕ အဆင္မေျပျပန္ဘူး။ oAuth က သီးသန္႕ ထပ္သြင္းရအံုးမယ္။ oAuth သြင္းဖို႕အတြက္ကလည္း အထက္ကို report လုပ္ရအံုးမယ္။ ဒါေတာင္ စမ္းဖုိ႕။ အခ်ိန္ကလည္း သိပ္မရေတာ့ ေနာက္ဆံုး python ကို background ထားျပီး PHP နဲ႕ front end လုပ္ပလိုက္တယ္။ Domain share contact ကလည္း 24 hours ၾကာတယ္။ contact ထဲကို ဝင္ဖုိ႕ အဲေလာက္ေတာင္ ေစာင့္ရတယ္။ လူေတြကလည္း သိတဲ့အတုိင္း အခုထည့္ အခုျမင္လုိခ်င္ၾကတာ။ ဒါေပမယ့္ domain share contact က မရေတာ့လည္း ဘယ္တတ္ႏိုင္မလဲ။ export ကလည္း တစ္ခါတစ္ေလ မထြက္။
Google Map API လုပ္ထားတာေတာ္ေတာ္ေကာင္းသေလာက္ google apps api လုပ္ထားတာကို သိပ္သေဘာမက်ဘူး။ လူအသံုးမ်ားတာကို support မလုပ္ပဲ အဆင့္ေတြ အမ်ားၾကီးနဲ႕ ရႈပ္ေနတယ္လုိ႕ ထင္တာပဲ။ facebook connect လိုမ်ဳိး api ဆိုလည္း ေတာ္ေတာ္ေလးေကာင္းတယ္။ ရိုးတယ္။ ရွင္းတယ္။ လြယ္တယ္။ Google Apps Engine ကေတာ့ java နဲ႕ python ပဲ။ Google Apps အဖြဲ႕တစ္ခုလံုးက အဓိက python ပဲ သံုးတယ္ထင္တယ္။ PHP ပိုင္းကို သီးသန္႕ library မထုတ္ေပးဘူး။ Zend နဲ႕ တြဲထုတ္ေပးေတာ့ ဆင္ဖိုးထက္ ခြ်န္းဖိုးက ပိုဆိုးျဖစ္ေနတာေပါ့။ လုပ္ခ်င္တာက ေသးေသးေလး။ အဲဒီအတြက္ Zend Framework ၾကီးပါ upload တင္ရတာ အလကား အလုပ္ရႈပ္တာပဲ။
ဘာပဲေျပာေျပာ oAuth, AuthSub ေတြေတာ့ ဖတ္ျဖစ္လုိက္တယ္။ လက္ေတြ႕ေတာ့ အခုထက္ထိ စမ္းတာ အဆင္မေျပေသးဘူး။
ကိုသက္ေထြးနဲ႕ စကားစျမည္
ကိုသက္ေထြးက www.books-hive.com ကိုေရးထားတဲ့သူပါ။ facebook မွာ သူနဲ႕ opensoure scripts ေတြနဲ႕ paid scripts ေတြအေၾကာင္ေဆြးေႏြးျဖစ္ခဲ့တာေလးေတြကို ျမန္မာျပန္ျပီး ေဖာ္ျပလိုက္ပါတယ္။
Saturngod: တစ္ခါတစ္ေလ ကၽြန္ေတာ္ စဥ္းစားမိတယ္ဗ်။ ကၽြန္ေတာ္ help desk မွာ ပိုက္ဆံမရပဲ အလုပ္လုပ္ေနရသလိုပဲ။ ကၽြန္ေတာ္ free ေပးတဲ့ prdouct ေတြကို သူတို႕ေတြအတြက္ မလံုေလာက္ေသးပဲ help desk ပါလိုခ်င္ၾကတယ္ဗ်။ အဲဒါကို လုပ္ရတာ အရမ္းစိတ္ညစ္တယ္။ ကၽြန္ေတာ္ helpdesk မွာ အလုပ္လုပ္ေနတာမဟုတ္သလို ကၽြန္ေတာ္ အခမဲ့မွ်ေဝေနတာပါ။ အခ်ဳိ႕ဟာေလးေတြက သူတုိ႕ ေသခ်ာဖတ္ရင္ နားလည္မွာပါ။ ဒါမွမဟုတ္ google မွာ ရွာလိုက္ရင္လည္း ရႏိုင္ပါတယ္။ အမ်ားစုကေတာ့ ပထအၾကိမ္မရရင္ လက္ေလွ်ာ႔ျပီး ေမးတတ္ၾကတယ္ဗ်။ ဒုတိယအၾကိမ္ ဘာလို႕ မစမ္းၾကည့္တာလဲေတာ့ မသိဘူး။ ဒါမွမဟုတ္ ေသေသခ်ာခ်ာ ဖတ္ျပီး ေနာက္တၾကိမ္စမ္းၾကည့္သင့္တယ္။ အခ်ဳိ႕ဟာေတြကေတာ့ google မွာ ရွာလို႕ ရႏုိင္တာပဲဗ်။ Google မွာ ရွာျပီး ပင္ပင္ပန္းပန္း ဖတ္ရမွာ ေၾကာက္ၾကတယ္နဲ႕ တူတယ္။
သက္ေထြးေအာင္ : ဒါက ျမန္မာေတြမွ မဟုတ္ဘူးဗ်။ လူေတြရဲ႕သဘာဝပဲ။ အျခားႏိုင္ငံေတြက လူေတြလည္း ဒီလုိပါပဲဗ်ာ။ အဲဒါကို scripting release forum ေတြမွာ ေတြ႕မွာပါ။ အင္း.. ဒါကလည္း opensoure ေပးခ်င္ရဲ႕ သဘာဝပဲဗ်။ တကယ္လုိ႕ မၾကိဳက္ဘူးဆိုရင္ release မလုပ္နဲ႕ ဒါမွမဟုတ္ ျပန္မေျဖနဲ႕ေပါ႔ဗ်။
Continue Reading »
Remove Smart Quotes in WP
ကၽြန္ေတာှတို႔ေတြ wordpress မွာ smart quotes ေတြ ျဖဳတ္ခ်င္လား။ ကၽြန္ေတာှကေတာ့ ျဖဳတ္လိုက္တယ္။ ဘာလို႔လည္းဆိုေတာ့ html example ေတြကို ေဖာှျပတဲ့အထဲမွာ ေလ့လာသူေတြအေနနဲ့ copy ကူးျပီး သြားထည့္လိုက္လို႔မရဘူး။ တဆင့္အေနနဲ့ smart quotes ေတြကို လိုက္ျပင္ေနရတယ္။ ဒါေၾကာင့္ ကၽြန္ေတာှကေတာ့ ျဖဳတ္လိုက္တယ္။ Smart Quotes ဆိုတာကေတာ ”smartqutote” အဲဒါေလးပါ။ ကၽြန္ေတာှကေတာ့ ရိုးရိုး double quotes ” ျဖစ္ျဖစ္ single quotes ‘ ျဖစ္ျဖစ္ အဲဒါပဲ အသံုးျပဳျပီး ေဖာှျပပါတယ္။ copy paste လုပ္တဲ့လူေတြလည္း အဆင္ေျပေအာင္ေပါ႔။
ကိုယ္႔ theme ရဲ့ function.php ထဲမွာ
remove_filter(‘the_content’, ‘wptexturize’);
remove_filter(‘comment_text’, ‘wptexturize’);
ေလး ထပ္ဆံုးမွာ သြားျဖည့္လိုက္ရင္ ရပါျပီဗ်ာ။ လြယ္လြယ္ေလးနဲ့ အသံုးဝင္လွပါတယ္။
Shoutbox in WP Plugin
wordpress blog ေတြမွာ cbox ဘယ္လိုထည့္ရမလဲ။ chat box ဘယ္လိုထည့္ရမလဲေမးတာေလးေတြ ေတြ႕ဘူးတယ္။ ကၽြန္ေတာှ book hive blog မွာ သံုးထားတဲ့ shoutbox ေလးကိုေတာ့ သေဘာက်တယ္ဗ်။ သူက WP-Wall ဆိုတဲ့ဟာေလး သံုးထားတယ္။ စမ္းခ်င္တဲ့သူေတြ
http://wordpress.org/extend/plugins/wp-wall/
download ခ်ျပီး စမ္းႏိုင္ပါတယ္။







