PDA

View Full Version : Prevent Doubleposting


Pages : 1 2 [3] 4 5

Xenon
05-21-2006, 07:53 PM
@Wolfsong: the custom condition setting is what you need, search through this thread here, everything has been posted already :)

WolfsongNevan
05-21-2006, 09:16 PM
Xenon, thank you so much ... I will do that. Normally I do, but this thread is rather long. I wish there was a way to search within a thread, especially with these hundreds of posts long threads. :) Thanks so much for an awesome plug in!!!

Kihon Kata
05-24-2006, 02:07 PM
Can you tell me where exactly to put this?

easiest would be

$vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']

Jaymee
05-25-2006, 05:53 PM
I love it :)

Xenon
05-26-2006, 10:55 AM
@Kihon: sorry, must have missed your post before...

put it in the additional condition field in the vbulletin settings :)

Kihon Kata
05-26-2006, 12:30 PM
@Kihon: sorry, must have missed your post before...

put it in the additional condition field in the vbulletin settings :)
Hi Xenon,

Can you tell me where that is exactly? sorry :(

Smiry Kin's
05-26-2006, 12:37 PM
Hi Xenon,

Can you tell me where that is exactly? sorry :(
i take it, its in the vbulletin APC settings..? lol?...

Boofo
05-26-2006, 12:39 PM
i take it, its in the vbulletin APC settings..? lol?...

Yes, the settings for the hack itself. ;)

Smiry Kin's
05-29-2006, 03:19 AM
ermm hack has stoped working for me, how great.. please either explain how i can check everything is working etc, or upload the file version, as stated about 100 times before.

got 3.5.4
vbseo installed.
no hacks installed recently

Xenon
05-29-2006, 11:34 AM
erm, wasn't that what you wanted?
excluding admins will of course stop the hack to work for you.

Smiry Kin's
05-29-2006, 04:14 PM
erm, wasn't that what you wanted?
excluding admins will of course stop the hack to work for you.
admins are not excluded.

Nathan2006
05-29-2006, 04:28 PM
admins are not excluded.

That can be changed to what you need :)

vBulletin Options > Doublepost Preventing > Additional Condition (experts only)

And add this line in that box at the bottom:

!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))

as 5,6,7, are the usergroups you want to exclude;)

Smiry Kin's
05-29-2006, 04:30 PM
That can be changed to what you need :)

vBulletin Options > Doublepost Preventing > Additional Condition (experts only)

And add this line in that box at the bottom:

!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))

as 5,6,7, are the usergroups you want to exclude;)
i dont want to exclode any one... nothing is in that box. it just stoped working..

Nathan2006
05-29-2006, 04:35 PM
i dont want to exclode any one... nothing is in that box. it just stoped working..

That might be down to another hack you have installed after
the double posting hack? that might stop this one working.

The products that you have installed after this if you
disable them 1 by 1 and check to see if it works you may find the problem :)

mgs
05-30-2006, 07:59 AM
I haven't read all posts in this topic. Just ignore me if I'm incorrect|this suggestion was already proposed.

From my point of view in the following code

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['attach'] == 0)

a little addition should be made

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['parentid'] == $parentid AND $doublepost['attach'] == 0)


This one prevents doubleposting "blank shots" if user answers to the different posts.

Kirk Y
05-31-2006, 07:02 PM
Would someone mind posting up the file edits version of this? I'd rather do hard-coded modifications than deal with the AJAX issue. Thanks if anyone has it.

Smiry Kin's
05-31-2006, 11:21 PM
Would someone mind posting up the file edits version of this? I'd rather do hard-coded modifications than deal with the AJAX issue. Thanks if anyone has it.
thats what im after, =-/

Boofo
05-31-2006, 11:55 PM
I haven't read all posts in this topic. Just ignore me if I'm incorrect|this suggestion was already proposed.

From my point of view in the following code

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['attach'] == 0)

a little addition should be made

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['parentid'] == $parentid AND $doublepost['attach'] == 0)


This one prevents doubleposting "blank shots" if user answers to the different posts.

I'm confused as to what your addition does here. ;)

mgs
06-01-2006, 04:46 AM
I'm confused as to what your addition does here. ;)
Joking?

Boofo
06-01-2006, 06:34 AM
Joking?

Didn't see a smilie, so I thought it was for real. :(

Paul M
06-01-2006, 09:12 AM
Looking at it, I would guess it stops replies being merged if you reply to two different posts (for threaded mode). Unfortunately - that just gives everyone a quick way to bypass it.

Boofo
06-01-2006, 10:06 AM
No sense in even installing it if you do that then.

Kirk Y
06-01-2006, 04:26 PM
So doesn't anyone have the file edits version of this? Or are they just unwilling to post it?

Hornstar
06-02-2006, 05:38 AM
Hopefully this can still be updated, As sometimes it works, and sometimes it dont. (problem most likely mentioned above)

