Hi, is there a way to manipulate wiki-headers and sub-headers in a way that only parts of it are shown in the TOC? I.e.,something like
==Important message<hide from TOC>less important message</ >==
or so?
thx
Bernhard
How does one setup a media wiki that has protection against persons who would want to post very inappropriate material? I know that many wiki software engines do have permission settings to only allow registered users the ability to edit the wiki. Unfortunately, that has been my need and concern. Thanks, Bruce
On Sun, Jul 18, 2010 at 11:11 PM, B. M. Whealton bwhealton@futurewavedesigns.com wrote:
How does one setup a media wiki that has protection against persons who would want to post very inappropriate material? I know that many wiki software engines do have permission settings to only allow registered users the ability to edit the wiki. Unfortunately, that has been my need and concern.
Hey Bruce, welcome to the world of MediaWiki. ;) You'll find the answer to your question in the FAQ:
http://www.mediawiki.org/wiki/Manual:FAQ#How_can_I_prevent_editing_by_anonym...
Of course, I don't know the reason why you want to limit editing to registered users only. It might be that you need something else, e.g. captcha-based edit filtering to protect you from spam.
Please take a while to read through http://mediawiki.org/ and the manuals there. You will find the answers to the most common questions there.
Feel free to drop a mail our way if you don't find what your looking for in the documentation, though.
Good luck!
See: http://www.mediawiki.org/wiki/Manual:Preventing_access
Marcin Łukasz Kiejzik
2010/7/18, B. M. Whealton bwhealton@futurewavedesigns.com:
How does one setup a media wiki that has protection against persons who would want to post very inappropriate material? I know that many wiki software engines do have permission settings to only allow registered users the ability to edit the wiki. Unfortunately, that has been my need and concern. Thanks, Bruce
--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ B. M. Whealton - Web Developer, Programmer, Owner: Future Wave Designs: http://FutureWaveDesigns.com "On Being a Poet and Other Existential Ideas":> http://WordSaladPoetryMagazine.com/words/ Publisher of Word Salad Poetry Magazine: http://WordSaladPoetryMagazine.com/ - Submit your poetry ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
B. M. Whealton wrote:
How does one setup a media wiki that has protection against persons who would want to post very inappropriate material? I know that many wiki software engines do have permission settings to only allow registered users the ability to edit the wiki. Unfortunately, that has been my need and concern. Thanks, Bruce
You probably need a captcha [1]. That will filter most of the bots. Note that requiring to register is not a guarantee to keep out bots (some register just to spam you) and its annoying for some users.
Anyway, a wiki needs attention. You should dedicate a bit of time to look at Special:Recentchanges. Perhaps some minutes a week/or a month. It's sad to see wikis that no admin has edited for months, and whose content has been buried under spam just because nobody cared about it. They restricted editing to registered users when creating and didn't look at it any more, still running a version years old.
I'm more concerned with people, bad people out there, that would write really nasty stuff about a person and get a real kick out of it. I really wish I didn't know such people. I mean I've seen some really sick stuff written on profiles of mine. So, I decide to go with a wiki after watching a video on vtc.com In the wiki engine chosen she was able to set it to where only registered users could edit and create articles. I think that can be nice. A wiki can be exciting for a community to see develop. I suppose the people I know could register just to be able to do what they do, but they seem to like to hide behind a greater level of anonymity. Any form of registration discourages such activities. I just want to display some articles and information and a wiki seemed like the ticket. Bruce
Platonides wrote:
B. M. Whealton wrote:
How does one setup a media wiki that has protection against persons who would want to post very inappropriate material? I know that many wiki software engines do have permission settings to only allow registered users the ability to edit the wiki. Unfortunately, that has been my need and concern. Thanks, Bruce
You probably need a captcha [1]. That will filter most of the bots. Note that requiring to register is not a guarantee to keep out bots (some register just to spam you) and its annoying for some users.
Anyway, a wiki needs attention. You should dedicate a bit of time to look at Special:Recentchanges. Perhaps some minutes a week/or a month. It's sad to see wikis that no admin has edited for months, and whose content has been buried under spam just because nobody cared about it. They restricted editing to registered users when creating and didn't look at it any more, still running a version years old.
1-http://www.mediawiki.org/wiki/Extension:ConfirmEdit
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
B. M. Whealton wrote:
I'm more concerned with people, bad people out there, that would write really nasty stuff about a person and get a real kick out of it. I really wish I didn't know such people. I mean I've seen some really sick stuff written on profiles of mine. So, I decide to go with a wiki after watching a video on vtc.com In the wiki engine chosen she was able to set it to where only registered users could edit and create articles. I think that can be nice. A wiki can be exciting for a community to see develop. I suppose the people I know could register just to be able to do what they do, but they seem to like to hide behind a greater level of anonymity. Any form of registration discourages such activities. I just want to display some articles and information and a wiki seemed like the ticket. Bruce
I see. You may block anonymous editing by adding to LocalSettings.php $wgGroupPermissions['*']['edit'] = false; like Łukasz pointed out.
You may also be interested in http://www.mediawiki.org/wiki/Extension:FlaggedRevs
Scheid, Bernhard wrote:
Hi, is there a way to manipulate wiki-headers and sub-headers in a way that only parts of it are shown in the TOC? I.e.,something like
==Important message<hide from TOC>less important message</>==
or so?
thx
Bernhard
I think you could create a skin to do that*. Breaking it by eg. a double space.
* By overriding the tocLine() function.
Sounds interesting but a bit arcane. I found the tocLine() function in my Linker.php, but the problem seems to me how to define/override the $tocline parameter. Can you give me some more detailled advice? New skin would be no problem, btw...
B. ________________________________________ Von: mediawiki-l-bounces@lists.wikimedia.org [mediawiki-l-bounces@lists.wikimedia.org] im Auftrag von Platonides [Platonides@gmail.com] Gesendet: Montag, 19. Juli 2010 00:35 An: mediawiki-l@lists.wikimedia.org Betreff: Re: [Mediawiki-l] short headers in TOC
Scheid, Bernhard wrote:
Hi, is there a way to manipulate wiki-headers and sub-headers in a way that only parts of it are shown in the TOC? I.e.,something like
==Important message<hide from TOC>less important message</>==
or so?
thx
Bernhard
I think you could create a skin to do that*. Breaking it by eg. a double space.
* By overriding the tocLine() function.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Scheid, Bernhard wrote:
Sounds interesting but a bit arcane. I found the tocLine() function in my Linker.php, but the problem seems to me how to define/override the $tocline parameter. Can you give me some more detailled advice? New skin would be no problem, btw...
B.
The skins inherit from the linker. You could create a skin (supposing you want it to look like the vector skin) by putting in the appropiate file in the skins folder something like this:
require_once "Vector.php"; class SkinBernhard extends SkinVector { var $skinname = 'bernhardtoc';
function tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex = false ) { $n = strpos($tocline, ' '); if ($n !== false) $tocline = substr( $tocline, 0, $n ); return parent::tocLine($anchor, $tocline, $tocnumber, $level, $sectionIndex); } }
In this case, if the has a double space, the toc only shows the text that appears before that.
On Mon, Jul 19, 2010 at 7:53 PM, Platonides Platonides@gmail.com wrote:
Scheid, Bernhard wrote:
Sounds interesting but a bit arcane. I found the tocLine() function in
my Linker.php, but the problem seems to me how to define/override the $tocline parameter.
Can you give me some more detailled advice? New skin would be no problem,
btw...
B.
The skins inherit from the linker. You could create a skin (supposing you want it to look like the vector skin) by putting in the appropiate file in the skins folder something like this:
require_once "Vector.php"; class SkinBernhard extends SkinVector { var $skinname = 'bernhardtoc';
function tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex = false ) { $n = strpos($tocline, ' '); if ($n !== false) $tocline = substr( $tocline, 0, $n ); return parent::tocLine($anchor, $tocline, $tocnumber, $level, $sectionIndex); } }
In this case, if the has a double space, the toc only shows the text that appears before that.
This would be a valuable feature to make part of the standard software. It would provide a way to collapse TOC boxes made suddenly wide, and obscuring of page content, by the insertion of a long section header.
Is there a CSS or JS method we could employ for those without access to the Skins folder?
--Fred
Frederick Grose wrote:
Is there a CSS or JS method we could employ for those without access to the Skins folder?
You could try something like this in CSS:
#toc li { max-width: 20em; white-space: nowrap; overflow: hidden; }
hth Frank
Thank you, unfortunately it does not work. I do use a skin of my own and inserted your function there, but to no effect. I also tried ' ' and '-' as a delimiter.
B.
PS: Seems to be a good candidate for an extension, however I am unable to do that...
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] Im Auftrag von Platonides Gesendet: Dienstag, 20. Juli 2010 01:54 An: mediawiki-l@lists.wikimedia.org Betreff: Re: [Mediawiki-l] short headers in TOC
Scheid, Bernhard wrote:
Sounds interesting but a bit arcane. I found the tocLine() function in my Linker.php, but the problem seems to me how to define/override the $tocline parameter. Can you give me some more detailled advice? New skin would be no problem, btw...
B.
The skins inherit from the linker. You could create a skin (supposing you want it to look like the vector skin) by putting in the appropiate file in the skins folder something like this:
require_once "Vector.php"; class SkinBernhard extends SkinVector { var $skinname = 'bernhardtoc';
function tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex = false ) { $n = strpos($tocline, ' '); if ($n !== false) $tocline = substr( $tocline, 0, $n ); return parent::tocLine($anchor, $tocline, $tocnumber, $level, $sectionIndex); } }
In this case, if the has a double space, the toc only shows the text that appears before that.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Scheid, Bernhard wrote:
Thank you, unfortunately it does not work. I do use a skin of my own and inserted your function there, but to no effect. I also tried ' ' and '-' as a delimiter.
B.
PS: Seems to be a good candidate for an extension, however I am unable to do that...
It works for me. Make sure you purge the page, since the generated toc will be stored in the parser cache...
It worked! I just had not put your function within the ..extends SkinTemplate function. Thank you!
B.
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] Im Auftrag von Platonides Gesendet: Mittwoch, 21. Juli 2010 23:20 An: mediawiki-l@lists.wikimedia.org Betreff: Re: [Mediawiki-l] short headers in TOC
Scheid, Bernhard wrote:
Thank you, unfortunately it does not work. I do use a skin of my own and inserted your function there, but to no effect. I also tried ' ' and '-' as a delimiter.
B.
PS: Seems to be a good candidate for an extension, however I am unable to do that...
It works for me. Make sure you purge the page, since the generated toc will be stored in the parser cache...
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org