PDA

View Full Version : Prevent Doubleposting


Pages : [1] 2 3 4 5

Xenon
20 Sep 2005, 13:06
When a User posts into a thread where he already has the lastpost, no new post will be added. The lastpost of him will be edited and the new text is put after his first message.
This will be done until the old post is older than 24 hours (you can change this timespan yourself:))

Nothing more to say about that, it's the quite same as my vb3.0 version.

This Mod should run with 3.6 as well


** Please make sure you ENABLE this product after you install it - it is disabled by default. **

For vb 3.8 there are two alternative updates ;

http://www.vbulletin.org/forum/showthread.php?t=203705
http://www.vbulletin.org/forum/showthread.php?t=204177

Boofo
20 Sep 2005, 13:15
No hook for this yet? ;)

Well, I'll give it a shot. Just curious though, what it the "not crucial" bug? ;)

EDIT: How do we allow Admins to bypass it?

Andreas
20 Sep 2005, 13:16
I somewhat doubt anyone except vBorg has functions ismod() and is_hack_forum() ;)

Xenon
20 Sep 2005, 13:21
damn ^^

Boofo
20 Sep 2005, 13:22
Maybe I should wait until those are taken out? ;)

Xenon
20 Sep 2005, 13:23
already done ;)

well you see which boar i used as testboard ^^

Xenon
20 Sep 2005, 13:23
Just curious though, what it the "not crucial" bug?
bypassing the attachment limit per post

Boofo
20 Sep 2005, 13:29
Ahhh, ok. That can wait. What about the admin bypass? ;)

Paul M
20 Sep 2005, 13:34
I somewhat doubt anyone except vBorg has functions ismod() and is_hack_forum() ;)LOL.

Dan
20 Sep 2005, 13:41
Yay :D I'll use this as soon as some of the other hacks are ported over.

/me clicks install

Andreas
20 Sep 2005, 13:45
Hmm, I think i'll play around a bit with this when I got time ... want this a Plugin only :)

nexialys
20 Sep 2005, 13:48
oh, on my side i have added :
$vbulletin->options['doublepost_automerge_timespan'] = number of minutes prefered
$vbphrase[posting_doublepost_msg] = Automerge Double Posting

... good to have if you don't like to edit your hacks all the time!

permission would be good too... "bypass per usergroup.." ;) ... and per forum...

anyway, i'm god, i can do that myself.. lol

Boofo
20 Sep 2005, 13:54
oh, on my side i have added :
$vbulletin->options['doublepost_automerge_timespan'] = number of minutes prefered
$vbphrase[posting_doublepost_msg] = Automerge Double Posting

... good to have if you don't like to edit your hacks all the time!

permission would be good too... "bypass per usergroup.." ;) ... and per forum...

anyway, i'm god, i can do that myself.. lol

When you get the bypass for admins and mods please let me know. I have this line but I don't think it's right for 3.5. ;)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Kirby, if you get it going as a plug-in, please let me know. ;)

Snake
20 Sep 2005, 14:03
Yay I have been waiting for this thanks man! :D

Xenon
20 Sep 2005, 14:05
@Bob: it's



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



;)

and right now it is not possible as plugin only without adding a bunch of code, and i admit i was too lazy to do so ;)

Boofo
20 Sep 2005, 14:15
Thank you, sir. ;)

You got the right idea, Stefan. Make the boar you used as a testboard do the plug-in. LOL

nexialys
20 Sep 2005, 14:20
ok, i'll be VERY generous here, and release a hack already for this tool...

a Per Forum Activation of the Automerge...

i add the prod in the html tag here... to set Per Forum if the Automerge is active or not, and here is the modification for the hack itself:

in the hack, FIND:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

and REPLACE BY:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


so Xenon, you know what to do with this... ;)

Boofo
20 Sep 2005, 14:23
This is what I get when I click on your xml link. What gives, buddy? LOL



The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh (javascript:location.reload()) button, or try again later. End tag 'plugin' does not match the start tag 'plugins'. Error processing resource 'http://www.vbulletin.org/forum/attachme...

</plugin>----^

nexialys
20 Sep 2005, 14:29
This is what I get when I click on your xml link. What gives, buddy? LOL
bah, no biggy, some don't like xml files.. lol

post updated...

Boofo
20 Sep 2005, 14:33
bah, no biggy, some don't like xml files.. lol

post updated...

The file saved fine as a "save target as" right click. Just messing with 'ya. ;)

Boofo
20 Sep 2005, 14:35
bah, no biggy, some don't like xml files.. lol

post updated...

Is this set on or off for each forum by default?

nexialys
20 Sep 2005, 14:36
Is this set on or off for each forum by default?
by default it is a "ON" setting, like stated in the SQL query.. DEFAULT '1' you can change that before installing btw, or do it manually!

Boofo
20 Sep 2005, 14:40
I've had some of those Default 1's turn out to be off before. That's why I was checking. ;)

It should be on by default, so we are all set then. Although I would never see a reason to turn it off for a forum, but maybe that's just me. ;)

Xenon
20 Sep 2005, 14:47
lool, an addon for a betaversion of a modification of a software which is in RC state ^^

thx nexialsys :)

nexialys
20 Sep 2005, 14:56
lool, an addon for a betaversion of a modification of a software which is in RC state i can even make a branch of it, to follow the path.. lol

Yorixz
20 Sep 2005, 19:44
Well, I'll be the first to complain I guess ;) When someone uses the Quick Reply box with AJAX you see the "Please wait.." text for a second or what and then nothing happens; no refresh or anything so you don't see the text being added - which will cause more double posting (tries) most likely ;)

Jedi Blaze
20 Sep 2005, 19:57
I somewhat doubt anyone except vBorg has functions ismod() and is_hack_forum() ;)

The board I admin at has the function isbbstaff()

To stay on topic, glad to see this ported. ^^

Xenon
20 Sep 2005, 21:04
Well, I'll be the first to complain I guess ;) When someone uses the Quick Reply box with AJAX you see the "Please wait.." text for a second or what and then nothing happens; no refresh or anything so you don't see the text being added - which will cause more double posting (tries) most likely ;)

not that i like AJAX very much ^^

right now it dosn't work on the vb.org testboard, but i'll look at it when i enable it :)

