(2015-01-19, 10:31 AM)Ad Bakker Wrote: Sorry, wrong solution.
Try:
Change the template "codebuttons" in the set "Ungrouped Templates". When line 35 is changed to:
PHP Code:
MyBBEditor.sourceMode(true);
it works with me
Yes but this will ignore the option of CPUser.
I solved this adding a line in 'member.php'
find:
$user['options'] = array(
"allownotices" => $mybb->get_input('allownotices', 1),
"hideemail" => $mybb->get_input('hideemail', 1),
"subscriptionmethod" => $mybb->get_input('subscriptionmethod', 1),
"receivepms" => $mybb->get_input('receivepms', 1),
"pmnotice" => $mybb->get_input('pmnotice', 1),
"pmnotify" => $mybb->get_input('pmnotify', 1),
"invisible" => $mybb->get_input('invisible', 1),
"dstcorrection" => $mybb->get_input('dstcorrection')
);
and add "sourceeditor" line:
$user['options'] = array(
"sourceeditor" => $mybb->get_input('sourceeditor', 1),
"allownotices" => $mybb->get_input('allownotices', 1),
"hideemail" => $mybb->get_input('hideemail', 1),
"subscriptionmethod" => $mybb->get_input('subscriptionmethod', 1),
"receivepms" => $mybb->get_input('receivepms', 1),
"pmnotice" => $mybb->get_input('pmnotice', 1),
"pmnotify" => $mybb->get_input('pmnotify', 1),
"invisible" => $mybb->get_input('invisible', 1),
"dstcorrection" => $mybb->get_input('dstcorrection')
);
And adding:
<input type="checkbox" class="checkbox" style="visibility: hidden;" name="sourceeditor" id="sourceeditor" value="1" />
...in 'member_register' template
This will leave the source editor as disabled by default in the registry, but if the user decides to activate it in the control panel, will work correctly