Blog comment delete na hnu tihbo dan

April 30th, 2012 1:30 pm by Sangpuiipa
Blogger a blog nei te tan bik liau liau kan blog a comment kan delete te tihbo dan tun tum chu i han sawi teh ang. Blog a comment te hi delete hian ‘This comment has been removed by the author’tih a lo lang thin a. Hei hi a hnawksak na chin a awm ve a, chuvang chuan hemi lang reng hi in tibo dawn teh ang.

A hmasa ber ah chuan blogger a i account ah sign in phawt la. Design tih i click hnu ah Edit Html kha i select dawn nia. Chuan Expand Widget Templates tih a lo awm anga, a bul a check box ah khan i click dawn nia. Html code a inziak a hnuai ah khan i hmu anga. Kha kha kan blog code, kan edit tur chu ani dawn ani.

I edit hma in chunglam a download Full template tih kha click la, i template chu i backup hmasa phawt ang. A code tihsual palh i neih chuan i blog kha en theihloh in a awm thei a, chutiang a a awm chuan upload na atang khan i template download chu i upload leh anga, a dik leh vek mai ang.

Awle, edit dawn tan ang le. A hmasa ber in <b:loop values=’data:post.comments’ var=’comment’> tih awmna hi i zawng phawt ang. I scroll thlak chuan zawn a hautak dawn a, chuvang chuan i browser a find na kha hmang tangkai ang che. Firefox ka hmang a, crtl leh f hmeh khan a page hnuailam ah Find tih a lo lang mai a. A pian box ah khan code ka dah hi copy paste pawp la amah in a zawng hmu nghal mai ang. A chunga ka code ziah khi i hmuh tawh chuan khimi code inziahna hnuai chiah ah khan a hnuaia code hi copy la, paste rawh le.
<b:if cond=’data:comment.isDeleted’>
<b:else/>

I paste zawk chuan a hnuai lamah scroll thla la</b:loop> tih code lo awm hmasaber kha zawng leh la. Chumi code chung chiah ah chuan a hnuaia code hi copy la, i paste dawn nia.
</b:if>

Hemi i tih zawh hian save template tih kha click tawh rawh le. Tichuan i blog chu han en la, a chunga a lem a kan dah ang khi chu a lo bo tawh ang. Mahse thil pakhat buaina a la awm. Chu chu comment i delete i hide tawh hnu ah pawh khan i blog a i thu post ah khan comment awm zat khan i comment delete kha a la chhiar tel avangin comment zat inziak leh comment awm zat kha a inang dawn lova. Comment awm zat aiin comment awm tawh zat inziak kha a tam zawk dawn ani.

Mahse buaina tur a awmlo, ka sawi ang thlap hian han ti leh la, comment zat chu a rawn dik leh thlap mai ang. Khai le, hetiang hian ti rawh le. A hmasa ber in <data:post.numComments/> tih code hi han zawng leh phawt mai rawh le. I hmuh tawh chuan khi mi code ai ah a hnuaia code khi a hnuaia code hian i replace pawp dawn nia. Pakhat aia tam a awm avangin a vai in replace vek tur ani.
<font id=’numComments’><data:post.numComments/></font>

I replace zawh chuan <b:includable id=’comments’ var=’post’> tih code hi i zawng leh anga, a hnuai a code hian i replace leh vek ang.
<b:includable id=’comments’ var=’post’>
<script type=’text/javascript’>var numComments=<data:post.numComments/>;</script>

I tih zawh tawh chuan <b:if cond=’data:comment.isDeleted’> tih code hi i zawng leh anga. A hnuaia code hian i replace leh vek ang.
<b:if cond=’data:comment.isDeleted’>
<script type=’text/javascript’>numComments–;</script>