007
20 Sep 2005, 21:21
Have been excited for this one. Thansk for getting it going Xenon! :)

I will probably wait to see if it can be done as a plugin though, or at least until some AJAX and other bugs are sorted. :)

*rests finger over the install button and rubs, but doesn't quite press yet*

lol

Jenta
20 Sep 2005, 23:55
kind of a show stopper if the behaviour exibited using quick reply is as stated

dont think theres a way around it. stuff like edited by is a known limitation of ajax that requires a page refresh

utw-Mephisto
21 Sep 2005, 01:28
Well, I'll be the first to complain I guess ;) When someone uses the Quick Reply box with AJAX you see the "Please wait.." text for a second or what and then nothing happens; no refresh or anything so you don't see the text being added - which will cause more double posting (tries) most likely ;)

Me 2 :D

Xenon
21 Sep 2005, 02:18
yeah, i have to look at the ajaxprocess, so it updates the last post instead of just doing nothing until a reload.

the hack itself works as designed, just Ajax doesn'T ^^

nexialys
21 Sep 2005, 02:43
for the ajax thing, it's kinda tricky... the quick-reply have to be interacting with the Edit ajax of the last post if you are the author of that one, so if you post from the quick-reply, it will be connected to the EDIT of the last post you've made instead of posting a new one with the quick-reply ajax...

the problem with that situation, or at least the logic behind a problem, is that if someone else posts when you use the quick-reply, your post will be merged with your last post, even if someone posted between the two... logic applyed tell that it's not a problem, because if you use the quick-reply, you don't know if someone else reply afterward, so you don't actually reply to that last one...

someone is lost here?!

;)

Xenon
22 Sep 2005, 15:07
i'll see with what i can come up :)

007
23 Sep 2005, 09:28
vBulletin should just have a function built in to autoban doubleposters. That would make everything so much easier for us all! lol

nexialys
23 Sep 2005, 17:43
autoban doubleposters ?!... i think you did not quite understood the goal of this hack... but anyway...

Yorixz
28 Sep 2005, 17:54
yeah, i have to look at the ajaxprocess, so it updates the last post instead of just doing nothing until a reload.

the hack itself works as designed, just Ajax doesn'T ^^

A real admin; always blame the software ;)

Electronic Punk
29 Sep 2005, 13:46
Definatly keeping an eye on this one :)

garrynewman
29 Sep 2005, 23:08
I fixed the AJAX process by adding..



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



at the bottom of the "if ($isdoublepost)" before the "} else".

You need to add a new phrase "redirect_automerged" too.


edit: It works but is printing the message twice.

MentaL
30 Sep 2005, 14:46
Working for gold?

Snake
30 Sep 2005, 15:23
Perhaps. But it's worth a try.

VaaKo
01 Oct 2005, 20:39
I'm having a problem
when I write a new post, I cannot see it merged until I refresh
I cannot see the message at all until I refresh

Kirk Y
01 Oct 2005, 21:59
We know... if you'd read earlier posts the AJAX isn't cooperating with this. Xenon is on holiday... so there won't be an update until he gets back. (Whenever that is...)

Mr Peabody
01 Oct 2005, 22:32
Cheers for the hack, best thing since sliced bread :)

ozmazdaclub
03 Oct 2005, 23:47
Has the attachment been modified to include the fixes?

Fenriz
04 Oct 2005, 12:16
I'm having a problem
when I write a new post, I cannot see it merged until I refresh
I cannot see the message at all until I refresh
Ja, the same problem. Waiting for Xenon!

JohnBee
05 Oct 2005, 02:55
Also waiting for ajax compatibility fix :D - loved this mod under 3.0.x

ProperMethodz
05 Oct 2005, 05:09
I fixed the AJAX process by adding..



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



at the bottom of the "if ($isdoublepost)" before the "} else".

You need to add a new phrase "redirect_automerged" too.


edit: It works but is printing the message twice.
ahem coders... :)

Installed.

I'm no coder.. barely an admin. I really want to get into this coding stuff.. :) It's fun. OK..

So, I'd like to find a way to make a 24 hour limit on it in order to allow for thread bumping. But, I'd like to tag along for the ride on how it was found and how you code it. :)

Granted that some threads should be deleted, I think that some just go missed.

csidlernet
05 Oct 2005, 05:12
/me installs

ProperMethodz
05 Oct 2005, 09:07
* csidlernet installs
lol... we've been following each other around this site all day. Our sites are going to have all the same hacks :)

CBE
05 Oct 2005, 14:49
when i post two replies ... it merged them .. but i must make REFRESH to show the post after megeing,,,,

what shall I go ??

JohnBee
05 Oct 2005, 15:07
There are many references to this throughout the thread, the hack is not 100% functional atm. I uninstalled it until an offixial fix is issued.

Xenon
05 Oct 2005, 19:03
as you can see this hack has the beta flag still activated ;)

i will include the AJAX fix when i tested it myself, i think during this week i will be able to do so (as i have to fix it until the upgrade of vb.org it has #2 on my to do list :))

JohnBee
05 Oct 2005, 19:10
Great news! looking forward to it, I love this mod, my forum has learned to live with it and since 3.5 complaining that can't abuse the quick reply feature :p

thanks for your hard work on this MOD btw

ozmazdaclub
07 Oct 2005, 09:09
waiting on the fixed one Xenon...Take your time... ive lived without it for now so a few more days/weeks won't hurt...

Xenon
07 Oct 2005, 12:46
i hope it won't take months ;)

ozmazdaclub
10 Oct 2005, 11:35
Any news/updates Xenon?

Xenon
10 Oct 2005, 12:59
nah, the AJAX isn't doing what it should.

right now i found a possibility to dublicate posts, not that i wanted to achieve that ^^
disabling Ajax would help ^^

hotrod1
10 Oct 2005, 16:12
Nice feature, thanks a bunch!

mtha
11 Oct 2005, 02:04
for the ajax thing, it's kinda tricky... the quick-reply have to be interacting with the Edit ajax of the last post if you are the author of that one, so if you post from the quick-reply, it will be connected to the EDIT of the last post you've made instead of posting a new one with the quick-reply ajax...


how about just not letting people to "quick reply" if the last post belong to him/ so you can get rid of the AJAX problem :)


I have an idea images/newsm/happy.gif

