MyBB Community Forums
Source mode disable - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Source mode disable (/thread-166955.html)



Source mode disable - Eldenroot - 2015-02-12

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


RE: Source mode disable - Destroy666 - 2015-02-12

Run the following query:
UPDATE mybb_users SET sourceeditor = 0



RE: Source mode disable - Eldenroot - 2015-02-12

Thank you. I see there is an issue for this request https://github.com/mybb/mybb/issues/1393 Smile


RE: Source mode disable - Eldenroot - 2015-02-15

Can I request help for these two cases:

- enable PMs from others users
- enable email notification

Thank you very much!


RE: Source mode disable - mmadhankumar - 2015-02-15

(2015-02-15, 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



RE: Source mode disable - Eldenroot - 2015-02-15

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.


RE: Source mode disable - Eldenroot - 2016-03-05

Hi guys, can you help me with SQL query for "uncheck" option in UCP - Hide from Who is online?? Thank you


RE: Source mode disable - .m. - 2016-03-05

^
UPDATE mybb_users SET invisible = 0;

ALTER TABLE `mybb_users` CHANGE `invisible` `invisible` TINYINT(1) NOT NULL DEFAULT '0';



RE: Source mode disable - Eldenroot - 2016-03-07

Thank you very much!