PDA

View Full Version : New Posting Features - Check Post


cheesegrits
23 Feb 2008, 03:29
WARNING - this mod is currently in Beta test! I've done as much testing as I can on a small development board, but have not run it on anything like a busy board. While there is no possibility of this mod damaging your board, there may be some unforeseen issues. Please post here with any questions, concerns, bug reports or suggestions.

Description

When this product is enabled, users are warned when responding to a thread if that thread has been updated since their "last visit". If they are using "Post Reply" they are bounced to a preview page, with a warning, an updated thread summary, and they have to re-submit their response. If posting from Quick Reply, they are warned, but the thread display is not updated (still working on that!), so the default warning suggests they "Go Advanced" and check the new thread display (although they may simply resubmit and it will go through).

Settings

The product has three AdminCP settings (in the Check Post section of the main vBulletin Settings).

Check Post Enabled: you can turn check post on and off.

Sound Effects: by default, when a post is aborted because of a thread update, a sound effect is played to get the users attention. You can disable this with an ACP option. SFX are only used on the Post Reply bounce, not with Quick Reply.

Forums to Exclude: a comma separated list of forum ID's not to apply Check Post to.

You may also customize the warning message by editing the checkpost_warning template, and/or the phrases referenced by the template. If you want a different sound effect, change the URL in the template.

Installation

Install the product XML.

Uninstallation

Uninstall the product XML.

To Do

1. Add a 'Forums to Exclude" ACP setting. I suspect that this mod could become unwieldy in a very busy forum. DONE.

2. Add a "Usergroups to Exlcude" ACP setting. Admins and Moderators may not care to be warned about thread updates.

3. Find a way to update the postbits on an AJAX Quick Reply. A Catch 22 in the way newreply.php works make it impossible to both update the postbit, AND abort the post and return a warning. The only way I can see of doing this involves duplicating much of what newreply.php does to rebuild the postbits. I'll continue to work on this!

Revision History

2006/02/23 - 1.00 - initial (beta) release.
2006/02/23 - 1.01 - added "Forums to Exclude"

shadowevil
23 Feb 2008, 04:26
where is file xml ??

cheesegrits
23 Feb 2008, 06:12
See the big red letters at the top of the description. :)

I found a little bug in the handling of AJAX / Quick Reply posts during last minute testing, I'm working on the fix. I'll post the product when it is bug free. Should be later tonight.

-- hugh

falguni1
23 Feb 2008, 06:21
I also want to see this mod.

majordork82
23 Feb 2008, 10:24
Why would you vote it 5 when its not even here? BAH! I wanted to see this too.. I'll come back later :)

SwollenCranium
23 Feb 2008, 15:11
What does this do ?

Are you saying that if a member tries to post in a thread that they will get an audio warning and then they are REDIRECTED to a new thread and then have to navigate back to the original page ?

Is the warning given immediately upon visit to the thread or AFTER they have made a reply attempt ?

spitb19
23 Feb 2008, 16:47
no file XML... Help!!!

Wulfnoth
23 Feb 2008, 17:12
Can't read? See at the big red sentence on the top of the description!

Namaless
23 Feb 2008, 17:58
Thanks, waiting the release :)

Thanks.

cheesegrits
23 Feb 2008, 21:05
What does this do ?

Are you saying that if a member tries to post in a thread that they will get an audio warning and then they are REDIRECTED to a new thread and then have to navigate back to the original page ?

Is the warning given immediately upon visit to the thread or AFTER they have made a reply attempt ?

Check Post kicks in when you submit a reply to a thread. If that thread has been updated since your "last activity" (in other words, if $userinfo->['lastactivity'] is less than $threadinfo['lastpost']) it kicks in. There are two scenarios:

If you are posting using Post Reply, the end result is exactly as if you had selected "Preview", but with an additional and very obvious warning at the top of the page (along with an optional sound effect).

If you are posting using Quick Reply (via AJAX), you will receive a warning, but the thread itself is not updated (the way vB's AJAX works it's pretty much impossible to feed back an error AND an updated thread). The default warning adivses you to "Go Advanced" so you can review the new thread summary before posting, but you can just submit again and it will go through. No audio cues are given with Quick Reply (I may add that at some point).

The images I just uploaded should give you a good idea of how it work.

-- hugh

SwollenCranium
23 Feb 2008, 21:44
werds be here..

-- hugh

I understand completely. Nice work.

This could come in handy for those members that reply to a post much slower than other members, in other words this can prevent many users from saying the same thing.


I like the concept, but I would like it MORE if I could select to activate it ONLY in a specified forum instead of board wide.

I'll keep an eye on this and will most likely use it when you get your "forum to exclude" function to work.

cheesegrits
23 Feb 2008, 23:01
I'll keep an eye on this and will most likely use it when you get your "forum to exclude" function to work.

Done. Version 1.01 uploaded.

-- hugh

Magnumutz
24 Feb 2008, 17:01
Installed, i like this one :)

