Re: [MediaWiki-l] Status of sitemap generators

2017-07-12 Thread Jean Valjean
.com/w --server=https://www.example.com > --compress=yes > > No issues with Google here > > Cheers Karsten > > Am 12.07.2017 um 18:41 schrieb Jean Valjean: > > Did anyone ever fix the sitemap generator maintenance script, after it > > broke in v1.16? See > > http

[MediaWiki-l] Status of sitemap generators

2017-07-12 Thread Jean Valjean
Did anyone ever fix the sitemap generator maintenance script, after it broke in v1.16? See https://www.mediawiki.org/wiki/Manual:GenerateSitemap.php I put my sitemap index file into google and it found the .xml.gz files in that directory but gave me "Invalid URL" errors for each one. So I ran DaSc

[MediaWiki-l] Parsing barelinks to generate full citations

2017-07-01 Thread Jean Valjean
What are the best tools for parsing barelinks to generate full citations? E.g., converting https://www.youtube.com/watch?v=lRcthTPP0s4 to {{cite web|author=SecularSkin|date=11 November 2013|title=Christy0Misty's Series On Feminism|publisher=YouTube|url= https://www.youtube.com/watch?v=lRcthTPP0s

Re: [MediaWiki-l] Any security problems involved in letting administrators edit LocalSettings.php via a wiki page?

2017-07-01 Thread Jean Valjean
their > LocalSettings.php > > If you really really want to do this onwiki approach, try verifying the > file with `php -l` before saving. > > -- > brian > > On Saturday, July 1, 2017, Jean Valjean wrote: > > Yeah, that's already happened a few times (typo taking the

Re: [MediaWiki-l] Any security problems involved in letting administrators edit LocalSettings.php via a wiki page?

2017-07-01 Thread Jean Valjean
ires the web user to > have write access to php enabled web directories which is also bad > practise. > > -- > bawolff > > On Saturday, July 1, 2017, Legoktm wrote: > > On 07/01/2017 03:16 PM, Jean Valjean wrote: > >> I want to let some of my administrators (in t

Re: [MediaWiki-l] Any security problems involved in letting administrators edit LocalSettings.php via a wiki page?

2017-07-01 Thread Jean Valjean
n Sat, Jul 1, 2017 at 6:16 PM, Jean Valjean > wrote: > > > I want to let some of my administrators (in the wizards group) edit > > LocalSettings.php, so I used this snippet, which allows them to make > > changes by editing the Project:Shared_config.php page. Then I protected

[MediaWiki-l] Any security problems involved in letting administrators edit LocalSettings.php via a wiki page?

2017-07-01 Thread Jean Valjean
I want to let some of my administrators (in the wizards group) edit LocalSettings.php, so I used this snippet, which allows them to make changes by editing the Project:Shared_config.php page. Then I protected the page so that only wizards can edit it. Do you think this presents any security issues?

Re: [MediaWiki-l] deleteOldRevisions.php is an accident waiting to happen

2017-07-01 Thread Jean Valjean
Yeah, the reason I didn't submit it as a patch is that all I did was hack the extension to operate based on namespace rather than page IDs. Some people might look at that as a regression, if they wanted to continue using page IDs. I'm not really sure what would be the best way to make it capable of

Re: [MediaWiki-l] deleteOldRevisions.php is an accident waiting to happen

2017-06-30 Thread Jean Valjean
I came up with something a little safer and easier for those who just want to delete old revisions from one namespace: https://www.mediawiki.org/ wiki/User:KryptoKronic/deleteOldRevisions.php The output looks like this: $ php deleteOldRevisions.php --delete 4 Delete old revisions Limiting to na

[MediaWiki-l] deleteOldRevisions.php is an accident waiting to happen

2017-06-30 Thread Jean Valjean
Today, a friend of mine had a few really long wiki pages whose revision histories he wanted to delete (specifically, chapters 1-117 of The Count of Monte Cristo), to save some space in his database. So, he went to do php deleteOldRevisions.php --delete and then, oops, his finger slipped, and he acc

[MediaWiki-l] Adding an Alexa script

2017-06-30 Thread Jean Valjean
What's the best way to add an Alexa script to your MediaWiki installation? They were talking about it on StackExchange: https://stackoverflow.com/questions/23849769/how-to-add-alexa-certificate-to-mediawiki-header ___ MediaWiki-l mailing list To unsubscri

Re: [MediaWiki-l] Dice extension

2017-06-15 Thread Jean Valjean
The use case I have in mind is a game of nomic. Rule 202 states, "One turn consists of two parts in this order: (1) proposing one rule-change and having it voted on, and (2) throwing one die once and adding the number of points on its fac

Re: [MediaWiki-l] Dice extension

2017-06-15 Thread Jean Valjean
Well, my extension isn't as powerful or as nice as his was. It would be better if we could get his extension. It looks like there's only one site (RPG wiki) that still uses it: https://wikiapiary.com/wiki/Extension:Dice I wasn't able to get past their CAPTCHA to create an account, though. It says

Re: [MediaWiki-l] Dice extension

2017-06-14 Thread Jean Valjean
Oh yeah, and you gotta include this too: function str_replace_first($from, $to, $subject) { $from = '/'.preg_quote($from, '/').'/'; return preg_replace($from, $to, $subject, 1); } On Wed, Jun 14, 2017 at 10:17 PM, Jean Valjean wrote: > Since no one

Re: [MediaWiki-l] Dice extension

2017-06-14 Thread Jean Valjean
return true; } $article->doEditContent( $content, $summary, 0, false, $user ); return true; } $wgHooks['PageContentSaveComplete'][] = 'onDiceRoll'; $alreadyCheckedForDice = false; $wgDiceRoller = 'DiceRoller'; On Wed, Jun 14, 2017 at 8:42

