Small bug in the Quick Editor function in postbit


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Small bug in the Quick Editor function in postbit
# 1  
Old 08-05-2018
Small bug in the Quick Editor function in postbit

Hey,

There was a small bug in the Quick Editor function in postbit, but I fixed it (basically a double quote was missing from an element id):

Code:
<div id="post_message_$post[postid]" class="neo-message-area">$post[message]</div>

Was

Code:
<div id="post_message_$post[postid] class="neo-message-area">$post[message]</div>

Should be runnin' much smoother now Smilie
# 2  
Old 08-05-2018
Hmm. There is still small bug in the "Quick Editor" and to fast fix it requires a page reload, so I've temporary disabled "Quick Editor" and so the post editor button takes us directly to the 'advanced' editor with the attachments, etc.

If you really love the "Quick Editor" more than the "Advanced Editor" please post back and comment and I'll set a UserCP option for you; but then you will get a "reload" after saving in the "Quick Editor".

The problem is that the javascript in:

Code:
vbulletin_quick_edit.js

Generated an error on this line:

Code:
fetch_object("post" + this.postid).innerHTML = B

PS: I don't want to spend too much time fixing this because I plan to replace all this code with div tags when I get rid of the tables, and hopefully the problem will be solved.

.. saying the object does not exist; but it does exist and is not a duplicate, so I can fix it by changing this to:

Code:
fetch_object("post_message_" + this.postid).innerHTML = B
reload.location();

But this is a poor solution, so I disabled it and opted for the "Advanced Editor" which does not have this pesky error.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Web Development

New Font Awesome Icons in Quick Reply Editor

Working on the Quick Reply Editor, I have replaced a number of icons (see image below) with Font Awesome Icons. Was planning to replace all of them, but for some reason, replacing a few of them causes the script / template to break (which is odd) so I left them for now. ... (6 Replies)
Discussion started by: Neo
6 Replies

2. What is on Your Mind?

A Choice: Draggable Editors or Smilie Box on Quick Editor

Hey, I wrote some new jQuery UI code which makes, for example, the "Quick Reply Editor" draggable and it works very cool. jQuery UI also changes the tooltip mouseovers and they are fine. But, when I add the JS lib do make all this magic happen, it breaks the JS for the Smile Box and the... (5 Replies)
Discussion started by: Neo
5 Replies

3. Programming

Tweaked getpass() function gives an untraceable bug

I have customized the getpass() as follows: char* my_getpass(const char* str) { struct termios oflags, nflags; static char passwd; /* disabling echo */ tcgetattr(fileno(stdin), &oflags); nflags = oflags; nflags.c_lflag &= ~ECHO; nflags.c_lflag |= ECHONL; ... (3 Replies)
Discussion started by: royalibrahim
3 Replies

4. Programming

Small query regarding function "char * strerror(int errnum)"

As this function returns the address of the string corressponding to the errno value provided to it. Can someone please let me know where, in the memory, it could be (on freeBSD). The MAN page tells under the BUG section that "For unknown error numbers, the strerror() function will return its... (5 Replies)
Discussion started by: Praveen_218
5 Replies

5. Shell Programming and Scripting

Sort function UNIX bug ???

Hello there i have a funny behiavor of the sort fonction, i try it out on different Solaris machine and i have the same issue. So i would like to see if there is a rationel explanation here is some data in a file:test.txt ,Test,RSD,RSD_Asset ,Test,RSD,RSD_Credit ,Test,RSD,RSD_Liab... (3 Replies)
Discussion started by: kykyboss
3 Replies

6. Shell Programming and Scripting

Bug in Function Call

Can anybody tell me where is the bug in this below mentioned function call. #The String Search File myString="${LOCATION}/config/stringFile.txt" # Functional Usage function usage() { if ; then echo "************************************************************" ... (5 Replies)
Discussion started by: baraghun
5 Replies

7. Shell Programming and Scripting

bash-function with array acting bizarre, bug?

Hello, basically what this script is supposed to do is showing a list of hosts that is given a number, that you will be able to choose from a list. A check is made to verify that the chosen number is within the array and this is where things go bad and I don't know why, bizarre. I've spent... (5 Replies)
Discussion started by: gand
5 Replies

8. Shell Programming and Scripting

Function Bug in script - need help

My script is erroring with: testtapemgr.sh: FTP_RETURNS: not found I cannot see what I am doing wrong..when it calls that function from the Volume returns function and says taht FTP_RETURNS is not found and exits out of the script. What am I not seeing here? #### Return Volume Function ... (4 Replies)
Discussion started by: gzs553
4 Replies
Login or Register to Ask a Question