> From: Frazer Irving <frazer(a)bulletproof.net.au>
>
> I'm playing around with writing my own extension, and I would like it
> to accept wikitext as input and return HTML (as well as some other
> stuff). For example
>
> <extendy>
> [[Click me and die]]
> </extendy>
Your best bet is to look at other examples.
(all below is PHP)
0) Pick a file for your extension, and include it in LocalSettings.php
1) First you must register a function name with the extension tag
2) write that function
3) wiki text comes into the function
4) whatever you return from the function should be valid HTML,
because it will be spit out on the client browser.
:::: Society for Rampant Chaos endorses Bush! <http://rampantchaos.org>
:::: Jan Steinman <http://www.Bytesmiths.com/Item/99-0590-21>
*I am trying to upgrade from 1.4.11 to 1.5.2 and am getting this error
- I am following the upgrade instructions to load the new files,
delete localsettings.php and run the web installer. After putting in
the settings and hitting submit I get a page that goes through some
table changes until it runs into this
Fatal error: Call to undefined function: wfinverttimestamp() in
/home/comix2/public_html/maintenance/InitialiseMessages.inc on line
120
Does anyone know what I can do? What I might have done wrong?
***
Hi all, sorry if this is the wrong list for this type of question.
I'm playing around with writing my own extension, and I would like it
to accept wikitext as input and return HTML (as well as some other
stuff). For example
<extendy>
[[Click me and die]]
</extendy>
Would return an HTML link to the Click_me_and_die page on my wiki.
At the present I am messing around with the docs at
http://wikipedia.sourceforge.net/doc/MediaWiki/Parser/Parser.html
and trying to do something like
$output = $parser->transformMsg($input, new ParserOptions())
which is not working, but there could be a illion reasons for that. I
understand too little about php and mediawiki for me to be confident
that I am on the right track.
Basically I have three questions:
1. Is what I'm trying to do supported?
2. Am I looking in completely the wrong place for info of this kind?
3. What is the best source of documentation for simple usages of the
internal API from within extensions.
Naturally I will welcome and comments or suggestions. FYI: I am a
competent Perl hacker but PHP is a bit new for me.
Cheers
Frazer
Is it easy to configure MediaWiki so that there is a Google search box
on the navigation bar? It's definitely a nice-to-have, but I think it
would be quite neat if it can be done easily.
Ben
Is it possible to set different "navigation links" (those to the left,
above search box) on different pages?
Generally, I would like to have the same links on all pages, but on
some, I'd like to have them changed.
Is it possible?
--
Tomek
http://wpkg.org
WPKG - software deployment and upgrades with Samba
I made a page that doesnt require to edit its section so I want to remove
those links in the wiki page. Where can i find that part? I really tried to
look at it but I gave up.
Im using Mediawiki 1.5.2
Thanks for any help :)
Hi,
I am running mediawiki 1.5.2 on Fedora core 4
I try to change the logo of the site.
I copied the my own logo image to
/skins/common/images/mylogo.png
Then I did the following accordingly
Default for version 1.5 is
$wgStylePath/common/images/mylogo.png
But a blank sqare showed on my site.
any suggestions
Thanks
jc
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
> From: judi chen <judi_chen(a)yahoo.com>
>
> I keep getting the upload image error...
>
> I change the permission of the images directory to the
> following
>
> drw-rw-rw- 2 apache apache 4096 Nov 9 16:27 images
>
> Any suggestions?
Directories need to be searchable in order for their contents to be
writable. You need "drwxrwxrwx" permissions.
:::: Because you're selfish, it should be harder for everyone else to
read?
:::: > But it's easier for me to write!
:::: >> It's hard to read and follow.
:::: >>> What's wrong with top-posting?
:::: Jan Steinman <http://www.Bytesmiths.com>
> From: judi chen <judi_chen(a)yahoo.com>
>
> I keep getting the upload image error...
>
> I change the permission of the images directory to the
> following
>
> drw-rw-rw- 2 apache apache 4096 Nov 9 16:27 images
>
> Any suggestions?
Directories need to be searchable in order for their contents to be
writable. You need "drwdrwdrw" permissions.
:::: Because you're selfish, it should be harder for everyone else to
read?
:::: > But it's easier for me to write!
:::: >> It's hard to read and follow.
:::: >>> What's wrong with top-posting?
:::: Jan Steinman <http://www.Bytesmiths.com>
> Date: Tue, 8 Nov 2005 19:49:22 -0600
> From: "M. Cameron Jones" <mjones2(a)gmail.com>
> Subject: Re: [Mediawiki-l] Question: How do I redirect users to
> spedcial:userlogin
> > > I'm trying to get media wiki to force all users to log in. I've
> > > whitelisted the user login page, which redirects the user to an
> error
> > > page with a link to the specialuserlogin. However, I'd like the
> user to
> > > be presented with the log-in page directly. I have been unable to
> > > figure out how to do this and would appreicate some assistance.
>
> What about changing the value of "Loginreqtext" in the database? Put
> in a meta-refresh tag like <META http-equiv="refresh"
> content="5;URL=/index.php/Special:Userlogin">
>
> Not sure if this would work - or if the meta tag would get munged by
> the wiki-to-html process.
>
> You could always modify the code to redirect instead of displaying
> the
> error message.
I thought about changing the code to do the redirect. I think I found
the place in the code to make that change. However, I'm not sure about
hte syntax to make this magic happen. Any hints on where to find the
right code?
thx,
Eric
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com