If someone post in the same thread in last X minutes (or the last post belong to him), the reply button will be disabled or link to editpost, that editing the last post that he made in the thread?

---------

and amazingly, it can easily be done by editing template.

a few ($threadinfo['lastposter'] != $bbuserinfo['username']) condition on reply link/quick reply will do the job images/newsm/happy.gif



?question?

can we extend the condition, so that only posts sorter than xx lines or xx characters, are merged. Longer posts are stays seperated :)

Xenon
11 Oct 2005, 12:59
can we extend the condition, so that only posts sorter than xx lines or xx characters, are merged. Longer posts are stays seperated

those things can be added easily

you just have to manipulate the if condition when a post is considered as doublepost just add a AND strlen($post[message]) <= 30 and just posts shorter than 30 chars will be merged.

Boofo
11 Oct 2005, 13:12
What post length would be a good length to set this at?

Xenon
11 Oct 2005, 13:40
hmm, personally i'd say up to 5 lines around 400 chars would be a good lenghth, but that depends on personal views..

Boofo
11 Oct 2005, 14:21
hmm, personally i'd say up to 5 lines around 400 chars would be a good lenghth, but that depends on personal views..

So it would look like this with that added, right?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Xenon
11 Oct 2005, 16:30
apart from wrong placed brackets, yes ;)

Boofo
11 Oct 2005, 16:39
You mean like this?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Xenon
11 Oct 2005, 17:46
yep :)

Boofo
11 Oct 2005, 17:58
Thank you, sir. ;)

If you can figure out a way to do a plug-in on this (product), I could make settings for the usergroups and string length. ;)

mtha
11 Oct 2005, 18:53
look like boofo got right into the idea.

Thank you very much Xenon




Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Boofo, use



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------






well, should you exclude Unregistered Users from the post, or checking IPs for those unregistered too? otherwise, you wont know "which unregistered user" post what :)

Xenon
12 Oct 2005, 13:06
Unregistred users use usernames as well afaik, they are just not registred.

Boofo
12 Oct 2005, 16:22
look like boofo got right into the idea.

Thank you very much Xenon




Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Boofo, use



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Good idea, thanks! ;)

mtha
12 Oct 2005, 19:34
Unregistred users use usernames as well afaik, they are just not registred.

It doesnt really matter to me much, but there is a case when "guest" dont change username, it will use default one "Unregistered User" as username.
Other can post with the same default "Unregistered User" too, right?

Xenon
13 Oct 2005, 13:39
yep, you are right..

hmm, is it worth to add an extra check there?
i mean, how many boards allow unregistred users to post at all?

Devii
13 Oct 2005, 23:01
*hopes this is a plugin soon* I miss it so.

Snake
13 Oct 2005, 23:20
Yeah me too, I can't wait for it. :D

mtha
14 Oct 2005, 00:23
yep, you are right..

hmm, is it worth to add an extra check there?
i mean, how many boards allow unregistred users to post at all?

:) yeah, it's not really worth it,

just as an additional to Boofo query above, I use:

should it be harder or something? i


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



for me, I have some box for troubleshooting, and sometime, member (or guest) keep posting alot of questions in there :).


anyway, it's optional.

Xenon
15 Oct 2005, 12:01
that's ok so.

you might also consider to disalbe it on some forums maybe..
like vb.org disabled it on the release forums..

ozmazdaclub
16 Oct 2005, 01:01
is this no auto updating the last post using ajax or is it still broken... if fixed are the instructions updated?

JohnBee
16 Oct 2005, 02:17
I cannot confirm that the ajax is fixed either, I really enjoyed this hack when it was on 3.0.x I hope they get fixed soon! :D

Boofo
16 Oct 2005, 10:27
that's ok so.

you might also consider to disalbe it on some forums maybe..
like vb.org disabled it on the release forums..

How would you disable it in certain forums?

Xenon
18 Oct 2005, 12:45
just manipulating the conditions ;)

nope, the damn ajax still doesn't do what it should...

talkhost
18 Oct 2005, 17:04
This mod would be really useful for my forum. I hope it's released as a plugin soon..

Snake
18 Oct 2005, 20:09
just manipulating the conditions ;)

nope, the damn ajax still doesn't do what it should...

Don't give up yet. I know you can do it easily. :D

nnjj.net
24 Oct 2005, 22:32
is it working on 3.5 Gold?

Xenon
24 Oct 2005, 23:01
apart from two little bugs mentioned before for RC3 as well, yes it works

ozmazdaclub
24 Oct 2005, 23:01
any idea on when the bugs will be resolved?

Xenon
24 Oct 2005, 23:19
nope, i am too busy with rl to work on any hacks these days

nnjj.net
25 Oct 2005, 00:05
so, we will wait I think for new version of this hack :)

sbp
25 Oct 2005, 13:21
Thank you Xenon. http://sbp777.homestead.com/files/beerchug.gif

Ranma2k
26 Oct 2005, 10:58
nope, i am too busy with rl to work on any hacks these days

Can't we help you in any way ..
i'm trying to fix some issues with in my board and i'm playing around with it :)

Xenon
27 Oct 2005, 00:56
i won't say no to any help ;)

RL is my priority these days, but if i find time i will hack, but most of the free time is going into behind the scenes work as well ;)

coding is a luxus ;)

Snake
27 Oct 2005, 20:50
What about in weekends? I'm pretty sure you've got enough time to fix every bug in the hack on weekends.

Xenon
27 Oct 2005, 22:51
i have to prepare a lot of things in the weekends.

and sometime i want to have free time as well ;)

as said, the hack right now works, just ajax doesn't so it's not such a big deal waiting, isn't it?

Greebo
31 Oct 2005, 16:05
Just installed - works great. The QR not refreshing (Ajax) is a minor nit at best. :)

Whenever you can get it fixed, as long as you update the hack info so I get an email about it, I'm cool. I can totally understand the need for free time. Don't let the pushy "give up your life to serve MY needs" types get you down. :)

nnjj.net
01 Nov 2005, 16:54
its not working well with 3.5 Gold with the Quick Reply.
it doesn't show the replay unless you refresh all the page when using the Quick Reply

hope to find a soultion for that

thanks a lot

nnjj.net
01 Nov 2005, 16:55
also if there is any chance to have it as Product well ve great