[MediaWiki-l] Dice extension

2017-06-14 Thread Jean Valjean
Does anyone have a copy of the Dice extension? The download link is dead at https://www.mediawiki.org/wiki/Extension:Dice It looks like they were going to mirror it, but I'm not sure that ever happened: https://github.com/wikimedia/mediawiki-extensions-Dice Thanks. ___

Re: [MediaWiki-l] Table creation error installing using Postgres

2017-06-14 Thread Jean Valjean
Found the answer: GRANT ALL PRIVILEGES ON SCHEMA mediawiki TO foouser; On Wed, Jun 14, 2017 at 2:56 PM, Jean Valjean wrote: > I'm getting this error when I try to install MediaWiki: > > Tables creation failed. Make sure that the user "foouser" can write to the > s

[MediaWiki-l] Table creation error installing using Postgres

2017-06-14 Thread Jean Valjean
I'm getting this error when I try to install MediaWiki: Tables creation failed. Make sure that the user "foouser" can write to the schema "mediawiki". What command should I run in psql to set up foouser so that it can write to that schema? ___ MediaWiki

Re: [MediaWiki-l] Sitenotice for all pages except one

2017-05-03 Thread Jean Valjean
titleText}}" . $text; } $wgHooks['ParserBeforeStrip'][] = 'onParserBeforeStripSiteNotice'; Then in Template:SiteNotice I put: {{#ifeq: {{FULLPAGENAME}}|Main Page||This page is an archive.}} On Wed, May 3, 2017 at 3:51 AM, Jean Valjean wrote: > How do I put up a sitenotice

Re: [MediaWiki-l] Browser extension to save the text of all submitted revisions to the local machine

2017-05-03 Thread Jean Valjean
I think there are still some deleted pages that fall through the cracks of Deletionpedia, Speedy Deletion Wiki, etc. I know there have been many times I've wanted this functionality, but on the other hand, I've also had local hard drives crash, so I would've lost all those revisions anyway in the

[MediaWiki-l] Sitenotice for all pages except one

2017-05-03 Thread Jean Valjean
How do I put up a sitenotice for all pages except one (e.g. Main Page)? I want the main page to have my current content, and all other pages to have a notice saying their content is just an archive. I notice that when I put {{FULLPAGENAME}} in MediaWiki:Sitenotice, it always says "MediaWiki:Siteno

Re: [MediaWiki-l] Browser extension to save the text of all submitted revisions to the local machine

2017-05-02 Thread Jean Valjean
It depends on the wiki. Suppose, for instance, you're a RationalWiki user editing Conservapedia, and then the Conservapedia sysops decide, "Hey wait, this user is a troll, so let's block him and delete all this work." If he asks for copies of his articles, they might say, "We don't want to help you

[MediaWiki-l] Browser extension to save the text of all submitted revisions to the local machine

2017-05-01 Thread Jean Valjean
I want to develop a browser extension to save the text of all submitted revisions to the local machine. So for example, suppose you are editing a wiki and you click "save". Your browser would then save a copy of that revision on your hard drive. Then you would have all those submissions saved as b

Re: [MediaWiki-l] Constant crashing of searchindex table

2017-01-19 Thread Jean Valjean
> -- > > brian > > > > On Wednesday, January 18, 2017, Max Semenik > wrote: > > > Because previously only MyISAM supported text indexes. > > > > > > On Wed, Jan 18, 2017 at 6:02 PM, Jean Valjean < > jeanvaljean2...@gmail.com > &g

Re: [MediaWiki-l] Constant crashing of searchindex table

2017-01-18 Thread Jean Valjean
Maxsem, I notice every other table in my database is already InnoDB binary, but the searchindex table is MyISAM utf8_general_ci. Why would that be? Is that normal? Should this be documented at https://www.mediawiki.org/wiki/Manual:Searchindex_table ? ___

[MediaWiki-l] External links to local (or shared drive) file paths

2017-01-18 Thread Jean Valjean
Do we have a convenient way, in a MediaWiki page, to convert a local path to a URL? For example, a corporate wiki might want to have a template that links via URL to a file on the shared drive (file://...), but shows on the wiki page the local path (A:\...) One way to do that is to have template p

Re: [MediaWiki-l] MediaWiki-l Digest, Vol 160, Issue 19

2017-01-18 Thread Jean Valjean
> > Date: Wed, 18 Jan 2017 17:32:29 +1000 > From: "K. Peachey" > To: MediaWiki announcements and site admin list > > Subject: Re: [MediaWiki-l] Using a hook to change the logo > Message-ID: > mtjxcc6...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > You can set a b

[MediaWiki-l] Constant crashing of searchindex table

2017-01-18 Thread Jean Valjean
I use Dreamhost, and for some reason it has a glitch that is making my searchindex table crash all the time. About one out of every 10 searches, when I try to run a search, it says that searchindex "is marked as crashed and should be repaired". I came up with the workaround below, so that the user

[MediaWiki-l] Using a hook to change the logo

2017-01-17 Thread Jean Valjean
I have a super-secret wiki. Therefore, I want to set up my wiki so that when a user is logged in, the logo will display, but otherwise it'll be a blank logo. The following didn't work too well, apparently because the logo is already loaded before this hook runs: $wgHooks['BeforePageDisplay'][] = '