PDA

View Full Version : New Posting Features - Doublepost Prevention


Pages : 1 [2]

ricardoNJ
09-01-2009, 09:50 PM
I'm sorry. This mod was uninstalled.

yamahapaul
09-01-2009, 09:57 PM
This was was only released 7 months ago :D

Even so, its still pretty cool and will save me a massive headache as one of my users spreads one post over two or three and merging them was getting tedious (I only found it by seeing it in use on here by the way) incidentally, there's no problems on 3.8.4 in case anyone is wondering..

djbaxter
09-01-2009, 11:38 PM
I'm sorry. This mod was uninstalled.

I don't blame you. If that happened to my forum, I'd be sorry this mod was uninstalled too. :D

Paul M
09-02-2009, 09:16 AM
I'm sorry. This mod was uninstalled.
Im sure it was. I dont suppose you care to mention why ?

(Since you never bothered to post the error you mentioned, Im not expecting an answer)

ricardoNJ
09-03-2009, 10:02 PM
Im sure it was. I dont suppose you care to mention why ?

(Since you never bothered to post the error you mentioned, Im not expecting an answer)

Oh I forgot it. Because I found this other: https://vborg.vbsupport.ru/showthread.php?t=204177&page=9&highlight=doublepost

JoomlaCommunity
09-05-2009, 12:54 AM
Nice update since I use long times as well, but is there a way to add the actual date of the original post and addition to the phrase?
Same request here...
Not really sure what you mean.

If the actual (first) post was say on August 15 at 15.00 and the new post is August 20 at 13.00 the phrase now shows:

......Post added at 13:00 ......... Previous post was at 15:00 ............

What we would like is:

.......... Post added at 13:00 .......... Previous post was on August 15 at 15:00 ....

ricardoNJ
09-05-2009, 03:54 AM
I have a "Database error"

Importando Producto, Por Favor Espera...

[:]

Please remember to Mark as Installed at vBulletin.org

Install Information


Prevent DoublePosts

Installing : Version 3.8.005 ; Revision 1.7

( Replacing : Version 3.8.005 ; Revision 1.7 )



Database Error Database error
The arteforos.com database has encountered a problem.
Please try the following:

* Load the page again by clicking the Refresh button in your web browser.
* Open the www.arteforos.com home page, then try to open another page.
* Click the Back button to try another link.

The www.arteforos.com forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.
I had this Database problem.

Paul M
09-05-2009, 10:02 AM
Same request here...

If the actual (first) post was say on August 15 at 15.00 and the new post is August 20 at 13.00 the phrase now shows:

......Post added at 13:00 ......... Previous post was at 15:00 ............

What we would like is:

.......... Post added at 13:00 .......... Previous post was on August 15 at 15:00 ....

Are you sure you have the latest version installed, it was updated to do that in the 3.8.005 release.

Paul M
09-05-2009, 10:03 AM
I had this Database problem.
There is nothing I can tell you unless you post the actual database error. However, this mod does not make any database changes.

JoomlaCommunity
09-05-2009, 10:01 PM
Are you sure you have the latest version installed, it was updated to do that in the 3.8.005 release.

Yes we updated to the latest version, and were hoping the update would provide a date in the phrase.
However the date is only shown if you choose not to Update the timestamp of a doublepost.
Problem then is, the new post will not show up at the list of unread posts.

We want to update the timestap of a doublepost and see the date of the previous post in the phrase.

In the meanwhile I dugg into it myself and found a solution.
I modified 'Prevent DoublePost 2 newpost_complete' , the code for pdp_spacer1.

this :

if ($vbulletin->options['pdp_spacer'] == 1)
{
$pdptime = TIMENOW;
$prevtime = $doublepost['dateline'];
if ($vbulletin->options['pdp_bumpthread'])
{
$spacer = construct_phrase($vbphrase['pdp_spacer1'],
vbdate($vbulletin->options['timeformat'],$pdptime),
vbdate($vbulletin->options['timeformat'],$prevtime),
vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$pdptime)." " : "",
vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$prevtime)." " : ""
);
}


into:


if ($vbulletin->options['pdp_spacer'] == 1)
{
$pdptime = TIMENOW;
$prevtime = $doublepost['dateline'];
if ($vbulletin->options['pdp_bumpthread'])
{
$spacer = construct_phrase($vbphrase['pdp_spacer1'],
vbdate($vbulletin->options['timeformat'],$pdptime),
vbdate($vbulletin->options['timeformat'],$prevtime),
vbdate($vbulletin->options['dateformat'],$pdptime),
vbdate($vbulletin->options['dateformat'],$prevtime),
vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$pdptime)." " : "",
vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$prevtime)." " : ""
);
}

The phrase wil now show:
---------- Post added 5 september 2009at 23:37 ---------- Previous post was 2 oktober 2008at 02:48 ----------

Additional you have to add two spaces after {3} and {4} in the phrase


---------- Post added {3} at {1} ---------- Previous post was {4} at {2} ----------


Hope this helps, maybe it can be added to the plugin?

Paul M
09-05-2009, 10:57 PM
If the date of the doublepost is different to the date of the original post, then the date will be added to the timestamp. If the date is the same, then only the time is added. All you have done is added the date when its the same as the previous post. Which is not necessary IMO.

JoomlaCommunity
09-05-2009, 11:29 PM
This is true but only if you have set the option

Bump Thread
Update the timestamp of a doublepost. to NO,

It will trigger the phrase:
---------- Post added 6 september 2009 at 02:15 ----------
On top the original date and time is shown

We sure would go for that option but, as we tested, then the new post will not appear in the list unread posts. This will only happen if we set the option Update timestamp of a doublepost to YES.

If we choose this option, the phrase will show only the time of the new and the previous post like I posted before. I have tested this with older posts of a different date, there is no date shown in the phrase. Also tested it with a new install on a testforum, same result, no date is shown. Is there an option that I am missing?

------------------------EDIT----------------------

It seems to be a problem with the forum language that is set.
If the forum language is set to original english, the date is shown, our forum is set to Dutch.
Maybe somebody else recognizes this and can tell how to solve this?

----------------------EDIT-2--------------------------

It seems that if there is a locale set the date will not show in the phrase as I described before.
If I leave the locale empty and all date overrides it works like it should.

phatguy88
09-23-2009, 09:01 PM
Sorry if this was asked already. When it automerges the doublepost the date it uses is the servertime. I am 7 hours behind. How do I get it to show based on my time settings?

Paul M
09-23-2009, 11:56 PM
You dont, there is no timezone facility in the seperator functionality.

phatguy88
09-24-2009, 12:05 PM
So I might as well delete this mod then. =/

Is there a similar mod with that feature?

Paul M
09-24-2009, 04:53 PM
Your choice. There is no released mod that does it.
I think the only other DP mod does something like "Posted x days, hours, mins ago" rather than the actual date and time.

TheChaosFactor
09-26-2009, 10:43 AM
That's awesome. Thank you.

imported_silkroad
09-29-2009, 10:53 AM
Hi Paul.

Great mod, BTW.

We are running version 3.8.005 Prevent and plugin DoublePost 2 consistently causes a number of slow MySQL queries from this mod in the mysql-slow.log

We have been tracing a possible database deadlock issue and have been using the mysql-slow.log to look at our slow queries.

Did I miss any discussion about this in the thread?

Any thoughts?

imported_silkroad
09-29-2009, 04:50 PM
FYI, Paul... here is an example slow query that we see in the logs:

# Query_time: 7 Lock_time: 0 Rows_sent: 1 Rows_examined: 26769
SELECT t.forumid, t.threadid, t.title, t.replycount, t.lastposter, t.lastpost
FROM thread AS t
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = t.threadid AND type = 'thread')
WHERE forumid = 30 AND lastpost > 1021388850 AND visible = 1 AND open <> 10
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
LIMIT 1;

