The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Prevent Doubleposting Details »» | |||||||||||||||||||||||||
When a User posts into a thread where he already has the lastpost, no new post will be added. The lastpost of him will be edited and the new text is put after his first message, attachments will be added to the old post as well.
This will be done until the old post is older than 1 hour (you can change this timespan yourself) by changing $do_bump in the script, you can define wether the post's time will be altered or not. Enjoy, and don't forget to click install Notice: If you have installed the Proxy ip to real ip conversion or Proxy Detector v3.1 Hack, then you should probably take a look at this post. Show Your Support
|
Comments |
#132
|
||||
|
||||
Since the new version handles most of the conditions without extra queries, you should not see any impacts on huge forums
|
#133
|
|||
|
|||
I made some edits to this hack, this allows you to control it via Admin CP Settings so you can modify the settings for it and turn double post checking on and off. Its backwards compatible so this hack will work even if you don't add the settings.
Note: Please backup your includes/functions_newpost.php before your install these changes. In file includes/functions_newpost.php find Xenon's original code and replace it with this: PHP Code:
Manually Add then: Varname: doublepostenabled Type: yesno Value: 1 Title: Check for double posts Description: If enabled, it will check to see if the user already posted in the thread in a certain time limit, if so, their new post text will be added to their old post. Varname: doublepostbump Type: yesno Value: 1 Title: Double posts bumping Description: If enabled, and someone double posts, do you want the thread to be bumped because of the changes? Varname: doubleposttime Type: Value: 3600 Title: Double post time Description: The time in seconds you want to check for double posting. OR Queries: [sql] INSERT INTO `setting` VALUES ('doublepostenabled', 'posting', '1', '', 'yesno', 250, 0, 0); INSERT INTO `setting` VALUES ('doublepostbump', 'posting', '1', '', 'yesno', 260, 0, 0); INSERT INTO `setting` VALUES ('doubleposttime', 'posting', '3600', '3600', '', 270, 0, 0); INSERT INTO `phrase` VALUES ('', 0, 'setting_doublepostenabled_title', 'Check for double posts', 5000); INSERT INTO `phrase` VALUES ('', 0, 'setting_doublepostenabled_desc', 'If enabled, it will check to see if the user already posted in the thread in a certain time limit, if so, their new post text will be added to their old post.', 5000); INSERT INTO `phrase` VALUES ('', 0, 'setting_doublepostbump_title', 'Double posts bumping', 5000); INSERT INTO `phrase` VALUES ('', 0, 'setting_doublepostbump_desc', 'If enabled, and someone double posts, do you want the thread to be bumped because of the changes?', 5000); INSERT INTO `phrase` VALUES ('', 0, 'setting_doubleposttime_title', 'Double post time', 5000); INSERT INTO `phrase` VALUES ('', 0, 'setting_doubleposttime_desc', 'The time in seconds you want to check for double posting.', 5000); [/sql] |
#134
|
||||
|
||||
Quote:
*clicked install * |
#135
|
||||
|
||||
I think I found a little bug:
On my forum I set the attachments per post limit to 5. But people are able to create post with 9 attachments after I install this hack. |
#136
|
||||
|
||||
have you installed the newest version of this hack?
I prevented such things with the last upgrade, so can you please tell me if your hack'sversion is 1.4? If yes, i wonder why, but will put it on my bug-to-fix-list thx in advance |
#137
|
||||
|
||||
Yup, I installed the latest 1.4 version.
|
#138
|
||||
|
||||
hmm, kay thx for reporting, i'll look into it
|
#139
|
||||
|
||||
1) Xenon, how can I turn off this feature for certain forums? For example, for forum IDs 5, 10, and 20?
Some of my users have been whining because they need to reserve several posts in a row for some types of threads in certain forums. 2) It would be great if the make new post page can be edited to include a checkbox that says something like "Disable auto-merging". This way posters who prefer to make the post separate has a mean to do so. I wouln't need to disable the feature just for certain forums if this possible. Thanks in advance for your help. |
#140
|
||||
|
||||
Hmm, sorry the attachment problem will stay a while, as attachment setting checkings are done somewhere else and not where the other checks are done, i'll try to write an easy fix, but i'm currently strongly overworked, and so the next version may take a bit of time...
as for excluding some forums: find: PHP Code:
PHP Code:
|
#141
|
||||
|
||||
Sensational mod. *theArchitect clicks install*.
Will you be releasing an updated ones that works with your Hidden Posts mod? I only ask as since I have installed this if I post in a thread and then write a hidden post the two are combined. As you can imagine this is not the best scenario. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|