vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - Doublepost Prevention Plus (https://vborg.vbsupport.ru/showthread.php?t=204177)

Vitaly 02-03-2009 10:00 PM

Doublepost Prevention Plus
 
This branch is no longer supported. Please, use this product.

This is complete rework of Xenon mod, that's not supported for a long time.

Difference:
  • No problems with quickpost & AJAX
  • Attachments supported
  • Easy groups ignore support
  • Hooks for customisation
What this mod do:

If user creates 2 sequent posts in a short time, those are merged. That helps to keep your forum clear and prevent topicks bumping.

Setup:

Just import product and change necessary settings. No any edits required.

If you limit posts edit time, it's recommended to make merge time === edit time.

PS. Should work with 3.7.x too, but tested only with 3.7.4.

buileminh 02-04-2009 09:10 AM

Sound better than old one

Robru 02-04-2009 09:16 AM

Thanks for sharing this :)

Leo Brazil 02-04-2009 09:25 AM

Could you describe a little better how it deals with IMG and attachemnts ? e.g. Does it consider number of file on permissions or it the second post (the double one) has IMG or attachments merge are not made ?

Thanks for sharing.

Vitaly 02-04-2009 09:34 AM

Quote:

Originally Posted by Leo Brazil (Post 1734014)
Could you describe a little better how it deals with IMG and attachemnts ? e.g. Does it consider number of file on permissions or it the second post (the double one) has IMG or attachments merge are not made ?

Preventing equal post duplication is embedded into vB, and this feature is left intact. This mod goal is to merge DIFFERENT sequent posts of the same author.

Merged post = Old post text + separator(optional) + New post text.
Merged attachments = Old post attachments + New post attachments.

I'm not shure, that understang your question.

Leo Brazil 02-04-2009 09:38 AM

Quote:

Originally Posted by Vitaly (Post 1734024)
Merged post = Old post text + separator(optional) + New post text.
Merged attachments = Old post attachments + New post attachments.

I'm not shure, that understang your question.

I got your idea, specially on the second situation you mentioned. What happens for example if Old post has 3 attachements and New post has another 3 different ones but I have a 5 attachments set as a limit ? How about IMGs ?

RedHacker 02-04-2009 09:41 AM

If install this product and quick reply will be set automatic and saw one post or refresh and one post...?

Vitaly 02-04-2009 09:49 AM

Quote:

Originally Posted by RedHacker (Post 1734034)
If install this product and quick reply will be set automatic and saw one post or refresh and one post...?

If post is not merged, then AJAX will be used, with no full page reload.

If post is megred, then page will be refreshed via redirect. It's the same, as if you try to do quickpost not from the last thread page, you can check :)

That's acceptable tradeoff to have mod with no code edits and compatible with future vb releases. I hate mods, that require code edits. That's a big headache after each vb upgrade.

Vitaly 02-04-2009 09:58 AM

Quote:

Originally Posted by Leo Brazil (Post 1734029)
I got your idea, specially on the second situation you mentioned. What happens for example if Old post has 3 attachements and New post has another 3 different ones but I have a 5 attachments set as a limit ? How about IMGs ?

Attachments will be megred with no limit control (i suspect that's not a big deal, if you have global limit for user group :) ).

Then post is "reparsed". I'm not sure, but if IMG limit is checked in parcer, then result will be the same, as if user try to excceed IMG tag limit in first post. The same for smiles count limits. You'd better to check yourself.

lasto 02-04-2009 10:02 AM

thanks m8 i cant believe something like this is not built into vb as itshould be standard. Marked as installed


All times are GMT. The time now is 05:17 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.02240 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete