Hi,
Any thoughts about changing the parser so it works in two steps? first, parse the wiki text to create a dom like structure of elements (you can have TemplateCallElement, InternalLinkElement etc.), then, traverse the tree, calling tag or function hooks. this will allow much more powerful extensions.
Also, i think it will allow better handling of special characters. By not using regular expressions, and creating a tree of elements, special characters can be escaped naturally (quoted, or with '\').
Thanks,
Ittay
--
===================================
Ittay Dror,
Chief architect,
R&D, Qlusters Inc.
ittayd(a)qlusters.com
+972-3-6081994 Fax: +972-3-6081841
www.openqrm.org - Data Center Provisioning
Hello group,
I have installed Mediawiki 1.8.2 running on Windows 2003, served up by
PHP 5.2 on IIS 5. I have attempted to integrate this with Active
Directory, with lots of help from Ryan Lane, but have thus far been
unsuccessful. It looks like such integration would require Openldap
and probably more work that it is worth.
An easier approach, it seems to me, would be to have IIS do the
authentication and pass the information to Mediawiki. This is possible
with Windows Integrated authentication. The username is available in
PHP under $_SERVER['REMOTE_USER'] or get_current_user(). The next
trick is to pass this onto Mediawiki.
I tried the code below but it only generates an HTTP 500 error when
parsing InitUser(). This might be because of versioning, because the
example is for MediaWiki 1.5.5 and I have 1.8.2.
http://meta.wikimedia.org/wiki/User:Otheus/Auto_Login_via_REMOTE_USER
It also seems rather round-about to create an WebRequest and submit it
to the form, which then does the login. Maybe I am missing something
here, though, for I am rather rough with PHP.
So, in sum, how do I simply and easily modify Mediawiki to use IIS's
authentication?
J Wolfgang Goerlich
I have this error all the time in my php error log:
[client ...] PHP Warning: UtfNormal::loadData(UtfNormalData.inc) [<a
href='function.loadData'>function.loadData</a>]: failed to open stream:
Operation not permitted in ...wiki/includes/normal/UtfNormal.php on line
224, referer:
...wiki/index.php?action=edit&preload=&editintro=&title=...&create=Add+a+new+Article
[client ...] PHP Fatal error: UtfNormal::loadData() [<a
href='function.require'>function.require</a>]: Failed opening required
'UtfNormalData.inc'
(include_path='...wiki:...wiki/includes:...wiki/languages:/usr/share/php5')
...wiki/includes/normal/UtfNormal.php on line 224, referer:
v/index.php?action=edit&preload=&editintro=&title=...&create=Add+a+new+Article
I cannot use special charcters (only ASCII), now can I include uploaded
images [[Image:File.jpg]]
any ideas? cheers
_________________________________________________________________
Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit
Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu!
http://desktop.msn.de/ Jetzt gratis downloaden!
I've been asked to incorporate password aging into our mediawiki
installation. I can't find anything at the Mediawiki site. Is there an
extension for password aging or has anyone done direct SQL calls to age
passwords?
-Jim
I run a mediawiki v1.8.2 on a FreeBSD box and it has been working fine
for a while now. I recently updated the ports on FreeBSD which means
that apache, php, php modules, and a few other things were updated and
from that time forward mediawiki stopped working, I just get a blank
page. What is strange is that all of my other php application still
work, mediawiki is the only application that stopped working.
The only thing that I can find is this error in apaches logs;
[Sat Dec 30 01:55:17 2006] [error] [client 10.1.1.58] PHP Fatal error:
Cannot access protected property DatabaseMysql::$mOut in
/data/webapps/mediawiki-1.8.2/includes/Database.php on line 415
[Sat Dec 30 02:09:44 2006] [notice] child pid 15919 exit signal
Segmentation fault (11)
[Sat Dec 30 02:09:44 2006] [notice] child pid 15917 exit signal
Segmentation fault (11)
Any Ideas as to what happened?
Regards,
Tim
BINGO!!! Finally got it !
I used Alternative Solution with dvipng
http://meta.wikimedia.org/wiki/Running_Mediawiki_on_Windows#Alternative_Sol…
But moreover, in the includes/math.php for this solution
http://meta.wikimedia.org/wiki/Help:Running_MediaWiki_on_Windows/math-dvipn…
I changed
var $_dvips_path = 'dvips.exe';
to
var $_dvips_path = 'dvipng.exe';
Beforehands the fatal problem was, that my dvipng.exe was not working
well - no error written, but it did simply nothing. I changed from
TeXlive to MiKTeX and it's ok...
--
Martin Mrazek
Mobil: +420 724 17 666 9
Skype: martin.mrazek.cz
ICQ: 339-042-961 (mrazik)
I've created an extension to embed SmoothGallery image galleries into
MediaWiki articles via a parser extension. It should be a mostly feature
complete integration of SmoothGallery. For more info on the extension,
see:
http://www.mediawiki.org/wiki/Extension:SmoothGallery
SmoothGallery is a Javascript/CSS image gallery; for more info on
SmoothGallery, and examples of galleries, see:
http://smoothgallery.jondesign.net/what
V/r,
Ryan Lane
Do you mean change of includes/math.php into
http://meta.wikimedia.org/wiki/Help:Running_MediaWiki_on_Windows/math.php
as written a few lines above the Alternative solution?
Or do you mean another change to math.php? I tried the first one and
it didn't work as well...
Martin
--
Martin Mrazek
Mobil: +420 724 17 666 9
Skype: martin.mrazek.cz
ICQ: 339-042-961 (mrazik)
Does anyone offer free *and ad-free* mediawiki hosting? My project is
fairly fannish, so it wouldn't qualify for sf.net free hosting (for
example).
I'm currently using awardspace.com, which is free and ad-free, but
only runs PHP 4.4.1.
If I'm forced to stick with awardspace.com, what's the last version of
mediawiki that will still work with PHP 4 (specifically PHP 4.4.1)?
I do realize other wikis work with PHP 4, but I'm hooked on mediawiki :)
--
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
Hello,
does anybody here run MediaWiki 1.8.2 on Win XP? I have still problems
to make TeX formulas working. Maybe the best solution would be to ask
somebody with the same version of MediaWiki to send me compiled (and
working :) ) texvc.exe...
I tried several versions of math/render.ml to make texvc.exe, but
received only different error messages...
If you can, please send the file (or write another hint).
MM
--
Martin Mrazek
Mobil: +420 724 17 666 9
Skype: martin.mrazek.cz
ICQ: 339-042-961 (mrazik)