PDA

View Full Version : Having Board Con figuration defaults


computel
11-29-2006, 04:30 PM
I would like newly created forums to have defaults that can't be changed.

I know you have to edit the new_forum_sql.php file to have them set when the forum is setup.

How do I prvent from the board admin from changing setting

examples

General Board Settings

Enable GZip Compression No
Enable Forum Pruning Yes

Private Messaging

Max posts in Inbox 10
Max posts in Sentbox 10
Max posts in Savebox 10


Avatar Settings

Enable avatar uploading No


How would I do this.

Thanks

Derek
11-29-2006, 04:45 PM
Open admin/admin_board.php

Find:

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


Add the field names of the files you don't want them changing to that array.

Derek

computel
11-29-2006, 05:50 PM
Can't stop the forum from changing the private massage limits here is my settings



$nbs_ignore = array(
'server_name',
'server_port',
'script_path',
'cookie_domain',
'cookie_name',
'cookie_path',
'smilies_path',
'avatar_path',
'avatar_gallery_path',
'Inbox_limits',
'Sentbox_limits',
'Savebox_limits',
'max_inbox_privmsg',
'max_sentbox_privmsg',
'max_savebox_privmsg',
'allow_avatar_upload',
'gzip_compress',
'prune_enable',
'Flood_Interval',
'search_Flood_Interval',
'enable_confirm',
);

Derek
11-29-2006, 07:45 PM
'max_inbox_privmsg',
'max_sentbox_privmsg',
'max_savebox_privmsg',

are missing an s at the end of each one.