Brian's Threaded Lus: Qhov Zoo Tshaj

Ib ntawm plugins Kuv nyiam khiav ntawm kuv qhov blog yog Brian's Threaded Comments. Nws tso cai rau kev sib txuas lus los ua zes ua ke, muaj txheej txheem thiab yooj yim heev rau kev nyeem ntawv thiab teb. Kuv tsis paub meej vim li cas cov logic tsis tau rub tawm mus rau hauv tub ntxhais WordPress, Tab sis yog.

Raws li kuv saib qhov chaw ntawm kuv nplooj ntawv, ho, lub plugin ntxiv qhov sib txawv heev. Cov plugin inserts ob Javascript thiab styling cim npe kom tau nws mus ua haujlwm. Qhov teeb meem yog tias inline styling thiab javascript tuaj yeem nce lub sijhawm thauj khoom vim hais tias txuas stylesheets thiab javascript cov ntaub ntawv tuaj yeem raug cached ib zaug los ntawm qhov browser.

Txij li thaum tshawb nrhiav bots index qhov saum 'x' ntau npaum li cas ntawm nplooj ntawv, chaws zoo li qhov no thawb cov ntsiab lus tseem ceeb lawm. Kuv tsis tau hnov ​​nws ua pov thawj, tab sis kuv ntseeg tias qhov no tuaj yeem cuam tshuam koj lub xaib Kev Tshawb Nrhiav Kev Txhim Kho. Txoj hauv kev pub rau Kev Tshawb Fawb Hauv Kev Tshawb Fawb yog hla cov toppings thiab muab nqaij ntau ntxiv. Kuv cia li ua li ntawd thiab hloov ob qho Javascript thiab CSS rau cov ntawv txuas. Kuv tab tom khiav lub optimized plugin ntawm no.

Kuv tau sau Brian ntawm qhov ua kom zoo, tab sis tus email xa tuaj. Kuv kuj pov nws ib qho ntawm kuv blog kom pom tias nws yuav nres ntawm. Yog koj txaus siab, koj ua tau rub lub plugin muaj txiaj ntsig ntawm no.

8 Comments

  1. 1

    Ua tsaug ntau rau ntaus tej ntaub ntawv no!
    Kuv luv luv (tsawg dua kaum feeb) ntsaws kuv tus ntiv taw rau hauv Kev Sib Cav vim tias yooj yim ntsia xov cov lus thov .. Ntau li kuv nyiam tooling tawm kuv lub xaib, lawv lub kaw lus tau ntau dhau los tso nrog rau qhov khoom kim heev no ib leeg.

  2. 2

    Kuv tau saib koj cov ntaub ntawv hauv zip thiab nws zoo nkaus li zoo heev, txawm li cas los xij ib tus neeg ntaus koj mus rau punch rov qab rau Lub Plaub Hlis. Txheeb xyuas no ncej.

    Ib yam dab tsi ntxiv los txhim kho yog yuav muaj cov duab hauv zos nqe coj lawv hu los ntawm qhov chaw sab nraud nrog qee hom kev cai encrypted, tsawg kawg yog qhov nws zoo li nyob ib ncig ntawm cov kab uas nws hu png cov duab.

    Xav?

  3. 4

    Kuv tuaj los Doug,
    Ua tsaug rau qhov no? Kuv tau hais txog qhov ua tib qho, koj tau cawm kuv lub sijhawm.

    Kuv yuav tsum tau ntxiv ob peb lub zog los ntawm Brians Threaded Lus 1.5 uas tau rhuav koj qhov kev tsim kho.
    Saum toj no 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;
    }
    }

    Kuv tseem ntxiv me ntsis CSS ntawm BTC 1.5 mus rau .css file:

    .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

    Qhov no zoo kawg thiab, Doug! Ib qhov teeb meem: Nws zoo nkaus li tias lub plugin tam sim no xav tau nyob hauv briansthreadedcomments subfolder ntawm plugins, tab sis ob peb ntawm cov duab tau txais los ntawm kev nkag mus rau PHP cov ntaub ntawv hauv cov plugins directory (thaum tus neeg siv tau sau npe rau email ceeb toom, piv txwv). Kuv tau ua haujlwm nyob ib ncig ntawm qhov no los ntawm muaj cov ntaub ntawv PHP hauv ob qho chaw. Tej zaum tsuas yog xav tau cov URL hloov kho qhov chaw hauv txoj cai.

  5. 8

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.