New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to select by default source mode editor in usercp #646
Conversation
I think you should also include the new field in inc/datahandlers/user.php -> verify_options() and insert_user() |
@Destroy666x |
I browsed some other commits and I forgot one more thing - it also needs to be in ACP Edit User like here: eb45fac Also, I don't think the if conditional for codebuttons in datahandler file is correct (it isn't even compliant with MyBB coding standards), probably should use the verify_yesno_option as in the linked commit instead. |
thanks again. Fixed. |
Why this has to bee an user option instead of a administrator one? |
@Sama34 |
Yea, users should be able to change it as it's a personal preference. I tested it and it works, so it can be merged. Maybe only one last small correction is needed: "sourceeditor" => intval($mybb->input['sourceeditor']), intval is not needed there, as I said above showcodebuttons option is introduced in a weird way that doesn't match other yes/no options. Would be nice and helpful if you could also fix showcodebuttons standard (both files - verify_yesno asnd intval) in this PR. |
@Destroy666x |
Ok, thank you. I'll merge it since it works fine as I said. |
Option to select by default source mode editor in usercp
thank very much! |
Original Thread: http://community.mybb.com/thread-154407.html
Option to select by default source mode editor in usercp