GamerJunk.net
01 Nov 2005, 20:00
VBulletin.org isn't updated to 3.5? Cuz the quick reply works fine on here

Good hack, installed, hope you can get that AJAX part fixed but other wise I love it!

Xenon
01 Nov 2005, 21:18
nope, vb.org has not yet upgraded

Snake
02 Nov 2005, 08:59
...and will be upgraded soon.

Xenon
02 Nov 2005, 21:35
i hope ^^

ggiersdorf
03 Nov 2005, 00:01
Any fix for the quick reply box yet?!

VBUsers
03 Nov 2005, 08:31
xenon should i install this on 3.5.1 or wait for you to update this hack. i really need it for my site.

Xenon
03 Nov 2005, 12:19
i'd suggest to install this.

an easy help would be to turn off QR's Ajax which should be possible in 3.5.1.

as said the hack itself is working, it's just the integration of Ajax which doesn't

VBUsers
07 Nov 2005, 01:05
thanks xenon works like a charm

jribz
07 Nov 2005, 04:13
Installing, thanks.

AZone
08 Nov 2005, 15:21
Hi! Thank you for this hack!
I have a question: after doubleposting message is edited, and remains marked as old message. I remember this hack for vb 3.0.x - there message was remarked as new after double post was posted. Can this issue be solved?

VBUsers
08 Nov 2005, 18:05
Hi! Thank you for this hack!
I have a question: after doubleposting message is edited, and remains marked as old message. I remember this hack for vb 3.0.x - there message was remarked as new after double post was posted. Can this issue be solved?


+1 ill take this as well

Xenon
08 Nov 2005, 22:26
i may readd this to a later version when i have the time to work on the hack again

keymistress
14 Nov 2005, 07:16
installed and it works great but i'm also looking forward to getting it work for 3.5.1's quick reply... ;)

Vizionz
17 Nov 2005, 08:49
this is the hack i needed :) that ajax refresh kinda sucks though but oh well this will work for now :) thanks for doing it up

iamnofear
18 Nov 2005, 00:06
it can't prevent 2 post if user click "post" 2 times quickly

Bounce
18 Nov 2005, 01:42
Installed and working , notice the 2 bugs but still does what its ment too.

just posted 5 times rapid and all automerged

Thanks

Xenon
18 Nov 2005, 18:29
it can't prevent 2 post if user click "post" 2 times quickly

erm?
it has nothing to do how fast you click the post button, it will always merge the two posts, except, you have a really slow server, and the db changes are not yet done, until the new post is made, but then you have bigger problems than two not merged posts.

you should consider a server change then.

Exernon
21 Nov 2005, 16:40
It doesn't auto-refresh the post.

Cyricx
21 Nov 2005, 17:26
Hmmm, that could be a work around for the ajax couldn't it?

If its in the double posting function have it force a refresh when its done? Which would skip the whole ajax thing.

Then when its not doing the merge ajax would work normally.

Dead End Society
21 Nov 2005, 17:46
I need this hack to work with ajax man....it's a pain moderating a busy forum without it.

Xenon
21 Nov 2005, 22:49
that could be a work around for the ajax couldn't it?

yep, but my last tries that way leaded to double merging, , not really an idea why, but it was that way ^^

Snake
22 Nov 2005, 13:08
Xenon it has been months now and you still haven't fixed the AJAX issue. What's the problem man?

Xenon
22 Nov 2005, 17:45
Time?

i have more important things to do, then breaking my head on that problem

Exernon
23 Nov 2005, 03:06
Maybe this is why this hack ain't supported...

^_^

Cyricx
23 Nov 2005, 17:29
double merging, you mean like it duplicated what you were merging into the post and put it twice?

Xenon
24 Nov 2005, 19:07
exactly

i found it a bit funny ^^

Paul M
25 Nov 2005, 09:57
Hmm, well I installed this on my test forum last night, and yes, it has (had) two problems ;

1. The post dateline is not updated on a merge, so it doesn't get seen as unread.

2. The one everyone complains about - no ajax refresh (unless you alter the time stamp, then you get two versions of the same post).


So, since I wanted this on our forum I have fixed both locally - this is what I have done.


1. To fix the timestamp ;

Find ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add below it ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



2. To fix the ajax issue, use this nasty hack ;

Find ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Seems to work okay for me, feel free to try it. :)

Boofo
25 Nov 2005, 10:15
Paul, then how will you know when the first post was written? ;)

Paul M
25 Nov 2005, 10:25
You won't (unless perhaps you add it into the seperator). I don't really care as we only use a 1 hour limit for double posts anyway. If it bothers you then simply don't do step 1 - your choice. :)

keymistress
25 Nov 2005, 10:32
does this script work on version 3.5.1?
before your hack i tried on 3.5 and it's ok but it doesn't seem to be working for 3.5.1...
or maybe it's just me...

Boofo
25 Nov 2005, 10:33
You won't (unless perhaps you add it into the seperator). I don't really care as we only use a 1 hour limit for double posts anyway. If it bothers you then simply don't do step 1 - your choice. :)

All I did was ask a question, not complain.

Paul M
25 Nov 2005, 10:38
All I did was ask a question, not complain.All I did was answer it. :p

moonclamp
25 Nov 2005, 11:22
All I did was answer it. :p

Why did you call that a 'nasty' hack if it works?

Is there potential for problems?

Snake
25 Nov 2005, 14:25
Why did you call that a 'nasty' hack if it works?

Is there potential for problems?

I was going to ask the same thing lol.

Boofo
25 Nov 2005, 14:31
All I did was answer it. :p

This is the part I was referring to:

If it bothers you then simply don't do step 1

;)

Paul M
25 Nov 2005, 17:45
Why did you call that a 'nasty' hack if it works?

Is there potential for problems?There are no problems with it, it's just a phrase. :)

The 'fix' is really just a workaround to bypass ajax rather than a proper fix using ajax.

Boofo
25 Nov 2005, 17:57
Hmm, well I installed this on my test forum last night, and yes, it has (had) two problems ;

1. The post dateline is not updated on a merge, so it doesn't get seen as unread.

2. The one everyone complains about - no ajax refresh (unless you alter the time stamp, then you get two versions of the same post).


So, since I wanted this on our forum I have fixed both locally - this is what I have done.


