The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Doublepost Prevention Details »» | |||||||||||||||||||||||||
As of 24 Nov 2017 this modification has been withdrawn.
This is an updated version of the popular modification, previously released by Xenon. It is released with his kind permission. Basically, if member posts in a thread where they were the previous last poster, then if the conditions are met, their new post will be auto-merged into the previous post instead of creating a new "double" post. A number of options are provided ; Time Limit - if more than xxx minutes have passed since the last post, no merge is done. Timestamp Spacer - if enabled, a timestamped spacer is added between the old post text and the new post text. Post Timestamp Update - if enabled the newly merged post will have its post time updated to the new time, otherwise it retains the time of the original post. Spacer Colour - allows you to set the colour of the spacer between merged posts. Usergroup exceptions - Allows you to exempt certain usergroups from the doublepost merges. Forum exceptions - Allows you to exempt certain forums form the doublepost merges. All settings are located in vBulletin Options > Doublepost Prevention. To install just unzip the XML and import into vB using the ACP Product Manager. History: v3.8.001 : First Release for vB 3.8. v3.8.002 : Phrased the post separater. v3.8.003 : Added JS Template - removing need to edit quick reply javascript file. v3.8.004 : Updated spacer options. v3.8.005 : Updated timestamp spacer to fix issue with large merge times. Show Your Support
|
2 благодарности(ей) от: | ||
s2lo7 |
Comments |
#12
|
||||
|
||||
Quote:
Quote:
You are doing something wrong then, the code is there. Yes, thought about it a while ago, and decided on it the other day. |
#13
|
|||
|
|||
Find the following code ; in the txt.file not found....
|
#14
|
|||
|
|||
I have searched the whole file, there is no such a code what like in the readme file. I am sure about that,
|
#15
|
||||
|
||||
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(); } } |
#16
|
||||
|
||||
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 |
#17
|
|||
|
|||
Quote:
|
#18
|
||||
|
||||
Are you sure you have the correct file (vbulletin_quick_reply.js, 3.8 version, uncompressed).
There is no way that can be missing |
#19
|
||||
|
||||
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? |
#20
|
|||
|
|||
Quote:
*click* install |
#21
|
|||
|
|||
Quote:
But i added it, and it worked |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|