Paul M
09-29-2009, 05:14 PM
That query is not from this modification.

imported_silkroad
09-29-2009, 05:25 PM
Thanks Paul. Sorry for the confusion. I'll keep searching!

Spenser
10-13-2009, 11:26 AM
If more than one guest answers, the posts are merged, too. Is there a way to check the ip-address to prevent replies from different guests will be merged?

Paul M
10-13-2009, 11:49 AM
Hmmm.

This was never designed with guest posting in mind, since that is very rare.

I'll have a look when I can to see if it can be modified to take that into account.

Gav-n-Tn
11-02-2009, 06:02 AM
So far so good. Looks like a VERY helpful mod.

Sidewindr
11-29-2009, 03:19 PM
elieve there may be an issue with the Automerge for forums where posts go into a moderation queue... I think maybe it is using the aproval date not the post date .. see this thread..

http://www.ls1.com.au/forum/showthread.php?t=128872

For some reason the OP and thread starter has the #2 post after a merging even though the post above it was posted after the OP. The thread should consist of 3 posts but it has merged the first and third posts thinking its a double post.

Any idea why this is happening ?? :confused: :D

Paul M
11-29-2009, 04:46 PM
Any idea why this is happening ?? :confused: :D
Thats how its programmed. It ignores moderated posts.

BBF
12-02-2009, 08:46 AM
does it work with vb4?

Paul M
12-02-2009, 11:47 AM
No.

