vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Combining sequential posts (https://vborg.vbsupport.ru/showthread.php?t=273861)

Linaver 11-11-2011 03:33 PM

Combining sequential posts
 
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.


All times are GMT. The time now is 09:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00968 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete