Nā Manaʻo o Brian's Threaded: Optimised

ʻO kekahi o nā plugina aʻu e makemake ai e holo ma kaʻu blog ʻo Brian's Threaded Comments. Hāʻawi ia i nā kamaʻilio e pūnana ʻia, hoʻonohonoho a maʻalahi hoʻi e heluhelu a pane. ʻAʻole maopopo iaʻu ke kumu o ka huki ʻole ʻia o ka noʻonoʻo i ke kumu o WordPress, Nae.

I koʻu nānā ʻana i ke kumu o kaʻu mau ʻaoʻao, eia nō naʻe, ua pākuʻi loa ka plugin. Hoʻokomo ka plugin i nā inoa ʻo Javascript a me nā kaila no ka hana. ʻO ka pilikia, hiki i kaila inline a me ka javascript ke hoʻonui i nā manawa ukana no ka mea hiki ke hoʻopili ʻia nā kaila i hoʻopili ʻia a me nā faila javascript i hoʻokahi manawa e ka polokalamu kele pūnaewele.

Ma muli o ka helu ʻana o nā bots huli i ka nui 'x' nui o kahi ʻaoʻao, ʻo ka code e like me kēia e hoʻokuke nei i ka ʻike maoli i lalo. ʻAʻole wau i lohe e pili ana i ka hōʻoia, akā manaʻo wau hiki i kēia ke hopena i ka ʻenekini Search Engine Optimization o kāu pūnaewele. ʻO ke ala kūpono e hānai ai i kahi ʻenekia huli ʻo ia ka lele ʻana i nā pāpale a hāʻawi i nā ʻiʻo hou aku. ʻO wau wale nō ka mea a neʻe i ka Javascript a me ka CSS i kahi faila i hoʻopili ʻia. Ke holo nei wau i ka plugin optimized ʻaneʻi.

Ua kākau wau iā Brian ma ka plugin optimised, akā ua kūleʻa ka leka uila. Ua kiola wau iā ia i kahi kihi mai kaʻu blog e ʻike inā e kū ʻo ia. Inā hoihoi ʻoe, hiki iā ʻoe hoʻoiho i ka plugin optimised ʻaneʻi.

8 Comments

  1. 1

    Mahalo nui no kou kau ʻana i kēia faila!
    Ua kuʻu pōkole wau (ma lalo o ʻumi mau minuke) i kuʻu manamana wāwae i loko o Intense Debate no ka mea ua maʻalahi ka hoʻopiʻi ʻana i nā ʻōlelo i ulana ʻia .. Ua nui koʻu aloha i ka hana ʻana i kaʻu pūnaewele.

  2. 2

    Ke nānā nei wau i kāu faile ma ka zip a maikaʻi ke nānā aku, akā naʻe ua kuʻi kekahi iā ʻoe i ka kuʻi i ka ʻApelila. Huli aku kēia pou.

    ʻO kahi mea ʻē aʻe e hoʻomaikaʻi i ka loaʻa ʻana o nā kiʻi kūloko i nā paukū e kāhea ana iā lākou mai kahi kūwaho me kahi ʻano o nā code i hoʻopā ʻia, ʻo ka mea liʻiliʻi e like me nā laina kahi e kāhea ai i nā kiʻi png

    ʻO nā manaʻo?

  3. 4

    Aloha Doug,
    Mahalo no kēia? E ʻimi ana wau e hana i ka mea like, ua hoʻopakele ʻoe iaʻu i ka manawa.

    Ua pono wau e hoʻohui i kekahi mau hana mai nā Brians Threaded Comments 1.5 e haki ana i kāu ʻōlelo.
    I luna btc_add_reply_id($id):

    function btc_has_avatars() {
    if( function_exists('get_avatar'))
    return true;
    else if(function_exists('MyAvatars'))
    return true;
    return false;
    }

    function btc_avatar() {
    if( function_exists('get_avatar')) {
    echo get_avatar(get_comment_author_email(), '64');
    return;
    }
    else if(function_exists('MyAvatars')) {
    MyAvatars();
    return;
    }
    }

    Ua hoʻohui pū wau i kahi CSS liʻiliʻi mai BTC 1.5 i ka faila .css:

    .btc_gravatar {
    float: right;
    margin: 3px 3px 4px 4px;
    }
    .collapsed .btc_gravatar { display:none; } /* I added this, since the gravatars weren't collapsing nicely */

  4. 5

    Maikaʻi kēia, e Doug! Hoʻokahi pukana: me he mea lā makemake ka plugin i loko o ka subfolder o nā plugins briansthreadedcomments, akā hāʻawi ʻia kekahi o nā kiʻi e ke kiʻi ʻana i ka faila PHP i ka papa kuhikuhi plugins (ke kau inoa kahi mea hoʻohana i nā leka uila, no ka laʻana). Ua hana wau a puni kēia ma ka loaʻa ʻana o ka faila PHP ma nā wahi ʻelua. Pono paha e hoʻoponopono i kahi URL ma kahi o ka pāʻālua.

  5. 8

Pehea kou manaʻo?

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.