vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Check for New Replies (https://vborg.vbsupport.ru/showthread.php?t=264858)

kh99 06-06-2011 10:00 PM

Check for New Replies
 
1 Attachment(s)
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

Disasterpiece 06-07-2011 07:02 PM

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

kh99 06-07-2011 07:26 PM

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?

Disasterpiece 06-07-2011 07:56 PM

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

nacaruncr 06-07-2011 09:55 PM

installed + tagged + 5 stars + MOTM :D

thanks :D

BlackThorn 06-08-2011 02:47 AM

Love it, thank you! But now looking for vBulletin 3.8.x

New Joe 01-18-2012 07:47 AM

Wondered if this still works with the new Editor in the versions after 4.1.5?

nitrogen14 01-10-2013 12:01 PM

4.2.0 work fine thx!

Leica.Robbiani 02-06-2013 09:36 PM

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.

kh99 02-06-2013 10:24 PM

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.

Iris_Ford 01-14-2015 06:16 AM

Hello, kh99.

This mod is awesome, simply great. I had it installed for awhile now in my vB 4.2.2 and it seemed to work just fine at the beginning . But then i noticed that my multi-quotes won't deselect after posting and after disabling the mod everything was fine.

Any updates?

kh99 01-14-2015 02:48 PM

Hmm..haven't look at this in a long time. I'll try it out if I get a chance. But to be honest, if I remember correctly the whole thing is a bit of a hack, so even if I can figure out why it's not working, I might not be able to fix it. Some things are difficult to do without file edits.

Iris_Ford 01-14-2015 07:55 PM

:( That's very sad. It was a hell of a hack that i needed on my forums :(

kh99 03-21-2015 09:01 PM

Quote:

Originally Posted by Iris_Ford (Post 2532432)
Hello, kh99.

This mod is awesome, simply great. I had it installed for awhile now in my vB 4.2.2 and it seemed to work just fine at the beginning . But then i noticed that my multi-quotes won't deselect after posting and after disabling the mod everything was fine.

Any updates?

Well, I looked at this a bit and it turns out that it's not this mod but the fact that the multiquote doesn't turn off if you use the quick reply without ajax (if you "disable all ajax features" in General Settings), even if this mod is disabled. If you "Go Advanced" before posting it works. As I mentioned in the description, this mod disables ajax quick reply because I couldn't figure out how to make it work without doing that.

Anyway, if I get a chance to look at it more I'll see if I can figure out a solution.

kh99 03-22-2015 12:58 PM

1 Attachment(s)
OK, I think I've found a fix. I'm attaching a plugin xml here, and maybe later I'll get around to a new release with it included. In any case, to use this, save the attached xml file on your computer then go to Plugins & Products > Download / Upload Plugins, and scroll to the bottom to use the import form.

Iris_Ford 10-11-2015 04:10 PM

Now this came a little late, but i just wanted to thank you so much.
I just used the fix and it's working properly

Well done, thank you ! :)

DSemen 10-11-2015 05:26 PM

Thank you so much!
That's what I've been looking for. Great mod!

Nominate for Modification of the Month.

friendlymela 10-16-2015 06:55 AM

will check it later


All times are GMT. The time now is 10:34 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.01210 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete