Disable Config Changes? - NBS






 

 

Disable Config Changes? - NBS

View Full Version : Disable Config Changes?


NoM
18-Nov-2006, 03:15 PM
In the config of a new board,
I was wondering if there is a way to disable users from changing certain things such as cookie path and board url, like it will still be in the registry but not shown in the config so the person owning the board cannot change things I dont want them to..

Derek
18-Nov-2006, 04:36 PM
It's already like that. If they make changes it just reverts back to the ones they should have had.

NoM
19-Nov-2006, 09:02 PM
I know but im talking about stopping them from doing things like disabling avatars and stuff

Derek
20-Nov-2006, 02:27 AM
You will need to edit admin/admin_board.php, and add the names of the fields to the $nbs_ignore array like this...


$nbs_ignore = array(
'server_name',
'server_port',
'script_path',
'cookie_domain',
'cookie_name',
'cookie_path',
'smilies_path',
'avatar_path',
'avatar_gallery_path',
'avatar_max_height',
'avatar_max_width',
);


etc...

Note that if you are doing this for stuff that is off by default, you will have to edit new_forum_sql.php, and change the default to 1 for the ones that are off that you are preventing them from turning off.

Derek