You are currently browsing the category archive for the 'Projects' category.
I’ve been working on a customized implementation of MediaWiki to use for library policies and procedures in technical services. It will be part of our public website, so it needed to fit into its design, incorporate WYSIWYG editing, and only be editable by staff with user accounts. It isn’t live yet, so here are a few screenshots from the test site.
Sample public page
Sample page when logged in
Edit screen
I’ve been working on customizing an installation of Mediawiki for library policies. We wanted to restrict editing and upload capabilities to only a certain group of users. Here is the code I added to the LocalSettings.php file to achieve what we needed.
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;
# Only sysop users can edit pages
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
# Only sysop users can upload files
$wgGroupPermissions['*']['upload'] = false;
$wgGroupPermissions['user']['upload'] = false;
$wgGroupPermissions['sysop']['upload'] = true;
# Only sysop users can reupload (replace) files
$wgGroupPermissions['*']['reupload'] = false;
$wgGroupPermissions['user']['reupload'] = false;
$wgGroupPermissions['sysop']['reupload'] = true;
Here are a few webpages I found useful when researching how to configure the settings:



