Version: 1.6, by Xenon
Developer Last Online: Oct 2023
Version: 3.0.6
Rating:
Released: 01-07-2004
Last Update: 02-05-2005
Installs: 288
Code Changes
No support by the author.
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
That way, you have a multiple quote option included *ggg*
As mentioned in the description, this hack is for linear mode, threaded mode users, shouldn't use it.
but as there are more problems when someone enables threaded mode on his board, then he will know if or not to install this hack
Thanks for the update Stefan..
I had a couple of modifications applied to this hack that were mentioned earlier in this thread, and have re-applied them but just wanted to make sure that they have been done correctly.
As I understand it, TIMENOW - 3600 now has 2 instances - so if I wanted to increase the time limit to 3 days, I'd replace BOTH instances of 3600, correct?
Also, I don't want admin posts to be merged no matter what, so applying a similar mod to last time should be ok, right? I now have this line:
Code:
if ($type != 'thread' AND $bbuserinfo['usergroupid'] != 6 AND $threadinfo['lastpost'] > TIMENOW - 172800 AND $threadinfo['lastposter'] == $post['postusername'])
All seems to work as I want it to, but I thought I'd better make sure..
I think you should use $bbuserinfo['permissions']['adminpermissions'] & CANCONTROLPANEL instead of checking for the usergroup, as admins could be in any usergroup
I've also modified this so the time after which a post is considered a double post and if the post's timestamp should be modified are now settings in Message Posting & Editiong Options, so they can be changed easily
I think you should use $bbuserinfo['permissions']['adminpermissions'] & CANCONTROLPANEL instead of checking for the usergroup, as admins could be in any usergroup
How would you use that for Admins, SuperMods and Mods?
Quote:
I've also modified this so the time after which a post is considered a double post and if the post's timestamp should be modified to be a setting (in Message Posting & Editiong Options), so it can be changed easily
For Mods it's a bit more difficult. You could use can_moderate() - which might cause an extra query then (without my Show ModCP link being installed).
Quote:
Can you share that with us, sir?
It's pretty easy:
Create two new settings (I called them dblpostthreshold and bumpdblpost) where you want them. The first one being an input (for the seconds, could also be minutes or hours - then you would have to add the appropriate multiplier to the code) and the second being a yesno option.
Then replace
PHP Code:
TIMENOW - 3600
with
PHP Code:
TIMENOW - $vboptions['dblpostthreshold']
And
PHP Code:
$do_bump
with
PHP Code:
$vboptions['bumpdblpost']
And delete
PHP Code:
// change this to false if you don't want doubleposts changing post's dateline
$do_bump = true;
Yup. Of yourse you can also just check the usergroup id - as long as you don't have admins, supermods oder mods in other usergroups then the standard groups