Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

DIY Desktop Site Customisation - Use at own risk

135

Comments

  • Moderators, Computer Games Moderators Posts: 10,474 Mod ✭✭✭✭Andrew76



    I added a small addition to your code to open the link in a new tab, hopefully it has no adverse affects. 🙂


    Although it's strange, even with the above JS disabled, some links automatically open in a new tab with no 'Leaving boards...' page, others open in the same tab. Examples:

    Opens in new tab - the url in this post: https://www.boards.ie/discussion/comment/117648205#Comment_117648205

    Opens in same tab - the chrome extension url in this post: https://www.boards.ie/discussion/comment/117644624#Comment_117644624



  • Registered Users, Registered Users 2 Posts: 2,238 ✭✭✭mossie


    Thanks all, huge improvements in usability and readability from using the CSS and JS here.



  • Registered Users, Registered Users 2 Posts: 8,408 ✭✭✭Gadgetman496


    Shocking to see all the effort that's being put in here is needed after the migration to a brand new shiny platform that was going to fix all the problems with the old one!

    What exactly did the early morning downtime achieve?

    "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid."



  • Moderators, Computer Games Moderators Posts: 10,474 Mod ✭✭✭✭Andrew76


    @Gadgetman496 - What exactly did the early morning downtime achieve?

    Not sure but I've not gotten any popup warnings saying the site is unresponsive when trying to post a comment, that's a plus I guess. 🙂



  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly




  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly



    You can just remove the "https//www.boards.ie" part from the url - in case they change it around again



  • Registered Users, Registered Users 2 Posts: 4,325 ✭✭✭iLikeWaffles


    Couple of quick customizations for discussion pages might spend more time with it, (using stylus extension on opera with the page addon so it only targets ../discussion)


    /* center posts to window */
    .Container .Frame-row {
      display: flex;
      padding: 0;
      flex-wrap: wrap;
      justify-content: center;
    }
    


    /* sticky breadcrumps */
    .pre-header {
      position: fixed;
    }
    .BreadcrumbsBox {
      position: fixed;
      width: 100%;
      top: 48px;
      height: 20px;
    }
    #titleBar {
      position: fixed;
      top: 0px;
      width: 100%;
    }
    .Container {
      margin-top: 20px
    }
    


    /* smaller reaction buttons lighter colour */
    .Reactions .ReactButton.Quote,
    .Reactions .ReactButton.ReactButton-Like,
    .Reactions .FlagMenu.ToggleFlyout {
      width: 69px!important;
      height: 25px!important;
      background: linear-gradient(#fdfdfd, #d8d8d8);
      border: 1px solid #d8d8d8;
      display: flex!important;
      justify-content: center!important;
      margin: 4px!important;
    }
    
    .Reactions .ReactButton {
      color: rgb(151, 148, 148);
    }
    


    /* in between post spacing */
    /* after */
    .Section-Discussion .Content .pageBox .pageBox .pageBox::after {
      content: "";
      display: block;
      height: 8px;
      width: calc(100% + 2px);
      margin-left: -2px;
      border-bottom: 3px solid #3b5586
    }
    /*before*/
    .Section-Discussion .Content .pageBox .pageBox .pageBox::before {
      content: "";
      display: block;
      height: 8px;
      width: calc(100% + 6px);
      margin-left: -3px;
      border-top: 1px solid rgb(211, 212, 213);
    }
    


    /* postbit colour and font size, as well as spacing from side and top i.e. post time & background colour */
    .postbit-header {
      color: #f4f4f4!important;
      background-color: #3b5586a8!important;
      padding: 0 15px 0 5px!important;
      height: 28 px!important;
      line-height: 27px!important;
      font-size: 14px!important;
    }
    
    Post edited by iLikeWaffles on


  • Moderators, Computer Games Moderators Posts: 10,474 Mod ✭✭✭✭Andrew76


    Cheers.

    I wonder could you tell me what I'm doing wrong here, I've been trying to add a basic 'Top' url (which jumps to the top of the page) after the existing post Id/Url that you added to the post header. I was being noobish and just tried to add the href inside your div, but it appears before the post Id not after. It does jump to the top of the page which is great, just looks rubbish though. 😊

    /* Display post id & url in post header. */
    $(".ItemComment").each(function (index) {
        post_id = $(this).attr("id").split("_");
        $("<div class='post_link_ref'><a href='https://www.boards.ie/discussion/comment/" + post_id[1] + "#" + $(this).attr("id") + "'>" + post_id[1] + "</a><a href='#'> | Top</a></div>").appendTo($(this).find(".postbit-header"));
    });
    

    So I was hoping the below would look like '117656270 | Top' for example.




  • Moderators, Computer Games Moderators Posts: 10,474 Mod ✭✭✭✭Andrew76


    @iLikeWaffles - not sure if this is what you mean re: codeblock all of it - you click the pilcrow icon to the left of the comments box (you must have your browser maxmised to this see afaik) and select the quotes then code block option, you can then paste your code into the block that appears. Or just paste in your code, select all of it and then click pilcrow - quote - code block to wrap your code.


    Apologies if you knew this already and I misunderstood. 🙂

    P.S. I'm not sure about anyone else, but any time I need to use the formatting options I always press Enter a few times to make sure there are blank lines after whatever I'm going to format - otherwise I've no way to add more comments after it.



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


    Thank for comeback.

    As per screenshot - double "Falg" button once certain font colouring applied . It seam that Flag has some coding independant from other two despite all are " .Reactions . ReactButton"

    /*reaction buttons design*/

    .Reactions .ReactButton.Quote,

    .Reactions .ReactButton.ReactButton-Like,

    .Reactions .ReactButton.ReactButton-Flag, /*once anabled gives "shadow"/double button for FLAG */

    .Reactions .FlagMenu.ToggleFlyout {

     width:95px!important;

     height:30px!important;

     background:linear-gradient(#ff9900,#2f2310/* #ffa31a*/);

     color: #213244; /*this effects only Quote and Thanks buttons font if .Reactions .ReactButton.ReactButton-Flag disabled" */

     border:1px solid #4d4d4d;

     display:flex!important;

     justify-content:center!important;

     margin:4px!important

    }

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


    .Reactions .ReactButton {color: #213244} /* this effect Flag button font alone */



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly



    Why make it complicated - style the button as you want

    CSS

    .buttonTop {

    position:fixed;

    bottom:50px;

    right:50px;

    width:50px;

    height:50px;

    background:orange;

    }


    JS

    $('<a class="buttonTop"></a>').appendTo($("body"))

     $('.buttonTop').on('click', function(e) {

      e.preventDefault();

      $('html, body').animate({scrollTop:0}, '300');

     });



  • Moderators, Computer Games Moderators Posts: 10,474 Mod ✭✭✭✭Andrew76


    @fritzelly - Why make it complicated

    Because JS is not my language of choice. Thank you though, that will work very nice indeed. 🙂



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


    @fritzelly for troubleshooting i have disabled ALL other code related to react buttons - culprit still there.



  • Registered Users, Registered Users 2 Posts: 4,325 ✭✭✭iLikeWaffles


    Magic! Had no idea that quote icon had hidden away features.



  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly



    Remove the 2 commented styles

    .Reactions .ReactButton.Quote, .Reactions .ReactButton.ReactButton-Like, .Reactions .ReactButton.ReactButton-Flag, .Reactions .FlagMenu.ToggleFlyout {

    width: 95px!important;

    height: 30px!important;

    background: linear-gradient(#ff9900,#2f2310/* #ffa31a*/);

    color: #213244;

    /* border: 1px solid #4d4d4d; */

    display: flex!important;

    justify-content: center!important;

    /* margin: 4px!important; */




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


    @fritzelly briliant !!

    Still remain mystery to me how other two buttons not effected in same manner.... As you might notice, only "Flag" button has no bottom border once changed code.

    So i have reenabled border: line as well as all other tweaks and now it looks ok

    Thanks

    PS: typing comment freezing again, was not to bad in the morning



  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly


    I'm seeing the border fine





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


    Out curiocity increased border:5px solid #4d4d4d; give me this. There is still some code somewhere that effect "Flag" alone




  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly


    Remove

    height: 30px!important;



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




  • Registered Users, Registered Users 2 Posts: 5,617 ✭✭✭archfi


    The issue is never the issue; the issue is always the revolution.

    The Entryism process: 1) Demand access; 2) Demand accommodation; 3) Demand a seat at the table; 4) Demand to run the table; 5) Demand to run the institution; 6) Run the institution to produce more activists and policy until they run it into the ground.



  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly


    Change the border to 1px - the 5px is squashing it



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


    @fritzelly i can post full script i have if you willing to look into. perhaps i have some "dodgy" line, however some feeling that it comes from original unmoded code



  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly


    Yeah post it



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


    @fritzelly yeah, with 1px visually looks ok, but from code prospective its still wrong... or should i say different from other two




  • Advertisement
  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly


    Post your CSS



  • Registered Users, Registered Users 2 Posts: 5,617 ✭✭✭archfi


    Guys, please don't use codeblock formatting - page again freezing browser!

    The issue is never the issue; the issue is always the revolution.

    The Entryism process: 1) Demand access; 2) Demand accommodation; 3) Demand a seat at the table; 4) Demand to run the table; 5) Demand to run the institution; 6) Run the institution to produce more activists and policy until they run it into the ground.



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




  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly


    Removing this it looks fine to me

    border: 1px solid #4d4d4d;





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


    i have converted all of mine into quote, i think, on that purpose. Noted that it wasn't this bad in the morning 😕



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


    disabled ALL my code, applied ONLY yours suggeted in this post still can see button different size pushing over bottom border




  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly


    You still have the height css by the looks of it - just take the code you linked to and remove the border css i referenced



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


    @fritzelly bet you there is extra "border" and it cross with my code. Disabling bolded parts gives visual at glance, but then it breaks other section of code as white border is present above what would be expected if hover over ->> red, as it happens to other two buttons (amber, green)

    .Reactions .ReactButton.Quote, .Reactions .ReactButton.ReactButton-Like, .Reactions .ReactButton.ReactButton-Flag, .Reactions .FlagMenu.ToggleFlyout {

     width:95px!important;

     /*height:30px!important;*/

     background:linear-gradient(#ff9900,#2f2310/* #ffa31a*/);

     color: #213244; /*this effects only Quote and Thanks buttons font if .Reactions .ReactButton.ReactButton-Flag disabled" */

     /*border:1px solid #4d4d4d;*/

     display:flex!important;

     justify-content:center!important;

     /*margin:4px!important*/}

    Increase border: to 3px and you will see red frame appearing inside/beneath white, compare to other two buttons and you will see difference

    .Reactions .ReactButton.ReactButton-Flag:hover,

    .FlagMenu.ToggleFlyout:hover .ReactButton-Flag {

     color:red!important;

       border:1.5px solid #f00;}

    Thanks for patience.



  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly


    I'm not following you with whats wrong

    https://youtu.be/5VjkSQNyGWM



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


    Yes! Perfectly reflected on 3-4 s on vid - "Flag" button turn red background, but remain white frame, where other two perfectly change frame color respectively



  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly



    .FlagMenu {border:none !important}

    .ReactButton-Flag {border: 1px solid white;}

    a.ReactButton-Flag:hover {border: 1px solid red;}



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


    Bingo!

    Only needed .FlagMenu{} , placed above ALL other related to buttons, then enabled

    height:30px!important; /*not that it makes much difference here and now*/

    border:1px solid #4d4d4d;

    All buttons same border, color and size. behaviour as expected on hover

    Thanks for tip, next is ....coming soon

    need to learn more about coding 😎

    Thanks again



  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly


    p.s.

    You can't have 1.5px 😉



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


    let me ask - code commands order in sequence matter or am i mistaking?



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


    Seriously!, hmmm neither stylus nor Notepad++ complain about it. weird, but makes sence providing px is smalest unit 😀



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly



    Depends...

    Where the class has the same specificity then the last one wins but in this case ReactLabel wins as it has more specificity even tho its for the same element, but add !important to the span and it wins


    .ReactLabel {color:red}

    span{color:orange}


    https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity



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


    You guys have workaround for this ?

    no CSS code applied

    CSS on




  • Posts: 17,378 ✭✭✭✭ [Deleted User]


    The homepage and profile edit page can't be made full width or those options and the announcements go to the bottom of the screen.

      /* Check Homepage etc. for change width */
      if (window.location.pathname === "/") {
        $('body').addClass('no_wide');
      } else {
        var pathname = window.location.pathname.split('/');
        if (pathname[1] == "profile" && pathname[2] == "edit") {
          $('body').addClass('no_wide');
        }
      }
    

    In my extension I'm working on, I exclude that class for widening the content.



  • Registered Users, Registered Users 2 Posts: 5,617 ✭✭✭archfi


    I'm using Stylus on firefox, there is an option to exclude current url which I have done for the edit profile page to show those options.

    Extension icon-->Css active for boards (whatever the name you use) --> three dots--> exclude current url

    (https://www.boards.ie/profile/edit/USERNAME)

    The issue is never the issue; the issue is always the revolution.

    The Entryism process: 1) Demand access; 2) Demand accommodation; 3) Demand a seat at the table; 4) Demand to run the table; 5) Demand to run the institution; 6) Run the institution to produce more activists and policy until they run it into the ground.



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


    @[Deleted User] guess its JS, unfortunatelly, on my third day in coding .....

    @archfi this in turn would remove ALL stiling from that page, unless make separate stiling just for that section and control there. might try.

    Thanks



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


    seams got around it by moving these two on separate CSS and disableing for profile URL.

    .Content.MainContent { width: 100% !important; flex-shrink: 0 !important; }

    .Panel-main { display: none !important;}



  • Registered Users, Registered Users 2 Posts: 5,617 ✭✭✭archfi


    i hope whoever reported my post as spam was testing something...ignore my next sentence if that's the case.

    Again, boards need to sort out the 'reaction' count or reset the flag reactions if they 'count' against users when they finally get their house in order - that is only giving a gun to genuinely problematic posters.

    The issue is never the issue; the issue is always the revolution.

    The Entryism process: 1) Demand access; 2) Demand accommodation; 3) Demand a seat at the table; 4) Demand to run the table; 5) Demand to run the institution; 6) Run the institution to produce more activists and policy until they run it into the ground.



  • Registered Users, Registered Users 2 Posts: 17,670 ✭✭✭✭fritzelly


    Everyone has been testing it, Im sure or hope they reset it



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


    wonder is person who did it click again, does that remove it? It does for "Like" .... hm mhhh ... "Thanks"



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 4,325 ✭✭✭iLikeWaffles




Advertisement