Hello!
i've done a tiny extension for integrating maps from www.frappr.com into
mediawikis.
Hope anyone find's it usefull ...
I've you find bugs / have improvments ... just fix / make them ;)
Have fun!
Mit freundlichen Grüßen / Best regards
Alexander Menk
- self soft -
--
visit www.self-soft.de
== BEGIN Frappr.php ==
<?php
/**
* Extension for Mapping Service www.frappr.com
* general DOCs:
* http://meta.wikimedia.org/wiki/Write_your_own_MediaWiki_extension
*
* Installation:
* 1) copy this as Frappr.php to extensions
* 2) add include("extensions/Frappr.php"); to the end of your
LocalSettings.php
*
* Usage:
* <frappr>param1|param2|param3...</frappr>
* where param1 ... n are the parameters in the order used in the java
script below :)
*
* done by Alexander Menk, self soft, Germany. visit www.self-soft.de for
contact information
* released on 10.12.2005 as public domain - no warranty
**/
$wgExtensionFunctions[] = "wfFrapprLink";
function wfFrapprLink() {
global $wgParser;
# register the extension with the WikiText parser
$wgParser->setHook( "frappr", "renderFrappr" );
}
# The callback function for converting the input text to HTML output
function renderFrappr( $input, $argv = "") {
$arguments = explode("|",$input);
$clean = array();
# clean up parameters (for security reasons)
foreach($arguments as $val)
$clean[] = (float)$val;
$output = "<script>
var frappr_mapheight = ".$clean[0].";
var frappr_mapwidth = ".$clean[1].";
var frappr_maplat = ".$clean[2].";
var frappr_maplon = ".$clean[3].";
var frappr_mapzoom = ".$clean[4].";
var frappr_host = \"http://www.frappr.com/\";var gid =
".$clean[5].";</script>
<script src=\"http://www.frappr.com/ajax/mapwidget.js\"></script>";
return $output;
}
?>
=== END Frappr.php ===
Hi,
i'm the administrator of a Java italian website, javastaff.com. We are
a group of developers and we would like to create a J2ME client for
Wikipedia, that would be an interesting software for a cellular phone.
Of course we will do it only to donate a good software to the
users.
I have already talked with Jimmy Wales and he is entusiast of this project.
We have already studied the structure of Wikipedia and we have done
experiment parsing the information with a search on your website, but i
would
like to know if there is some page we can access to perform a better search
(only text for example or a webservice or something else).
I hope you like this idea :)
Best regards
---------------------------------------------------
Federico Paparoni
JavaStaff.com Admin
<doc>In girum imus nocte et consumimur ign</doc>
---------------------------------------------------
Magnus Manske wrote:
> Setting a version as stable is currently not logged; this isn't a
> technical problem, but sheer lazyness on my part.
> There is a problem with templates; even a stable version will use new
> templates. I do not have a neat soultion for that, except generally
> limiting write access to templates. However, misinformation through a
> template will be hard to achieve anyway, compared to directly editing
> article; also, template changes will be noticed rather quickly.
Would a neat solution be to attach a list of the revision IDs of all
templates in the stable version, so that when the page is called up it
calls up those versions of the templates? Or is this harder than it sounds?
- d.
Hey Brion,
Thanks. It does look like the code that adds the category links takes
place in Parser::replaceInternalLinks, which appears to be only called
if Parser::parse is invoked on the article being saved. We are
actually using a Special page to create request articles, so visitors
can come and submit a request for how-to article to be written about,
so the newly created articles are not necessarily parsed
automatically. It's a slightly different approach we've been using to
reduce the amount of wiki-knowledge that's required to participate in
our community.
http://wiki.ehow.com/Special:RequestTopic
So it looks like the hack-workaround for this is to parse the article
after inserting it into the database, that seems to do the trick for
now.
$article = new Article($title);
$ret = $article->insertNewArticle($details, "", false, false, false, $user);
$options = ParserOptions::newFromUser( $wgUser );
$wgParser->parse($details, $title, $options);
Thanks!
Travis
> Date: Tue, 06 Dec 2005 11:59:53 -0800
> From: Brion Vibber <brion(a)pobox.com>
> Subject: Re: [Wikitech-l] Article->insertNewArticle and category links
> To: Wikimedia developers <wikitech-l(a)wikimedia.org>
> Message-ID: <4395EDB9.7000907(a)pobox.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Travis Derouin wrote:
> > Is there any reason why when inserting a new article from outside
> > EditPage.php doesn't update the category links?
>
> Shitty coding practices. ;) This stuff needs more refactoring still.
>
> > $title = Title::newFromText("Hellos");
> > $article = new Article($title);
> > $ret = $article->insertNewArticle("hi there![[Category:Greetings]]",
> > "", false, false, false)
> >
> > The article is successfully created and links to the Greetings
> > category. However, the "Greetings" category does not show the new
> > article in the list of articles in that category.
>
> At the moment you'll have to manually run the post-save updates; you should find
> several examples of this in the code.
>
> -- brion vibber (brion @ pobox.com)
>
Hi,
I am just starting using the Mediawiki, I would like to create an
initial website that will contain pre-created pages for users to modify
and expand. Is there an option to create pages in batch mode?
Any help will be extremely apriciated.
Many thanks
Leon
Sorry if I confused anyone with the change in my From: field. That lists an
old e-mail address which just forwards to my new one. I've configured my
mail client so that won't happen again. Sorry about that.
-HoodedMan
"Wind to thy wings. Light to thy path. Dreams to thy heart."
I'm trying to access a Wikipedia page with the PEAR::HTTP_Request class in
PHP. When I try to access http://en.wikipedia.org/, the request is as
follows:
ERROR
The requested URL could not be retrieved
----------------------------------------------------------------------------
----
While trying to retrieve the URL: http://en.wikipedia.org/
The following error was encountered:
* Access Denied.
Access control configuration prevents your request from
being allowed at this time. Please contact your service provider
if you feel this is incorrect.
Your cache administrator is wikidown(a)bomis.com.
----------------------------------------------------------------------------
----
Generated Wed, 07 Dec 2005 20:34:13 GMT by srv6.wikimedia.org
(squid/2.5.STABLE12)
It's not that my user agent is blocked, because it's sending: Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; SV1). I would send my own user agent
string and not fake another, but from what I hear that's not necessary for
most minor projects such as mine.
Could my IP be blocked, and if so, could I find out why? If not, are there
any little tricks I need to know about a PHP script connecting to Wikipedia?
Thank you,
-HoodedMan
"Wind to thy wings. Light to thy path. Dreams to thy heart."
Hello,
I am trying to install mediawiki-1.5.2.on Windows NT. I have installed
apache_2.0.55-win32-x86-no_ssl , mysql-5.0.15-win32 and php-5.1.1-Win32. I
also have done the appropriate configuration(I tthink so!).
After I untar the mediawiki-1.5.2.tar inside Apache2\htdocs and try to
install it, I receive the following message:
________________
MediaWiki 1.5.2 installation
Please include all of the lines below when reporting installation problems.
Checking environment...
Warning: dl() [function.dl]: Not supported in multithreaded Web servers -
use extension=mysql.so in your php.ini in C:\Program Files\Apache
Group\Apache2\htdocs\mediawiki\mediawiki-1.5.2\install-utils.inc on line 17
Could not load MySQL driver! Please compile php --with-mysql or install the
mysql.so module.
_______________
I'm a newbie and I could use as much help as possible.
Thanks in advance.
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
Hi,
I am just starting using the Mediawiki, I would like to create an
initial website that will contain pre-created pages for users to modify
and expand. Is there an option to create pages in batch mode?
Any help will be extremely apriciated.
Many thanks
Leon
Dear all
although I am really glad that i spurred such a lifely discussion over
"stability" matters, let me make a few remarks as to what I think is
taking the wrong direction.
First of all, I never proposed a filtered view on WP for the general
public. There are deficiences, vandalisms and all in it and I can see
simply no way to come up with a stable version however you might define
that out of the blue at this stage. Some of your comments indicated that
there should be editing in the background of the article that should
somehow be promoted to the front - given the changes have reached a
qualitatively satisfying level. Frankly, I do NOT believe in such a
method which would require splitting the community into less and more
equal editors.
On the contrary, my proposal was and still is: Leave the view on the
data alone, do not try to nominated a board of editor's editors but
RAISE the threshold for offhanded edits by absolutely requiring a
minimum of reference / source information besides the comment line. This
information should be as immutable as the comment line and not included
in the article ("==References=="). This should make it successively
harder and harder for matured articles to insert contradicting
information (I am not mentioning confusing information due to the
editor's lack to express him/herself!) So far nobody has convinced me
of the contrary.
The question remains what we should mean by "matured" and which
indicators we should use for quantifying maturity of an article. The raw
number of edits is completely out of question if the length of the edit
(insertions/deletions/modifications) is not taken into account for
weighting them - effectively making the weight of the edit proportional
to something like the Mahalanobis or the edit-distance known from
bioinformatics.
Please, folks, read again carefully and try to get away from "filtered
view" phantasies. Let's not revolutionize WP. Let's simply raise the
minimal editing standards just a wee little bit - which would be
revolutionary enough - for my taste.
Kai (kku)