Thursday, October 1, 2009

kp3နည္းပညာ၊၅၉၊မိမိရဲ့ဘေလာ့မွာComments ေတြကိုနံပါတ္အစဥ္လိုက္ထည့္ခ်င္ရင္

အခုဟာေလးကေတာ့မိမိရဲ့Commentsေတြကိုနံပါတ္အစဥ္လိုက္ထည့္နည္းေလးပါ။
ဒါလည္းဘဲရိုးရိုးရွင္းရွင္း Code ေလးတစ္ခုပါဘဲ။

ေအာက္မွာပံုနဲ႕တကြ Code

၁။click Layout
၂။click edit HTML

၃။Expand Widget Template’ကိုမွန္ျခစ္ေပးပါ။


ေအာက္ကCodeကိုရွာပါ၊



<dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt class='comment-author' expr:id='"comment-" + data:comment.id'>
<a expr:name='"comment-" + data:comment.id'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
<data:commentPostedByMsg/>
</dt>
<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='"#comment-" + data:comment.id' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
</b:loop>
</dl>




ေတြ႕ျပီဆိုရင္ေအာက္က Code နဲ႕အစားထိုးေပးလိုက္ပါ။

<dl id='comments-block'>

<script type='text/javascript'>var CommentsCounter=0;</script>

<b:loop values='data:post.comments' var='comment'>

<div class='' expr:id='data:comment.id'>

<dt expr:class='"comment-author " + data:comment.authorClass' expr:id='data:comment.anchorName'>
<a expr:name='data:comment.anchorName'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
<data:commentPostedByMsg/>

<span class='comment-number'>
<a expr:href='"#comment-" + data:comment.id' title='Comment Link'>
<script type='text/javascript'>
CommentsCounter=CommentsCounter+1;
document.write(CommentsCounter)
</script>
</a>
</span>

</dt>
<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='data:comment.url' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>

</div>

</b:loop>
</dl>


ေနာက္တစ္ခုရိွေသးတယ္ေနာ္ ေအာက္ကCodeကိုထပ္ရွာပါ

]]></b:skin>:

ေတြ႕ၿပီဆိုရင္ေအာက္မွာ ေအာက္ကCodeေတြကိုထည့္လိုက္ပါ၊

.numberingcomments{
float: right;
display: block;
width: 50px;
margin-right: 5px;
margin-top: -35px; /*comments-counter position*/
text-align: right;
font-family: 'Century Gothic','Lucida Grande',Arial,Helvetica,Sans-Serif;
font-size: 30px;
font-weight: normal;
}

၄။Save Template button.ႏိုပ္ပါ ၿပီးပါၿပီ။။။
မသိေသးတဲ႔မိတ္ေဆြေတြကိုအသိေပးမ်ွေဝေစျခင္ပါတယ္၊

kp3မွမိတ္ေဆြအားလုံးေက်းဇူးကမ႓ာ

Stumble
Delicious
Technorati
Twitter
Facebook
Yahoo
Reddit
Feed

0 comments:

Post a Comment

 

Copyright 2009.kp3tester Powered by Blogger

Blogger Templates created by Deluxe Templates

Images by Indeziner