Brian's Threaded Comments: An inganta shi

Ofaya daga cikin abubuwan da nake so in yi amfani da su a shafin yanar gizan na shine Brian's Threaded Comments. Yana ba da damar sadarwa ta zama gida, tsari kuma mai sauƙin karantawa da amsawa. Ban tabbata ba dalilin da yasa ba'a kawo ma'anar cikin ainihin ba WordPress, Ko da yake.

Yayin da na kalli asalin shafina, duk da haka, kayan aikin sun kara rikici. Fayil ɗin yana saka alamun Javascript da alamun salo don samun damar aiki. Matsalar ita ce salo mai layi da javascript na iya ƙara lokutan ɗorawa saboda alamomin salo da fayilolin javascript za a iya adana su sau ɗaya ta mai binciken.

Tunda bots bincike ya nuna adadin 'x' na shafi, lambar kamar wannan tana tura ainihin abun cikin ƙasa. Ban ji labarin an tabbatar da shi ba, amma na yi imani wannan na iya tasiri ga Ingantaccen Injin Bincike. Hanya madaidaiciya don ciyar da Injin Bincike shine tsallake abubuwan tofawa da samar da ƙarin nama. Na yi haka kuma na motsa Javascript da CSS zuwa fayil ɗin da aka haɗa. Ina aiki da ingantaccen plugin a nan.

Na rubuta Brian akan ingantaccen kayan aikin, amma imel ɗin ya bunƙasa. Ni kuma na jefa masa wata sanarwa daga shafin na don ganin ko zai tsaya. Idan kana sha'awar, zaka iya zazzage ingantaccen kayan aikin nan.

8 Comments

  1. 1

    Na gode sosai don sanya wannan fayil ɗin!
    A takaice (kasa da minti goma) na tsoma yatsan yatsana cikin Muhawara Mai Kauri saboda sauƙin shigar da tsokaci masu tsokaci sun ɗauka .. Da yawa ina son kayan aikin fitar da shafina, tsarinsu yayi yawa da za a iya jurewa da wannan alatu ita kaɗai.

  2. 2

    Ina kallon fayilolinku a cikin zip kuma yana da kyau sosai, duk da haka wani ya doke ku harma a watan Afrilu. Duba wannan matsayi.

    Wani abu kuma don ingantawa shine samun hotunan ayoyin gida waɗanda aka kira su daga wani wuri na waje tare da wasu nau'in ɓoyayyen ɓoye, aƙalla wannan shine abin da yake kama da layin inda yake kiran hotunan png.

    Kira?

  3. 4

    Sannu Doug,
    Na gode da wannan? Ina gab da yin abin dai dai dai, kun cece ni lokaci.

    Dole ne in ƙara functionsan ayyuka daga Brian Threaded Comments 1.5 waɗanda ke ɓata aikinku.
    Sama 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;
    }
    }

    Na kuma ƙara ɗan CSS daga BTC 1.5 zuwa .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

    Wannan abu ne mai kyau, Doug! Batu daya: Da alama plugin ɗin yanzu yana so ya kasance a cikin ƙaramar fayil ɗin briansthreadedcomments na plugins, amma kaɗan daga cikin hotunan ana yin su ne ta hanyar samun damar fayil ɗin PHP a cikin kundin adireshin (lokacin da mai amfani ya yi rajista da faɗakarwar imel, alal misali). Na yi aiki a kusa da wannan ta hanyar samun fayil ɗin PHP a duka wuraren. Wataƙila kawai yana buƙatar a gyara URL a wani wuri cikin lambar.

  5. 8

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.