Ask Question in MZ User
7

WordPress look like framework

Posted August 28th, 2010 in Knowledgebase by saturngod

wordpress ကို သာမာန္ေတာ္ေတာ္မ်ားမ်ားက blog လိုပဲ အသံုးျပဳေနပါတယ္။ လက္ရိွ အလုပ္က wordpress ကို အဓိက ထားျပီး website ေတြ ေဆာက္ေတာ့ wordpress ဘယ္ေလာက္ထိ လုပ္ႏိုင္သလဲဆိုတာကို သိလာပါတယ္။ တကယ္ေတာ့ wordpress က framework လုိ အသံုးျပဳရင္ေတာင္ ရတယ္။ admin panel ready framework ေပါ့ဗ်ာ။ admin panel သီးသန္႕ ထပ္ေရးစရာမလိုပဲ web application ေတြ ေရးလို႕ ရလာတယ္ဆိုတာကို သိလာတယ္။ ဥပမာ။။ question & answer system ဆိုပါဆို႕။ ကၽြန္ေတာ္ အခု MZ user ကို ကိုယ္ပိုင္ framework နဲ႕ ေဆာက္ေနတုန္း တစ္ခု စဥ္းစားမိတယ္။ wordpress နဲ႕Q&A site ေဆာက္လုိ႕ မရဘူးလား။ ရတာေပါ့။ တကယ္ရပါတယ္။ Question & Answer system မွာ Question ကို Post လို႕ သတ္မွတ္ျပီး Answer ေတြကို comment လို႕ သတ္မွတ္လုိက္လုိ႕ရတယ္။ Question အတြက္ comment အတြက္ေတာ့ comment system တစ္ခု နည္းနည္း ျပန္ျပင္ေရးရမယ္။ သိပ္မခက္ပါဘူး။ Answer အတြက္ comment ကေတာ့ ျပန္ေရးစရာမလိုဘူး။ wordpress ရဲ႕ comment က thread system ပါျပီးသားပဲ။  ေနာက္ျပီးေတာ့ reputation အတြက္ ျပန္ျပင္ေရးဖို႕ပဲ လိုတယ္။ ဒါပဲ ရိွတယ္။ သိပ္အမ်ားၾကီးေတာင္ မလိုပဲ အကုန္ျပီးသြားေလာက္ပါတယ္။

Continue Reading »

0

WP Touch with Zawgyi Embed [Fixed]

Posted July 17th, 2010 in စိတ္အခ်ဥ္ေပါက္မႈမ်ား by saturngod

WP Touch ကို update လုပ္လိုက္တာ Zawgyi font က iPhone ေပၚမွာ မေပၚေတာ့ဘူး။ ဒါနဲ႕ ဘာလို႕လည္း ေတာ္ေတာ္အေျဖရွာလိုက္ရတယ္။ css ေတြဖ်က္။ javascript ေတြ ဖ်က္။ ဘာမွမထူး။ ေနာက္ဆံုးေတာ့မွ Doctype ျပႆနာ ျဖစ္ေနတယ္။

wp-content/plugins/wptouch/themes/core/core-header.php

အဲဒီက

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

ဆိုတာကို remove လုပ္လုိက္ရင္ ရတယ္။ iDevice က Safari တစ္ခုတည္းက အဲဒီ ျပႆနာ ရိွတယ္ထင္တာပဲ။ အဲဒီ DOCTYPE ေၾကျငာတာေလး ျဖဳတ္လုိက္ေတာ့ အလုပ္လုပ္သြားပါေလေရာ။

9

Zawgyi Embed for WordPress

Posted July 8th, 2010 in Knowledgebase by saturngod

လက္ရိွ mobile ေတြမွာ ေဇာ္ဂ်ီ font default မပါလာပါဘူး။ mobile ေတြကေန ၾကည့္ရင္ ကိုယ့္ site မွာ ျမန္မာလို မျမင္ရတဲ့အတြက္ အဆင္မေျပၾကပါဘူး။ jailbreak မလုပ္ခ်င္တဲ့သူေတြ လုပ္လုိ႕မရေသးတဲ့သူေတြအတြက္ပါ ကိုယ့္ site ကို ျမင္ခ်င္ရင္ ေအာက္က plugin ေလးကို download ခ်ျပီး သြင္းလုိက္ရင္ အဆင္ေျပပါလိမ့္မယ္။ ကၽြန္ေတာ္ကေတာ့ လက္ရိွ wp touch plugin ကို Mobile အတြက္ သံုးထားပါတယ္။

Continue Reading »

0

Nav Menu

Posted June 22nd, 2010 in Knowledgebase by saturngod

WordPress 3.0 မွာ Menu ဆိုတာ ထပ္ပါလာပါတယ္။ Menu က theme အေဟာင္းေတြမွာ သံုးလို႕မရပါဘူး။ Menu ကို သံုးမယ္ဆုိရင္ menu register လုပ္မွရပါတယ္။


// To allow to use Nav

register_nav_menus( array(

'primary' => 'Menu Description',

'secondary'=>'Second Menu Description',

) ); 

Continue Reading »

4

Why blog ?

Posted March 6th, 2010 in Review, nothing by saturngod

မေန႕တုန္း အစည္းအေဝးမွာ blog content ေတြအေၾကာင္း ေျပာတယ္။ company တစ္ခုရဲ႕ blog content က အေရးပါသလို ေငြေပါင္းေျမာက္ျမားစြာ ရေအာင္လည္း ဖန္တီးေပးႏိုင္တယ္ဆိုတာလည္း သိလုိက္ရတယ္။ CMS နဲ႕ blog က မတူပါဘူး။ ဆင္မေယာင္နဲ႕ ကြဲျပားပါတယ္။ CMS ျဖစ္တဲ့ joomla တို႕ drupal တို႕ နဲ႕ blog engine ျဖစ္တဲ့ wordpress တုိ႕နဲ႕ ပံုစံ သြင္ျပင္ကြာပါတယ္။ အေတာ္မ်ားမ်ားက CMS နဲ႕ blog မကြဲျပားၾကဘူး။
Continue Reading »

0

#MEMO Load WordPress Core

Posted February 7th, 2010 in nothing by saturngod

//not use theme
define('WP_USE_THEMES', false);

//load wordpress core
require('./wp-blog-header.php');

8

testing iphone wordpress 2

Posted January 26th, 2010 in News by saturngod

write from iPhone wordpress 2 app

0

Testing Post Thumbnail

Posted January 20th, 2010 in News by saturngod

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

5

WordPress beyond the Blog

Posted January 16th, 2010 in Knowledgebase by saturngod

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 ေတြ လိုသလို ထပ္ခြဲလို႕မရတာကေတာ့ အခ်ဳိ႕ ကိစၥေတြမွာ အခက္ၾကံဳရတတ္ပါတယ္။

1

WordPress , Drupal , Google Apps API

Posted January 16th, 2010 in nothing by saturngod

အခုတေလာ 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 ေတြေတာ့ ဖတ္ျဖစ္လုိက္တယ္။ လက္ေတြ႕ေတာ့ အခုထက္ထိ စမ္းတာ အဆင္မေျပေသးဘူး။

Page 1 of 3123