After two years of promising to look at this, I finally did (mostly because I had to update several wikis to use SMW).
It requires only a very minor patch to GlobalFunctions.php to install, and I'm working on removing that barrier in the future.
See: http://www.mediawiki.org/w/index.php?title=Extension:NSFileRepo for full details and installation instructions.
==What can this extension do? ==
The NSFileRepo extension implements a way to restrict access to specified files and images to a given set of user groups using NameSpace protections. This provides a more fine grained security model and allows access restriction to users in specified groups.
==Usage==
Generically, you use the same syntax as a normal file/image reference link, adding the namespace between the file specifier ("File","Image", or "Media"), and the file name:
[[{FILE_NS}:{Namespace}:{Filename}]]
Example(Where "Project" is the protected namespace and "ProjectFile.pdf" is the file to which you wish to limit access):
[[File:Project:ProjectFile.pdf]]]
The standard for accessing files/images is generally:
[[File:Filename.txt]] [[Image:Filename.jpg]] [[Media:Filename.pdf]]
This extension allows you to protect access to files/images, by adding the namespace text identifier after the file namespace identifier, for example(Where "Project" is the protected namespace and "ProjectFile.xxx" is the file to which you wish to limit access):
[[File:Project:Filename.txt]] [[Image:Project:Filename.jpg]] [[Media:Project:Filename.pdf]]
Limitations of security are the same as for Extension Lockdown. To review these limitations, [[Extension:Lockdown#Additional_measures | please reference here]].
To use the full capabilities of this extension (e.g., specific namespace protections), you will need to install and use the namespace protections provided through [[Extension:Lockdown]].
This extension was made possible by the introduction of Repository Classes by Tim Starling - an elegant and brilliant implementation. It uses a new Local Repository class mechanism. Technical details on how this extension works can be found [[Extension:NSFileRepo/DOC | here]].
This extension has only been tested on 1.15.0, but should work on everything
= 1.13.0
I will be testing 1.13.0 and 1.14.0 within the next couple of days. As always, I appreciate any help/advice/support.
Hope this helps!
Jack D. Pond "Although prepared for martyrdom, I preferred that it be postponed." -- Sir Winston Leonard Spencer Churchill(1874-1965)
When using the search field in the past I was limited to searching for words with 4 or more letters due to the MySQL configuration. When 1.14.0 came out the release notes (bug 7726) say that the 4 letter limit is worked around and all words can be searched, and this seems to be the case, all the way down to one letter.
However when I upgraded from Mediawiki 1.12.0 to 1.14.0 this search only works on pages saved since the upgrade. Pages that were last saved under Mediawiki 1.12.0 still have the 4 letter search limitation. So it seems that the only pages that can be searched for words less than 4 letters had to have been saved under 1.14.0 (or greater).
Is there a way to allow all pages to be searched down to one word letters outside of having to edit/save every page?
Thanks in advance, -Jim
On Fri, Jul 17, 2009 at 4:46 PM, Sullivan, James (NIH/CIT) [C] < sullivan@mail.nih.gov> wrote:
When using the search field in the past I was limited to searching for words with 4 or more letters due to the MySQL configuration. When 1.14.0 came out the release notes (bug 7726) say that the 4 letter limit is worked around and all words can be searched, and this seems to be the case, all the way down to one letter.
However when I upgraded from Mediawiki 1.12.0 to 1.14.0 this search only works on pages saved since the upgrade. Pages that were last saved under Mediawiki 1.12.0 still have the 4 letter search limitation. So it seems that the only pages that can be searched for words less than 4 letters had to have been saved under 1.14.0 (or greater).
Is there a way to allow all pages to be searched down to one word letters outside of having to edit/save every page?
Thanks in advance, -Jim
Run the rebuildtextindex.php maintenance script. < http://www.mediawiki.org/wiki/Manual:Rebuildtextindex.php%3E
Thanks. Ran into a problem where I got a mysql error saying that my wiki's database username did not have ALTER rights. I think the wiki's user, as specified during the installation, only has SELECT,INSERT,UPDATE,DELETE permissions. To get it to work I placed the mysql root username and password in AdminSettings.php.
Thanks again for the pointer... -Jim
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Benjamin Lees Sent: Friday, July 17, 2009 5:08 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Searching for short words
On Fri, Jul 17, 2009 at 4:46 PM, Sullivan, James (NIH/CIT) [C] < sullivan@mail.nih.gov> wrote:
When using the search field in the past I was limited to searching for words with 4 or more letters due to the MySQL configuration. When 1.14.0 came out the release notes (bug 7726) say that the 4 letter limit is worked around and all words can be searched, and this seems to be the case, all the way down to one letter.
However when I upgraded from Mediawiki 1.12.0 to 1.14.0 this search only works on pages saved since the upgrade. Pages that were last saved under Mediawiki 1.12.0 still have the 4 letter search limitation. So it seems that the only pages that can be searched for words less than 4 letters had to have been saved under 1.14.0 (or greater).
Is there a way to allow all pages to be searched down to one word letters outside of having to edit/save every page?
Thanks in advance, -Jim
Run the rebuildtextindex.php maintenance script. < http://www.mediawiki.org/wiki/Manual:Rebuildtextindex.php%3E _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org