Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] How to Remove "View Source" as the default mode in Editor for all users.
#1
Not Solved Lightbulb 
Mybb Version - 1.8.1
Theme - Square

Hello there,

I want to know If there is any way to remove "View Source Mode" from being the default mode in the editor for all the users and have the general mode on.

Right now you have go in the cp of every user individually to uncheck view source mode as default option.
So is there any way to edit or change this setting globally. ?

Thanx Huh
Reply
#2
Not Solved
you can run this SQL query
UPDATE `mybb_users` SET `sourceeditor` = '0'

see this guidance if required => how to run SQL queries
Reply
#3
Not Solved
Got an Error.

Error
SQL query:


UPDATE mybb_users SET sourceeditor = '0'
MySQL said: Documentation

#1146 - Table '*****_mbb1.mybb_users' doesn't exist
Reply
#4
Not Solved
try this
UPDATE `mbb1_users` SET `sourceeditor` = '0'
Reply
#5
Not Solved
Between I want this option to be in place by default so new users can have the normal mode in their editor from the beginning..

"Put the editor in source mode by default" - This option under 'Other Options' comes checked by default when a user registers and I want it unchecked.

(10-31-2014, 04:19 PM).m. Wrote: try this

UPDATE `mbb1_users` SET `sourceeditor` = '0'

Same Error Huh
Reply
#6
Not Solved
I am mistaken about table prefix used for your MyBB forum database. can you check it in ./inc/config.php file

$config['database']['table_prefix'] = 'mybb_';
what you have in place of mybb_ ?
Reply
#7
Not Solved
(10-31-2014, 04:46 PM).m. Wrote: I am mistaken about table prefix used for your MyBB forum database. can you check it in ./inc/config.php file


$config['database']['table_prefix'] = 'mybb_';
what you have in place of mybb_ ?

It's mybb only..
Reply
#8
Not Solved
^ can you once again see the suggested guidance in post #2 - also you have to run that query only
Reply
#9
Not Solved
(10-31-2014, 05:03 PM).m. Wrote: ^ can you once again see the suggested guidance in post #2 - also you have to run that query only

Tried again. No Luck :p

Anyways Thanx for your help.. Smile
Reply
#10
Not Solved
you can add below code in a php file , upload the file to your MyBB forum files server root folder and visit forumURL/filename.php in your browser

<?php
define("IN_MYBB",1);
include("./global.php");
$db->query("UPDATE `mybb_users` SET `sourceeditor` = '0';");
echo "done";
?>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)