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 - Merge Double Post (https://vborg.vbsupport.ru/showthread.php?t=244028)

Vitaly 06-05-2010 10:00 PM

Merge Double Post
 
1 Attachment(s)
vb 3.8 version here

This mod join consecutive posts of the same member to single one. That prevents nasty "bumps".

That's a complete rewrite of "Double Post Prevention Plus", that was announced here. Besides some new features, merge algorythm changed too. It doesn't creates dummy posts anymore. Code is reuseable at last.

Well, what this mod do:
  • The main - it merge consecuent posts of the same user to single one
  • Yes, it cares about attachments
  • Yes, it cares about AJAX posting
  • Yes, it cares about social groups, if you wish
  • It can add splitter with RELATIVE time. Users from different time zones will not be confused
  • Relative time can be translated via addon for languages with complex semantics (russian translation included).
It just works :)

How to install:
  1. Upload files from appropriate directory
  2. Import product XML
  3. If you use russian language - import translation addon from "./lang" dir. You should not do it for other languages.
  4. Go to ACP ant set necessary product options (see screenshot).
  5. Check ACP -> Message Posting and Editing Options -> Time to Wait Before Starting to Display 'Last Edited by...' . Set it to 10-15 minutes. Before that time delimitor will not be added, as useless.
If you used my "Doublepost Prevention Plus" mod before, please, remember settings and uninstall it first.

This mod is developped here http://github.com/rcdesign/vb-merge_doubleposts . Patches are welcome.

history

2.9
- fixed post date - now stays intact.
- some ajax tweeks

2.8
- fixed VaultWiki compatibility

2.7
- port to vb4

KURTZ 06-06-2010 09:43 AM

hi, what's the difference between your and PM's hack?

Vitaly 06-06-2010 10:00 AM

Attachments, one pass, relative time in delimiter. Better design, lol :)

But PM provides better support. His modes where converted to vb4 much earlier, than my ones.

KURTZ 06-06-2010 10:23 AM

Quote:

Originally Posted by Vitaly (Post 2049200)
Attachments, one pass, relative time in delimiter. Better design, lol :)

But PM provides better support. His modes where converted to vb4 much earlier, than my ones.

thanks for the reply mate :)

Cedric_FP 06-06-2010 11:39 AM

Would it be possible to only merge the post if the message contains certain text?

That is, if a post does NOT contain certain text it is not counted as a double post?

Vitaly 06-06-2010 01:15 PM

Only if you modify code or write addon.

Webbstre 06-11-2010 11:25 PM

Just installed this, and it works great! I like the merging and it perfectly handles the double post problem.

Webbstre 06-13-2010 01:52 AM

Ok, after a day of using this I came across a major problem. Something in this mod conflicts with my Vaultwiki add-on. First, it makes it so the "Last Post" link on the forum home leads to a search page instead of the real page. Second, it makes it so I cannot create new wiki articles.

The author of VaultWiki said this was the problem:

Quote:

This is not a VaultWiki bug. The mod you are using "Merge Double Posts" was setting $post['postid'] to a NULL value at hook newpost_complete.

Please report this to the mod creator. The post ID is already set in the file above...

Code:

if ($type == 'thread')
        {
                $post['threadid'] = $id;
                $threadinfo =& $dataman->thread;
                $post['postid'] = $dataman->fetch_field('firstpostid');
        }
        else
        {
                $post['postid'] = $id;
        }


If you could release a fix for this I would be very grateful. I really like your mod, but I paid to use VaultWiki and it's a bit more essential to my site.

Vitaly 06-13-2010 02:23 AM

Thanks for report. I'll check, what can be done.

Boofo 06-13-2010 02:56 AM

Would you really need the Ignore forums AND Enabled Forums? Wouldn't just one setting actually do both? Whatever is enabled is all the would show. No need to ignore anything then. What would happen if you had the same forumid set for both options?


All times are GMT. The time now is 12:16 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.01088 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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