1. To fix the timestamp ;

Find ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add below it ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



2. To fix the ajax issue, use this nasty hack ;

Find ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Seems to work okay for me, feel free to try it. :)

Shouldn't that be:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Paul M
25 Nov 2005, 18:16
I don't believe so.

The line probably should't be with the other set_info lines, that just happens to be where I stuck it. :)

Boofo
25 Nov 2005, 18:26
I don't believe so.

The line probably should't be with the other set_info lines, that just happens to be where I stuck it. :)

Ok, good enough for me. Installed. ;)

Snake
25 Nov 2005, 18:33
So Paul, this should fix the AJAX issue that we all are having, right?

Xenon
25 Nov 2005, 19:28
@Paul: the first thing is not a problem, it's designed that way ;)

the change of the dateline was optional in the 3.0 version, but not in the original version, as it allows bumping...

Paul M
25 Nov 2005, 19:59
@Paul: the first thing is not a problem, it's designed that way ;)It's a problem to me, and a few others from reading the thread. We don't use it for "anti bumping", we just hate it when people double/treble post in quick sucession. The 'fix' is optional of course. :)

@Aftermath - Yes, it gets round it.

moonclamp
25 Nov 2005, 21:46
There are no problems with it, it's just a phrase. :)

The 'fix' is really just a workaround to bypass ajax rather than a proper fix using ajax.

But will ajax still work on the initial post?

Paul M
25 Nov 2005, 21:56
Yes.

xxskullxx
25 Nov 2005, 22:09
Thank you Paul for the update. I will try this out now. :)

Snake
26 Nov 2005, 12:46
Coolio. I will definitely try this out tonight.

dan35
27 Nov 2005, 00:57
Hmm, well I installed this on my test forum last night, and yes, it has (had) two problems ;

1. The post dateline is not updated on a merge, so it doesn't get seen as unread.

2. The one everyone complains about - no ajax refresh (unless you alter the time stamp, then you get two versions of the same post).


So, since I wanted this on our forum I have fixed both locally - this is what I have done.


1. To fix the timestamp ;

Find ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add below it ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



2. To fix the ajax issue, use this nasty hack ;

Find ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Seems to work okay for me, feel free to try it. :)


After using this, I can't post any new thread. Submit new thread, it just pops up a blank page.

Paul M
27 Nov 2005, 01:38
After using this, I can't post any new thread. Submit new thread, it just pops up a blank page.Well the answer is simple enough, if it don't work for you don't use it.

FYI, It works for me, on two 3.5.1 systems, and no one else seems to have a problem .....

EasyTarget
28 Nov 2005, 09:54
nm.. learned it in the readme :D
great hack

xxskullxx
28 Nov 2005, 12:49
@ Paul M:

When I add

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


I get this error:
Fatal error: Call to a member function on a non-object in c:\appserv\www\ng\forums\includes\functions_newpost.php on line 271Adding everything else works fine.

3.5.1

Boofo
28 Nov 2005, 12:51
@ Paul M:

When I add

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


I get this error:
Adding everything else works fine.

Are you running RC2 by chance? ;)

xxskullxx
28 Nov 2005, 12:53
Sorry just edited my post. Running 3.5.1. I haven't updated my profile in awhile, lol.

Boofo
28 Nov 2005, 12:55
Sorry just edited my post. Running 3.5.1. I haven't updated my profile in awhile, lol.

Well, it worked fine for me on RC3, although I just took it out and skipped that part of the instrctions Paul gave. Since mine is set at an hour, updating the post time doesn't really make that much sense to me, anyway. ;)

utw-Mephisto
02 Dec 2005, 00:54
Hmm, well I installed this on my test forum last night, and yes, it has (had) two problems ;

1. The post dateline is not updated on a merge, so it doesn't get seen as unread.

2. The one everyone complains about - no ajax refresh (unless you alter the time stamp, then you get two versions of the same post).


So, since I wanted this on our forum I have fixed both locally - this is what I have done.


1. To fix the timestamp ;

Find ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add below it ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



2. To fix the ajax issue, use this nasty hack ;

Find ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Seems to work okay for me, feel free to try it. :)


http://ut2004.titaninternet.co.uk/vbb/images/smilies/icon_woohoo.gif

utw-Mephisto
02 Dec 2005, 10:09
One addition : bbcodes don't work ...

http://www.ut2007world.com/showpost.php?p=20643&postcount=4

dan35
04 Dec 2005, 02:03
Well the answer is simple enough, if it don't work for you don't use it.

FYI, It works for me, on two 3.5.1 systems, and no one else seems to have a problem .....


A big thank you for your help in getting my problem solved!

If everyone got the same problem, just do step 2, ignore step 1 ;)

Delphiprogrammi
04 Dec 2005, 15:55
hi people,

Can't get this to work i always get this error


Fatal error: Undefined class name 'vbulletinhook' in functions_newpost.php


that errors keeps on appaering even if i restore the original functions_newpost.php file i can't find the cause ...

Andreas
05 Dec 2005, 10:34
For those interested, here is an experimental Plugin.

Delphiprogrammi
05 Dec 2005, 11:38
hi people,

Can't get this to work i always get this error



that errors keeps on appaering even if i restore the original functions_newpost.php file i can't find the cause ...

i'm an idiot i'm testing 3.5.x code on vb 3.0.7 pffff :devious: my testboard stil vb 3.0.7 updating it ..

Paul M
05 Dec 2005, 12:03
For those interested, here is an experimental Plugin.
Tested, but I get the following error on a double post ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Also, the new post is merged into the existing post twice.

Andreas
05 Dec 2005, 12:33
Hmm, I can't reproduce such problems on my board.

But I think the SQL error is releated to thread/forum subscriptions, as the Datamanager won't return the postid.

Edit: Reproduced.

Actually, the database error causes the double merge:

The QR AJAX JS gets the database error and attempts a repost.

Paul M
05 Dec 2005, 13:36
Yep - it works - not quite as I (persoanally) want it to, but it does work. :)

I've added the dateline update on a double post (maybe that should be an option).

The main thing I dislike is that it doesn't reload the post automatically - you have to click on the QR 'error' message (there seems to be redirect code in it, not sure why it's not called - a bug maybe ?).

