PDA

View Full Version : Combining sequential posts


Linaver
11-11-2011, 03:33 PM
Greetings fellow vbulletineers.

My question is:
How does one go about preventing a user from posting several messages one after the other without setting a delay.

In particular I'm interested in whether it is possible to combine posts that are posted by the same user one after the other.

Scenario: User posts a message, he makes another post right after that one. Have the forum combine the two messages posted in rapid succession by the same user into a single post.

Hopefuly I made myself clear :)
I've seen it done before on vbulletin platform but I'm not sure if it's the included option, a separate module or they coded it in themselves.

Your insight is welcome and appretiated!


4.1.7

kh99
11-11-2011, 11:12 PM
This site does something similar, but I don't think there's a mod for it and I don't know exactly how it was done. But I took a quick look at function build_new_post() in includes/functions_newpost.php. I think you could modify that code to check the last visible post for the thread, and if it's by the same user and within a certain time period, modify that post instead of adding a new post. There's already code to check for posting a duplicate so I imagine you could modify that code instead of adding an extra query.