Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

DIY Desktop Site Customisation - Use at own risk

135678

Comments

  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    How could i make time on post banner to be in 24h format?



  • Registered Users, Registered Users 2, Paid Member Posts: 18,615 ✭✭✭✭fritzelly


    This comment will go to a new page - so will help out



  • Registered Users, Registered Users 2, Paid Member Posts: 40,248 ✭✭✭✭Hotblack Desiato


    Having the full date and time on every post was just a CSS change - I have it and I'm not running any custom JS.

    I'm partial to your abracadabra
    I'm raptured by the joy of it all



  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    Have it too, but would prefere 24h if posible

    image.png




  • Registered Users, Registered Users 2 Posts: 86,683 ✭✭✭✭Overheal


    This makes sense. In the long run it will bring stability, short term it slows everything down when you and your outsource are on different continents.



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 86,683 ✭✭✭✭Overheal


    Yeah the codeblocks or something is definitely crashing out this page .



  • Registered Users, Registered Users 2, Paid Member Posts: 6,825 ✭✭✭archfi



    Sorry smuggler, couldn't reply to your post on previous page, virtually impossible as page freezes browser completely with the codeblock formatting!

    I have that as well but with css only.

    "The best way to control the opposition is to lead it ourselves." —Vladimir Lenin



  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    If anyone interested, allow to mod react button colours

    .Reactions .ReactButton.Quote,

    .Reactions .ReactButton.ReactButton-Like,

    .Reactions .FlagMenu.ToggleFlyout {

     width:69px!important;

     height:30px!important;

     background:linear-gradient(#fdfdfd,#d8d8d8);

     border:1px solid #d8d8d8;

     display:flex!important;

     justify-content:center!important;

     margin:4px!important

    }

    .Reactions .ReactButton:hover,

    .Reactions .ReactButton:hover,

    .Reactions .FlagMenu.ToggleFlyout:hover {

     background:#3c5587;

     color:#fff

    }

    Post edited by smuggler.ie on


  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    HAve same, many times had to close page and open fresh to complete post from draft. Not sure what cause - code or draft



  • Registered Users, Registered Users 2, Paid Member Posts: 6,825 ✭✭✭archfi


    It's definitely using codeblock formatting!

    This page was flying :)

    "The best way to control the opposition is to lead it ourselves." —Vladimir Lenin



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    Please see my small compilation, from all above and few my own discoveries. Dont judge to strict - first time ever....




  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    Not sure what happent, was clicking away and this loaded.

    Ingnore, it was link in notification

    image.png




  • Registered Users, Registered Users 2, Paid Member Posts: 18,615 ✭✭✭✭fritzelly



    Bit hacky


    $(".postbit-header time").each(function(index) {

    dt=new Date($(this).attr("datetime")).toString()

    $(this).text(dt.substring(0,21))

    });



  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    Thanks @fritzelly . 😵😵🤪 what should i do with this one 😀

    It does not resemble CSS, perhasp JS but i am not ready for it yeat :D



  • Registered Users, Registered Users 2, Paid Member Posts: 18,615 ✭✭✭✭fritzelly




  • Registered Users, Registered Users 2 Posts: 3,971 ✭✭✭el Fenomeno


    Fritz, any chance you could share your full CSS and JS texts? I'm going to defer to your expertise and just copy what you have!



  • Registered Users, Registered Users 2, Paid Member Posts: 18,615 ✭✭✭✭fritzelly




  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    This allow to set text colour on hover Flag button, however, can figure out yellow and green for other two

    .Reactions .ReactButton:hover,

    .FlagMenu.ToggleFlyout:hover .ReactButton-Flag { color:red!important}



  • Registered Users, Registered Users 2, Paid Member Posts: 18,615 ✭✭✭✭fritzelly


    Little one - change external links to normal links, no more Leaving Site... pages


    $(".Message.userContent > p a").each(function(index) {

    realurl=$(this).attr("href").replace("/home/leaving?allowTrusted=1&target=","")

    realurl=decodeURIComponent(realurl)

    $(this).attr("href",realurl);

    })



  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    tweak to code() to let reaction buttons to drop to bottom in oneliner posts

    .Reactions { padding: 0 !important; margin: 0 !important; margin-right: 10px !important; position: unset absolute !important; float: right !important;}

    before

    image.png

    after

    image.png

    Edit: had to tweak it once more as it introduced another problem - works fine if poster has signature setup, but long text line or big image/quote flow behind buttons if not set. Bellow covers all i think

    .Reactions { padding: 0 !important; margin: 0 !important; margin-right: 10px !important; position: relative !important; float: right !important;}

    image.png


    Post edited by smuggler.ie on


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    @fritzelly , or anyone, chance you could assist to get it working properly?

    .ReactButton-Like:after {

       content: "Thanks";

       position: absolute;

       display: block;

       color: black; /*need to match others*/

       top: 5px; /* ? */

       left: 15px; /*need to acomodate count number, could be ???*/

    }

    image.png




  • Registered Users, Registered Users 2, Paid Member Posts: 18,615 ✭✭✭✭fritzelly




  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    look at my "like" button

    image.png




  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    that is after #2 attempt

    .ReactButton-Like {

    text-indent: -9999px;

       line-height: 0; }


    .ReactButton-Like::after

    {

    content: "Thanks";

    text-indent: 0;

    display: block;

    line-height: initial;



  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    neither of versions are working the way intended due to lack of my coding knowledge 😀



  • Registered Users, Registered Users 2, Paid Member Posts: 18,615 ✭✭✭✭fritzelly


    Ok I've had a few drinks but what am I missing?



  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    😁 cheers!

    image.png




  • Registered Users, Registered Users 2, Paid Member Posts: 18,615 ✭✭✭✭fritzelly


    What do you want to do? Make it wider so it fits the icon and count?



  • Registered Users, Registered Users 2 Posts: 4,478 ✭✭✭smuggler.ie


    whatever it will take to get rid of "like" keeping count



  • Advertisement
  • Registered Users, Registered Users 2, Paid Member Posts: 18,615 ✭✭✭✭fritzelly



    Think I get you - when you click the button the text reverts

    No easy way round it as the JS routine keeps resetting so you would need to remove all events on the button whilst still maintaining the ajax request to the server to update the Likes - lotta work



Advertisement