May 10, 2011
Adding comment box below post
ဘေလာ့မွာ ပံုမွန္ဆို comment ေပးမယ္ဆိုရင္ ေနာက္ထပ္ tab အသစ္မွာ ေပၚလာေအာင္လုပ္ေပးထားပါတယ္။
ခုဒီမွာ comment ေပးခ်င္ရင္ post ေအာက္မွာပဲေပးလို႔ရေအာင္ လုပ္နည္းေလး ျပေပးမွာပါ။
၁။ Settings မွ Comments ကိုသြားၿပီး ေအာက္က ပံုမွာျပထားသလို ေရြး၍ save လုပ္ပါ။
ၿပီးရင္ Design - Edit HTML ကိုသြားၿပီးExpand Widget Templates အမွန္ျခစ္၍ေအာက္ကcodeကိုရွာပါ။
ရွာလို႔ေတြ႕ၿပီဆိုရင္ဖ်က္လိုက္ၿပီးေအာက္ကcodeကိုအစားထိုးေပးလိုက္ပါ။
5.Preview ၾကည့္ၿပီး အဆင္ေျပၿပီဆို save လုပ္လိုက္ပါ။
ခုဒီမွာ comment ေပးခ်င္ရင္ post ေအာက္မွာပဲေပးလို႔ရေအာင္ လုပ္နည္းေလး ျပေပးမွာပါ။
၁။ Settings မွ Comments ကိုသြားၿပီး ေအာက္က ပံုမွာျပထားသလို ေရြး၍ save လုပ္ပါ။
ၿပီးရင္ Design - Edit HTML ကိုသြားၿပီးExpand Widget Templates အမွန္ျခစ္၍ေအာက္ကcodeကိုရွာပါ။
<b:if cond='data:post.allowComments'>
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a>
</b:if>
ရွာလို႔ေတြ႕ၿပီဆိုရင္ဖ်က္လိုက္ၿပီးေအာက္ကcodeကိုအစားထိုးေပးလိုက္ပါ။
<p class='comment-footer'> <b:if cond='data:post.embedCommentForm'> <b:include data='post' name='comment-form'/> <b:else/> <b:if cond='data:post.allowComments'> <a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a> </b:if> </b:if> </p>
5.Preview ၾကည့္ၿပီး အဆင္ေျပၿပီဆို save လုပ္လိုက္ပါ။
မွတ္ခ်က္မရွိေသးပါ...