There is a BUG in this product.
- User in his options sets : Message Editor Interface -> Basic Editor - A simple text box
- After that the user tries to make a Quick Edit of any of his posts.
- He will fail to do that.
- He presses "Save" button in Ajax Quick Edit form
- Forum will try to save the post
- But it will fail to do so with JavaScript error
Code:
Line:1
Symbol:5436
Code:0
Error:Object needed
URL:https://vborg.vbsupport.ru/misc.php?do=qei_quickedit&v=384
- And progress image
is been shown.
- This will continue until user will reload the page or will hit "Cancel" button.
- The post will not be saved.
To go around this one we have to use:
PHP Code:
$vbulletin->userinfo['showvbcode']
In other words, for example find this one:
PHP Code:
if ($vbulletin->options['qeimp_enabled'])
and replace with this one:
PHP Code:
if ($vbulletin->options['qeimp_enabled'] AND $vbulletin->userinfo['showvbcode'])
I have made such changes around the product.
Here they are:
PHP Code:
<plugin active="1" executionorder="1">
<title>Cache Templates</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[
if ($vbulletin->options['qeimp_enabled'] AND $vbulletin->userinfo['showvbcode'])
PHP Code:
<plugin active="1" executionorder="1">
<title>Button Visibility Bitfields</title>
<hookname>global_start</hookname>
<phpcode><![CDATA[
if ($vbulletin->options['qeimp_enabled'] AND $vbulletin->userinfo['showvbcode'])
PHP Code:
<plugin active="1" executionorder="1">
<title>vBulletin Blog Comments - Set Form Width</title>
<hookname>global_setup_complete</hookname>
<phpcode><![CDATA[
if (($vbulletin->options['qeimp_enabled'] AND $vbulletin->options['qei_qr_formwidth']) AND intval($vbulletin->options['qei_visiblebuttons']) > 0 AND $qei_apply AND $vbulletin->userinfo['showvbcode'])
PHP Code:
<plugin active="1" executionorder="1">
<title>Improve Editor</title>
<hookname>editor_toolbar_start</hookname>
<phpcode><![CDATA[
global $qei_apply;
if ($qei_apply & $vbulletin->options['qei_show_postingrules_in_box'] AND $vbulletin->userinfo['showvbcode'])
PHP Code:
<plugin active="1" executionorder="1">
<title>Improve Editor</title>
<hookname>editor_toolbar_end</hookname>
<phpcode><![CDATA[
if ($vbulletin->options['qeimp_enabled'] AND $qei_apply AND $vbulletin->userinfo['showvbcode'])
PHP Code:
<plugin active="1" executionorder="1">
<title>SHOWTHREAD - Quick Attachment</title>
<hookname>showthread_post_start</hookname>
<phpcode><![CDATA[
if ($vbulletin->options['qeimp_enabled'] AND $qei_apply AND $vbulletin->userinfo['showvbcode'])
PHP Code:
<plugin active="1" executionorder="1">
<title>AJAX Postbit QuickEdit with Attachments</title>
<hookname>ajax_start</hookname>
<phpcode><![CDATA[
if ($_POST['do'] == 'quickedit' AND $vbulletin->userinfo['showvbcode'])
PHP Code:
<plugin active="1" executionorder="1">
<title>Prepare for Postbit QuickEdit - Attachments</title>
<hookname>newattachment_complete</hookname>
<phpcode><![CDATA[
if ($_REQUEST['qeiajax'] AND $vbulletin->userinfo['showvbcode'])
PHP Code:
<plugin active="1" executionorder="1">
<title>Check Postbit Attachment Require - AJAX Mode</title>
<hookname>editpost_update_start</hookname>
<phpcode><![CDATA[
if (($vbulletin->GPC['ajax']) AND $qei_apply AND (2 & $vbulletin->options['qei_qr_show_attachment']) AND $vbulletin->userinfo['showvbcode'])
PHP Code:
<plugin active="1" executionorder="1">
<title>Display Postbit - AJAX Mode</title>
<hookname>editpost_edit_ajax</hookname>
<phpcode><![CDATA[
if ($qei_apply AND (2 & $vbulletin->options['qei_qr_show_attachment']) AND $vbulletin->userinfo['showvbcode'])
PHP Code:
<plugin active="1" executionorder="1">
<title>SHOWTHREAD - Quick Reply</title>
<hookname>showthread_complete</hookname>
<phpcode><![CDATA[
if ($vbulletin->options['qeimp_enabled'] AND $qei_apply AND $vbulletin->userinfo['showvbcode'])