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

Paul M 01-31-2009 02:52 PM

Quote:

Originally Posted by jshg46 (Post 1729939)
be nice to see something like this for attachments, but have it if any member post an attachment with the same name it will not let them post it.

Posts with attachments are not merged by design, I have no plans to alter that.

Quote:

Originally Posted by Subah (Post 1729949)
Thanks a lot Paul but what about attached the file that you say it is need to edit ?
i can not edit !! or i mean i do not know how to !!

Sorry, but free support does not extend to to teaching you how to edit files.

Quote:

Originally Posted by Rat1972 (Post 1729953)
I searched in the javascript, but no such code to replace with.

You are doing something wrong then, the code is there.

Quote:

Originally Posted by nexialys (Post 1729980)
thanks Paul... looks like the harrasments to release this version finally gave a result.. LOL!

Yes, thought about it a while ago, and decided on it the other day.

RedHacker 01-31-2009 03:36 PM

Find the following code ; in the txt.file not found....

Rat1972 01-31-2009 03:51 PM

Quote:

Originally Posted by Paul M (Post 1729985)


You are doing something wrong then, the code is there.

I have searched the whole file, there is no such a code what like in the readme file. I am sure about that, :)

Paul M 01-31-2009 04:05 PM

The code is there (in vbulletin_quick_reply.js)

I just looked for it again ;

Code:

function qr_do_ajax_post(ajax)
{
        if (ajax.responseXML)
        {
                document.body.style.cursor = 'auto';
                fetch_object('qr_posting_msg').style.display = 'none';
                var i;

                if (fetch_tag_count(ajax.responseXML, 'postbit'))
                {
                        ajax_last_post = ajax.responseXML.getElementsByTagName('time')[0].firstChild.nodeValue;
                        qr_disable_controls();
                        qr_hide_errors();

                        var postbits = ajax.responseXML.getElementsByTagName('postbit');
                        for (i = 0; i < postbits.length; i++)
                        {
                                var newdiv = document.createElement('div');
                                newdiv.innerHTML = postbits[i].firstChild.nodeValue;
                                var lp = fetch_object('lastpost');
                                var lpparent = lp.parentNode;
                                var postbit = lpparent.insertBefore(newdiv, lp);

                                PostBit_Init(postbit, postbits[i].getAttribute('postid'));
                        }


                        // unfocus the qr_submit button to prevent a space from resubmitting
                        if (fetch_object('qr_submit'))
                        {
                                fetch_object('qr_submit').blur();
                        }
                }
                else
                {
                        if (!is_saf)
                        {
                                // this is the nice error handler, of which Safari makes a mess
                                var errors = ajax.responseXML.getElementsByTagName('error');
                                if (errors.length)
                                {
                                        var error_html = '<ol>';
                                        for (i = 0; i < errors.length; i++)
                                        {
                                                error_html += '<li>' + errors[i].firstChild.nodeValue + '</li>';
                                        }
                                        error_html += '</ol>';

                                        qr_show_errors('<ol>' + error_html + '</ol>');

                                        return false;
                                }
                        }

                        qr_resubmit();
                }
        }
        else
        {
                qr_resubmit();
        }
}


Magnumutz 01-31-2009 04:06 PM

Awesome Paul, good job mate !

Later edit: What the hell, i can't find any of those phrases in the js file...

A bit Later edit: I'm using 3.8.1

Rat1972 01-31-2009 04:12 PM

Quote:

Originally Posted by Paul M (Post 1730053)
The code is there (in vbulletin_quick_reply.js)

I just looked for it again ;

Code:

function qr_do_ajax_post(ajax)
{
        if (ajax.responseXML)
        {
                document.body.style.cursor = 'auto';
                fetch_object('qr_posting_msg').style.display = 'none';
                var i;

                if (fetch_tag_count(ajax.responseXML, 'postbit'))
                {
                        ajax_last_post = ajax.responseXML.getElementsByTagName('time')[0].firstChild.nodeValue;
                        qr_disable_controls();
                        qr_hide_errors();

                        var postbits = ajax.responseXML.getElementsByTagName('postbit');
                        for (i = 0; i < postbits.length; i++)
                        {
                                var newdiv = document.createElement('div');
                                newdiv.innerHTML = postbits[i].firstChild.nodeValue;
                                var lp = fetch_object('lastpost');
                                var lpparent = lp.parentNode;
                                var postbit = lpparent.insertBefore(newdiv, lp);

                                PostBit_Init(postbit, postbits[i].getAttribute('postid'));
                        }


                        // unfocus the qr_submit button to prevent a space from resubmitting
                        if (fetch_object('qr_submit'))
                        {
                                fetch_object('qr_submit').blur();
                        }
                }
                else
                {
                        if (!is_saf)
                        {
                                // this is the nice error handler, of which Safari makes a mess
                                var errors = ajax.responseXML.getElementsByTagName('error');
                                if (errors.length)
                                {
                                        var error_html = '<ol>';
                                        for (i = 0; i < errors.length; i++)
                                        {
                                                error_html += '<li>' + errors[i].firstChild.nodeValue + '</li>';
                                        }
                                        error_html += '</ol>';

                                        qr_show_errors('<ol>' + error_html + '</ol>');

                                        return false;
                                }
                        }

                        qr_resubmit();
                }
        }
        else
        {
                qr_resubmit();
        }
}


The whole block is missing in my script... Strange.

Paul M 01-31-2009 04:18 PM

Are you sure you have the correct file (vbulletin_quick_reply.js, 3.8 version, uncompressed).

There is no way that can be missing ;)

Magnumutz 01-31-2009 04:22 PM

Dude, i just downloaded 3.8.1 from the vBulletin Member's Area, and the code is not there.
vBulletin gets downloaded with uncompressed js's by default, right?

Rat1972 01-31-2009 04:23 PM

Quote:

Originally Posted by Paul M (Post 1730067)
Are you sure you have the correct file (vbulletin_quick_reply.js, 3.8 version, uncompressed).

There is no way that can be missing ;)

I am absolute sure and it was missing. But i added (the block) it the vbulletin_quick_reply and it work like charm. Strange it was missing, but now its working! Thanks Paul!


*click* install

Rat1972 01-31-2009 04:23 PM

Quote:

Originally Posted by Magnumutz (Post 1730071)
Dude, i just downloaded 3.8.1 from the vBulletin Member's Area, and the code is not there.
vBulletin gets downloaded with uncompressed js's by default, right?

Same here :D
But i added it, and it worked :)


All times are GMT. The time now is 05:31 PM.

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.01343 seconds
  • Memory Usage 1,766KB
  • 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
  • (2)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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