Forum Lover
24 Feb 2008, 17:17
WoW... The idea is great. Only thing that scaring me that red colored msg above. I want to use it. tagged.

cheesegrits
24 Feb 2008, 19:22
To be honest, I got the idea from SMF (Simple Machines Forums), which I hate, but it does have this one feature I like that vB doesn't have.

As for the Beta testing status, don't be too scared. I haven't had any bug reports yet, and the mod is very simple. It's either going to work on your forum or it isn't. If it doesn't, just turn it off, let me know and I'll work out what the problem is. It won't damage your board in any way. The only database write it does is to update the 'last activity' date for the user in the session table when they are using Quick Reply (for some reason, vB doesn't do it when using Quick Reply).

-- hugh

youradhere4222
24 Feb 2008, 20:02
phpBB also has this feature...

Golzarion
24 Feb 2008, 20:04
Good work!

What if both users send their post at the same time ?

I have seen posts that sent at exact the same time , for example both at 23:34 pm

cheesegrits
24 Feb 2008, 21:37
Good point. If the posts are made in exactly the same second, Check Post won't trigger. I guess I could change that so it tests for "less than or equal to" instead of "less than". I'll probably do that in the next release. Meanwhile if you want to change that behaviour, edit the newreply_post_start hook, and in the 'if' statement:

if (!in_array($threadinfo['forumid'],$checkpost_forum_exclude) and $vbulletin->userinfo['userid'] and $vbulletin->options['checkpost_enabled'] and $vbulletin->userinfo['lastactivity'] < $threadinfo['lastpost'])

... and change the < to <=.

-- hugh

Cybertims
02 Mar 2008, 22:22
Anyone actually have this working?
Why does it have this in the plugins??

require_once(DIR . '/cheesegrits/checkpost/plugin.newreply_post_start.php

cheesegrits
03 Mar 2008, 03:27
That should be commented out, is it not? When I'm debugging, I run the code as required files, so I can put breakpoints in it. Can't do that with pure eval'ed code in plugins. If it isn't commented out, it should be, I'll have a look.

-- hugh

KURTZ
03 Mar 2008, 15:43
that's what i need ... :)

(tagged hack) i'm waiting for the final release ... ;)

floydian1
10 Mar 2008, 16:14
I just installed it.

We will see how it works.

THANKS!

cheesegrits
11 Mar 2008, 01:57
Let me know. It works fine on my forums, I'd like to get some feedback on this thread as to whether it works for other people.

-- hugh

floydian1
11 Mar 2008, 21:05
So far so good.
It works great int he non-heavy times.
We will see what happens on Friday when the stuff hits the fan.

cheesegrits
14 Mar 2008, 03:36
Thanks. I appreciate any feedback.

-- hugh

odeezie
28 Mar 2008, 01:21
I just installed on 3.6.8 and it seems to work good so far.

Great mod! Thank You! :D

cheesegrits
31 Mar 2008, 19:57
Great! Thanks for the feedback.

-- hugh

zaimbat
09 Apr 2008, 21:17
Some of my users seem to have a problem. They get the alert (there are new messages, blah blah) even if there ain't any update.. How can I help you troubleshooting my problem? Can I enable a sort of debug or something?

I use AJAX Quick Reply and vBulletin 3.6.9 (but the problem begun under the release 3.6.8)

cheesegrits
13 Apr 2008, 18:49
There's not really any magic debug switch.

I'll have another look through the code and do some more testing. see what I can see.

-- hugh

Super Jinni
28 May 2008, 22:23
no any update since then? I like this one and I want it but after updating

:)

cheesegrits
01 Jun 2008, 19:49
Can you be a but more specific about the issues you are having?

I haven't been able to duplicate zaimbat's problem, unfortunately.

-- hugh

zaimbat
25 Jun 2008, 23:13
I haven't been able to duplicate zaimbat's problem, unfortunately.


I was wandering.. is it possible the problem is caused by LAG? Maybe the post is .. "sent" to the forum .. then lag.. lag.. then your script check for new posts and find out a new post, which is mine. Is there any improvement to exclude this possible bug? Maybe lifting "up" the "is there a new reply?".


Other question: can I see the preview of the new posts? this could help me even for my problem!


Thank you :)

EagleNick
16 Aug 2008, 05:59
Since this should be a stock feature in vB (like in SMF) please show your support in this thread :)
http://www.vbulletin.com/forum/showthread.php?t=281361

KURTZ
16 Aug 2008, 12:02
i love it!

installed & nominated!

KURTZ
05 Sep 2008, 12:14
there is an unchached template whei i try to reply after a new reply is made ...

JVSP
20 Nov 2008, 18:20
Installed... is this hack still being updated?

Chadi
13 Mar 2009, 00:19
there is an unchached template whei i try to reply after a new reply is made ...

Same here. I get the warning, click submit and get a blank page. But, post still goes through.

Janmaat
08 Jan 2011, 15:35
Is this or a similar addon available for 4.1?