I sent this out about a week ago, but I'm still looking for a response.
Is there a way I can keep uploaded images hidden from certain usergroups?
I have created a namespace on my wiki that is viewable only to certain usergroups. The goal of this namespace is to have a place to create articles, so that I can time their release at which time I move the pages to the main namespace.
So far this works well, except with images, which are of course in the special File namespace. Perhaps if there was an extension that allowed me to set the permissions of images.
On Tue, Sep 21, 2010 at 15:58, mrthetooth mrthetooth@burningsea.com wrote: ...
Is there a way I can keep uploaded images hidden from certain usergroups?
...
You may find the information you need at:
http://www.mediawiki.org/wiki/Manual:Image_Authorisation
-- Zak Greant (Wikimedia Foundation Contractor) Logs & Reports at http://mediawiki.org/wiki/User:Zakgreant
I wonder whether Extension:Lockdown wouldn't do the job. Thereby you can specify reading rights for specific namespaces, "file" in this case. I do not know what happens at Special Pages, though.
Bernhard
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] Im Auftrag von Zak Greant (Foo Associates) Gesendet: Mittwoch, 22. September 2010 01:30 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] Hiding Images
On Tue, Sep 21, 2010 at 15:58, mrthetooth mrthetooth@burningsea.com wrote: ...
Is there a way I can keep uploaded images hidden from certain usergroups?
...
You may find the information you need at:
http://www.mediawiki.org/wiki/Manual:Image_Authorisation
-- Zak Greant (Wikimedia Foundation Contractor) Logs & Reports at http://mediawiki.org/wiki/User:Zakgreant
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi,
is it possible (is there any hook, an extension or a php-hack) to modify the search engine in such a way that the search term "example" would find "example" as well as "ex*ample"?
Bernhard
On Wed, Sep 22, 2010 at 06:58, Scheid, Bernhard Bernhard.Scheid@oeaw.ac.at wrote:
Hi,
is it possible (is there any hook, an extension or a php-hack) to modify the search engine in such a way that the search term "example" would find "example" as well as "ex*ample"?
Can you be more specific about what you need? Is there a specific logic to where the wildcard should be inserted?
The general case (finding "example", "*example", "e*xample", "ex*ample", "exa*mple", etc.) would likely be quite expensive.
Sorry, I did not mean a wildcard but a middot (·), the mail software seems to have misinterpreted the character. On my wiki, I use middot as a camouflage of ­ in the wikitext to mark silent syllable breaks. This works quite well, but the drawback is: the search engine no longer finds the term.
B.
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] Im Auftrag von Zak Greant (Foo Associates) Gesendet: Mittwoch, 22. September 2010 17:52 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] modify search engine
On Wed, Sep 22, 2010 at 06:58, Scheid, Bernhard Bernhard.Scheid@oeaw.ac.at wrote:
Hi,
is it possible (is there any hook, an extension or a php-hack) to modify the search engine in such a way that the search term "example" would find "example" as well as "ex*ample"?
Can you be more specific about what you need? Is there a specific logic to where the wildcard should be inserted?
The general case (finding "example", "*example", "e*xample", "ex*ample", "exa*mple", etc.) would likely be quite expensive.
On Thu, Sep 23, 2010 at 05:27, Scheid, Bernhard Bernhard.Scheid@oeaw.ac.at wrote:
Sorry, I did not mean a wildcard but a middot (·), the mail software seems to have misinterpreted the character. On my wiki, I use middot as a camouflage of ­ in the wikitext to mark silent syllable breaks. This works quite well, but the drawback is: the search engine no longer finds the term.
Aha. That's a different case then. I know very little about MediaWiki's search (and the docs aren't particularly helpful in this area.)
If I understand the docs correctly, the default search for MediaWiki uses the fulltext search capabilities of the underlying database. In the case of MySQL, there's no easy way to modify how the fulltext functionality treats content.
Digging around, I ran across a page [0] on the Lucene search extension [1] that indicates that the functionality you need might be available here.
I'll spend more time later looking at the various manual pages on search to see what else I can turn up.
[0] http://www.mediawiki.org/wiki/User:Rainman/search_internals#Exact_article [1] http://www.mediawiki.org/wiki/Extension:Lucene-search
Wow, thank you very much! I'll also go and read me through. As far as I see, the basic feature I need is a kind of parsing before the text is searched, whereby all middots in the text-to-search are eliminated. The other method would be to multiply the term-to-find with middots at every possibly place as you indicated. No idea how to achieve either way nor which one would be "less expensive", but the first way sounds easier...
Bernhard
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] Im Auftrag von Zak Greant (Foo Associates) Gesendet: Donnerstag, 23. September 2010 16:29 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] modify search engine
On Thu, Sep 23, 2010 at 05:27, Scheid, Bernhard Bernhard.Scheid@oeaw.ac.at wrote:
Sorry, I did not mean a wildcard but a middot (·), the mail software seems to have misinterpreted the character. On my wiki, I use middot as a camouflage of ­ in the wikitext to mark silent syllable breaks. This works quite well, but the drawback is: the search engine no longer finds the term.
Aha. That's a different case then. I know very little about MediaWiki's search (and the docs aren't particularly helpful in this area.)
If I understand the docs correctly, the default search for MediaWiki uses the fulltext search capabilities of the underlying database. In the case of MySQL, there's no easy way to modify how the fulltext functionality treats content.
Digging around, I ran across a page [0] on the Lucene search extension [1] that indicates that the functionality you need might be available here.
I'll spend more time later looking at the various manual pages on search to see what else I can turn up.
[0] http://www.mediawiki.org/wiki/User:Rainman/search_internals#Exact_article [1] http://www.mediawiki.org/wiki/Extension:Lucene-search
Scheid, Bernhard wrote:
Wow, thank you very much! I'll also go and read me through. As far as I see, the basic feature I need is a kind of parsing before the text is searched, whereby all middots in the text-to-search are eliminated. The other method would be to multiply the term-to-find with middots at every possibly place as you indicated. No idea how to achieve either way nor which one would be "less expensive", but the first way sounds easier...
Bernhard
That's easy to do. Smply add to LocalSettings:
$wgHooks['SearchUpdate'] = 'RemoveMiddotsInSearch'; function RemoveMiddotsInSearch( $id, $namespace, $title, &$text ) { $text = str_replace( 'middot' , '', $text ); return true; }
(replacing middot with the real middot character)
@platonides
Thank you! However, the hook does not seem to work. Search engine still does not find 'ex<middot>ample'.
Bernhard
PS. For the time being I have replaced Wiki-Search by Google Site Search which ignores special characters like 'middot', 'shy', etc. and also finds 'examples' if you search 'example'... Extensions like Lucene-search or MWsearch may be costomed to do the same, but for non-specialists like me Google is definitively the easiest way, even if that means hacking the original PHP code of my Wiki. Btw, it seems high time to further develop the standard Wiki search.
*****************************
As far as I see, the basic feature I need is a kind of parsing before the text is searched, whereby all middots in the text-to-search are eliminated. The other method would be to multiply the term-to-find with middots at every possibly place as you indicated. No idea how to achieve either way nor which one would be "less expensive", but the first way sounds easier...
Bernhard
*****************************
That's easy to do. Smply add to LocalSettings:
$wgHooks['SearchUpdate'] = 'RemoveMiddotsInSearch'; function RemoveMiddotsInSearch( $id, $namespace, $title, &$text ) { $text = str_replace( 'middot' , '', $text ); return true; }
(replacing middot with the real middot character)
Scheid, Bernhard wrote:
I wonder whether Extension:Lockdown wouldn't do the job. Thereby you can specify reading rights for specific namespaces, "file" in this case. I do not know what happens at Special Pages, though.
Bernhard
It allows you to set permissions on Special pages, too. But as I understand it, he wants different people to use images, but not see each other files. I don't think there's an extension that does it.
mediawiki-l@lists.wikimedia.org