Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Check for New Replies Details »»
Check for New Replies
Version: 1.0.0, by kh99 kh99 is offline
Developer Last Online: Sep 2020 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.x.x Rating:
Released: 06-06-2011 Last Update: 06-06-2011 Installs: 35
Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

What is it?
----------------------------
This mod checks for any new replies when posting to a forum or group discussion. If there are new posts since the last time the user has viewed the thread, the user is redirected to the preview page and a warning message is displayed. (This was originally requested here: https://vborg.vbsupport.ru/showthread.php?t=264036). The mod also adds a "Topic Review" section to the bottom of the Full Editor/Preview (Go Advanced) page for group discussions similar to the one for forum threads, and marks the new posts with a red "New" message.


Installation:
----------------------------
1) In the Product Manager in AdminCP, import the product XML file (product-kh99nrchkvb4.xml).

2) If you would like to allow individual users to disable the feature, a new user profile field using "Add New User Profile Field" in the AdminCP. Then in the options (Settings -> Options -> New Reply Check) enter the field number and "disable" value, separated by a colon. For example, you could create a "Single-Selection Menu" field with these options:

Check for New Replies
Do Not Check for New Replies

Then in the "Allow User To Disable New Reply Check For Forums" option field enter

X:Do Not Check for New Replies

replacing X with the actual field number. You can create a second profile field for disabling group discussion checks, or use the same field to control both.

3) The warning message can be customized by editing the "kh99nrchk_message" template (under New Reply Check Templates) and/or providing a translation for the kh99nrchk_message phrase.

4) The "new post" message can be customized by editing the "kh99nrchk_new" template (under New Reply Check Templates) and/or providing a translation for the kh99nrchk_new phrase.


Uninstalling:
----------------------------
1) Uninstall the product from the Product Manager in the AdminCP.

2) Using the Profile Field Manager, delete any user profile fields that you created during installation.


Notes:
----------------------------
1) Enabling new reply checks for quick reply (which is the default) currently disables AJAX for quick replies.
2) Has only been tested on vB version 4.1.3.


History:
----------------------------
1.0.0 (June 7, 2011)
- Initial Release

Download Now

File Type: zip Check_for_New_Replies_ 1_0_0.zip (5.2 KB, 154 views)

Screenshots

File Type: jpg nrchk_sg1.jpg (55.6 KB, 0 views)
File Type: jpg nrchk_sg2.jpg (76.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Iris_Ford

Comments
  #2  
Old 06-07-2011, 07:02 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<3

Very nice to see this for vb4!

A few things I'd like to see if you ever feel like implementing those:

- Make ajax quick reply working, instead of a warning message, reject the post via error so the user gets the default vbulletin popup when something with the post is not right

- If a user sees the warning in full edit mode, mark the new postings with a special css class in the reviewbits so you see on first look which posts are new. An anchor link from the message to the first new reviewbit would be nice as well.

Thanks!
Reply With Quote
  #3  
Old 06-07-2011, 07:26 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the feedback. Can you explain the CSS thing in more detail? I understand the basics of CSS, but - How would I add the class to the reviewbits (can it be done without editing the template?). Then where would the class be defined?
Reply With Quote
  #4  
Old 06-07-2011, 07:56 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hm, I found the hook "newreply_form_reviewbit" in newreply.php. This is where the script packs the reviewbits one by one. You could try to get the post id from the last post before the user started his reply, then check for every post in the reviewbit, if it's newer.
Then you can add the css class "isnewpost" for instance to the class list and this way, users could style their templates with an unique and eye-catchy look for the new posts
The css class would just be defined in the additional.css template

I didn't check yet how exactly your plugin works, but I'm sure you'll find a way.
Reply With Quote
  #5  
Old 06-07-2011, 09:55 PM
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed + tagged + 5 stars + MOTM

thanks
Reply With Quote
  #6  
Old 06-08-2011, 02:47 AM
BlackThorn BlackThorn is offline
 
Join Date: Aug 2009
Posts: 581
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love it, thank you! But now looking for vBulletin 3.8.x
Reply With Quote
  #7  
Old 01-18-2012, 07:47 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wondered if this still works with the new Editor in the versions after 4.1.5?
Reply With Quote
  #8  
Old 01-10-2013, 12:01 PM
nitrogen14 nitrogen14 is offline
 
Join Date: Dec 2012
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4.2.0 work fine thx!
Reply With Quote
  #9  
Old 02-06-2013, 09:36 PM
Leica.Robbiani Leica.Robbiani is offline
 
Join Date: Sep 2007
Location: South Germany
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

gives me a blank page on vB 4.2.0PL3 when replying.

Does anyone know what's to do?

Best wishes

L.R.
Reply With Quote
  #10  
Old 02-06-2013, 10:24 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure. I haven't tried this mod in a while, so all I can think of is to test it when I get a chance.
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 10:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09254 seconds
  • Memory Usage 2,311KB
  • Queries Executed 24 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete