Brian's Threaded Comments: Yakagadziridzwa

Imwe yemapulagi ini andinoda kumhanya pane yangu blog ndeye Brian's Threaded Comments. Iyo inobvumira kuti kutaurirana kuve nested, kurongeka uye nyore kwazvo kuverenga nekupindura kwazviri. Ini handina chokwadi chekuti nei pfungwa yacho isina kudhonzwa mukati memusoro we WordPressZvisinei.

Sezvo ini pandakaona kunobva mapeji angu, zvakadaro, iyo plugin yakawedzera nyonganiso. Iyo plugin inoisa ese ari maviri Javascript uye ekunyora matagi kuti iite kuti ishande. Dambudziko nderekuti inline styling uye javascript inogona kuwedzera mutoro nguva nekuti zvakabatanidzwa masheetti uye majavascript mafaira anogona kuchengetwa kamwe nebrowser.

Sezvo bots ekutsvaisa index yepamusoro 'x' yepeji, kodhi yakadai inosundira izvo zvirimo pasi. Ini handisati ndanzwa nezvazvo zvichiratidzwa, asi ndinotenda izvi zvinogona kukanganisa saiti yako yekutsvaga Injini Kugadziridza Nzira chaiyo yekudyisa Injini Yekutsvaga ndeyekusvetuka iyo toppings uye kupa yakawanda nyama. Ini ndakaita izvo chaizvo ndokufambisa zvese zviri zviviri JavaScript ne CSS kune faira rakabatana. Ndiri kumhanya yakagadziriswa plugin pano.

Ini ndanyora Brian pane yakagadziridzwa plugin, asi iyo email yakarova. Iniwo ndakamukanda tip kubva kublog rangu kuti ndione kana achamira. Kana iwe uchifarira, unogona dhawunirodha iyo yakagadziriswa plugin pano.

8 Comments

  1. 1

    Ndinokutendai zvikuru nekutumira iyi faira!
    Ini muchidimbu (pasi pemaminitsi gumi) ndakanyudza chigunwe changu muIntense Debate nekuti zviri nyore kuiswa threaded comments yakafadza.. Much as I love tooling out my site, their system was too much to put up with for this luxury alone.

  2. 2

    Ini ndanga ndichitarisa mafaera ako muzip uye anotaridzika chaizvo, zvisinei mumwe munhu akakurova iwe kusvika pakurova kumashure muna Kubvumbi. Buda iyi chinyorwa.

    Chimwe chinhu chekuvandudza pamusoro pacho kuve kuve nemifananidzo mavhesi emunharaunda achivadaidza kubva kune imwe nzvimbo yekunze neimwe mhando yekodhi yakavharidzirwa, zvirinani ndizvo zvinoita senge pamitsetse yainodaidza iyo png mifananidzo.

    Mafungiro?

  3. 4

    Mhoro Doug,
    Thanks for this? Ndanga ndoda kuedza kuita the exact thing, you saved me the time.

    Ini ndaifanira kuwedzera mashoma maficha kubva kuBrians Yakarukwa Comments 1.5 iyo yanga ichityora iteration yako.
    Pamusoro 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;
    }
    }

    Ini zvakare ndakawedzera diki CSS kubva kuBTC 1.5 kune .css faira:

    .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

    Izvi zvakanaka, Doug! Imwe nyaya: Zvinoita sekuti iyo plugin ikozvino inoda kuve mu brianthreadedcomments subfolder yemaplugins, asi mishoma yemifananidzo inopihwa nekuwana iyo PHP faira mune plugins dhairekitori (kana mushandisi anyoresa kune email chenjedzo, semuenzaniso). Ndakashanda ndichitenderedza izvi nekuve neiyo PHP faira munzvimbo mbiri. Pamwe inongoda kuve neiyo URL inogadziriswa kumwe kunhu mukodhi.

  5. 8

Unofungei?

Nzvimbo iyi inoshandisa Akismet kuderedza spam. Dzidza kuti sei deta yako inoshandiswa.