bhanuprasad1981
12-03-2009, 07:08 AM
i had issue with my quick reply , using quick reply leads to blank page :( i removed this mod everything back normal :( maybe some conflicts with other mods ?

Pessimist
12-14-2009, 11:33 AM
Paul M, this hack not work properly with vBShout. Can you fix this problem?

Paul M
12-14-2009, 04:48 PM
Paul M, this hack not work properly with vBShout. Can you fix this problem?
Sorry, no. I cannot account for other modifications.

Also, I will not be making any more changes to any of my 3.x modifications.

Alecsmith
12-16-2009, 05:38 PM
any idea this add will available for VB 4

SledgeHead
12-21-2009, 10:56 PM
I too would love for this to work with VB 4.0. It is by far my favorite mod ever.

shofolofo
12-26-2009, 10:31 AM
It would be great if you can do a similar one with vb 4.0

SuperGLS
12-30-2009, 02:25 AM
This is probably the most requested thing since my forum has switched to vB4 a couple days ago. Very much anticipating this one.

Zaiaku
01-01-2010, 07:25 PM
I just tried this with vb 4 its working just fine. All I had to do was remove the max version of the mod. Will do some more testing just to make sure.

Was able to test this with 4 post in a row. All combined just fine.
Ajaxed Enaled. VBSEO enabled. Using Quicc Replay!

racingsolution
01-02-2010, 03:36 AM
Just to help out others, the Inferno Shoutbox was causing this mod to not function properly on my forum.. I had to completely uninstall the shoutbox (not just disable) in order to get it to work

Zaiaku
01-02-2010, 09:38 PM
Work on a vb4 test site but broke on a vb4 live site. :(

SABRSox
01-05-2010, 10:00 PM
I know Paul is busy porting his modifications over to vB4, but hopefully this one is near the top of his priority list. It's been a life-saver on my forum.

Paul M
01-06-2010, 12:13 AM
Unfortunately, its last on my list, as it involves javascript, which I am not very knowledgable about, and is also not likely to be an easy change as the quick reply system has changed in 4.0.

Ombra
01-06-2010, 02:54 PM
I think the only other DP mod does something like "Posted x days, hours, mins ago" rather than the actual date and time.
I would prefer this. Members say the time on the automerge being different from timestamp they see on the posts is confusing. Is there an easy way to edit the phrase to say "Posted x days, hours, mins ago" instead?

Paul M
01-06-2010, 07:50 PM
No, you would need to edit the code to actually calculate those values.

Zaiaku
01-06-2010, 08:52 PM
Unfortunately, its last on my list, as it involves javascript, which I am not very knowledgable about, and is also not likely to be an easy change as the quick reply system has changed in 4.0.
I was able to get this to work easily on vb4. It's been running on my site for since about 30mins after that post. It works great!

SABRSox
01-06-2010, 09:46 PM
I can't even get it to install, let alone work on vb4.

Paul M
01-07-2010, 01:19 AM
I can't even get it to install, let alone work on vb4.
Correct.

The person above edited the dependancies in the xml file in order to install it.

chrisvonc
01-07-2010, 02:05 AM
Works like a champ, thank you!

RedHacker
01-07-2010, 09:01 AM
Paul M it is worked with vBulletin 4 .....?

Paul M
01-13-2010, 10:51 PM
No, it doesnt work properly on vbulletin 4.

First of all, unless you fudge the product file, you cannot install it on 4.0

However, if you do install it on 3.x , then it will only work in a fashion, in so much as it will merge the posts, however the [ajax] display code will not work, so you will get multiple copies of the post displayed.

JFYI, Im currently testing a 4.0 version.

chrisvonc
01-13-2010, 11:05 PM
however the [ajax] display code will not work, so you will get multiple copies of the post displayed.

JFYI, Im currently testing a 4.0 version.
I saw those same issues on a 4.0.0 install with no products added when ever I would quote someone. I had to disable ajax to correct that

s0lidgr0und
01-15-2010, 11:53 AM
Thanks for your hard work, Paul.

boggseric
03-01-2010, 11:58 PM
Quick question, I am just looking to prevent double posts from ajax lag, am I correct in thinking that if I take out the two '* 60' occurrences in plugin #2 the time value will then be in seconds? I really don't care if the users spam I just want to detect exact duplicate posts and stop them.

Paul M
03-02-2010, 10:49 AM
Quick question, I am just looking to prevent double posts from ajax lag, am I correct in thinking that if I take out the two '* 60' occurrences in plugin #2 the time value will then be in seconds?
Yes, that would be correct.

stardotstar
03-24-2010, 10:02 PM
Hi Paul, thanks for this mod! I am a big fan of your work and understand how busy you are especially with porting to 4 - (I havn;t taken the plunge yet).

I really only need this function for my for sale/classifieds forum; how difficult would it be to change the mod so that instead of a list of "excluded" forums you could define only certain "included" forums.

ie I have lots of forums and sub forums and only one of them needs this hack - well actually the entire site may ultimately benefit from it but the problem with people bumping for sale threads is not one that will be solved with 120min limit - I may need to set it to several days and for the main forums that will be possibly a bit long - instead I would like to set the limit very high and apply "anti-bumping" only to my forsale forum.

I ask this only if you can conceive a way of doing it easily! (manual editing would be fine from my POV)

Again, thanks for sharing your work and being so prompt with replies and support! I don't know how you do it - but I guess it has something to do with the Dr. Pepper; so I might try that some time ;)

Will

Paul M
03-25-2010, 12:15 PM
Drop me a PM and I'll have a look in the next few days to see if that would be an easy edit.

stardotstar
03-30-2010, 01:34 AM
Excellent mod, great support, thanks Paul!

Final question (I hope) the forum exempt list applies only to the specified forums IDs does it not? ie to exempt a child forum it must be explicitly listed?

Thanks Paul,
Will

Paul M
03-30-2010, 11:45 AM
Yes, every forum must be individually specified.

iRO Wiki
04-02-2010, 06:05 PM
Excellent! The only thing I miss is the edit notice about the posts being merged but I can live with that.

Thanks a bunch!

imported_silkroad
04-03-2010, 05:35 PM
Hi Paul,

I noticed you have two templates that only have JS in them:

editor_clientscript
editor_clientscript_pdp

Can we include this with the other JS as follows:

vbulletin_textedit.js (https://vborg.vbsupport.ru/view-source:http://ubuntu.unix.com/clientscript/vbulletin_textedit.js?v=384)

Or perhaps in another

<script type="text/javascript" src="http://ourcdn.site.com/clientscript/that_code_in_the_tempate.js (https://vborg.vbsupport.ru/view-source:http://ubuntu.unix.com/clientscript/vbulletin_textedit.js?v=384)"></script>

... instead of including it via a template?

It is OK?

Thanks

CvP
04-04-2010, 08:39 AM
No, it doesnt work properly on vbulletin 4.

First of all, unless you fudge the product file, you cannot install it on 4.0

However, if you do install it on 3.x , then it will only work in a fashion, in so much as it will merge the posts, however the [ajax] display code will not work, so you will get multiple copies of the post displayed.

JFYI, Im currently testing a 4.0 version.

Paul, this is the single most required mod for any forums.
even if you can not completely port it to vB4, just the auto merging double/triple posts will be a life saver.
All other feature can be disabled until you get time. pretty please :o

djbaxter
04-04-2010, 01:45 PM
Paul, this is the single most required mod for any forums.
even if you can not completely port it to vB4, just the auto merging double/triple posts will be a life saver.
All other feature can be disabled until you get time. pretty please :o

The 4.x version was released in January and last updated in March: https://vborg.vbsupport.ru/showthread.php?t=233234

CvP
04-06-2010, 12:56 PM
The 4.x version was released in January and last updated in March: https://vborg.vbsupport.ru/showthread.php?t=233234

thanks.

Paul, please add 4.x version's link somewhere for nooblets like me :)

djbaxter
04-06-2010, 01:43 PM
thanks.

Paul, please add 4.x version's link somewhere for nooblets like me :)

If you're looking for add-ons for vBulletin 4.x, you might have more success by looking in the vBulletin 4.x Modifications forum: https://vborg.vbsupport.ru/forumdisplay.php?f=244

Paul M
04-06-2010, 02:04 PM
Also simply look in a coders profile.

CvP
04-06-2010, 06:53 PM
between the mod details and the posts, there's always this "similar mods" section.
looking for 4.x version of a 3.x mod in there is the easiest way...at least up until now.
No idea why that section is just missing from this mod page!

oldengine
07-23-2010, 04:39 AM
Excellent Paul - I just updated to vBulletin 3.8.6 Patch Level 1 and installed this one. I've needed it for years!

I must admit that I was chasing my ass around the corner dealing with vbulletin_quick_reply.js but that's because I read these mod threads from post #1 on instead of from the tail end forward. No need to edit the .js file!

:up: :D

JacquiiDesigns
12-06-2010, 10:30 AM
Thanks for this update share ==> Nice!

Jacquii.

mholtum
12-06-2010, 01:09 PM
Thank you, installed. Works great!

dpatel304
01-20-2011, 05:22 PM
Awesome mod. Is there a version of this that is compatible with 4.1.1? Thanks in advance.

djbaxter
01-20-2011, 05:33 PM
Awesome mod. Is there a version of this that is compatible with 4.1.1? Thanks in advance.

Yes. See https://vborg.vbsupport.ru/showthread.php?t=233234

krimesis
01-31-2011, 12:14 PM
I can not set this plugin, users can write to the same post , after a few hours!
vB 3.8.6

koby411
07-08-2011, 02:00 PM
Will this work with no issues on vB 3.7.0 ?

Paul M
07-08-2011, 04:33 PM
Its never been tested on 3.7, so I have no idea.

koby411
07-12-2011, 07:25 PM
Ah, alright. ty.

I'll test it out.

I had to edit plugin just to be able to install it.

Paul M
07-12-2011, 09:47 PM
I had to edit plugin just to be able to install it.
Indeed, you would need to edit the dependancies.

PAKIDIL
09-15-2011, 03:30 PM
Will this work with 3.7 ?

PAKIDIL
09-15-2011, 03:31 PM
okay read the above answer and tried on 3.7 :

1. This product is not compatible with version 3.7.2 of vBulletin. (Compatible starting with 3.8.0 / Incompatible with 3.8.99 and greater)

gabrielt
09-19-2011, 11:40 PM
Hi,

The moderators from our fourms uncovered a bug with your mod. If one of the messages has an attachment, the messages won't merge. Are you aware of that?

Thanks,
Gabriel.

Paul M
09-20-2011, 10:22 AM
Yes, its not a bug, that's by design. :)

gabrielt
09-20-2011, 01:28 PM
Is there a way to change this?

Paul M
09-20-2011, 02:39 PM
Nope.

Konstantinos
09-20-2011, 03:31 PM
bug with vb3.8.7 when this is turned on, users are not able to see threads in forums where (can see other threads is set to NO) meaning in forums where they can see their own threads, the user gets a blank page when he tried to view his thread, i had to disable plugins one by one to find out which one causes it

d0zer
12-07-2011, 12:01 PM
thanks you paul m :)

oxblood12
12-28-2011, 02:22 PM
gracias, esta bueno

Silver_2000_)!
05-16-2012, 12:29 PM
Hi Paul, thanks for this mod! I am a big fan of your work and understand how busy you are especially with porting to 4 - (I havn;t taken the plunge yet).

I really only need this function for my for sale/classifieds forum; how difficult would it be to change the mod so that instead of a list of "excluded" forums you could define only certain "included" forums.

ie I have lots of forums and sub forums and only one of them needs this hack - well actually the entire site may ultimately benefit from it but the problem with people bumping for sale threads is not one that will be solved with 120min limit - I may need to set it to several days and for the main forums that will be possibly a bit long - instead I would like to set the limit very high and apply "anti-bumping" only to my forsale forum.

I ask this only if you can conceive a way of doing it easily! (manual editing would be fine from my POV)

Again, thanks for sharing your work and being so prompt with replies and support! I don't know how you do it - but I guess it has something to do with the Dr. Pepper; so I might try that some time ;)

Will
Im looking for the same thing for the same reasons

Is the change implemented in the current code ?

Thanks for all the cool mods over the years ...

Paul M
05-17-2012, 09:59 AM
No, you can only exclude forums.

Silver_2000_)!
05-18-2012, 03:23 PM
any easy way to export list of forum ids ?

Paul M
05-19-2012, 12:37 PM
Its a text box, just copy / paste.

Silver_2000_)!
05-19-2012, 01:51 PM
We have over a hundred forums - I dont see any text boxes in the VB admin interface that I can grab all 100 forum ids from ....

Maybe I missing something but the only place I see the forum id is in the link when I hover over the forum name

I was hoping there was a solution that didnt include phpmyadmin or a sql query

Paul M
05-19-2012, 06:23 PM
We have over a hundred forums - I dont see any text boxes in the VB admin interface that I can grab all 100 forum ids from ....
There isnt one, your question was to vague for me to realise thats what you were referring to. :cool:

You would need to run a simple query to get them.

select group_concat(forumid) from forum

Parker123
07-19-2012, 12:05 PM
Great mod! Thanks for this!!

spider58
09-12-2012, 06:58 PM
really nice. thanks.

Bro_Joey_Gowdy
11-21-2012, 12:30 AM
Seems to be working fine for 4.0.0 PL8 at the moment.

TTayfun
04-28-2014, 05:21 PM
how can i increase this ---------- ten to 15?

Paul M
04-28-2014, 10:51 PM
Increase what exactly ?

Pcwolfx?
01-04-2016, 08:08 AM
hi Paul. is it working on other vb3 series? for example 3.6?

TTayfun
12-03-2017, 04:51 PM
why did you delete files?