MyBB Community Forums

Full Version: Source mode disable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could you help me how to disable (uncheck) "Put the editor in source mode by default" for all users? Thank you!


P.S. There should be an option for this in mybb
Run the following query:
UPDATE mybb_users SET sourceeditor = 0
Thank you. I see there is an issue for this request https://github.com/mybb/mybb/issues/1393 Smile
Can I request help for these two cases:

- enable PMs from others users
- enable email notification

Thank you very much!
(02-15-2015, 10:27 AM)Eldenroot Wrote: [ -> ]Can I request help for these two cases:

- enable PMs from others users
- enable email notification

Thank you very much!

UPDATE mybb_users SET receivepms = 1

UPDATE mybb_users SET pmnotify = 1
Thank you... I need to create a task for this. It is easier than run it manually

<?php
function task_myuserqueries($task)
{
    global $db;

    $db->query("UPDATE mybb_users SET sourceeditor='0', receivepms='1', pmnotify='1'");
    
    add_task_log($task, "Myuserqueries ran successfully!");
}
?>

OK, I created a task with this php code... but it is not working. When I run this in sql query (in my db) it works fine.
Hi guys, can you help me with SQL query for "uncheck" option in UCP - Hide from Who is online?? Thank you
^
UPDATE mybb_users SET invisible = 0;

ALTER TABLE `mybb_users` CHANGE `invisible` `invisible` TINYINT(1) NOT NULL DEFAULT '0';
Thank you very much!