vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=96602)

Andreas 09-20-2005 11:45 AM

Hmm, I think i'll play around a bit with this when I got time ... want this a Plugin only :)

nexialys 09-20-2005 11:48 AM

oh, on my side i have added :
$vbulletin->options['doublepost_automerge_timespan'] = number of minutes prefered
$vbphrase[posting_doublepost_msg] = Automerge Double Posting

... good to have if you don't like to edit your hacks all the time!

permission would be good too... "bypass per usergroup.." ;) ... and per forum...

anyway, i'm god, i can do that myself.. lol

Boofo 09-20-2005 11:54 AM

Quote:

Originally Posted by nexialys
oh, on my side i have added :
$vbulletin->options['doublepost_automerge_timespan'] = number of minutes prefered
$vbphrase[posting_doublepost_msg] = Automerge Double Posting

... good to have if you don't like to edit your hacks all the time!

permission would be good too... "bypass per usergroup.." ;) ... and per forum...

anyway, i'm god, i can do that myself.. lol

When you get the bypass for admins and mods please let me know. I have this line but I don't think it's right for 3.5. ;)

PHP Code:

 AND !in_array($bbuserinfo['usergroupid'], array(5,6,7)) 

Kirby, if you get it going as a plug-in, please let me know. ;)

Snake 09-20-2005 12:03 PM

Yay I have been waiting for this thanks man! :D

Xenon 09-20-2005 12:05 PM

@Bob: it's

PHP Code:

AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7)) 

;)

and right now it is not possible as plugin only without adding a bunch of code, and i admit i was too lazy to do so ;)

Boofo 09-20-2005 12:15 PM

Thank you, sir. ;)

You got the right idea, Stefan. Make the boar you used as a testboard do the plug-in. LOL

nexialys 09-20-2005 12:20 PM

ok, i'll be VERY generous here, and release a hack already for this tool...

a Per Forum Activation of the Automerge...

i add the prod in the html tag here... to set Per Forum if the Automerge is active or not, and here is the modification for the hack itself:

in the hack, FIND:
PHP Code:

    if ($type != 'thread' 

and REPLACE BY:
PHP Code:

if ($foruminfo['force_automerge'] AND $type != 'thread' 

HTML Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="force_automerge" title="Force Automerge of Doubleposts" description="Force Automerge of Doubleposts" version="1.0.0" active="1">
        <codes>
                <code version="1.0.1">
                        <installcode><![CDATA[$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD force_automerge SMALLINT( 3 ) UNSIGNED NOT NULL DEFAULT '1'");
$db->query_write("UPDATE " . TABLE_PREFIX . "forum SET force_automerge = 1");]]></installcode>
                        <uninstallcode><![CDATA[$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum DROP force_automerge");]]></uninstallcode>
                </code>
        </codes>
        <templates>
        </templates>
        <plugins>
                </plugin>
                <plugin active="1">
                        <title>Force Automerge of Doubleposts</title>
                        <hookname>forumadmin_edit_form</hookname>
                        <phpcode><![CDATA[print_yes_no_row($vbphrase['force_automerge_in_this_forum'], 'forum[force_automerge]', $forum['force_automerge']);]]></phpcode>
                </plugin>
                <plugin active="1">
                        <title>Force Automerge of Doubleposts</title>
                        <hookname>forumdata_start</hookname>
                        <phpcode><![CDATA[$this->validfields['force_automerge'] = array(TYPE_INT, REQ_NO);]]></phpcode>
                </plugin>
        </plugins>
        <phrases>
                <phrasetype name="Control Panel Global" fieldname="cpglobal">
                        <phrase name="force_automerge_in_this_forum"><![CDATA[Force Automerge of Doubleposts in this Forum?]]></phrase>
                </phrasetype>
        </phrases>
        <options>
        </options>
</product>

so Xenon, you know what to do with this... ;)

Boofo 09-20-2005 12:23 PM

This is what I get when I click on your xml link. What gives, buddy? LOL



Quote:

The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. End tag 'plugin' does not match the start tag 'plugins'. Error processing resource 'https://vborg.vbsupport.ru/attachme...

</plugin>----^




nexialys 09-20-2005 12:29 PM

Quote:

Originally Posted by Boofo
This is what I get when I click on your xml link. What gives, buddy? LOL

bah, no biggy, some don't like xml files.. lol

post updated...

Boofo 09-20-2005 12:33 PM

Quote:

Originally Posted by nexialys
bah, no biggy, some don't like xml files.. lol

post updated...

The file saved fine as a "save target as" right click. Just messing with 'ya. ;)


All times are GMT. The time now is 06:09 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.02099 seconds
  • Memory Usage 1,758KB
  • 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_html_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (3)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