Pathor
06-08-2006, 09:16 PM
Doesn?t work with 3.6. :(

Boofo
06-08-2006, 09:37 PM
Doesn?t work with 3.6. :(

Well, what doesn't work in it? An error or something might give us a little better idea on what to do to fix it.

Pathor
06-08-2006, 10:14 PM
After I click on the submit-button, an error occurs (see screenshot).

49111

If I refresh the page after the error, the doublepost exist.

EDIT: And sorry for my bad english. :D

Boofo
06-08-2006, 10:33 PM
After I click on the submit-button, an error occurs (see screenshot).

49111

If I refresh the page after the error, the doublepost exist.

EDIT: And sorry for my bad english. :D

Looks like you have an extra piece of code in there somewhere. Are you using the plug-in and have you added anything to the settings for it?

Pathor
06-08-2006, 10:52 PM
[...]have you added anything to the settings for it?

Nope. Just downloadet here.

Fresh install on my local testboard (php 5.0.5, mysql 5.0.15).
No other plugins or modifications installed and no template edits.

Rickie3
06-09-2006, 06:20 AM
please help I installed this when it was first released,i'm sure it was template edits,my members are going crook at the automerge,so i want to unistall the original and use the plugin

Pathor
06-09-2006, 06:12 PM
Xenon is gone. :( I hope anybody else can fix it.
Maybe a new Hook?

While there have not been extensive changes to the underlying architecture of vBulletin 3.6 from 3.5, it is possible that certain hooks may have changed.

Smiry Kin's
06-10-2006, 07:05 PM
can some one please tell me what to use? lol theres just so many codes/files..

i want one that auto freshes ajax. n maybe displays time that it was added!

Wordplay
06-29-2006, 05:41 AM
i've got it worst, on 3.6 beta 3. when i double post, i get a database error, but the double-post is still made. has anybody got it to work on 3.6 yet?

VBUsers
06-29-2006, 07:34 AM
can a coder take this over and make it for 3.6 beta 3? its a must have for so many admins.

Keyser S?ze
06-29-2006, 08:30 AM
this is a really nice hack, ill tell ya what i would like if someone could make this for me to put in the expert part, i want it so it does not count for s. mods and admins, also i have it set so it prevents it for the first 72 hours without bumping, i would like it to be after 72 hours and until say forever ;p it prevents it but also bumps the thread

think anyone could do that for me? thanks

Yorixz
06-30-2006, 09:44 AM
Well, what doesn't work in it? An error or something might give us a little better idea on what to do to fix it.
Database error in vBulletin 3.6.0 Beta 3:

Invalid SQL:

SELECT post.*
FROM vb3_post AS post
LEFT JOIN vb3_deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = 47971
AND dateline > 1151567543
AND visible = 1 AND deletionlog.primaryid IS NULL
AND postid <> 409299
ORDER BY dateline DESC
LIMIT 1;

MySQL Error : Column 'dateline' in where clause is ambiguous
I'm getting that error quite often, didn't manage to reproduce it but I suppose theres something wrong in the query it's using.

Keyser S?ze
06-30-2006, 01:56 PM
something else i would like to add is in the add part, make it give someone a warning with inferno warning system for the double post, if done in the first say 72 hours

Stoebi
06-30-2006, 03:20 PM
Hi

Plugin 'Main Doublepost Prevent Engine' - Hook newpost_complete


Search for:
AND dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "

Change to:
AND post.dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "


Reason:
With vBulletin v3.6.x the row dateline exists in the tables post and deletionlog (ambiguous).



Regards, Stoebi

Database error in vBulletin 3.6.0 Beta 3:

Invalid SQL:

SELECT post.*
FROM vb3_post AS post
LEFT JOIN vb3_deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = 47971
AND dateline > 1151567543
AND visible = 1 AND deletionlog.primaryid IS NULL
AND postid <> 409299
ORDER BY dateline DESC
LIMIT 1;

MySQL Error : Column 'dateline' in where clause is ambiguous
I'm getting that error quite often, didn't manage to reproduce it but I suppose theres something wrong in the query it's using.

Wifey
07-01-2006, 11:56 PM
Is there a code to exclude a certain forum from this in the additional options box? Also, what would the code be to exclude moderators from this?

Thanks!

Wordplay
07-03-2006, 09:44 PM
Stoebi thanks for updating that, but it created a new error for letters such as ü ä ö dont show up now when people quickedit their threads in translates them to ü codes. like ü becomes ü but not when posting a new thread, or a comment, or submitting advanced editings only when submitting quick edits.

keymistress
07-04-2006, 04:24 AM
is it possible to add a refresh page after the automerge because right now, the user sees both posts in seperate posts with "Edited by... Re: Automerge" unless they refresh the page...

Keyser S?ze
07-06-2006, 02:13 AM
if that refresh page is made pls have a redirect message, also is anyone going to fix the additional options that have been requested that would be real nice

Wordplay
07-08-2006, 02:53 AM
Stoebi thanks for updating that, but it created a new error for letters such as ? ? ? dont show up now when people quickedit their threads in translates them to ? codes. like ? becomes " % u 0 0 F C " but not when posting a new thread, or a comment, or submitting advanced editings only when submitting quick edits.anybody?

Robin Larsson
07-10-2006, 12:20 PM
It doesn't work properly for me.

If i first make a post with:

"test1test1test1" and then make a quickreply to that, with.

"test2test2test2" the post will be:

"test1test1test1
test2test2test2
test2test2test2"

It's being two replies, not one.

Any way to fix this?

Neo_obs
07-11-2006, 12:45 AM
try refreshing?

Keyser S?ze
07-15-2006, 09:57 PM
has anyone else noticed if the first and second post have an attachment it does not auto correct it, is it possible?

Shinichi_bien
07-30-2006, 06:30 AM
it doesnt work well w ajax, when i post a new reply(first time) ajax doesnt work

o0Hubba0o
08-03-2006, 11:45 PM
Anyone have this working for 3.6? I got an error, didn't get a screenshot or read it though lol, too lazy right now.

Stoebi
08-03-2006, 11:51 PM
Anyone have this working for 3.6? I got an error, didn't get a screenshot or read it though lol, too lazy right now.

https://vborg.vbsupport.ru/showpost.php?p=1019223&postcount=538

o0Hubba0o
08-03-2006, 11:58 PM
https://vborg.vbsupport.ru/showpost.php?p=1019223&postcount=538
heh thx, missed that one.

Hornstar
08-06-2006, 05:01 AM
Hi

Plugin 'Main Doublepost Prevent Engine' - Hook newpost_complete


Search for:
AND dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "

Change to:
AND post.dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "


Reason:
With vBulletin v3.6.x the row dateline exists in the tables post and deletionlog (ambiguous).



Regards, Stoebi

Awesome, was wondering why I was getting database errors after the upgrade.

Thanks

Paul M
08-06-2006, 03:07 PM
What is your question exactly ?

redlabour
08-07-2006, 12:24 PM
Any update for 3.6 ?

bashy
08-13-2006, 06:32 PM
here ya go https://vborg.vbsupport.ru/showpost.php?p=1043838&postcount=549

Kaleem
08-15-2006, 07:05 PM
Thank u installed for v3.6 woking fine :)

Ben Wilkins
08-16-2006, 09:38 AM
Hey, this doesnt work for me, when i create a double post, it will just make a new post and not edit the post above.

phonexpo
08-16-2006, 10:01 AM
*Clicks Install*

:)

phonexpo
08-16-2006, 10:16 AM
Ok I have some problems;

1. When I use quick reply I get an error "The following errors occurred when this message was submitted" and a okay link shows up that links to the thread.
2. When I use the normal reply button I get a batabase error;


Database error in vBulletin 3.6.0:
Invalid SQL:
SELECT post.*
FROM post AS post
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = 1891
AND dateline > 1155640094
AND visible = 1 AND deletionlog.primaryid IS NULL
AND postid <> 12160
ORDER BY dateline DESC
LIMIT 1;
MySQL Error : Column 'dateline' in where clause is ambiguous
Error Number : 1052
Date : Wednesday, August 16th 2006 @ 12:08:14 PM
Script : http://phonexpo.ie/newreply.php?do=postreply&t=1891
Referrer : http://phonexpo.ie/newreply.php?do=newreply&noquote=1&p=12159
IP Address : **************
Username : Patrick
Classname : vb_database


What's the problem here?

redlabour
08-16-2006, 01:01 PM
Hey, this doesnt work for me, when i create a double post, it will just make a new post and not edit the post above.

*omg* Refresh your Browser. :D

bondjetta
08-16-2006, 02:50 PM
Any update for 3.6 ?
agreed. I'm getting the same error as phonexpo after i upgraded to 3.6...

i'll try uninstalling and re-installing next chance I get, but i've got bigger fish to fry right now anyways ;)

phonexpo
08-17-2006, 12:13 PM
agreed. I'm getting the same error as phonexpo after i upgraded to 3.6...

i'll try uninstalling and re-installing next chance I get, but i've got bigger fish to fry right now anyways ;)
Did you get it sorted?

@Xenon could you look into this please?

:)

bondjetta
08-17-2006, 02:12 PM
Did you get it sorted?

@Xenon could you look into this please?

:)
not yet...haven't had a chance to uninstall it yet, was tracking down different bugs all day yesterday lol

bondjetta
08-17-2006, 02:27 PM
alright, uninstalled then reinstalled and i'm still getting the window that says something to the extent of, "You already made this post, stop being a retard and just click post ONCE!"


or something like that ;)

twilighthush
08-17-2006, 04:14 PM
Plugin 'Main Doublepost Prevent Engine' - Hook newpost_complete


Search for:

How exactly do you do this? Add plugin -- hook newpost_complete? And how do you search for that variable?

GreysAnatomy
08-18-2006, 12:09 PM
Hi

Plugin 'Main Doublepost Prevent Engine' - Hook newpost_complete


Search for:
AND dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "

Change to:
AND post.dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "


Reason:
With vBulletin v3.6.x the row dateline exists in the tables post and deletionlog (ambiguous).



Regards, Stoebi


You are a genius, thanks! It's working on my 3.6.0 now! :D

phonexpo
08-18-2006, 01:03 PM
Cool, good man Stoebi ;)... working fine on vB360 !

Kaleem
08-20-2006, 06:48 PM
The moderator's posts r not merging anything missing or something i have to add ?

Stoebi
08-20-2006, 07:23 PM
The moderator's posts r not merging anything missing or something i have to add ?

Hi

I can't reproduce this. Need more informations, step by step please.


Regards, Stoebi

Kaleem
08-21-2006, 02:37 AM
Hi

I can't reproduce this. Need more informations, step by step please.


Regards, Stoebi

the info is anyone who posted double posts got merged except Moderator's usergroup even Admin's means my post got merged but no the moderator's.

Puntoboy
08-21-2006, 01:30 PM
brilliant mod, thanks very much.

i couldn't get the code posted abouve to work for admins, so used the example given on the vBulletin Options menu.

sellbuydomain
08-21-2006, 03:05 PM
does it work in 3.6.0?

Kaleem
08-21-2006, 07:02 PM
does it work in 3.6.0?
yes it does :)

nymyth
08-24-2006, 02:24 PM
^^my admin posts didnt get put into one post in 3.6. It just put a new post in...

**Fixed** thanks to Stoebi

Great Mod

Peace

007
08-24-2006, 10:48 PM
Are you sure this works in 3.6.0? I keep getting SQL errors when people attempt to doublepost.. The post seems to still go through though, but the duplicate doesn't get deleted..

Paul M
08-25-2006, 12:02 AM
It always helps to read back a few pages. :)

ForumHabbo
08-25-2006, 07:04 PM
Are you sure this works in 3.6.0? I keep getting SQL errors when people attempt to doublepost.. The post seems to still go through though, but the duplicate doesn't get deleted..
I Get the same error, its anoying

noel_leon
08-26-2006, 10:43 AM
After changing the stuff in the plugin I no longer get errors but the posts are not being merged.
Dont know what to tell you.

edit: MY BAD! Sent the info from the large edit box to the window but never SAVED it.
Thanks for the fix. Great to have this product back in action.

ForumHabbo
08-26-2006, 12:08 PM
Humm, I Need this hack, well it will help Moderators and Admins. Some one might fix it. :D

bashy
08-26-2006, 01:28 PM
hi peeps

How would i be able to add something like Merged Post: just above the actuall merged post, is there a way please?

Darezettl
08-28-2006, 07:43 AM
Is there are version for 3.6.0 out?

ForumHabbo
08-28-2006, 11:57 AM
Is there are version for 3.6.0 out?
Dont think so, but if some one brouht one out, they will be popular :D

Kaleem
08-28-2006, 04:29 PM
Its working for vb3.6 go back in the pages u will find the lil modification in the code for 3.6

and now back to my question

" It is not working for New members. New members are those who joined the forum after i unstalled this hack" any help?

Kaleem
08-28-2006, 04:50 PM
Here is the one with 3.6

https://vborg.vbsupport.ru/showpost.php?p=1019223&postcount=538


oops i double posted :P

Kihon Kata
08-28-2006, 05:15 PM
this fixed mine on 3.6

:)



Hi

Plugin 'Main Doublepost Prevent Engine' - Hook newpost_complete


Search for:
AND dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "
Change to:
AND post.dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "

Reason:
With vBulletin v3.6.x the row dateline exists in the tables post and deletionlog (ambiguous).



Regards, Stoebi

EasyTarget
08-28-2006, 09:33 PM
yeah, that worked for me too.. thanks.

Marko777
08-31-2006, 02:23 PM
>Installed

When someone double posts, this add-on automatically removes 1 from the post count - this is great.
Is it possible also to remove extra vbBux points the user received from posting the second post (which got removed by this add-on)?

Thank you.

EasyTarget
08-31-2006, 02:34 PM
marko you probably need to ask that from the vbux author. I informed him of the bug (you can keep doubleposting and get lots of points) a long time ago but I'm sure its been overlooked with all the other stuff he's been working for the hack.

AzzidReign
09-01-2006, 10:05 PM
Is anyone else getting a white page when they go to double post? It still makes the post and merges it, but i get a white page that keeps loading forever...literally forever.

I did the fix for 3.6.0 and yes I have vb 3.6.0. I'm running vbSEO and thats about it for modifications to the board. Anyone know a fix?

hotwheels
09-03-2006, 09:06 PM
You should only have to go to manage your products, open the main doublepost prevent engine, look for the coding listed and replace with this....

I just installed on a live site and tested, working fine...

AND post.dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "

Brandon Sheley
09-04-2006, 03:13 PM
Here is the one with 3.6

https://vborg.vbsupport.ru/showpost.php?p=1019223&postcount=538


oops i double posted :P
thanks :)

Is anyone else getting a white page when they go to double post? It still makes the post and merges it, but i get a white page that keeps loading forever...literally forever.

I did the fix for 3.6.0 and yes I have vb 3.6.0. I'm running vbSEO and thats about it for modifications to the board. Anyone know a fix?

I'm using vbseo, and vb 3.6 and this fix works fine..
just add "post." to the one line, and all is fine

rmxs
09-07-2006, 08:37 PM
Xenon you must update because doenst seem to work properly with 3.6.0 :(

No ajax post and some others error that users post befre

redlabour
09-07-2006, 08:57 PM
No Problems - works perfectly with 3.6 ! :)

snowlion
09-08-2006, 01:30 AM
yes, works with 3.6 but i must refresh IE to see post merged in test post

voteforbird
09-09-2006, 09:13 PM
When this is on, creating a new thread takes a while. The server seems to be processing something. I'm on 3.6 with that fix, above. What's wrong?

rmxs
09-10-2006, 08:27 AM
Here its the product For 3.6.x!

Info about HOW TO exclude usergroups from Double Posting!


Vb Settings - Doublepost Preventing - Additional Condition (experts only)

And Add
!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
Change 5,6,7 with user group id that you wont to exclude!

LBSources
09-10-2006, 06:14 PM
Here its the product with FIX included!

Info about HOT TO exclude usergroups from Double Posting!


Vb Settings - Doublepost Preventing - Additional Condition (experts only)

And Add
!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))

Change 5,6,7 with user group id that you wont to exclude!rmxs thanks .. worked perfectly

EDIT: 3.6.0 BTW

rmxs
09-11-2006, 07:58 AM
Np :)

snowlion
09-11-2006, 09:28 AM
doesn't work with ajax quickreply, you must refresh to see effect
thank rmxs: fix exclude usergroups

coffee
09-12-2006, 12:14 PM
Installed the fix, Thank you Xenon, Stoebi and RMXS

Xenon you must update because doenst seem to work properly with 3.6.0 :(

No ajax post and some others error that users post befre

Go ahead Xenon :)

Xenon
09-15-2006, 11:21 AM
I don't have the time, nor a running vb3.6 to test it out, so i won't update it...

i've included a link to the 3.6 version into the first post

SpanishHarlem
09-17-2006, 05:09 AM
Hi we have 3.6.1 and have did the last xml file and we still get

Database error in vBulletin 3.6.1:

Invalid SQL:

SELECT COUNT(postid) AS count
FROM post AS post
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE visible = 0 AND dateline > 1155567293
AND deletionlog.primaryid IS NULL;

MySQL Error : Column 'dateline' in where clause is ambiguous
Error Number : 1052

only way to fix is tuen off plugins. I have triedto uninstall the Product and turn plugins back on and we still get that dateline err please help!

Thankyou in advance

SpanishHarlem
09-17-2006, 05:42 AM
::resolved::

we uninsralled some other hacks and it works! Ajax and Dble Post mods are enabled!

Thankyou, the fix in other post was a lifesaver!!!

Snake
09-17-2006, 07:34 AM
Thank you for the fix! :)

mtha
09-27-2006, 06:28 AM
Here its the product For 3.6.x!

Info about HOW TO exclude usergroups from Double Posting!


Vb Settings - Doublepost Preventing - Additional Condition (experts only)

And Add
!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
Change 5,6,7 with user group id that you wont to exclude!

cool!
Adding this

AND strlen($post['message']) < $vbulletin->options['xen_dp_maxchars']

to Main Doublepost Prevent Engine

and xen_dp_maxchars variable to the option

in order to add maxchars condition :)

chrisvonc
10-04-2006, 05:15 PM
I loved the older versions of this one. Glad to see it back!
I havent had a chance to read through all the posts here yet so maybe it was covered, but if not, is there a way to add a line break to help space the follow up posts apart?

bashy
10-04-2006, 05:39 PM
Hi

Is there anyway to set it so that after a set time it does not auto merge?
Also is there a way so that it dont do this with the staff please?

chrisvonc
10-04-2006, 06:52 PM
Bashy, the time limit is adjustable in the admincp > vb options > doublepost preventing > timespan

Shouzen
10-08-2006, 06:36 PM
it would be coll to make so that you don't have to refresh the page to se eit.

JohnBee
10-18-2006, 06:28 PM
Very odd...

I installed this hack (straight forward) ajusted the admincp settings to 60mins.
fired a few threads in a row... nothing... :(

Tried re-installing it a few times... Still no go
Very odd.


* Nevermind - I did a bunch of crap and now it works...

BANDiT600
10-21-2006, 08:27 PM
Someone, make a graphic bar for post separator, please.

Domenico
11-02-2006, 12:20 PM
Still no go after the fixes. We run 3.6.2 and users still need to refresh manually.

Can someone please pick this plugin up and take it to 100% functonality for 3.6+ ?

redlabour
11-10-2006, 12:23 PM
Here its the product For 3.6.x!

Info about HOW TO exclude usergroups from Double Posting!


Vb Settings - Doublepost Preventing - Additional Condition (experts only)

And Add
!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
Change 5,6,7 with user group id that you wont to exclude!

Seem it is not longer working under 3.6.3 - let?s get it complettely updated :

Doublepost Prevention for 3.6.x (https://vborg.vbsupport.ru/showthread.php?t=131210)

redlabour
11-11-2006, 01:55 PM
It works now ! ;) But i do not know what the Error was. :/

Guest210212002
11-12-2006, 12:53 PM
Here its the product For 3.6.x!

Info about HOW TO exclude usergroups from Double Posting!


Vb Settings - Doublepost Preventing - Additional Condition (experts only)

And Add
!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
Change 5,6,7 with user group id that you wont to exclude!

Great tip - Xenon should add this to the initial post.

beebi
11-15-2006, 04:15 AM
Here its the product For 3.6.x!

Info about HOW TO exclude usergroups from Double Posting!


Vb Settings - Doublepost Preventing - Additional Condition (experts only)

And Add
!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
Change 5,6,7 with user group id that you wont to exclude!


????????????????????????????????????????????
what is this?
this is bad coding


to get it work fine with 3.6.x
find
// we are here, so we may have a doublepost -> do more exact checkings
$doublepost = $vbulletin->db->query_first("
SELECT post.*
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = $threadinfo[threadid]
AND dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "
AND visible = 1 AND deletionlog.primaryid IS NULL
AND postid <> $post[postid]
ORDER BY dateline DESC
LIMIT 1
");


replace it with
// we are here, so we may have a doublepost -> do more exact checkings
$doublepost = $vbulletin->db->query_first("
SELECT post.*
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = $threadinfo[threadid]
AND post.dateline > " . (TIMENOW - $vbulletin->options['dp_timespan'] * 60) . "
AND post.visible = 1 AND deletionlog.primaryid IS NULL
AND post.postid <> $post[postid]
ORDER BY post.dateline DESC
");

Alfa1
11-20-2006, 09:24 AM
This hack is installed at vb.org and causes text in html tags to get the colors mixed up. See here:
https://vborg.vbsupport.ru/showpost.php?p=1121123&postcount=13
I did not add any color to the html tagged text. Only after I posted an additional (back to back) post and this second post got merged, the color was added.

Smoothie
12-29-2006, 12:20 AM
Does this work with 3.6.4?

Smoothie
12-29-2006, 12:30 AM
I'm guessing it does....

Smoothie
12-29-2006, 12:48 AM
Or does it? I installed this and it seems you need a refresh of the page to see the posts merged.

Err0r1
01-01-2007, 08:28 AM
Is this working for anyone on 3.6.4?

I've installed, but nothing happens upon double posting.

Maybe it's because I've installed beebi's mod: https://vborg.vbsupport.ru/showpost.php?p=1117689&postcount=618

Smoothie
01-01-2007, 06:52 PM
Is this working for anyone on 3.6.4?

I've installed, but nothing happens upon double posting.

Maybe it's because I've installed beebi's mod: https://vborg.vbsupport.ru/showpost.php?p=1117689&postcount=618

It's working for me.

TrIn@dOr
01-04-2007, 09:10 AM
Thanks, nice.

Where can i find the sentence, "Doublepost will be merged" ?, i need to translate it!

Wild-Wing
01-06-2007, 04:01 PM
ok im confused whats with post var where theres no sql

MeMySelfNi
01-09-2007, 11:22 PM
I was looking all over the place for this

*installed*

Nik_s3
01-10-2007, 08:32 PM
Sorry... I'm using 3.6.4 versione. Is there someone that could explain to me what is the exact procedure to install this modification?

Thank you

Nik_s3
01-11-2007, 11:07 AM
Up....

SCRIPT3R
01-15-2007, 06:29 PM
Sorry... I'm using 3.6.4 versione. Is there someone that could explain to me what is the exact procedure to install this modification?

Thank you

Up....


to get it work fine with 3.6.x
find
// we are here, so we may have a doublepost -> do more exact checkings
$doublepost = $vbulletin->db->query_first("
SELECT post.*
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = $threadinfo[threadid]
AND dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "
AND visible = 1 AND deletionlog.primaryid IS NULL
AND postid <> $post[postid]
ORDER BY dateline DESC
LIMIT 1
");


replace it with
// we are here, so we may have a doublepost -> do more exact checkings
$doublepost = $vbulletin->db->query_first("
SELECT post.*
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = $threadinfo[threadid]
AND post.dateline > " . (TIMENOW - $vbulletin->options['dp_timespan'] * 60) . "
AND post.visible = 1 AND deletionlog.primaryid IS NULL
AND post.postid <> $post[postid]
ORDER BY post.dateline DESC
");

there ya go. ;)

Bubble #5
01-16-2007, 03:14 PM
AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))

We added this to the 'conditionals' section of the hack, but we're getting a bunch of parsing errors and admins are still getting automerged :(

Parse error: syntax error, unexpected T_LOGICAL_AND in /home/imnotimk/public_html/forum/includes/functions_newpost.php(524) : eval()'d code(9) : eval()'d code on line 1

Is this a 3.6.4 problem, or did we add the wrong code to the conditionals section?

Xenon
01-16-2007, 03:18 PM
remove the AND in front ;)

that was in an old version iirc, regarding that the post is on page one ^^

Bubble #5
01-16-2007, 03:52 PM
Thank you Xenon, I fully appreciate your help :)

One other quick question while I have your attention. At the beginning of the thread there is a post that makes this hack 3.6.x compatible. It basically just changed 'AND dateline' to 'AND post.dateline'. However now I see additional code being posted above in beebi post. In your opinion what is the advantage (if any) to using beebis code VS. just adding "AND post.dateline"?

Xenon
01-16-2007, 05:40 PM
Well, as far as i can see both codes will work, beebi's code adds just a few more post. which doesn't change anything now, but may prevent bugs with future versions of vb, so i'd suggest you should use the version by beebi

SCRIPT3R
01-16-2007, 06:05 PM
was the product actually updated (changed)? it still shows the same version #.

Xenon
01-17-2007, 10:58 AM
yep, i uploaded a slightly modified file so it will run in 3.6

you don't have to update if you did the changes manually before.

TrIn@dOr
01-17-2007, 11:46 AM
yep, i uploaded a slightly modified file so it will run in 3.6

you don't have to update if you did the changes manually before.

Installed before the update and working good, need we to update??

We have 3.6.4

Thanks in advance!

EDIT 1: Udapted, all ok in 3.6.4

EDIT 2: Working full dual spanish/english, thanks.

Bubble #5
01-17-2007, 03:04 PM
i uploaded a slightly modified file so it will run in 3.6
THANK YOU Xenon, we appreciate the update ;)

PoetJA-1975
01-21-2007, 03:00 PM
Great mod - Thanx for the share!

Jacquii.

AZone
01-25-2007, 06:55 PM
Tried to import it to my 3.5.4 and got MySQL Error : Unknown column 'executionorder' in 'field list'

Xenon
01-26-2007, 12:49 PM
hmm, seems that the xml files are not downward compatible.
Didn't think Jelsoft would code that way.

edit the xml file manually and remove all executionorder=".." parts and it should work again

AZone
01-26-2007, 05:07 PM
Did what you said and it works. Thank you.
However, it doesn't change posting time, leaving post marked as old. Is it how it actually works or something's wrong?

WrestlingAcadem
01-26-2007, 07:00 PM
Is there a way to turn off auto-merge in a certain forum?

majoreyeswater
01-27-2007, 01:27 PM
It gave me an SQL error on produsct upload. I am using 3.5.2

The feature is them listed in the installed products, but I can't see how to configure it any where. don't think it has installed correctly...

WrestlingAcadem
01-27-2007, 05:23 PM
I'm going to guess there's some way to turn off the function in a certain forum, but does anybody know how?

Xenon
01-27-2007, 05:55 PM
Did what you said and it works. Thank you.
However, it doesn't change posting time, leaving post marked as old. Is it how it actually works or something's wrong?
that's how it is designed ;)

@Wrestling: thats what the custom condition is for, check around in the thread, the correct condition should be there already :)

Greek Wizard
01-30-2007, 08:39 AM
that's how it is designed ;)

@Wrestling: thats what the custom condition is for, check around in the thread, the correct condition should be there already :)

Xenon,

I know you have not been around here for a while but I just wanted to say thanks for some of the wicked mods you have released in the past (columns on forumhome being my favorite).

I hope that your recent posts here mean you might be returning to vb.org to release more or updated mods. Or even if you did not, and simply hung out to offer advice to those that are releasing new mods.

Either way, I just wanted to say thanks while I had the opportunity.

Xenon
01-30-2007, 03:10 PM
Thanks, it really means a lot to me :)

I don't know if i get the chance to come fully back in the future, RL is quite stressful you know, but whenever i have the time and mood i come by and take a look at some threads ;)

And who knows, maybe i'll release a new mod someday ;)

Smoothie
01-31-2007, 01:50 AM
Thanks, it really means a lot to me :)

I don't know if i get the chance to come fully back in the future, RL is quite stressful you know, but whenever i have the time and mood i come by and take a look at some threads ;)

And who knows, maybe i'll release a new mod someday ;)We both have been here the same amount of time, good to see you come back now and again. Peace out bro.

Sidewindr
02-05-2007, 03:54 AM
There is a bug in this, it does not honour the Moderation requirements for Moderated forums. The second post is automatically merged into the post above without entering the moderation queue.

HMBeaty
02-24-2007, 01:55 AM
Installed and working on 3.6.4. Thanks

/me clicks installed

SuperGLS
03-02-2007, 01:46 AM
Beautiful and easy. Thanks.

thetopday21122
03-09-2007, 02:18 AM
@Bob: it's

AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))


Where would I put this?

Dark_Sirius
03-10-2007, 02:19 PM
Could I put in .5 as the time limit so it is 30 seconds?

eoc_Jason
03-12-2007, 05:29 PM
If you want less time, you could modify the code so that instead of specifying in minutes you do it as seconds. But I would double-check the code to make sure it doesn't round() or make it an integer if you want to do a decimal.

TheMilkCarton
03-15-2007, 08:33 AM
Could I put in .5 as the time limit so it is 30 seconds?

Well, (I think) the default time between posts is 30 seconds anyway. At least it is on my board.. So if you set it to 1 minute, it would essentially be the same as 30 seconds, right?

PEPITO69
04-03-2007, 07:11 PM
Hello,
I've installed, but i see that don't work when both posts has attachments. Any solution please?

sjcallas
04-09-2007, 04:11 PM
any confirmations on this working on 3.6.5?

djbaxter
04-09-2007, 04:31 PM
Yes, it works fine on 3.65.

Smoothie
04-09-2007, 06:54 PM
confirmation #2, works w/ 3.6.5

Mrdby
04-10-2007, 06:16 PM
great!!

CharmMickey
04-19-2007, 01:18 PM
Yes, it works on 3.6.5 but how exactly can you make it so it doesn't auto-merge a specific group's posts like Administrators. I tried the code:

AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))

And it doesn't work....

djbaxter
04-19-2007, 01:25 PM
Admin CP | vBulletin Options | Prevent Double Posting

Find:

Additional Condition (experts only)
Here you can add extra conditions, which will be required for a post to be seen as a doublepost. Be carefull, as this code is evaluated without doing any errorchecking, so use it at your own risk! (Examlpe: add !can_moderate() into the box to exclude moderators from doublepost prevention)

That exempts moderators, super moderators, and admins from automerge.

CharmMickey
04-19-2007, 06:54 PM
What is the code for administrators and Super Administrators.

djbaxter
04-20-2007, 12:36 AM
You can look this up yourself in ACP | Usergroup Manager:

Super Moderator = 5
Admin = 6
Moderator = 7

SoftDux
05-08-2007, 03:14 PM
I'm probably missing something, but users can still make double posts?

If you look @ the test thread I just created, http://www.webhostingtalk.co.za/vb/showthread.php?p=3112 you'll see what I mean.

Am I doing something wrong?

SoftDux
06-07-2007, 09:05 AM
how do I put a page break before & after the double post message?

Using <BR> </BR> & <p> </p> doesn't work, it simply get's displayed in the message, as can be seen here: http://www.webhostingtalk.co.za/showthread.php?p=3726#post3726

djbaxter
06-07-2007, 12:19 PM
I'm probably missing something, but users can still make double posts?

If you look @ the test thread I just created, http://www.webhostingtalk.co.za/vb/showthread.php?p=3112 you'll see what I mean.

Am I doing something wrong?

Change the time limit in the options for this add-on. I don't recall what the default is but double posts are merged only within the specified time limit.

SoftDux
06-07-2007, 02:07 PM
Change the time limit in the options for this add-on. I don't recall what the default is but double posts are merged only within the specified time limit.

Thanx, I have done that already, and it's working fine now :)

I just can't seem to figure out how to add a white space / cariage return before / after the "Double Post" message

Karri
06-07-2007, 04:18 PM
how do I put a page break before & after the double post message?

Using <BR> </BR> & <p> </p> doesn't work, it simply get's displayed in the message, as can be seen here: http://www.webhostingtalk.co.za/showthread.php?p=3726#post3726
I think it is because a normal user typically can't use html in their posts so when the br or the p is put into their post, it doesn't parse. I ended up making a custom bb code tag for a hr line and used that.

SoftDux
06-07-2007, 04:54 PM
That sounds like a great idea, but I can't get it to work. Here's my current code:


Title: [br]
Tag: br
Replacement: {param}<br>
Example: Some text [br] New paragraph
Description: Creates a cariage return


You can see it here, http://www.webhostingtalk.co.za/misc.php?do=bbcode

This is my Double Post code:



[br]
##############
Double posts merged
##############
[br]

Karri
06-08-2007, 05:02 PM
That sounds like a great idea, but I can't get it to work. Here's my current code:


Title: [br]
Tag: br
Replacement: {param}<br>
Example: Some text [br] New paragraph
Description: Creates a cariage return


You can see it here, http://www.webhostingtalk.co.za/misc.php?do=bbcode

This is my Double Post code:Try

Title:
Tag: br
Replacement: {param}<br />
Example: [br]Some textNew paragraph
Description: Creates a cariage return

SoftDux
06-08-2007, 07:10 PM
Thanx, that worked too, I used <p> shortly after my post, which worked as well :)

Fearlessninja
06-15-2007, 04:51 AM
Anybody know how to get the script to PM me each time someone double posts..?

DieselMinded
06-15-2007, 05:21 AM
Whaaaaa Not working and showing up as Prevent Doubleposts With a line threw it on manage products ??

Why is this??

3.6.7 PL1

DieselMinded
06-15-2007, 05:22 AM
Oh wait a Min..... I guess i never had to enable a product like that b4 Sorry

DM

DieselMinded
06-15-2007, 05:34 AM
Clicks Installed and Says Thanks ! Running Great on 3.6.7 PL1

Here what i put in there


?????????????????????????
AutoMerged DoublePost
???????????????????????

ZomgStuff
06-21-2007, 03:19 AM
Works w. 3.6.7 PL 1 BUT it's kind of funky. AJAX isn't working so well.

Dannyloski
06-21-2007, 07:54 PM
Awesome, I had this on 3.5.4, now updated to 3.6.7 PL1 and needed it, glad to see it still works perfectly ... Thanks!

