Advertisement:

Author Topic: Mark all messages as Read for new members  (Read 1431 times)

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
Mark all messages as Read for new members
« on: September 30, 2015, 07:01:38 AM »
Hi,is possible to automatically Mark all messages as Read for newly registered members ? using smf 2.1 of course 

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,835
  • Gender: Male
    • Kindred-999 on GitHub
Re: Mark all messages as Read for new members
« Reply #1 on: September 30, 2015, 07:05:01 AM »
why would anyone want to do that?

Anyway... if you really want to do it, you would have to insert the "mark-all-read" code into the registration stream...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
Re: Mark all messages as Read for new members
« Reply #2 on: September 30, 2015, 07:18:09 AM »
Can you tell me how ? Thank You in advance

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,920
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Mark all messages as Read for new members
« Reply #3 on: September 30, 2015, 11:57:03 AM »
It's not a simple task. It involves copying code from other parts of SMF and modifying it to work for a specific user rather than the "current" user. This would add well over 100 lines of code, and you'd have several more queries being run at registration.
Michael Eshom
Cincy Space - now open!

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
Re: Mark all messages as Read for new members
« Reply #4 on: September 30, 2015, 12:52:39 PM »
Ok ,I will try to add function myself but I'm opened at any suggestion

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
Re: Mark all messages as Read for new members
« Reply #5 on: October 05, 2015, 09:15:48 AM »
Well ,I cannot do it myself ... Any help will be appreciated , thank you

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,835
  • Gender: Male
    • Kindred-999 on GitHub
Re: Mark all messages as Read for new members
« Reply #6 on: October 05, 2015, 09:58:04 AM »
well, since 2.1 is still in beta - we're not going to be spending any time doing custom code work - since it is more important to get the core code ready...


and, as Oldiesmann said:  it's not a simple task...

my original question remains:  WHY would anyone want to do that?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
Re: Mark all messages as Read for new members
« Reply #7 on: October 05, 2015, 10:07:09 AM »
ok, I will wait for full release maybe someone will figure out how to do it