![]() |
And what are the changes on this one u pointed out Shuvo?
|
Quote:
i told tht xenon's hack need code modification.. Kirby's dont.. Thats the point.. & i prefer importing product than modify code.. newayz drop it.. |
Quote:
I'm using Xenon's code (which requires editing files), but if there's a plugin, that would be much easier, especially since upgrades require overwriting the files. |
u r welcome :D
|
Quote:
Ok now i got it:D Thnx, its much better indeed |
I've installed the plugin created by Andreas, works great. Just got a couple of questions:
1, Is there a way to disable the 'double post' plugin for admins and mods? 2, Is it possible to set no 'Minimum Time before Double Post'. So a user can never double post? At the moment I've just set the limit to a really high number. Thanks |
I'm working off the plugin by Andreas too, but trying to modify it some to force a page refresh if its a double post (if its from the quick reply box).
I'm having one issue if I do a double post via the advanced reply box, it refreshs then says "this forum is no longer accepting new posts" or something like that??? This would be great if it was a standard vB option, I think everyone gets annoyed by double-posters... Update - If I set the following in either of the postdata_xxx hooks, I can get the page to refresh after posting a quickreply (since ajax is enabled). However, the reply text shows up twice, and I have no idea why. I've peeled through the newreply.php, class_dm_threadpost.php, and functions_newpost.php files with no luck. Code:
$this->registry->GPC['ajax'] = false; |
Eureka, I fixed the problem. :) I think it might have had to do with the redirect code being outside of the if() statement, not sure.
I've modified the code so that it will do a page refresh regardless if it's via the quick reply box or advanced reply page. The trick was to set ajax to false, and also I moved the redirect code where it edits the reason. I also modifed it to check just based on userids instead of names, then ids again... I also had it update the post time when a double post occurs, so that the thread shows as new to people. NOTE: I've stripped some bits of code out from Andreas' plugin, like the time checking. So compare the code before implmenting to make sure you have the features you want. EDIT - I've had to remove the code, found a little gitch... will repost once its fixed. EDIT AGAIN - Well, after trying many things out, I finally determined there is really no way to do it without editing some files or (partially) disabling AJAX. I did find one little bug in the product xml... The plugin for postdata_postsave It shows $vbulletin->url for the redirect, but since its inside a class, it should use $this->registry->url instead. I believe that was my problem with it showing "this forum is not accepting new posts" error when you try to double post via the advanced reply. |
I am running 3.5.2 and it does not work with AJAX, very annoying. I really need/love this mod but I cant implement it unless this is fixed. I am clicking uninstall...
When can or should this be fixed??? |
Fixes are in the thread if you care to read back a bit.
|
I guess he is too lazy to search for the link in this thread.
|
Has someone found a fix on "prevent automerging for admins" yet?
It will be very usefull this one. Also, it will be good if the timestamp of the thread, being updated when someone double post and his posts automerged Thnx in advance :) |
Paul has already implemented a fix for that. Do a search on this thread, it should be there somewhere. ;)
|
Quote:
Apparently u point in this post...can u please tell me in which template / file i must do this edits? I searched the includes/functions_newpost.php but no luck:( Also, PaulM, have u figured out any hint of how to prevent automerge for the Admin's Posts? Thnx again:) |
What do you mean no luck? It's working just fine on my forums. :)
|
I meant, where i have to do the fileedits, in what file or template...
|
Quote:
Quote:
|
Damn, hope u find a little time and do so :(
|
Update
Ok found it, i was using the one with the product, thats why i couldnt find it before:) Thnx, hope it can be done for admins the one i said too :) Update 2 PaulM, although i did the step one, the last post time, is not being updated in the time of the last post but stays with the time of the first one.. Any hints? |
any update on this? it is fully released yet?
will be good for the classifieds section to prevent people from bumping for sale posts. i'm a total noob so any help will be greatly appreciated. |
Very nice hack! I have used Paul M's fix, but the time only changes on the post itself. So in "new post" searches it doesn't show up and the wrong time is still displayed on the "lastpostby" bit in the forumdisplays.
Anyone know how to change that so the automerged post will turn up as a new post in searches? Thank you. :) |
This is a great modification, but is there any way to disable it for certain forums, as some forums require double posting rapidly.
i dont know if anything has been posted in this thread about that, so if it has im sorry. any help would be very much appreciated. |
I used the code based off someone's plugin posted a few pages back. I removed the time checking so it would always merge their last post, however it would update all the times so it acted as if it was a new post in the thread.
In the postdata_presave I added the following with all the other set's: PHP Code:
PHP Code:
The reason the forum & thread do not get updated is because an "edit" creates the $this->condition and thus the other two queries will not run automatically. Hope this helps. |
I have modified the code as follows:
Code:
$post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . " $vbulletin->userinfo[username] added " . intval((TIMENOW - $doublepost[dateline]) / 60) . " minute(s) " . intval((TIMENOW - $doublepost[dateline]) % 60). " seconds later...\n\n" . $post['message']; |
PaulM ur fix not workin when upgraded to 3.5.3
Quote:
|
Quote:
I seem to recall that you're not developing this as a plugin, but just in case... |
you go to the vbulletin options and you can add linebreaks or whatever you want to do.
|
any suggestion ?
Quote:
|
I got this to work on my 3.5.3 board (TweakGuides Forums) by using the original code, modifying as provided by Paul M, and also adding one new feature I think is very useful. This code works with AJAX (e.g. Quick Reply) without any problems, it automatically refreshes the page:
PHP Code:
I also added an Additional Comment: heading in the Spacer, so that each automerged reply looks like this: Additional Comment: Second post text merged into first post Additional Comment: Third post text merged into first post That way it becomes obvious what's been merged, both to the user and the reader. Also helps prompt the user to use the Edit button to add additional comments next time rather than just post multiple times in a row. As I said, this now works perfectly on my board, and having tested it with both standard replies, quick replies using full AJAX features enabled, there are no errors or glitches. Many thanks to Xenon and Paul M for this great mod, very useful and prevents a lot of conflicts and work for mods who get tired of having to merge multiple posts by individuals. |
Nice! but it works same as Andreas's Product
but PaulM's method don't need refreshing |
i'd like to use this on my forum but only in the for sale area.
how can i do this? |
Quote:
Code:
MySQL Error : Duplicate entry '10006' for key 1 my version 3.5.3 |
You need to post all the error message.
|
I just installed this mod on my vb 3.5.3 but I'm one of those who want the dateline to be updated...
I added Code:
$dataman2->set('dateline', TIMENOW); The post date doesn't get updated so I don't get a 'new post'... Do I have to add another code with 3.5.3? What could be wrong? |
hi all,,
can any body conclude to us how can we install it @ 3.5.5 ?? WITH OUT ERROR ... lol ... thanx allll |
Code:
Database error in vBulletin 3.5.3: |
Try running a repair on the thread table.
|
ohh sorry I forgot to replace
Quote:
now its ok.. |
Quote:
|
To solve the dateline problem I had to update the timestamp manually
I inserted Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "post SET dateline = " . TIMENOW . " WHERE postid = ".$post[postid]); Now I'm happy with it ;) |
All times are GMT. The time now is 01:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|