Difference between revisions of "User:Admin"

From FRC11 - Mentor Wiki
Jump to navigation Jump to search
 
(76 intermediate revisions by 2 users not shown)
Line 1: Line 1:
−
Administration Control Panel - [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages]
+
== Change Logs ==
 +
Please update the logs when making relevant administrative changes.
  
−
'''Changes to block new user creation:'''
+
* [[User:Admin Change Log]] - Administrative Change History across the Wiki
 +
* [[Security Change Log]] - Administrative Change History affecting security
  
−
Need to edit:
+
== Actions ==
−
/home/wasteam8/public_html/mentor.wiki/LocalSettings.php
+
* [http://mort11.com/mentor.wiki/index.php/Special:SpecialPages Administrative Control Panel] 
 +
:Includes ''Create Account''.  Usernames should be <firstinitial><lastname>. E.g. for Joe Admin the username should be <code>jadmin</code>.
 +
* [http://mort11.com/extplorer Edit Config Files in eXtplorer]
 +
* [http://mort11.com/extplorer Add files for Download in eXtplorer] Add files directly into (not into a subfolder!) in: /downloads/mentor.wiki
 +
* [http://mort11.com/mentor.wiki/index.php/MediaWiki:Sidebar Edit the Sidebar]
 +
* [http://mort11.com/mentor.wiki/index.php/Special:Version Check MediaWiki Versions]
 +
* [https://mort11.com/mentor.wiki/index.php/Special:UserMerge Deleting Users] Merge to user <code>DeletedUsers</code> and check Delete old user.
  
−
Add this to the bottom:
+
== How To Administer a MediaWiki ==
−
 
+
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]
−
# Regulate user group permissions.
+
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings List of Configuration Settings]
−
$wgGroupPermissions['*']['createaccount'] = false;
+
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Join the MediaWiki Release Mailing List]
−
$wgGroupPermissions['user']['createaccount'] = false;
+
* [[How to Use a Logo on MediaWiki]]
−
$wgGroupPermissions['administrators']['createaccount'] = false;
+
* [[How to Block User Rights]]
−
 
+
* [[How to block new user creation and password reset]]
−
Need to edit:
+
* [[How to Force users to connect using HTTPS and turn on HSTS]]
−
/home/wasteam8/public_html/mentor.wiki/includes/specials/SpecialCreateAccount.php
+
* [[How to generate a GPG public/private key pair to get SSH keys]]
−
 
+
* [[How to rename the Main page]]
−
Edit this function:
+
* [https://mediawiki.org/wiki/Manual:Interface/Sidebar How to edit the sidebar]
−
 
+
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources How to Localize MediaWiki for your language]
−
public function userCanExecute( User $user ) {
+
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam How to combat spam on your wiki]
−
  /**
+
* [https://www.mediawiki.org/wiki/Extension:UserMerge How to delete users once created]
−
    * return $user->isAllowed( 'createaccount' );
 
−
  */
 
−
  global $wgUser;
 
−
  if ( $wgUser->isLoggedIn() ) {
 
−
    return $user->isAllowed( 'createaccount' );
 
−
  } else {
 
−
    return false;
 
−
  }
 
−
  }
 
−
 
 
−
This will block non-logged-in users from viewing the content if the user group isn't configured in the LocalSettings.php.
 
−
Can be used in other things as well.
 
−
 
 
−
Relevant Links:
 
−
 
 
−
https://lists.gt.net/wiki/mediawiki/126271
 
−
https://www.mediawiki.org/wiki/Manual:Special_pages#Constructor
 
−
https://www.mediawiki.org/wiki/Manual:LocalSettings.php#User_rights
 
−
https://www.mediawiki.org/wiki/Manual:User_rights#Example
 
−
https://stackoverflow.com/questions/219135/how-do-i-create-my-own-custom-group-in-mediawiki
 
−
https://www.mediawiki.org/wiki/Topic:Qji4lqoeaodggoft
 
−
https://www.mediawiki.org/wiki/Topic:Pl8qrwn9l15vc0ex
 
−
https://doc.wikimedia.org/mediawiki-core/master/php/classUser.html
 
−
https://www.mediawiki.org/wiki/Extension%3aAccessControl
 
−
 
 
−
'''Force users to connect using HTTPS and turn on HSTS:'''
 
−
 
 
−
Create .htaccess files in the sub-folder of the website and put this text in the file:
 
−
 
 
−
Header set Strict-Transport-Security "max-age=300" env=HTTPS
 
−
RewriteEngine On
 
−
RewriteCond %{SERVER_PORT} 80
 
−
RewriteRule ^(.*)$ <nowiki>https://{replace with relevant URL}/$1</nowiki> [R=301,L]
 
−
 
 
−
'''MediaWiki notes:'''
 
−
 
 
−
<ol start>
 
−
# To make code blocks, indent the content with at least 1 space.
 
−
# To put URLs into code blocks without being acted upon use <  nowiki > < /nowiki > tags (remove the spaces inside the symbols), this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway).
 
−
# To make numbered lists, start the list with < ol start > < /ol start > tags (remove the spaces inside the symbols), then start each line with a hashtag.
 
−
# MediaWiki logos should be around 100 pixels wide and 150 pixels tall.
 
−
# MediaWiki logos go in the folder: /home/wasteam8/public_html/mentor.wiki/resources/assets
 
−
# Edit LocalSettings.php and change the $wgLogo variable to set the logo.
 
−
</ol start>
 
−
 
 
−
'''How to generate a GPG public/private key pair to get SSH keys:'''
 
−
 
 
−
<ol start>
 
−
# For Windows download GPG4Win: https://gpg4win.org/download.html
 
−
    Don't panic when it asks for a donation, select PayPal and $0.
 
−
# During install select your language, usually English.
 
−
# Then uncheck the check boxes next to GPA and GpgOL.
 
−
</ol start>
 

Latest revision as of 15:15, 11 October 2019

Change Logs

Please update the logs when making relevant administrative changes.

Actions

Includes Create Account. Usernames should be <firstinitial><lastname>. E.g. for Joe Admin the username should be jadmin.

How To Administer a MediaWiki