Movatterモバイル変換


[0]ホーム

URL:


Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
List overview
Download

Wikitech-lAugust 2003

wikitech-l@lists.wikimedia.org
  • 65 participants
  • 166 discussions
Start a nNew thread

02 Sep '03
This post is dedicated to Michael :)I did a quick hack which allows sysops to ban logged-in users. This wasdiscussed on wikien-l long, long ago, and was widely agreed to be a goodidea (well, not that widely, but Jimbo was particularly keen). Basically youjust type the username into the ban IP box. I changed a few messages toindicate that you could do it.Blocking a logged-in user by IP address was slightly trickier (but stillonly required a handful of lines). Whenever any banned user successfullylogs on and accesses a page, their IP address is automatically blocked. Thereason given is 'Autoblocked because you share an IP address with "Michael".Reason: blah blah blah', and the "blocked by" field is copied. That way the"you are banned discuss this with xxxx" message still makes sense. As usual,these automatically generated entries, and the original username entries,can be unblocked by any sysop (even blocked sysops).I know Michael has been making a nuisance of himself again, so I'm sure alot of people will be interested in seeing this go live quickly.I also fixed that annoying undeletion problem (mostly). It still doesn'tupdate the search index, or user_newtalk, or site_stats, or probably a fewother things. But at least the link table is fixed up.-- Tim Starling
8 16
0 0
Update to gfdl copyright notice needed
by Daniel Mayer 02 Sep '03

02 Sep '03
Michael Becker wrote:>So the new and improved notice will read: "All content is >available under the terms of the GNU Free Documentation >License. See Wikipedia:Copyrights for suggested practices."There is one problem with this; it is a lie. Wikipedia has many photos that are used under "fair use" or "non-commercial use" doctrines. -- mav
4 3
0 0
Google Adwords
by Jens Frank 02 Sep '03

02 Sep '03
Hi,I've got an Google Adwords coupon free of charge with aweb server I ordered. I don't need this coupon for myserver so I thought about donating it to wikipedia.It's a 50 Euro coupon and if we create an add usingthe keyword "encyclopedia" google estimates it to cost 12 Euros per day when paying only the minimalCost-per-Click rate of 5 cent. This would mean it'sa 4 days campaign.Any thoughts?Regards,JeLuF
4 6
0 0
Re: [WikiEN-l] Re: Undeletions
by Brion Vibber 01 Sep '03

01 Sep '03
I've added a more convenient link into the undeletion system, which will show in bold at the top of the page when viewing a page which has been deleted (if you're a sysop).-- brion vibber (brion @pobox.com)
3 4
0 0

01 Sep '03
These are kinda needed for enhanced recentchanges to make sense:-rwxr-xr-x 1 apache wikidev 289 Jan 6 2003 Arr_d.png-rwxr-xr-x 1 apache wikidev 918 Jan 7 2003 Arr_.png-rwxr-xr-x 1 apache wikidev 282 Jan 6 2003 Arr_r.pnga) Who made them?b) Are they GPL-compatible?c) If a) and b) are satisfactory, any objection to adding them to CVS? (They have to be marked as binary files in some way if so. I don't know the option offhand.)-- brion vibber (brion @pobox.com)
3 3
0 0
MediaWiki documentation -> meta
by Daniel Mayer 01 Sep '03

01 Sep '03
OK. My Wikiholism is advancing to the next level andto feed that I would like to consolidate MediaWiki'sdocumentation on meta. The reasons are two-fold; 1)there are already forks in documentation developmentbetween meta, SourceForge, Lee's webpages, and variousWikipedia namespace pages (not to mention otherduplication; such as in other Wikimedia projects) 2) Iwould like to understand the beast known as MediaWikiso that after I learn PHP I can advance touber-Wikiholic and port over the WikiBookfunctionality from PyWiki and tweak it for use inWikibooks. I don't want to step on anybody's toes, so I wouldlike to know who is currently involved with creatingdocumentation? Is there anybody working oncoordinating documentation efforts? If so, then Icould work with that person instead of leading thiseffort on my own. It would also be helpful to knowwhere current documentation resides.Currently on meta:MediaWikiHow to become a MediaWiki hacker Running MediaWiki on Windows Database queries on MediaWiki Text in MediaWiki MediaWiki math markup RDF spool Wiki markup tables -- proposals Wiki markup syntax - see Wikipedia DTDmeta.wikipedia.org technical issues Sites using MediaWiki Wikitax On en.wikipedia:Wikipedia:MediaWiki Wikipedia:Software Phase IIIWikipedia:TeX markup Wikipedia:Software Phase IVWikipedia:TeX markupWikipedia:GNU LilyPond supportWikipedia:Edit summaryWhole bunch of how to use Wikipedia's software pages(this will take some time since many of them haveWikipedia-specific references).I'm thinking about organizing all this between actualdocumentation vs ideas about how MediaWiki shouldwork. Documentation can be further subdivided betweenstuff for developers vs stuff for users. When we dofinally have the WikiBook functionality, then anactual users guide and developer documentation guidescan be organized on meta (complete with a "print thisbook" feature). This is a long term undertaking but I think it isworth the effort. -- Daniel Mayer (aka mav)__________________________________Do you Yahoo!?Yahoo! SiteBuilder - Free, easy-to-use web site design softwarehttp://sitebuilder.yahoo.com
2 1
0 0
Internationalisation of "magic words"
by Tim Starling 31 Aug '03

