Locked Forum threads

Discussion in 'Suggestions & Feedback' started by AmLachDesigns, Mar 1, 2013.

  1. AmLachDesigns
    AmLachDesigns Well-Known Member
    Not really a bug, more of a request:

    When a thread is locked, I understand that the padlock symbol is 'lit up' until you have read it. Is it possible that the padlock could be 'turned off' once the thread has been accessed, following the model of the thread light bulbs?
     
  2. stannum
    stannum Well-Known Member
    Bug reported long ago. In some browsers it works as you said, because those browsers use a different image (gif vs png).

    Read:
    [​IMG] [​IMG]

    Unread:
    [​IMG] [​IMG]
    (Note for future: if the first icon appear different, you are reading this post after the issue being finally addressed)

    Fix is simple and fast, even without the source file:
    unreadlocked-fixed.png
    Just a matter of putting it in the webserver now.
     
  3. stannum
    stannum Well-Known Member
    Tired of waiting for such easy task, so found a workaround. Get Stylish browser extension and add the following style for address "https://www.shapeways.com/forum/*":

    Code:
    @namespace url(https://www.w3.org/1999/xhtml);
    
    @-moz-document url-prefix("https://www.shapeways.com/forum/") {
      img[src*="/readlocked.png"] {
          width: 0 !important;
          height: 0 !important;
          padding-left: 35px !important;
          padding-top: 37px !important;
          background:
            url(https://www.shapeways.com/forum/index.php?t=getfile&id=28299&)
            no-repeat !important;
          background-position: center !important;
        }
    }
    
    Enjoy.

    Edit: oops, swapped icons.
     
    Last edited: Jun 19, 2013
  4. stannum
    stannum Well-Known Member
    It seems we are getting http/https games going on, so the script should be now:

    Code:
    @namespace url(https://www.w3.org/1999/xhtml);
    
    @-moz-document url-prefix("https://www.shapeways.com/forum/"),
                   url-prefix("https://www.shapeways.com/forum/") {
      img[src*="/readlocked.png"] {
          width: 0 !important;
          height: 0 !important;
          padding-left: 35px !important;
          padding-top: 37px !important;
          background:
            url(https://www.shapeways.com/forum/index.php?t=getfile&id=28299&)
            no-repeat !important;
          background-position: center !important;
        }
    }
     
  5. AmLachDesigns
    AmLachDesigns Well-Known Member
    Very neat. Maybe one day Shapeways will actually take action.

    Don't hold your breath, though!
     
  6. bartv
    bartv Member
    I love the hack :) I've also passed on the request, it makes a lot of sense. Then again, given that we don't lock that many threads, I don't see this getting prioritized soon.