MyBB Community Forums

Full Version: CODEBUTTONS editor in custom page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Lurker, first time posting after running into a problem I can't find the answer to.

I've made a custom page that basically adds a full-page editor for the 'Bio' (FID2) field in userfields. It works, but I'd like to add the sceditor to it and the $codebuttons template doesn't display.

$codebuttons = build_mycode_inserter();
This doesn't seem to do anything, either.

How can I add the editor into a custom page?
https://community.mybb.com/thread-221727...pid1324042

You could ask here and see if someone can make a plugin for it.
What you need to do is use the id attribute for your textarea. Message will work automatically with how you have your code. If you are using an id other than message, the first parameter of build_mycode_inserter should be the id of the textarea. https://github.com/mybb/mybb/blob/featur....php#L3211
With all due respect, iAndrew , that thread wasn't relevant at all. That person didn't know how to make an input form or use the data manager/execute SQL queries.

dragonexpert -- you are a genius. Or... an expert at more than dragons. Slapped the ID tag on there and it worked a charm. Thank you so much.