#2904 - Change detection for forum posts
| Identifier | #2904 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Change detection for forum posts |
| Status | Open |
| Handling member | Deleted |
| Addon | cns_forum |
| Description | Implement change_detection.php for forum posts and comments so that users can see new posts as they are made.
I can commit this myself if accepted. I've already implemented it on lovinity.org. |
| Steps to reproduce | |
| Additional information | May also want to implement it on the full editor if possible where the posts display below the editor. |
| Related to | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Comments
1) We would need to have a "has not changed" signal that is extremely efficient, preferably before any database connection is opened. This is how the AJAX checks for notifications and chat messages work, because people will leave things open a long time so the regular checks have to be very fast to process.
2) If pagination is active and you're not on the last page, it shouldn't show new posts (presumably).
3) If threaded view is active we definitely shouldn't refresh the whole topic, so we need to load up individual posts properly, and insert them in the right positions in the tree.
Previously I was also concerned about adding table rows dynamically without making deep assumptions about templates, but with modern browsers this should not be an issue, and we moved to divs anyway.