redspider
05 Dec 2005, 13:46
Yep - it works - not quite as I (persoanally) want it to, but it does work. :)

I've added the dateline update on a double post (maybe that should be an option).

The main thing I dislike is that it doesn't reload the post automatically - you have to click on the QR 'error' message (there seems to be redirect code in it, not sure why it's not called - a bug maybe ?).
I try it and is doing the same thing for me .

Andreas
05 Dec 2005, 13:59
The redirect Code is called, the JS XML Handler catches it, detects the "error" message and displays it.

Unfortunately, there is no way to automatically reload the page - JS won't be executed and a meta refresh can only occur in the head-section of a HTML document.

An alternative would be to generate a postbit and display it, but then you would have the post displayed 2 times: The post that was already there and the merged post as a new post.

Replacing the existing post via AJAX ist not possible without changes to the JS files.

Snake
05 Dec 2005, 14:25
Andreas what's your attached file for? A fix to the AJAX issue or what?

Andreas
05 Dec 2005, 14:38
http://www.vbulletin.org/forum/showpost.php?p=840714&postcount=154

Paul M
05 Dec 2005, 14:41
An alternative would be to generate a postbit and display it, but then you would have the post displayed 2 times: The post that was already there and the merged post as a new post.Yeah, I had exactly the same thing with the file edit version, which is why I added the re-direct. Two versions of the same post is not good.

Replacing the existing post via AJAX ist not possible without changes to the JS files.Hmm, Pity - post editing does it, so I guess it's possible - maybe something could be added to 3.5.2 to allow the replacement of existing posts.

In the meantime I'm going to keep this to one side, for reference, and stick with my current version. Thanks. :)

Andreas
05 Dec 2005, 14:43
Sure it is possible, as vB_Quick_Edit uses another handler.

But as said, it would require file edits, and I don't want to make file edits.

Paul M
05 Dec 2005, 14:46
But as said, it would require file edits, and I don't want to make file edits.Sure, hence my suggestion for something in 3.5.2 :)

Team sockopen
05 Dec 2005, 16:13
Im used ot file edits and if it works id rather make them.

I instaleld it and running perfect simple yet most effective hack for vB =)

KBV
08 Dec 2005, 16:35
Andreas, great experimental. One sugestion, would it be possible to add another link saying something like "Merge this post with your last post." and when the user clicks it, it merges the message with the post above (his ofcourse)?

eNforce
08 Dec 2005, 17:14
Andreas- your experimental plugin for me does not add the merged post on another line, but instead adds it on the same line as the previous post. See here (http://www.areyouserios.com/showpost.php?p=13740&postcount=1)

Andreas
08 Dec 2005, 17:24
Add a newline escape-code (\n) to the spacer

Ragnarok
09 Dec 2005, 03:49
I'm a terrible n00b to this whole system, where would I add the code and what exactly do I add? :o

An excellent idea, anyway, love to have it ^^

Otikeu
09 Dec 2005, 05:19
I'm a terrible n00b to this whole system, where would I add the code and what exactly do I add? :o

An excellent idea, anyway, love to have it ^^

Um, you download the .txt of course, all mods are usually in the downloadable form.

Ragnarok
09 Dec 2005, 07:03
I was asking about Andreas' plugin, actually. Coming from phpBB I have quite a bit of experience with editting files. :p Should have clarified more.

Where in the plugin script do I add the newline escape code and what is that code?

Delphiprogrammi
09 Dec 2005, 09:09
I was asking about Andreas' plugin, actually. Coming from phpBB I have quite a bit of experience with editting files. :p Should have clarified more.

Where in the plugin script do I add the newline escape code and what is that code?

you need to import that as a plugin in your vbulletin admincp plugin manager download the plugin *.xml and import into the plugin system => done

Boofo
09 Dec 2005, 09:19
you need to import that as a plugin in your vbulletin admincp plugin manager download the plugin *.xml and import into the plugin system => done

He's asking where in the xml to edit something, not how to install it. ;)

Andreas
09 Dec 2005, 09:20
Nowhere.
=> vBulletin Settings

Boofo
09 Dec 2005, 09:24
Nowhere.
=> vBulletin Settings

Is there also a setting or way to allow Admins or staff to bypass this?

Ragnarok
09 Dec 2005, 10:37
Nowhere.
=> vBulletin Settings
Awesome. Installed and working perfectly ^^ Thanks!

KBV
09 Dec 2005, 16:06
Forget my request. :P I didn't see the post merge because of the lack of space between the edit and the original post. ^^

lanc3lot
11 Dec 2005, 19:36
Is there also a setting or way to allow Admins or staff to bypass this?

I am intrested on this too...also when it merges the posts, will be good to keep the time of the last post (now it keeps the time of the first one)

Thnx, cheers:)

utw-Mephisto
14 Dec 2005, 18:30
EDIT : never mind

