Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Check Post Details »»
Check Post
Version: 1.01, by cheesegrits cheesegrits is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.0 Beta 4 Rating:
Released: 02-22-2008 Last Update: 02-22-2008 Installs: 38
Uses Plugins
Re-useable Code Translations Is in Beta Stage  
No support by the author.

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"

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-23-2008, 07:44 PM
SwollenCranium's Avatar
SwollenCranium SwollenCranium is offline
 
Join Date: Oct 2007
Location: Raleigh, NC
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cheesegrits View Post
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.
Reply With Quote
  #13  
Old 02-23-2008, 09:01 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SwollenCranium View Post
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
Reply With Quote
  #14  
Old 02-24-2008, 03:01 PM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, i like this one
Reply With Quote
  #15  
Old 02-24-2008, 03:17 PM
Forum Lover Forum Lover is offline
 
Join Date: Jun 2007
Location: Sydney
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WoW... The idea is great. Only thing that scaring me that red colored msg above. I want to use it. tagged.
Reply With Quote
  #16  
Old 02-24-2008, 05:22 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 02-24-2008, 06:02 PM
youradhere4222 youradhere4222 is offline
 
Join Date: Sep 2007
Location: Houston, TX
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

phpBB also has this feature...
Reply With Quote
  #18  
Old 02-24-2008, 06:04 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 02-24-2008, 07:37 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
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
Reply With Quote
  #20  
Old 03-02-2008, 08:22 PM
Cybertims Cybertims is offline
 
Join Date: Nov 2005
Location: Bedfordshire
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone actually have this working?
Why does it have this in the plugins??

require_once(DIR . '/cheesegrits/checkpost/plugin.newreply_post_start.php
Reply With Quote
  #21  
Old 03-03-2008, 01:27 AM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06785 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete