Thread: Request: Auto-lock!

  1. #16
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Just remember, above all....DON'T PANIC

    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  2. #17
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    To laserlight's point, it seems in the rare occasion that somebody has something useful and positive to add to an old, incorrect thread that has been auto-locked, that they could request special permission from a moderator. Or make a large post count (in the hundreds) a prerequisite to commenting on old threads if that's somehow possible. Honestly, in the 8 months I've been here, I've seen dozens of threads resurrected, and not a single one of these necromancers has contributed anything useful to the thread. The vast majority of the bumps seem to be "I have this homework too, can you email me your solution", and the rest seem to be new comers who think they can build rep points or something by simply rephrasing the already-more-than-good-enough answers given a year ago.

  3. #18
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Right on cue, another typical example
    -> Problem with #include "stdafx.h"
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    OTOH, why don't just moderators split replies from old topics they feel is not appropriate there? This is a counter argument against merging new threads into old topics if they feel necessary.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #20
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Splitting the topic doesn't prevent or age a bumped thread.

  6. #21
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I don't know--I think that depends on the forum software.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #22
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    I've seen threads be split on here before, so I do know.

  8. #23
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    1,012
    This is a good suggestion. The basic "prevent replies to old threads" should be quite doable; I will look into it.

  9. #24
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by AndrewHunter View Post
    Just remember, above all....DON'T PANIC

    He's got a TOWEL... run away... run away!!

  10. #25
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    1,012
    I've implemented a very simple version of this. Any still-open thread that hasn't been touched in the last 31 days is automatically displayed as "locked" unless you are a moderator or the thread is a sticky.

    Technical details: I was able to add this as a custom vBulletin plugin, making upgrades easy. I also didn't really change the "locked" status in the database (for safety). Everything is dynamically computed, but no additional db queries are required.

    Please let me know if you run into any weird behavior as a result of this.

  11. #26
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by webmaster View Post
    I've implemented a very simple version of this. Any still-open thread that hasn't been touched in the last 31 days is automatically displayed as "locked" unless you are a moderator or the thread is a sticky.
    Wouldn't the 'Closed' button be the first place anyone(trying to bump) would click?

    I found that, clicking the button is opening the reply page. (Please ignore this, if the 'reply' is prevented after hitting submit on that page).

  12. #27
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by webmaster View Post
    I've implemented a very simple version of this. Any still-open thread that hasn't been touched in the last 31 days is automatically displayed as "locked" unless you are a moderator or the thread is a sticky.

    Technical details: I was able to add this as a custom vBulletin plugin, making upgrades easy. I also didn't really change the "locked" status in the database (for safety). Everything is dynamically computed, but no additional db queries are required.

    Please let me know if you run into any weird behavior as a result of this.

    Would "not being able to find any messages older than 31 days" count?
    Anything beyond "4 weeks" appears to have vanished...

  13. #28
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    1,012
    @manasij7479 Oops, that's a good point! Let me see about that...

    @CommonTater I don't think that's the case--your profile likely is set to show only messages within the last month. (I ran into this in my testing.)

  14. #29
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by webmaster View Post
    @CommonTater I don't think that's the case--your profile likely is set to show only messages within the last month. (I ran into this in my testing.)
    Thanks for pointing that out... Handy setting!

  15. #30
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    1,012
    I've updated the display so that there are no longer links to the reply page for closed threads.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. nested lock?
    By George2 in forum C# Programming
    Replies: 2
    Last Post: 03-23-2008, 08:33 AM
  2. lock
    By siavoshkc in forum C# Programming
    Replies: 5
    Last Post: 10-13-2006, 08:46 AM
  3. Scroll lock
    By frenchfry164 in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 07-05-2003, 02:31 PM
  4. LPDIRECTDRAWSURFACE7->Lock()
    By Magos in forum Windows Programming
    Replies: 5
    Last Post: 03-18-2003, 06:53 PM
  5. FAQ Check/Lock
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-15-2002, 11:21 AM