Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1.8 Warning message if new reply is posted
#11
(2014-07-10, 07:28 AM)JordanMussi Wrote: Scaled up with thousands of users, it has the potential to be quite exhaustive...
It would also dam you if your on free hosting (the excessive load may cause your host to disable your account).

I agree with this
-
Reply
#12
Must I repeat the last part of my post?
(2014-07-11, 05:03 AM)Vashnik Wrote: ... Besides, there is more than one way to notify a user of new posts. You could catch it when they click "Post Reply" and/or "Preview Post" instead of querying the database every few seconds.
This could be handled more like on demand (such as onClick or $_POST) instead of, for lack of a better description, a "background" process via AJAX.

I guess no one ever reads the entire post though and I guess I'm the only one going to fight for forward thinking on this topic.
Reply
#13
Yes, it would not be resources hungry, just think about it!

here is the link for the plugin:
http://community.mybb.com/thread-85847.html
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#14
Actually, take a look at SMF's implementation, it doesn't use AJAX/make additional requests, instead when you post a reply and someone else also has it will take you back to the preview post page and show a message along the lines of "Since you started typing your reply there have been new replies to this thread, you may wish to review your post."
Easiest way I can think of implementing it is to add a hidden field to the new reply form that contains the most recent PID, on submit check if there is a newer post in the thread than that PID, if there is show a message about it.
Reply
#15
(2014-07-13, 11:01 AM)Cameron:D Wrote: Easiest way I can think of implementing it is to add a hidden field to the new reply form that contains the most recent PID, on submit check if there is a newer post in the thread than that PID, if there is show a message about it.

If using this method, dateline should be used not PID as I could save a draft before the last post was posted and then post my reply (a smaller PID but posted after).



We may consider this suggestion if someone is willing to submit a Pull Request. If submitting a Pull Request they may choose any method of implementation but it must be disabled by default.
Reply
#16
(2014-07-13, 12:10 PM)JordanMussi Wrote: We may consider this suggestion if someone is willing to submit a Pull Request. If submitting a Pull Request they may choose any method of implementation but it must be disabled by default.

personally should accept only "dateline" method.
Reply
#17
is there anyone who can look at this please?
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#18
(2014-07-13, 01:22 PM)martec Wrote:
(2014-07-13, 12:10 PM)JordanMussi Wrote: We may consider this suggestion if someone is willing to submit a Pull Request. If submitting a Pull Request they may choose any method of implementation but it must be disabled by default.

personally should accept only "dateline" method.

When I said "may choose any method" I meant that they could decide on AJAX requests or the check on reply. Sorry if that was unclear. But I think the best method for implementation is checking for new posts when the user presses the post button.
Reply
#19
(2014-07-13, 02:18 PM)JordanMussi Wrote: best method for implementation is checking for new posts when the user presses the post button.

I also think the same thing.
but for me has one problem to implement this.
how will determine which is last post (pid or dateline) when user accessed the topic?
i see here plugin "While you were typing" and plugin use something $_SESSION['page_access_time'], i can not find this as a good solution.

Ps. I am not working in this PR.
Reply
#20
I agree with jordan
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)