The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
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 |
#122
|
|||
|
|||
![]()
Great hack Xeon! Thank you! Going to install it...
But at first I have a question: what I need to do to switch off double post prevention after some time left? Is it possible to merge posts during appointed time? |
#123
|
||||
|
||||
![]() Quote:
That worked an absolute treat. Thanks ever so much for this. JD. ![]() btw. JD clicks Install ![]() |
#124
|
||||
|
||||
![]()
@Goodspeed: hmm, i'm not sure if i get what you want.
If you want the merge just within the first xxy hopurse, use the default, if you want the merge whenever there's a doublepost show the code i posted for sinclair. or do you mean that within 10 minutes no post should be merged, and then during the next hour it should? everything is possible by changing just the conditions ![]() |
#125
|
|||
|
|||
![]()
I'm sorry for my english Xenon, still not too good in it
![]() Yes, I want to merge posts only during last 10 minutes, after that new post in thread by the same user should appear as new. What kind of conditions should I change? And one more question: is it possible to mark added text after merge? For example by adding line: Added by User at some time... Thank you! |
#126
|
||||
|
||||
![]()
no prob
![]() just replace Code:
AND dateline > " . (TIMENOW - 3600) . " Code:
AND dateline > " . (TIMENOW - 3600) . " AND dateline < " . (TIMENOW - 600) . " PHP Code:
PHP Code:
in PHP Code:
PHP Code:
|
#127
|
|||
|
|||
![]()
I did everything, checked it twice, but merge not work after those changes.
Now, posts appear one by one without merging. Update After couple of tests I understood that is problem in first two changes. I removed them and it works but without 10 min limit. Addition with update date working GREAT! Thank you very much! I changed it a little bit: added update time. PHP Code:
|
#128
|
|||
|
|||
![]()
Works great - thanks a lot /Martin
|
#129
|
|||
|
|||
![]()
What do this hack if the Maximum number of sings per post reached and the Memver must creat an new one to complett the post ?
|
#130
|
||||
|
||||
![]()
since the newest version it checks if the merged post is still a vald one.
If it is, then the post will be merged, if it's not valid anymore (too much chars/images or whatever) it will create a new post just as it would do without the hack ![]() |
#131
|
||||
|
||||
![]()
Looks like a cool hack, Xenon.
![]() |
#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 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|