biggazillakilla
17 Dec 2005, 07:59
Yes, great hack, but it would be wonderful if the main post could autorefresh after posting with the quick-reply. I've just installed it, and I'm afraid that some users will get confused (I know I was when I didn't see my post anywhere).

I just checked the ACP of 3.51, and it doesn't have the option to disable AJAX only for the quick-reply--it's for all AJAX, no AJAX, or "problematic" AJAX features.

Thanks for the hack.

biggazillakilla
17 Dec 2005, 08:09
I just tested the quick reply automerge function here on vB.org, and it's working the way everybody's asking.

Okay, I'm heading off to search to see if I've missed something...

Paul M
17 Dec 2005, 09:25
Yes, great hack, but it would be wonderful if the main post could autorefresh after posting with the quick-reply. I've just installed it, and I'm afraid that some users will get confused (I know I was when I didn't see my post anywhere).

I just checked the ACP of 3.51, and it doesn't have the option to disable AJAX only for the quick-reply--it's for all AJAX, no AJAX, or "problematic" AJAX features.

Thanks for the hack.Did you try the fix I posted a few pages back ?

mkdevo
17 Dec 2005, 14:11
@ Paul M:

When I add

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


I get this error:
:
Fatal error: Call to a member function on a non-object in c:\appserv\www\ng\forums\includes\functions_newpost.php on line 271

Adding everything else works fine.

3.5.1

i'm getting the same error above on 3.5.2.. wish i could get that timestamp updated..

mkdevo
17 Dec 2005, 15:52
This will be done until the old post is older than 1 hour (you can change this timespan yourself)

it should also be noted that the original text file here has it set for 24 hours, not 1 hour.

biggazillakilla
18 Dec 2005, 03:46
Did you try the fix I posted a few pages back ?Just tracked that down. So your fix basically disables AJAX for the quick reply? Did I understand that correctly? My concern is that I'd like the users to see some of the upgrades, not just the admins/mods.

Mudvayne
18 Dec 2005, 03:52
clicked install but install kirby's product coz tht seems pretty fine workin..
Xenon dont u think u attach kirby's product on the 1st post of sures.. hehe just becoz i hav to read 157 post to find kirby's solution :P

biggazillakilla
18 Dec 2005, 04:10
clicked install but install kirby's product coz tht seems pretty fine workin..
Xenon dont u think u attach kirby's product on the 1st post of sures.. hehe just becoz i hav to read 157 post to find kirby's solution :PWow, that message is really hard to understand.

You are asking Xenon to link to Kirby's hack, but you don't link to it? Can you at least link to what you ask someone else to link to?

Paul M
18 Dec 2005, 04:55
Just tracked that down. So your fix basically disables AJAX for the quick reply? Did I understand that correctly? Not, not correct - Quick Reply works with AJAX as normal for any post that is not a "double post". What the fix does is refresh the page when a double post merge happens.

i'm getting the same error above on 3.5.2.. wish i could get that timestamp updated..If I could reproduce it then I could probably fix it - I just don't get that error on our test or live forums. Maybe someone has a test forum I could have access to that does have the error, so I can try and pinpoint the problem ?

MentaL
19 Dec 2005, 02:38
hack works fine except on quick reply , i have to refresh to view the post .. how do i solve this?

thanks.

JohnBee
19 Dec 2005, 10:17
Can someone help me apply this feature to this MOD?

Taken previously from the "3.0.x Prevent Double Posting"[QUOTE]
In your includes/functions_newpost.php, find the following:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


and replace by:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Then find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and replace by:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I compared the code but I just can't seem to figure out how to apply these changes. Basically I want output simillar to this.

JohnBee added 9 Minutes later...

Instead of the standard merge. All other things work very nicely btw!

JohnBee
19 Dec 2005, 10:43
Okay update, I got the time etc. to display but I cannot get the username to appear, anyone know why:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Doesnt work?

Paul M
19 Dec 2005, 11:48
$bbuserinfo is now $vbulletin->userinfo :)

Paul M
19 Dec 2005, 11:49
hack works fine except on quick reply , i have to refresh to view the post .. how do i solve this?.by actually reading the posts above yours .........

Rickie3
19 Dec 2005, 12:00
thanyou so much for this hack,the double posting was getting out of hand on my board
*installed*

MentaL
19 Dec 2005, 12:00
Not, not correct - Quick Reply works with AJAX as normal for any post that is not a "double post". What the fix does is refresh the page when a double post merge happens.

If I could reproduce it then I could probably fix it - I just don't get that error on our test or live forums. Maybe someone has a test forum I could have access to that does have the error, so I can try and pinpoint the problem ?

http://forum.ragezone.com

sign up and double post somewhere, i dont get an error but the page does not update unless refreshed.

by actually reading the posts above yours ......... silly me

Rickie3
19 Dec 2005, 12:16
http://forum.ragezone.com

sign up and double post somewhere, i dont get an error but the page does not update unless refreshed.

silly me
i think this is what he means
http://www.vbulletin.org/forum/showpost.php?p=830152&postcount=123

@me puts glasses on and reads posts

AWI
19 Dec 2005, 12:30
Nice hack, thanks :nervous:

Mudvayne
19 Dec 2005, 16:03
Wow, that message is really hard to understand.

You are asking Xenon to link to Kirby's hack, but you don't link to it? Can you at least link to what you ask someone else to link to?

:).. http://www.vbulletin.org/forum/showpost.php?p=840753&postcount=157
u don hav to modify any code.. just upload the product.. kieby post it in this thread.. & i'm using it now.. working fine.. & abt linking? either xenon can link kirby's auto marged post product.xml.. or kirby should open a new thread.. coz it 'll b easy to find it.. infact u don hav to read 157 post :banana:

Note: sorry my english :nervous:

Paul M
19 Dec 2005, 16:21
http://forum.ragezone.com

sign up and double post somewhere, i dont get an error but the page does not update unless refreshed.
I was referring to the timestamp update error in the fix I use. I don't get one, some people seem to.

lanc3lot
19 Dec 2005, 16:28
And what are the changes on this one u pointed out Shuvo?

Mudvayne
19 Dec 2005, 19:43
And what are the changes on this one u pointed out Shuvo?

i dont get u :s

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..

biggazillakilla
19 Dec 2005, 21:18
:).. http://www.vbulletin.org/forum/showpost.php?p=840753&postcount=157
u don hav to modify any code.. just upload the product.. kieby post it in this thread.. & i'm using it now.. working fine.. Thanks for the link. :)

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.

Mudvayne
20 Dec 2005, 02:01
u r welcome :D

lanc3lot
20 Dec 2005, 10:14
Thanks for the link. :)

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.


Ok now i got it:D

Thnx, its much better indeed

Sel
21 Dec 2005, 16:11
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

eoc_Jason
29 Dec 2005, 20:22
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Anyone have some help they want to give?

eoc_Jason
30 Dec 2005, 16:58
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.

beansbaxter
31 Dec 2005, 07:05
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???

Paul M
31 Dec 2005, 08:48
Fixes are in the thread if you care to read back a bit.

Snake
31 Dec 2005, 15:08
I guess he is too lazy to search for the link in this thread.

lanc3lot
03 Jan 2006, 11:32
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 :)

Snake
03 Jan 2006, 13:32
Paul has already implemented a fix for that. Do a search on this thread, it should be there somewhere. ;)

lanc3lot
03 Jan 2006, 18:22
Hmm, well I installed this on my test forum last night, and yes, it has (had) two problems ;

1. The post dateline is not updated on a merge, so it doesn't get seen as unread.

2. The one everyone complains about - no ajax refresh (unless you alter the time stamp, then you get two versions of the same post).


So, since I wanted this on our forum I have fixed both locally - this is what I have done.


1. To fix the timestamp ;

Find ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add below it ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



2. To fix the ajax issue, use this nasty hack ;

Find ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Seems to work okay for me, feel free to try it. :)


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:)

Snake
03 Jan 2006, 18:25
What do you mean no luck? It's working just fine on my forums. :)

lanc3lot
03 Jan 2006, 18:33
I meant, where i have to do the fileedits, in what file or template...

Paul M
03 Jan 2006, 18:38
I meant, where i have to do the fileedits, in what file or template...You edit the existing hacks code.

Also, PaulM, have u figured out any hint of how to prevent automerge for the Admin's Posts?I have never even looked at or thought about it, as I have no need of this. :)

lanc3lot
03 Jan 2006, 18:41
Damn, hope u find a little time and do so :(

lanc3lot
03 Jan 2006, 18:50
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?

Puntoboy
03 Jan 2006, 21:41
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.

Saskia
06 Jan 2006, 14:13
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. :)

shockx5
09 Jan 2006, 18:48
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.

eoc_Jason
11 Jan 2006, 19:43
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:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Here is all of my code in the postdata_postsave, you can see how you have to update both the thread time & forum time:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




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.

JohnBee
11 Jan 2006, 20:01
I have modified the code as follows:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



No matter what I try I cannot get it to display the username in the comment, can someone help me?

IrPr
11 Jan 2006, 21:35
PaulM ur fix not workin when upgraded to 3.5.3



Fatal error: Call to undefined function: build_thread_counters() in c:\program files\easyphp1-8\www\forum\newreply.php(530) : eval()'d code on line 14

biggazillakilla
12 Jan 2006, 06:44
Hmm, I can't reproduce such problems on my board.

But I think the SQL error is releated to thread/forum subscriptions, as the Datamanager won't return the postid.

Edit: Reproduced.

Actually, the database error causes the double merge:

The QR AJAX JS gets the database error and attempts a repost.This one works in an interesting way, too. (Attachment link (http://www.vbulletin.org/forum/attachment.php?attachmentid=38854).) I've just tested it on my test board, and it merges all posts without paragraph breaks, which doesn't look too good.

I seem to recall that you're not developing this as a plugin, but just in case...

EasyTarget
12 Jan 2006, 07:09
you go to the vbulletin options and you can add linebreaks or whatever you want to do.

IrPr
12 Jan 2006, 10:14
any suggestion ?


Fatal error: Call to undefined function: build_thread_counters() in forum/newreply.php(530) : eval()'d code on line 14


im got this fatal error when upgrade my board to 3.5.3 and do PaulM's code modifications

PersianImmortal
13 Jan 2006, 03:44
I got this to work on my 3.5.3 board (TweakGuides Forums (http://forums.tweakguides.com)) 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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In summary the modifications to the original code are firstly the second step provided by Paul M (comment tags show Paul's added code as he provided it) - this is necessary for the AJAX refresh to work properly.

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.

IrPr
13 Jan 2006, 11:34
Nice! but it works same as Andreas's Product
but PaulM's method don't need refreshing

Puntoboy
20 Jan 2006, 01:56
i'd like to use this on my forum but only in the for sale area.

how can i do this?

murrtex
20 Jan 2006, 16:02
I got this to work on my 3.5.3 board (TweakGuides Forums (http://forums.tweakguides.com)) 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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In summary the modifications to the original code are firstly the second step provided by Paul M (comment tags show Paul's added code as he provided it) - this is necessary for the AJAX refresh to work properly.

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.

hi PersianImmortal ,I used yours everything is ok.refreshing,quick reply,click reply button...but when I click new thread button and I post ,page says Database errors



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



the post goes but page says that, I think needs a little arrangement,,what should we do?

my version 3.5.3

Paul M
20 Jan 2006, 17:35
You need to post all the error message.

Alex_
20 Jan 2006, 17:51
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


I also tried it with set_info but it doesn't work for me.
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?

CBE
20 Jan 2006, 19:49
hi all,,
can any body conclude to us how can we install it @ 3.5.5 ??
WITH OUT ERROR ... lol ...
thanx allll

murrtex
20 Jan 2006, 20:43
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Paul M, this is the full error code..

Paul M
20 Jan 2006, 21:34
Try running a repair on the thread table.

murrtex
20 Jan 2006, 23:30
ohh sorry I forgot to replace $id = $dataman->save(); :D
now its ok..

Daniel
21 Jan 2006, 00:47
hi all,,
can any body conclude to us how can we install it @ 3.5.5 ??
WITH OUT ERROR ... lol ...
thanx allll
3.5.5!? Where have I been? :speechless:

Alex_
21 Jan 2006, 09:07
To solve the dateline problem I had to update the timestamp manually
I inserted


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


to renew post and thread timestamp to have an 'unseen' post.
Now I'm happy with it ;)

CBE
22 Jan 2006, 22:03
3.5.5!? Where have I been? :speechless:


sorry i mean 3.5.3


so any body can conclude to us how can we istall it on 3.5.3 ?????

:ermm: :ermm: :ermm:

Alex_
23 Jan 2006, 05:17
I used this one
http://www.vbulletin.org/forum/showpost.php?p=872072&postcount=229
with this optional one
http://www.vbulletin.org/forum/showpost.php?p=878427&postcount=240
on my 3.5.3 having no problems so far...

gwhooooey
23 Jan 2006, 07:56
To solve the dateline problem I had to update the timestamp manually
I inserted


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


to renew post and thread timestamp to have an 'unseen' post.
Now I'm happy with it ;)

Where exactly does that code go?

Alex_
23 Jan 2006, 13:25
I put it above


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

ultranerds
01 Feb 2006, 09:34
Is there a plugin that does this? :rolleyes: (sorry, just trying to avoid where possible, from making core code changes <G>)

TIA

Xenon
01 Feb 2006, 16:07
nope!

not everything is possible with plugins....

Snake
01 Feb 2006, 17:23
Duh! :D

IrPr
01 Feb 2006, 23:33
nope!

not everything is possible with plugins....

UPDATED TODAY?

Paul M
01 Feb 2006, 23:40
UPDATED TODAY?Not the hack, just the text of the first post by the look of it.

Emilian
01 Feb 2006, 23:48
thank you very much :p