Whee.... I was pretty much out all last week between being sick for a
few days and recovering just in time to fly off to meet folks at the
FOSDEM conference in Brussels.
Had lots of great conversations with folks while there and I've got a
nice stack of notes of things I'll be posting updates on over the next
couple weeks.
Apologies to all on any delayed responses. Will be catching up on things
and getting the fun rolling! :D
-- brion
Hello,
I need some help by my extensions. I don't know why I get this output on the
page: 1 2 0 (http://wiki.keb-vogelsberg.de/index.php?title=Hauptseite) by
the input <toolserver_poll id=2></toolserver_poll>
Zu Deutsch:
Hallo,
Ich brauche Hilfe bei meiner Mediawiki-Erweiterung. Ich kann mir nicht
erklären, warum ich dieses Ergebnis auf der Seite erhalte: 1 2 0
(http://wiki.keb-vogelsberg.de/index.php?title=Hauptseite)
Code of the Extensions:
<?php
/**
* Toolserver Poll - Include the
Toolserver-Poll-Skript(http://toolserver.org/~jan/poll/index.php)
*
* To activate this extension, add the following into your LocalSettings.php
file:
* require_once("$IP/extensions/Toolserver_Poll/toolserver_poll.php");
*
* @ingroup Extensions
* @author Jan Luca <jan(a)toolserver.org>
* @version 1.0 Alpha
* @link http://www.mediawiki.org/wiki/Extension:MyExtension Documentation
* @license http://creativecommons.org/licenses/by-sa/3.0/ Attribution-Share
Alike 3.0 Unported or later
*/
/**
* Protect against register_globals vulnerabilities.
* This line must be present before any global variable is referenced.
*/
if( !defined( 'MEDIAWIKI' ) ) {
echo( "This is an extension to the MediaWiki package and cannot be run
standalone.\n" );
die( -1 );
}
// Extension credits that will show up on Special:Version
$wgExtensionCredits['parserhook'][] = array(
'name' => 'Toolserver Poll',
'version' => '1.0 Alpha',
'author' => 'Jan Luca',
'url' =>
'http://www.mediawiki.org/wiki/Extension:Toolserver_poll',
'descriptionmsg'=> 'descript_msg'
);
//Avoid unstubbing $wgParser on setHook() too early on modern (1.12+) MW
versions, as per r35980
if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
$wgHooks['ParserFirstCallInit'][] = 'eftoolserver_pollSetup';
} else { // Otherwise do things the old fashioned way
$wgExtensionFunctions[] = 'eftoolserver_pollSetup';
}
$wgExtensionMessagesFiles['toolserver_poll'] = dirname( __FILE__ ) .
'/toolserver_poll.i18n.php';
function eftoolserver_pollSetup() {
global $wgParser;
$wgParser->setHook( 'toolserver_poll', 'eftoolserver_pollRender' );
return true;
}
function get_request($server,$page,$ignore_redir=false,$it=0) {
global $count;
$count++;
//$cookies=cookiestring($server);
$fp = fsockopen ($server, 80, $errno, $errstr, 10);
if (!$fp) {
if($it < 4) {
get_request($server,$page,$ignore_redir,$it+1); } else { echo
"get_request($server,$page) fehlgeschlagen: $errstr!<br />\n"; }
} else {
fputs ($fp,"GET $page HTTP/1.1
Host: $server
Cookie: $cookies
User-Agent: ".USERAGENT."
\r\n\r\n");
while (!feof($fp)) {
$buf.= fgets($fp,128);
}
fclose($fp);
$buf2=getheaders($buf);
preg_match('@Location: http://(.*)/(.*)\r\n@iU',$buf2,$hit);
if($hit[1]!="" && (!$ignore_redir)) {
$buf=get_request($hit[1],"/".$hit[2]);
}
//update_cookies(getheaders($buf),$server);
flush();
return $buf;
}
}
function getheaders($buf) {
preg_match ("/^(.*)\r\n\r\n/is",$buf,$hit);
return $hit[1];
}
function removeheaders($buf) {
preg_match ("/\r\n\r\n(.*)$/is",$buf,$hit);
return $hit[1];
}
function eftoolserver_pollRender( $input, $args, $parser ) {
foreach( $args as $name => $value )
$id = htmlspecialchars( $value );
$get_server =
removeheaders(get_request('toolserver.org','/~jan/poll/dev/main.php?page=wik
i_output&id='.$id.''));
if(isset($get_server)) {
return $get_server;
}
else {
return "nicht funktioniert";
}
}
Code von main.php:
$page = $_GET['page'];
...
if($page == "wiki_output") {
$wiki_id = $_GET['id'];
echo $wiki_id;
}
MfG
Jan Luca
Hi,
I'm interesting in doing the following: for every listing of articles
in a category, give the user the option to view the list sorted
according to criteria other than the standard sort key. e.g., the user
should be able to view all pages of a category in order of page
length, number of page revisions, number of inward links to the page,
number of page views, etc.
>From what I gather, this will need a separate extension. Does an
extension of this sort already exist? If not, how hard would it be to
write such an extension? I'm looking only for something that works in
principle and is effective on small wikis (upto 20,000 pages or so,
with a few thousand page views per day), not necessarily something
that is efficient on a very huge wiki. So, I am okay with querying
multiple tables.
I've figured out the syntax for the SQL part of the query (in terms of
how to do joins of the various tables to get the required list) but
I'm not sure how this should be pieced together to provide the
display. I'd like any pointers that people have about writing such an
extension.
Thanks,
Vipul
Hi,
I need to merge wiki pages from an old server (both running windows).
The only clear solution I found were using MOSS 2007.
Another option is to backup and restore, but restore cannot be done
selectively.
Would appreciate of you could help,
Amit Rahat
This post is not technical, but it *is* specifically about Mediawiki.
Over the years all of us have become familiar with Jimbo's famous comment about
"a world in which every single human being can freely share in the sum of all knowledge",
which eventually became the official "Vision" of the Wikimedia Foundation. (See
http://meta.wikimedia.org/wiki/Vision.)
Over time I've thought about the software which enables that vision. Mediawiki is
extraordinary software with outstanding potential that does incredible work. Sometimes
when we focus on its current technical limitations we can lose that perspective. Personally,
when I think back over the limitations that bothered me in the past, I realize that given time,
each and every one them was always solved in the end, and the
functionality
has
progressed to a degree that would have been hard for any of us to imagine a few years
ago. For this I am personally grateful to all of the people who have continued to develop
Mediawiki and implement its functions on the various projects.
(Just in case anybody is wondering, I have absolutely no specific requests left that I need
to have implemented. Everything is done and already works. This is pure gratitude. :-)
The point of my post is this: On my Wikipedia user page I have a sentence which I would
like to suggest as a software "vision" complementary to Jimbo's famous statement. I am
surely no Jimbo, but I do think the sentences flow very nicely together and are quite true.
I am also no programmer or developer, but I think my sentence accurately reflects what the
work that you, the software and hardware people, do, means to those of us who use it
around the world:
Jimbo: Imagine a world in which
every single human being can freely share in the
sum of all knowledge.
Me: Mediawiki Software is the best tool in the world for collecting and organizing
human knowledge, in all of its forms and in every language.
There are more comments on my WP user page. Further thanks (on the "every language"
aspect) go to the people at http://translatewiki.net.
So whatever you want to call this (vision, slogan, mission statement, true advertisement),
it is my suggestion for a simple statement of what MW is all about and why it is so great.
Anyone want to adopt it?
Dovi
In that case let me reiterate my suggestion to read
"How to become a Mediawiki hacker" on the mediawiki.org
web site. This should give you an idea of how we do
things.
Get acquainted with Bugzilla and the regulars on IRC
(channel #mediawiki on freenode). Patches are always
welcome, so just dive on in and find something you can
work on.
-Chad
On Feb 5, 2009 12:00 PM, "Ankuj Gupta" <ankuj2004(a)gmail.com> wrote:
I am Computer Engineering. I would like to contribute to what a student can
do i.e software development
> <https://lists.wikimedia.org/mailman/listinfo/wikitech-l> >
--
Ankuj
_______________________________________________ Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.o...
Gentlemen, In wikitext I want to do <ol start="6101">
<li>a
<li>b
</ol>
but http://www.w3.org/TR/html401/struct/lists.html says that is
deprecated. In fact I really want to just use "#" and have that
start at 6101. OK, I'll just hard wire them into the page 6101. a
6102. b
I don't know if this is already possible. If so, just forget my question.
Look at the Simple Machines' SMF 1.1.4, they have it implemented, working example is here:
http://mbreg.de/forum/index.php?action=unreadreplies
Anyway, i miss this feature since long at wikipedia, where i am used to read up texts heavily and i always regret there's only so small space left on non-wide-screens, netbooks, PDAs, or when you need huge fonts (working from a distance).
What do you think about it ?
Greets, Micha