PDA

View Full Version : New Posting Features - Check Post


cheesegrits
02-22-2008, 10:00 PM
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
02-23-2008, 02:26 AM
where is file xml ??

cheesegrits
02-23-2008, 04:12 AM
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
02-23-2008, 04:21 AM
I also want to see this mod.

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

SwollenCranium
02-23-2008, 01:11 PM
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
02-23-2008, 02:47 PM
no file XML... Help!!!

Wulfnoth
02-23-2008, 03:12 PM
Can't read? See at the big red sentence on the top of the description!

Namaless
02-23-2008, 03:58 PM
Thanks, waiting the release :)

Thanks.

cheesegrits
02-23-2008, 07:05 PM
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
02-23-2008, 07:44 PM
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
02-23-2008, 09:01 PM
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
02-24-2008, 03:01 PM
Installed, i like this one :)

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

cheesegrits
02-24-2008, 05:22 PM
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
02-24-2008, 06:02 PM
phpBB also has this feature...

Golzarion
02-24-2008, 06:04 PM
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
02-24-2008, 07:37 PM
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
03-02-2008, 08:22 PM
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-03-2008, 01:27 AM
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-03-2008, 01:43 PM
that's what i need ... :)

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

floydian1
03-10-2008, 02:14 PM
I just installed it.

We will see how it works.

THANKS!

cheesegrits
03-10-2008, 11:57 PM
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
03-11-2008, 07:05 PM
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
03-14-2008, 01:36 AM
Thanks. I appreciate any feedback.

-- hugh

odeezie
03-27-2008, 11:21 PM
I just installed on 3.6.8 and it seems to work good so far.

Great mod! Thank You! :D

cheesegrits
03-31-2008, 05:57 PM
Great! Thanks for the feedback.

-- hugh

zaimbat
04-09-2008, 07:17 PM
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
04-13-2008, 04:49 PM
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
05-28-2008, 08:23 PM
no any update since then? I like this one and I want it but after updating

:)

cheesegrits
06-01-2008, 05:49 PM
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
06-25-2008, 09:13 PM
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
08-16-2008, 03:59 AM
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
08-16-2008, 10:02 AM
i love it!

installed & nominated!

KURTZ
09-05-2008, 10:14 AM
there is an unchached template whei i try to reply after a new reply is made ...

JVSP
11-20-2008, 04:20 PM
Installed... is this hack still being updated?

Chadi
03-12-2009, 10:19 PM
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
01-08-2011, 01:35 PM
Is this or a similar addon available for 4.1?