Tráchta Snáithe Brian: Optamaithe

Ceann de na forlíontáin is breá liom a reáchtáil ar mo bhlag ná Tráchta Threaded Brian. Ligeann sé do chumarsáid a bheith neadaithe, eagraithe agus an-éasca a léamh agus freagairt dóibh. Níl mé cinnte cén fáth nár tarraingíodh an loighic isteach i gcroílár na WordPress, Cé.

Agus mé ag féachaint ar fhoinse mo leathanaigh, áfach, chuir an breiseán go leor praiseach as. Cuireann an breiseán clibeanna Javascript agus clibeanna stíle isteach chun é a chur ag obair. Is í an fhadhb atá ann ná go bhféadann stíliú inlíne agus javascript amanna ualaigh a mhéadú toisc gur féidir leis an mbrabhsálaí stílbhileoga nasctha agus comhaid javascript a thaisceadh uair amháin.

Ós rud é go ndéanann bots cuardaigh innéacs an méid 'x' is fearr ar leathanach, déanann cód mar seo an fíor-ábhar a bhrú síos. Níor chuala mé faoi gur cruthaíodh é, ach creidim go bhféadfadh sé seo dul i bhfeidhm ar Optamú Inneall Cuardaigh do shuíomh. Is é an bealach ceart chun Inneall Cuardaigh a bheathú ná na barráin a scipeáil agus níos mó feola a sholáthar. Rinne mé é sin go díreach agus bhog mé an Javascript agus an CSS araon go comhad nasctha. Tá an breiseán optamaithe á rith agam anseo.

Scríobh mé Brian ar an mbreiseán optamaithe, ach phreab an ríomhphost. Chaith mé barr air ó mo bhlag freisin féachaint an stadfaidh sé. Má tá suim agat, is féidir leat íoslódáil an breiseán optamaithe anseo.

8 Comments

  1. 1

    Thank you very much for posting this file!
    I briefly (less than ten minutes) dipped my toe into Intense Debate because easily installed threaded comments appealed.. Much as I love tooling out my site, their system was too much to put up with for this luxury alone.

  2. 2

    I was looking at your files in the zip and it looks really good, however someone beat you to the punch back in April. Check out an post seo.

    Something else to improve upon would be having the images local verses having them called from an external location with some sort of encrypted code, at least that’s what it looks like around the lines where it calls the png images.

    Smaointe?

  3. 4

    Hi Doug,
    Thanks for this?I was about to endeavor to do the exact same thing, you saved me the time.

    I had to add a few functions from Brians Threaded Comments 1.5 that were breaking your iteration.
    Thar aon ní eile 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;
    }
    }

    I also added a little CSS from BTC 1.5 to the .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

    This is great, Doug! One issue: It seems that the plugin now wants to be in the briansthreadedcomments subfolder of plugins, but a few of the images are rendered by accessing the PHP file in the plugins directory (when a user has subscribed to email alerts, for example). I worked around this by having the PHP file in both places. Probably just needs to have a URL adjusted somewhere in the code.

  5. 8

Cad é do bharúil?

Úsáideann an suíomh seo Akismet chun spam a laghdú. Foghlaim conas a dhéantar próiseáil ar do chuid tráchta.