MyBB Community Forums

Full Version: Codebuttons in Signature
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok, so after a lot of looking and editing, I got $codebuttons to properly display in the "Edit Signature", but I've run into a major problem...the buttons don't actually work.

They do to an extent...like I can click the list one, and a prompt will pop up and ask for information. Nothing will actually be written into the signature area though! It's very frusterating.

usercp.php has been set to include the codebuttons in the templates...it defines $codebuttons...I'm not sure where the problem is occurring.

The Web Developer Toolbar extension for FireFox is telling me there's an issue on like 262:

Quote:Error: document.input has no properties
Source File: http://mtmoon.pokejungle.net/jscripts/codebuttons.js
Line: 262

But, how come it works on newthread.php / newreply.php / etc? What do they have that usercp.php or the usercp_editsig template needs?

Can anyone help? I really want to give users the option of using the code buttons to construct their signatures. It's an important feature myBB lacks.

EDIT: I re-arranged some of the code, now I'm getting the following javascript errors:

Quote:Error: formElement has no properties
Source File: http://mtmoon.pokejungle.net/jscripts/codebuttons.js
Line: 314

Quote:Error: messageBox has no properties
Source File: http://mtmoon.pokejungle.net/jscripts/codebuttons.js
Line: 283