Instructions for use
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
}} | }} | ||
− | * added parser functions: #userAffiliatedTo and #userRealName, the first returns the organization to which the logged in user is affiliated and the second the user real name. This is used for instance in forms, to allow the user to appear as affiliated to his/her organization when contributing to some common contents, to add a prefix to uploaded pictures (see below), and more. | + | * added parser functions: #userAffiliatedTo and #userRealName, the first returns the organization to which the logged in user is affiliated and the second the user real name. This is used for instance in forms, to allow the user to appear as affiliated to his/her organization when contributing to some common contents,<!-- to add a prefix to uploaded pictures (see below),--> and more. |
{{unordered list | {{unordered list | ||
Line 16: | Line 16: | ||
}} | }} | ||
+ | <!-- | ||
{{unordered list | {{unordered list | ||
|added attribute "filename prefix" to be used in forms, e.g. | |added attribute "filename prefix" to be used in forms, e.g. | ||
Line 21: | Line 22: | ||
in combination with #userAffiliatedTo | in combination with #userAffiliatedTo | ||
}} | }} | ||
− | + | --> | |
==Forked functions== | ==Forked functions== | ||
Below is a list of the changes made to mediawiki source code in order to fit the needs of "Culturaitaliana.org". | Below is a list of the changes made to mediawiki source code in order to fit the needs of "Culturaitaliana.org". | ||
− | * uploadApi (file includes/api/ApiUpload.php) on upload, the filename of uploaded file is prefixed with the name of the organization to which the logged in user if affiliated. The same applies, as above, to pictures uploaded through PageForms | + | * uploadApi (file includes/api/ApiUpload.php) on upload, the filename of uploaded file is prefixed with the name of the organization to which the logged in user if affiliated. The same applies, as above, to pictures uploaded through PageForms. |
+ | ** todo: update PageForms uploaded picture preview searching class "simpleupload_prv" |
Revision as of 22:20, 16 February 2020
- Before importing templates or modules through either and so on, please import on another test wiki database on the same server, with the same LocalSettings.php, because the import might fail (for instance importing Module:TNT from wikipedia instead than from mediawiki) due to Lua script parsing.
- added parser functions: #userAffiliatedTo and #userRealName, the first returns the organization to which the logged in user is affiliated and the second the user real name. This is used for instance in forms, to allow the user to appear as affiliated to his/her organization when contributing to some common contents, and more.
- Once that an organization is added, create an entry in LocalSettins.php like
where {organization name} should be replaced with the organization name with spaces replaced by underscores, and the user affiliated to the organization should be added to a group with edit rights and to such group ('memberof_{organization name}')
$wgGroupPermissions['memberof_{organization name}']['edit'] = false;
Forked functions
Below is a list of the changes made to mediawiki source code in order to fit the needs of "Culturaitaliana.org".
- uploadApi (file includes/api/ApiUpload.php) on upload, the filename of uploaded file is prefixed with the name of the organization to which the logged in user if affiliated. The same applies, as above, to pictures uploaded through PageForms.
- todo: update PageForms uploaded picture preview searching class "simpleupload_prv"