linhhon2003
06-28-2007, 06:21 PM
How time set?
I want to set time that if first post and second post are more than 3 minutes, it isn't Merged.
Other it's auto Merged
Can you help me
Thank

djbaxter
06-29-2007, 01:03 AM
Admin CP | vBulletin Options | vBulletin Options | Doublepost Prevention

Timespan = 3
How many minutes until a new post is no longer considered as doublepost?

siriuxs
07-01-2007, 10:31 AM
On my 3.6.7 isn't functionally... :'( Why :(

I have import the product but not functionally ...

Dannyloski
07-01-2007, 07:42 PM
^ Maybe its conflicting with another Hack you've got installed ...

siriuxs
07-01-2007, 07:55 PM
Oh no... :( What is the hack that haved the conflict?

Dannyloski
07-01-2007, 10:24 PM
^ Oh I dont know if that's the issue, I was just thinking it may be that ... To be 100% Sure you would have to go to your AdminCP and disable each Hack one by one (while keeping this Hack Enabled at all times) to see if it indeed its a Hack conflicting or something else. after you disable a Hack, just try doing a doubleposts until you get it to work. If you cant get it to gwork after everything was done, then it may be something else ...

Attitude5ire
07-14-2007, 09:51 AM
Can anyone help if giving a conditional to exclude just a particular thread or forum ID frm the Double Posting.. Because it seems to be clashing with the Awards Mod when a post creation is enabled.
thnx in advance

Konstantinos
07-23-2007, 02:20 PM
Yes, it works on 3.6.5 but how exactly can you make it so it doesn't auto-merge a specific group's posts like Administrators. I tried the code:

AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))

And it doesn't work....

what whould be the array if we want the mod to check only users who have less than 50 posts ?

Dave Hawley
07-24-2007, 08:13 AM
Adreas, I have used your version here (https://vborg.vbsupport.ru/showpost.php?p=840753&postcount=157) on vb 3.5.4 and works great! Is there some way I can add a hr or something to seperate the merged posts from the original?

Dave Hawley
07-24-2007, 09:21 AM
Never mind, got it!

noreturn
07-24-2007, 05:43 PM
I just went to install this and received this error below.
Can some one explain what I need to do?

Database error in vBulletin 3.5.3:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Main Doublepost Prevent Engine', 'newpost_complete', '// ########### Xenon\'s prevent doublepost modification #########\r\n\r\n$vbulletin->GPC[\'xen_isdoublepost\'] = false;\r\n\r\n// parse custom conditions\r\n$custcond = true;\r\nif (trim($vbulletin->options[\'xen_dp_custcond\']) != \'\')\r\n{\r\n eval(\'$custcond = ((\' . $vbulletin->options[\'xen_dp_custcond\'] . \') ? true : false);\');\r\n}\r\n\r\n\r\n// at first check if there is at least the possibility to be a doublepost\r\nif ($custcond AND $type != \'thread\'\r\n AND $dp_threadinfo[\'lastpost\'] > TIMENOW - $vbulletin->options[\'xen_dp_timespan\'] * 60\r\n AND $dp_threadinfo[\'lastposter\'] == $vbulletin->userinfo[\'username\']\r\n AND $dataman->fetch_field(\'attach\') == 0)\r\n{\r\n // we are here, so we may have a doublepost -> do more exact checkings\r\n $doublepost = $vbulletin->db->query_first(\"\r\n SELECT post.*\r\n FROM \" . TABLE_PREFIX . \"post AS post\r\n LEFT JOIN \" . TABLE_PREFIX . \"deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = \'post\')\r\n WHERE post.threadid = $threadinfo[threadid]\r\n AND post.dateline > \" . (TIMENOW - $vbulletin->options[\'xen_dp_timespan\'] * 60) . \"\r\n AND post.visible = 1 AND deletionlog.primaryid IS NULL\r\n AND post.postid <> $post[postid]\r\n ORDER BY post.dateline DESC\r\n LIMIT 1\r\n \");\r\n\r\n if ($doublepost[\'userid\'] == $vbulletin->userinfo[\'userid\'] AND $doublepost[\'attach\'] == 0)\r\n {\r\n // we truely have a doublepost, now check if the merged post still fits the rules!\r\n $dpdataman =& datamanager_init(\'Post\', $vbulletin, ERRTYPE_ARRAY, \'threadpost\');\r\n $dpdataman->set_existing($doublepost);\r\n $doublepost[\'message\'] = $doublepost[\'pagetext\'] . \"\\n\" . $vbulletin->options[\'xen_dp_spacer\'] . \"\\n\" . $post[\'message\'];\r\n\r\n // set info\r\n $dpdataman->set_info(\'preview\', $post[\'preview\']);\r\n $dpdataman->set_info(\'parseurl\', $post[\'parseurl\']);\r\n $dpdataman->set_info(\'posthash\', $post[\'posthash\']);\r\n $dpdataman->set_info(\'forum\', $foruminfo);\r\n $dpdataman->set_info(\'thread\', $dp_threadinfo);\r\n\r\n // set options\r\n $dpdataman->setr(\'showsignature\', $post[\'signature\']);\r\n $dpdataman->setr(\'allowsmilie\', $post[\'enablesmilies\']);\r\n\r\n // set data\r\n $dpdataman->setr(\'pagetext\', $doublepost[\'message\']);\r\n $dpdataman->setr(\'iconid\', $post[\'iconid\']);\r\n\r\n $dpdataman->pre_save();\r\n if (!$dpdataman->errors)\r\n {\r\n // merged post is ok, so actually do the merging by editing old post\r\n $vbulletin->GPC[\'xen_isdoublepost\'] = true;\r\n\r\n if ($vbulletin->options[\'xen_dp_bumpthread\'])\r\n {\r\n // bump thread, so change the post\'s dateline\r\n $doublepost[\'dateline\'] = TIMENOW;\r\n $dpdataman->setr(\'dateline\', $doublepost[\'dateline\']);\r\n }\r\n $dpdataman->save();\r\n\r\n // as we have edited an old post, we can now delete the new created post\r\n $postman =& datamanager_init(\'Post\', $vbulletin, ERRTYPE_SILENT, \'threadpost\');\r\n $postman->set_existing($post);\r\n $postman->delete($foruminfo[\'countposts\'], $threadinfo[\'threadid\'], $removaltype = true, array(\'userid\' => $vbulletin->userinfo[\'userid\'], \'username\' => $vbulletin->userinfo[\'username\'], \'reason\' => $vbulletin->options[\'xen_dp_editedby\'], \'keepattachments\' => false), false);\r\n unset($postman);\r\n\r\n $doublepost[\'oldmessage\'] = $post[\'message\'];\r\n $post = $doublepost;\r\n $id = $post[\'postid\'];\r\n\r\n //now add edited by message\r\n if ($vbulletin->options[\'xen_dp_editedby\'] != \'\')\r\n {\r\n $vbulletin->db->query_write(\"\r\n REPLACE INTO \" . TABLE_PREFIX . \"editlog (postid, userid, username, dateline, reason)\r\n VALUES ($post[postid], \" . $vbulletin->userinfo[\'userid\'] . \", \'\" . addslashes($vbulletin->userinfo[\'username\']) . \"\', \" . TIMENOW . \", \'\" . addslashes($vbulletin->options[\'xen_dp_editedby\']) . \"\')\r\n \");\r\n }\r\n\r\n // last step update counters\r\n build_thread_counters($post[\'threadid\']);\r\n build_forum_counters($foruminfo[\'forumid\']);\r\n }\r\n }\r\n}', 'xenon_prevdoublepost');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Tuesday, July 24th 2007 @ 02:40:44 PM

Username : Gordon
Classname : vb_database

Dave Hawley
07-24-2007, 11:19 PM
I was getting similar in 3.5.4 so I used this one and it works great https://vborg.vbsupport.ru/showpost.php?p=840753&postcount=157

noreturn
07-25-2007, 12:33 AM
Thank you Sir. Installed without that error.

UhOH...I see it did post second post but ran it all together and that is why I did not see it.

Can you please tell me how and where you placed a line break in there?

Thank You

Dave Hawley
07-25-2007, 07:06 AM
I used some Custom BB codes and then used the below in vBulletin Options>Message Posting and Editing Options-Double Post Spacer

* Auto Merged Post;*

Where hr is a HTML hr and dl is a double line break.

noreturn
07-25-2007, 02:17 PM
Thanks for your ongoing help. I tired and I copied and pasted and here is what happens. It runs the actual BB code and sentence into the first post.

example
just me doing a test of posting* *Auto Merged Post;**hey this is my second test of a double post

It seems that whatever code I place in "Double Post Spacer" appear as text in the post. And does not move the second post down a line or two.

example
First post[dl]Second test post

noreturn
07-26-2007, 12:48 AM
ok thank you. I got it.

Dannyloski
07-30-2007, 12:38 AM
For those who want to exclude the Admin ONLY from the PRevent Double Posting Feature use the below code:

!in_array($vbulletin->userinfo['usergroupid'], array(6))

If you wish to add more Usergroups, simply enter their IDs inside the Array Parenthesis (separating by commas), like this:

!in_array($vbulletin->userinfo['usergroupid'], array(X,Y,Z))

This was posted way earlier int he Thread, but I added to the last post just in case someone installs it and needs the info (to save them some searching)

PoetJA-1975
07-30-2007, 02:25 AM
For those who want to exclude the Admin ONLY from the PRevent Double Posting Feature use the below code:

!in_array($vbulletin->userinfo['usergroupid'], array(6))


Thanx for posting - but where exactly do you add the code?

Jacquii.

Dannyloski
07-30-2007, 02:56 AM
PoetJA-1975, no problem ... you paste the code here:

AdminCP > vBulletin Options > Doublepost Preventing > Additional Condition (experts only)

PoetJA-1975
07-30-2007, 03:23 AM
Nice! Thanx very much!

Jacquii.

hissatsu
08-03-2007, 10:44 PM
Hello guys -- reading all these posts has made me more confused. I should learn how to code. Here is my problem - i downloaded the mod. There are no errors being displayed. But it doesnt work right.

wHen a member doubleposts within the Timespan (eg two weeks) the post is merged with his/her earlier post. But it remains as aN individual post. if this is not clear then this is what i am saying.

Member makes post A. He then makes post B in the Timespan. Next Post A & B get merged as one post in their own window. But post B still remains in its own window. So instead of one merged post you get Post A & B(merged) and Post B(the doublepost also appearing) in its own window


How do i get this resolved? Since many use this mod how did they resolve this? Are there any codes and where should i place them? Most important - how do i put a separation or an actual line separating the two posts?

Should I try Andreas plugin (post #157 in this thread) instead? (Made in 2005)
I am a noob so please go easy on me.

Dave Hawley
08-04-2007, 03:06 AM
Andreas plugin is working great for me on 3.5.4. I had too many errors using the other one.

hissatsu
08-04-2007, 08:52 PM
i will try that then and post what happens. i am on 3.67 PL1

EDIT:
Yes- Andreas plugin worked on 3.67 PL1 -- just fine.

But it has the same problems some mentioned - it puts the new post on the same line as the old one without separating them.
Andreas suggested using a line separator yet for someone who knows nothing about coding where in XML the file do i place this line separator.

And how can i exclude administrators from being affected by the mod? can someone help me here with the codes to use and where to put it in the xml file (andreas plugin is attached to post #157)?

Thanks!!!

Dave Hawley
08-05-2007, 04:20 AM
<a href="https://vborg.vbsupport.ru/showpost.php?p=1300910&postcount=693" target="_blank">SEE</a>

hissatsu
08-05-2007, 06:59 AM
Dave, i saw ur post earlier but didnt know and understand what to do with it- (i actually did read most of the posts in this thread). i am glad it is you who replied = yay!!!


I mean what do i do with that code? How does the custom BBcodes come into this picture?

When i was installing custom bbcodes they always came with some code string. so how do i set up this bb code and what string do i use? And by what you say in that post after the bbcode is set then i post the code line from SEE (https://vborg.vbsupport.ru/showpost.php?p=1300910&postcount=693) in
vBulletin Options>Message Posting and Editing Options-Double Post Spacer

Sorry, newbie here :o . Thanks very much.


EDIT
Another question why does the hack always adds the double post more than once to the original post? When i make a doublepost it adds it to my earlier post at least twice.

And what code do i use to prevent administrators from being affected? [there was an option like that in Xenon's]

Spinball
08-17-2007, 06:56 PM
Hello,
is it possible to exclude (or include) specific forums where this hack will work?
I ask because like 600 odd other people I think it would be useful on the forums, but there are a few where it would not be appropriate (e.g. our news forums and our classifieds forums).

SABRSox
08-19-2007, 02:51 AM
I'm having an issue now where users are posting a great number of smilies with their posts, and this seems to work around the automerge. We have our Max Images Per Post set to 8 images, and as soon as that is exceeded, the automerge will fail to merge posts.

Any idea on a solution to this problem, without increasing or disabling the max images per post?

Xenon
08-19-2007, 01:19 PM
Nope, that's working as designed.

Posts are just merged if the merged post is a valid one.

Black Tiger
08-27-2007, 02:59 PM
Could it be this is not working for vBulletin 3.6.8?

I've just installed this hack tonight, and today this happened:
http://www.satellitefun.org/bbs/showthread.php?p=56634#post56634

So a user making a post at 14.14 PM, and a reply to it's own post at 14.30 and posts were not automerged.
Standard installation, what goes wrong?

RaceJunkie
08-28-2007, 11:12 AM
Could it be this is not working for vBulletin 3.6.8?

I've just installed this hack tonight, and today this happened:
http://www.satellitefun.org/bbs/showthread.php?p=56634#post56634

So a user making a post at 14.14 PM, and a reply to it's own post at 14.30 and posts were not automerged.
Standard installation, what goes wrong?

Yea same thing here (http://www.localracechat.com/forums/showthread.php?p=97504#post97504)

Dannyloski
08-28-2007, 12:41 PM
Its working fine for me in vB 3.6.8 ... I dont know what happened on you guy's forums ...

DieselMinded
08-28-2007, 03:28 PM
fine here on 3.6.8

RaceJunkie
08-28-2007, 04:04 PM
Must be my custom style. Does anyone know the template edits that this is suppose to do?

ragtek
08-28-2007, 04:07 PM
there are no templatefunctions!

RaceJunkie
08-28-2007, 04:40 PM
I just looked in the plugin manager and noticed it was all marked through like it's inactive. I guess it would help to turn it on huh?...:eek: :D

Black Tiger
08-28-2007, 05:32 PM
Yep, I discovered but have forgotten to mention here that I found it.:erm:
After installation it's disabled by default. So in the meantime it''ss working already at my forums.:)

Sorry for the inconvenience!

HotRodGyrl
08-28-2007, 06:56 PM
Thanks for this, I like this feature =):up:

Antyrael
09-07-2007, 06:48 AM
Awesome hack, this is just what I needed! :D

GamingAttic
09-08-2007, 03:00 AM
Can I make it so that this can take all the double posts made (before I installed this) and put them in one?

bulbasnore
09-15-2007, 04:37 PM
Hey, we love this feature. Thanks Xenon. Import overwrite seems to have gone smoothly under 3.6.7_pl1

pandaram
09-16-2007, 01:14 AM
thanks for this hack and i was using it with VB3.6.5
but its not working well with 3.6.8, is there an updated version available for this mod?

Black Tiger
09-16-2007, 01:40 AM
No need for an updated version, it is working perfectly with 3.6.8. Just remember to enable it because it's disabled by default.

djbaxter
09-16-2007, 02:01 AM
thanks for this hack and i was using it with VB3.6.5
but its not working well with 3.6.8, is there an updated version available for this mod?

It works fine with 3.6.8.

Try reinstalling it. There were some template changes from 3.6.5 to 3.6.8.

ragtek
09-16-2007, 05:52 AM
for me its working with 3.6.8

Skavenger
09-17-2007, 09:58 PM
is there any way to make this work only in certain forums?

JohnBee
09-18-2007, 11:43 AM
I have been using this MOD since it was introduced back in the day and it has served out community beautifully. From the start we modified it and I have been carrying the custom code over between releases. I figured someone could benefit from it as well.

The customization produces a doublepost /merged message with time function on a lower key than the default prompt.

Vestibulum diam risus, euismod id, tristique sed, mollis vitae, massa. Donec ante nibh, euismod ac, iaculis a, rutrum quis, neque. Donec vel velit. In hac habitasse platea dictumst. Aliquam id nunc sed mi mollis lacinia.

JohnBee added 0 Minutes and 13 Seconds later...

Vestibulum diam risus, euismod id, tristique sed, mollis vitae, massa. Donec ante nibh, euismod ac, iaculis a, rutrum quis, neque. Donec vel velit. In hac habitasse platea dictumst. Aliquam id nunc sed mi mollis lacinia. Customization for this is quite simple, and can be accomplished in two ways.
editing the .xml file directly(which I prefer) and overwriting the existing installtion or...
editing the installed plugin and keeping the installation.Method 1. edit the product file product-xenon_prevdoublepost.xml and fine the following line(line 55)
$doublepost['message'] = $doublepost['pagetext'] . "\n" . $vbulletin->options['xen_dp_spacer'] . "\n" . $post['message'];and replace with:
$doublepost['message'] = $doublepost['pagetext'] . "\n\n" . $vbulletin->userinfo['username'] . ' added ' . intval((TIMENOW - $doublepost['dateline'])/60) . ' Minutes and ' . ((TIMENOW - $doublepost['dateline']) % 60). ' Seconds later...' . $vbulletin->options['xen_dp_spacer'] . "\n\n" . $post['message'];
Method 2. Through ACP open: Plugins & Products > Plugin Manager: [Product : Prevent Doubleposts] > Main Doublepost Prevent Engine. and In the Plugin PHP Code window find the following code:
$doublepost['message'] = $doublepost['pagetext'] . "\n" . $vbulletin->options['xen_dp_spacer'] . "\n" . $post['message'];and replace with:
$doublepost['message'] = $doublepost['pagetext'] . "\n\n" . $vbulletin->userinfo['username'] . ' added ' . intval((TIMENOW - $doublepost['dateline'])/60) . ' Minutes and ' . ((TIMENOW - $doublepost['dateline']) % 60). ' Seconds later...' . $vbulletin->options['xen_dp_spacer'] . "\n\n" . $post['message'];And thats it. Hope this helps someone.

Black Tiger
09-18-2007, 03:26 PM
Very nice modification.
But can this not also be achieved by using the "Post seperator" option in Ezbounce itselve?

JohnBee
09-18-2007, 05:27 PM
Very nice modification.
But can this not also be achieved by using the "Post seperator" option in Ezbounce itselve?
It might, but I'm not sure about the accurate time stamp though.

aycan555
09-19-2007, 12:05 AM
Is it posible to put Admins name instead of the users on the last edited by notice?

hitmann
09-19-2007, 09:52 AM
Nice modification

stonner
09-23-2007, 02:01 PM
hi,

i've installed it and set the options. but the users still can doublepost.
how can i fix it?

thank you!

Black Tiger
09-23-2007, 03:37 PM
Did you enable it? Because it's disabled by default.

stonner
09-23-2007, 04:44 PM
Where can i find the enable option? there is none.

nnjj.net
09-23-2007, 08:39 PM
is there any update for this for 3.6.8?

ragtek
09-23-2007, 09:01 PM
it's working fine on 3.6.8

Smiry Kin's
09-23-2007, 09:05 PM
has anyone posted how they got it to work similar to cableforums?

Smoothie
09-24-2007, 02:37 AM
Where can i find the enable option? there is none.If I can read your settings, looks like 1440 minutes until a new post is no longer considered as doublepost. Might want to fix that and try again. LOL

stonner
09-24-2007, 08:35 AM
i set it to 0, and it's still the same.

Dave Hawley
09-24-2007, 08:44 AM
It works just fine for me. Been using it with great success on 3.5.4 for 2 Moths now.

stonner
09-24-2007, 08:45 AM
i am using vb3.6.8. is this the problem?

Dave Hawley
09-24-2007, 09:04 AM
I wouldn't think so as other here have reported it working on 3.6.8

aycan555
09-24-2007, 07:46 PM
i am using vb3.6.8. is this the problem?

I have ınstalled on the 3,6,7 and ıt ıs dısable the product after ınstallıng ıt, ı thınk you got same problem...

Just go to the products and try enableıng ;)

Paul M
09-25-2007, 11:55 PM
has anyone posted how they got it to work similar to cableforums?

I doubt it, CF runs a very old (modified) version - the version running here is actually much newer.

To what are you referring anyway, the Quick Reply fix, the spacer, or something else ?

aeturner89
09-26-2007, 04:38 PM
I installed this but later uninstalled it because of that annoying quick reply problem. It doesn't merge them properly until the page is refreshed.

Has anybody managed to fix this and is willing to share how?

Dave Hawley
09-26-2007, 11:38 PM
No problems here and been in use for 2 Months.

REIGN SS
09-28-2007, 05:52 AM
When i installed this, i had to go back and "Enable" it before it would work. (installed 3.6.8)

mauro1947
10-04-2007, 03:44 AM
A lot of thanks.
100% tested and working with vBulletin 3.6.8
Just after install, Enable the product.
Regards!

aycan555
10-04-2007, 11:19 PM
Is it posible to enable it on the specific forums? Because we got chi-chat forum i want to enable this on the that forums to prevent double postings...

And we got signatures&avatars firum.. Some users sends about 50 avatar... and it joins all the avatars on the one post... Then page opens slowly... :(

anwar.abdullakh
10-08-2007, 11:55 AM
i am using vb3.6.8. is this the problem?

go to acp > plugins and products > manage products
there you will have to look for the Prevent Doubleposts 1.0

if the text is striken in the middle, this means that it's turned off...you have to enable it.
at your righthandside you will see a dropdown menu...select "enable there".

and if that doesn't do the trick then go to vbulletin options > doublepost preventing
and set the timespan to 1.

Note: don't turn the timespan 0 coz that will turn the plugin off.

you won't see the threads merged immediately, if you refresh you will see that it got merged.

hope that it worked for you now.

aycan555
10-08-2007, 11:44 PM
Is it posible to enable it on the specific forums? Because we got chi-chat forum i want to enable this on the that forums to prevent double postings...

And we got signatures&avatars firum.. Some users sends about 50 avatar... and it joins all the avatars on the one post... Then page opens slowly... :(


any help please?

too_cool_3
10-18-2007, 06:36 AM
Does anyone know how to make the Post Seperator for this hack diplay like this:

--------------- Added 17 Oct 2007 at 7:17pm ---------------

so far I'm using this code in the Post Seperator section but can't figure out how to make the current date and time show:


?---------------Added---------------

too_cool_3
10-18-2007, 07:26 AM
this is exactly what I want to do... it seems no one has helped this guy out either, I've spend the last 3 hours reading all 50-some pages trying to figures this out. please help someone

Hi this works perfect but!!

is it possible for every time it makes a double post. to make something like this


First Post Here

<Added Tuesday 99th 2059 at 12.32 AM>

Merged Post Here

<Added Tuesday 99th 2059 at 12.42 AM>

Another Merged Post Here

if you get me??

please help, this would be very usefull?! im sure it can be added! i just don't no any of the code! :(

Black Tiger
10-18-2007, 11:55 AM
Post #725 is something similar, you could adjust the used code I guess.

too_cool_3
10-18-2007, 03:43 PM
Post #725 is something similar, you could adjust the used code I guess.

Thats Black Tiger but alas, that was one of the first things I tried but instead of having it show up like:

--------------- Added 17 Oct 2007 at 7:17pm ---------------

Which is how I want it, it shows up like this:

User Poster xx Hours and xx Minutes Later

In the same size font and colour as regular user posts so you cant tell the difference between the Post Separator and what the actual user wrote!?

Please someone must know.