Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

MarkAllRead Extension [Version 1.0]

edited December 2007 in Vanilla 1.0 Help
I've actually made and uploaded a new extension, the extension adds a "Mark all Read" Link to the Panel. When you click on the link all discussion are set to be read.
Link
«13

Comments

  • Options
    Sweet.
  • Options
    oh shit are you serious? i thought making an extension like this was going to be a major database problem?
  • Options
    MarkMark Vanilla Staff
    The only problem is that if you have lots of people and they all use it, your database will get very big very fast.
  • Options
    Does this mark them all as read by putting in a record for every thread or just moving the last read date to the present time?
  • Options
    edited May 2006
    It would have to put a new record in for every unread thread, for every user that clicks it.
  • Options
    I thought there was a way of fooling it by updating one of the timestamps in the query. I managed to convince myself that a while ago atleast. Perhaps the query has changed or i was being an idiot. Maybe even both.
  • Options
    @Mark: is there another way with less database usage?

    @minisweeper: yes it puts a record for every thread to the database
  • Options
    It puts in a record for every discussion, so if you have like a 100 users and like 1000 discussions, your discussionwatch table will have 100 x 1000 records!

    Hutsein, maybe you can change your extension so it will only mark-read the discussions from last 2 weeks, or 3 weeks (maybe make it configurable for your users).
  • Options
    I've changed it, now you can select, that only for example 1 week or so is set to read. It can be set in the default.php
  • Options
    I am about half way through writing an extension with the same effect but different execution. This one adds a 'read time' column to the users table and shows threads as unread only if they have activity after that point. Also toying with the ability to 'undo' the action. Only been able to put 3-4 hours into it in the past month, basically enough to add a link, request a delegate and figure out that it is possible.
  • Options
    Yeah, this would be the perfect way, but I think creating this extension would be a lot of work...

    My extension was easy to create and is mainly for small communites because of the big db size, your extension will be for big communities
  • Options
    You took my extension's name!

    *cries*
  • Options
    "Mark, all read"

    *winks to Mark*
  • Options
    Yeah, wallphones way is the best way to do it i think.
  • Options
    MarkMark Vanilla Staff
    I just have to say thanks for the awesome add-ons, guys. You rock.
  • Options
    yeah, add-ons have really taken off in the last couple of weeks.
  • Options
    hmm...It seems that MarkAllRead isn't working for me - no error, just nothing is happening after the click on "Mark all read"...
  • Options
    I'm having the same problem...
  • Options
    have you set up the MARKALLREAD_LIMIT correctly. Basically it is set to 1d (1 day) and it turns only comments as read who aren't older than 1 day. you can change it to for example 2w and it will mark all comments as read who aren't older than 2 weeks.
  • Options
    I've set it to '3w'... and clicking "mark all read" does absolutely nothing.
This discussion has been closed.