31 Aug '03
I've just committed some code to CVS which allows internationalisation of"magic words" (my term) such as #REDIRECT, __NOTOC__, {{NUMBEROFARTICLES}},etc. I've done it so that each word can have a number of synonyms. I expectwe will implement it so that the english words work everywhere: thiseliminates conversion cost, avoids annoying people by forcing them to changetheir habits, and makes it easier for people to contribute to many differentlanguage wikis. We can add localised versions as soon as someone from thatwiki translates it. Some languages may want more than one localised synonym,for example with and without accents.In Language.php, there is a new global variable $wgMagicWordsEn, and anaccessor function which can be overridden on a language-by-language basis.The variable is an array of arrays, where the first element of each rowindicates whether or not the word is case sensitive, and the rest of theelements are synonyms.This data is loaded into a MagicWord object on demand, using the syntax:$mw =& MagicWord::get( MAG_REDIRECT )That's right folks, in a Wikipedia first I've actually used constants! Andreferences! For convenience, there is a $wgMwRedir variable, where theget( MAG_REDIRECT) has been done for you in Setup.php. The MagicWord objecthas lots of handy searching and replacing functions, which means that youonly very rarely have to deal with actual regular expressions.According to the PHP manual strstr is much faster than preg_match forequivalent tasks, but I did a quick benchmark and found them to be prettymuch the same (at least in the large-string limit). So I used regularexpressions all the time.-- Tim Starling
1 0
0 0
Fun with mailing lists
by Brion Vibber 31 Aug '03

31 Aug '03
Kat's message to the list about running MediaWiki on Windows got held for moderation on account of "message has implicit destination". After rooting around in the docs, this appears to be because the message was posted through the GMANE news gateway, and thus doesn't have a To: or CC: header pointing to the actual address of the mailing list.This is presumably intended to protect against spam.Any thoughts on whether we should turn this check off, or can GMANE be configured so that the messages turn out right? Is anyone else posting to the lists through GMANE and having or not having trouble?-- brion vibber (brion @pobox.com)
3 2
0 0
Power to the people!
by Tim Starling 30 Aug '03

30 Aug '03
For a while now, at least in English wikipedia, ordinary users have been able to change the text that appears at the top of Special:Recentchanges, by simply editing Wikipedia:Recentchanges. This has been great. However, there are about a million other places where such a system would be useful. For example, why can't we change the message that comes up when a new user creates an account, to something a bit more informative? Why can't we edit the text at the top of the "confirm deletion" page, to reflect this week's deletion policy?The problem with this is that the current way of doing it is difficult to implement in each case, and not very easy to use with the other-language wikis, or the other sites using our software. I have made a simple change to wfMsg (now in CVS), which makes the creation of these software message pages much easier. With the new feature, instead of this:"welcomecreation" => "<h2>Welcome, $1!</h2><p>Your account has been created.Don't forget to personalize your wikipedia preferences.",we write this:"welcomecreation" => ":Wikipedia:Welcome, newcomers",A message starting with a colon ":" indicates that the text should come from a wiki page. If the page doesn't exist, it will fail quietly, returning a link to the non-existent page.In some cases the code will have to be altered to use wiki-markup messages rather than HTML, but there are a number of places where this could be implemented by simply changing Language.php.An additional feature is that if the tag "__START__" exists in the text, the text before that point will be filtered out, in wfMsg. This allows us to write messages such as "The following text appears at the top of [[Special:Recentchanges]]. Editing this page will instantly change that text. "-- Tim Starling <t-starling-physics-unimelb-edu-au>
2 1
0 0
Re: Simple question
by gorgon zolla 30 Aug '03

30 Aug '03
MediaWiki will work on Windows with latest components:Apache 2.0.47PHP 4.3.3Mysql 4.0.14-ntPHP does not handle the include_once directive properly on all windows platforms andfilesystems, probably due to the Windows treatment of upper and lower case in filenames. You may have to comment out the include_onces in some of the .php files asfollows:Article.php:# include_once( "CacheManager.php" );Setup.php:# include_once( "$IP/Title.php" );SpecialMovepage.php:#include_once( "LinksUpdate.php" );Also, you really do need iconv for some of the special pages to work, unless youcomment out the relevant call in language.php: # return iconv( "UTF-8", $wgInputEncoding, $s );Procedures and issues1.Install mysql fromwww.mysql.com using the windows binaries2.Install the Apache web server fromwww.apache.org using the latest 2.x binaries3.Modify the httpd.conf for apache:a.Add these lines at the end of the block of LoadModule lines: LoadModule php4_module c:/playpen/php/php-4.3.3-Win32/sapi/php4apache2.dll AddType application/x-httpd-php .phpb.Change the DocumentRootc.Add the PHP types and disable PHP for all directories other than the wikiAddType application/x-httpd-php .php .php4 .phtmlAddType application/x-httpd-php-source .phpsphp_admin_flag engine off<Directory "c:/playpen/wiki/runtime/wiki">php_admin_flag engine on</Directory>d.It is not strictly necessary to enable the rewrite engine or include the ampersand patch4.Install PHP fromwww.php.net using the latest windows binariesa.Modify php.ini so that register_globals = On5.If you do not already have a CVS client, you will have to get one and install it.6.Get MediaWiki from the CVS archives, read “readme.txt” and follow instructions in INSTALL for modifying LocalSettings and AdminSettings; disregard the PHP/Apache/MySQL configuration notes as they are not relevant for Windows7.Modify php files as noted above.8.Uncompress and load the database.9.Have fun._________________________________________________________________The new MSN 8: advanced junk mail protection and 2 months FREE*http://join.msn.com/?page=features/junkmail
2 1
0 0
Results per page:

[8]ページ先頭

©2009-2025 Movatter.jp