Chumi zawh chuan <b:if cond=’data:post.commentPagingRequired’> tih code hi i zawng leh anga, a hnuaia code hian i replace leh vek bawk ang.
<script type=’text/javascript’>
var numC=document.getElementById(‘numComments’);
if(numC) numC.innerHTML=numComments;</script>
<b:if cond=’data:post.commentPagingRequired’>

I replace vek em tih hi ngun takin i check anga, pakhat pawh i replace kim loh zauh chuan a dik dawnloh avangin uluk hle ang che. I tih zawh vek tawh chuan Save Template tih ah click leh la, i blog chu en leh rawh le, a lo dik thlap tawh ang.

Bonus: A thupui khi ka vuah dik chiah em aw?

Similar Posts:

Recent Posts:

21 Responses to “Blog comment delete na hnu tihbo dan”

  1. 1
    ^-||R@lT€||-^ Says:

    A ti leh ta daih mai!. Mahse, Good post….
    Java script hi chu tha ve pangbal!

    Report this comment

  2. 2
    CFL Says:

    Sandman’s Zo Bloggers Updates a in register takngial pawh la thiam lo tan chuan a bo theih map map ngei mai a.

    @ A thiam tan chuan post chhawrnahawm tak a nih ngei dawn hi. Sãñgpüîípã nge nge. (Y)

    Report this comment

  3. 3
    saint sammoo Says:

    blog hi siam ve mai mai tur a ni..hman hunah..

    Report this comment

  4. 4
    doc_lib Says:

    Tunlai chu misual.com hi a hot lo lutuk a, lung a leng tlat.

    Report this comment

  5. 5
    TuaiSialA Says:

    Good Post! (Y)

    Report this comment

  6. 6
    Asteric™ Says:

    Sangpuipa thuziak hi hriatthiam a awl thei ania (Y)

    Report this comment

  7. 7
    Sãñgpüîípã Says:

    haha doc_te, hot deuh tur ka la rawn post ang. A vaw hot tu ho in awm tha duhlo lutuk alawm le.

    Report this comment

  8. 8
    Asteric™ Says:

    Ka reh tak2 a hun ve hnai dawn tawha misual.com pawh ka ngai lawk hle mai :-) OT

    Report this comment

  9. 9
    sheldon Says:

    Sangpuipa post tha thei hle mai. Mahse Blog neilo tan chuan vawk hma a tuikeplung paih ang ani :-D

    Report this comment

  10. 10
    sheldon Says:

    Aste chu kan va ngai dawn tak ;-( ;-( (H)

    Report this comment

  11. 11
    Alejendro Says:

    Aste, kan ngai a che.

    Report this comment

  12. 12
    kilung Says:

    Tunlai hi post submit atlem ami le, a chhuak har thei riau mai.
    Post kan siam tengs :-P

    Report this comment

  13. 13
    Sãñgpüîípã Says:

    Asteric chu ban mai i tum deuh elo?

    Report this comment

  14. 14
    khirhkhak Says:

    Blog nei ve lo tan chuan comment dan tur pawh kan hre lo. Post thar nghakin kan thu kun reng mai.

    Report this comment

  15. 15
    ninja Says:

    Post thar kan duh

    Report this comment

  16. 16
    lr hlonchhing Says:

    (Y)

    Report this comment

  17. 17
    Maisek Says:

    Blog siam dan min zirtir ve teh u…. (C)

    Report this comment

  18. 18
    roseparvul Says:

    Va’n tha tiah tiah e awwww…. Sangpuipa sangpuiinu nen dam reng ang che u

    Report this comment

  19. 19
    Sãñgpüîípã Says:

    Haha roseparvul (Y)

    Report this comment

  20. 20
    Chhuaklinga Says:

    A bengvarthlak e (Y) . Post-tupa a siam dan lam tepawh rawn ti zel teh (request).

    tren tren

    Report this comment

  21. 21
    Jacka Pi Says:

    /\ tih vel a tam lutuk a, ka chhiar thiam lo! ;-)

    Report this comment

Leave a Reply

You must be logged in to post a comment.