Please help ...
Having recently installed MediaWiki, I'm trying desperately to make some
site wide changes my Wiki's theme of "skin" so as to change its overall
look and feel. To be more precise about this, what I'm trying to do is
to install a third part theme called "Nullbook" developed by somebody
called Samat Jain. Details on his theme is available here:
http://en.wikipedia.org/wiki/en:User:SamatJain/myskin.css
Having got his permission, I've simply copied the CSS code contained
therein.
Having explained all that, let me now explain the problems I'm having
...
1. I'm trying to set the MediaWiki "Myskin" theme as the default theme
for the entire wiki but have no idea how to do this. Do I need to edit
"localSettings.php" and if so, what actual line in the file needs to be
edited and what code do I need to include?
2. My wiki's root (which currently only exists on a development
environment that is not network linked) is: http://localhost/eurowiki/
I should point out however, and this is very important, the standard
installation (which I followed religiously) of version 1.5.1 (or
whatever is the latest version) seems to result in an automatic redirect
being in place such that entering this URL into the location bar of a
web browser actually redirects the page to:
http://localhost/eurowiki/index.php/Main_Page
Anyway the point is this. If I go to:
http://localhost/eurowiki/MediaWiki:Myskin.css whilst logged in as an
Administrator, I get a 403 page generated via Apache. Obviously I need
to edit this page with the CSS code from Nullbook or I need to import it
which I don't want to do because I don't know how long Samat is going to
make it available.
Please help as this is driving me nuts.
I realise this MediaWiki is an open-source project but it does seem that
with every step forward I take and with every problem I resolve, I
encounter another 3.
Many thanks,
Will
Hi everybody,
How can i make pagination from database query in mediawiki? I want to
show just 25 items on a page.
I make an extension who query database and show in a page the result,
but are too many (2000 items).
My code is:
"$dbr =& wfGetDB( DB_SLAVE );
$res = $dbr->select( 'tabel', array('id','row1','row2') );
$wgOut->addHTML ("<table>");
$wgOut->addHTML ("<tr><th>ID</th><th>ROW1e</th><th>ROW2</th></tr>");
while ( $row = $dbr->fetchObject( $res ) ) {
$wgOut->addHTML ("<tr><td>" .
$row->id . "</td><td>" .
$row->row1 . "</td><td>" .
$row->row2 . "</td>");
}
The result is:
ID ROW1 ROW2
1 row1 row2
2 row1 row2
3 row1 row2
...
1000 row1 row2
1001 row1 row2
Please, if you know or you have a link from where i must learn this,
tell me.
Sorry for my bad english.
Thank you,
Geo
--
George Alexandru Dudău
CORE IT MEX - Grupul de firme MOBEXPERT
Network administrator | proiecte web | proiecte speciale
Tel : +40 21 2421040-1139
http://www.itmex.ro
> From: Platonides <Platonides(a)gmail.com>> Ron Laufer wrote:> >>> 2) Is it possible to use SSI in MW without it being stripped out? I've tried commenting out the "removeHTMLcomments" function in Sanitizer.php, but the HTML comment with the SSI in it still doesn't show up when I view source on the wiki display page in my browser. Even if it did, since the page doesn't have an shtml extension, I'm fairly sure it won't work.> > Has anyone done this and can you talk a n00b through it?> > No.> Implement whatever you want to get with a Server Side Include directly> in php, or via an extension.> > OK, then do you have a suggestion of how I can do the following in php or in an extension?> > I have a dbman database, it's written in perl and accessible via CGI. I would like to have each wiki page display the info on the associated record in the database (if it exists) at the top of the page, above the user generated content.> > I wrote a script that combs the xml dump of the wiki and the dbman database and matches up wiki pages to database records, inserts an SSI link to the database for pages that match up, and creates wiki pages for database records that don't have them. It's output is an xml that I was successfully able to import into MW, except that all the SSI got stripped out. (In fact, all comments got stripped out. I'd like to be able to keep them to note when the last import is and tell users not to edit the database link)> > I was able to add comments manually via the wiki, but as mentioned, they don't show up when I view source on the final product, only when I edit the page via MW.> > I'm new to MW and php, but a fairly competent hacker in general. Any help that at least points me in the right direction would be much appreciated.> > That's not too easy, since you want to perform a web server subrequest.> You can do that with virtual(<filename>); but that will only work if you> are using apache with mod_php.> A more portable way would be trying to launch the perl interpreter from> php, on the lines of system("/usr/bin/perl <filename>"); but that may or> may not work, depending on the script.
OK, apologies if this is a stupid question, but where would that "system" line go? (my host doesn't support mod_php) In the wiki page? or in a php file somewhere? and if so, how do I get the wiki software to call this php file?
Thanks,
Ron
--
Ron Laufer
Hi,
I did not find any info relative to this topic in the doc. I have two virtual hosts on a server, accessed by two different domain names. From the outside they look exactly as two different servers. From the inside, they have two different web homes, two different SVN home of repositories, etc.
For MediaWiki, I wonder whether it is possible to use the same principle: to have the software installed only once, and use it from two different virtual hosts (by configuring two different databases, two different directories for extensions, etc.)
As far as I know, I have instead to install MediaWiki twice. So I cannot use the package in my OS's packaging system...
Any thought/confirmation on this?
Regards,
--
Florent Georges
http://www.fgeorges.org/
> > 2) Is it possible to use SSI in MW without it being stripped out? I've tried commenting out the "removeHTMLcomments" function in Sanitizer.php, but the HTML comment with the SSI in it still doesn't show up when I view source on the wiki display page in my browser. Even if it did, since the page doesn't have an shtml extension, I'm fairly sure it won't work.> > Has anyone done this and can you talk a n00b through it?> > No.> Implement whatever you want to get with a Server Side Include directly> in php, or via an extension.
OK, then do you have a suggestion of how I can do the following in php or in an extension?
I have a dbman database, it's written in perl and accessible via CGI. I would like to have each wiki page display the info on the associated record in the database (if it exists) at the top of the page, above the user generated content.
I wrote a script that combs the xml dump of the wiki and the dbman database and matches up wiki pages to database records, inserts an SSI link to the database for pages that match up, and creates wiki pages for database records that don't have them. It's output is an xml that I was successfully able to import into MW, except that all the SSI got stripped out. (In fact, all comments got stripped out. I'd like to be able to keep them to note when the last import is and tell users not to edit the database link)
I was able to add comments manually via the wiki, but as mentioned, they don't show up when I view source on the final product, only when I edit the page via MW.
I'm new to MW and php, but a fairly competent hacker in general. Any help that at least points me in the right direction would be much appreciated.
Ron
--
Ron Laufer
Hi,
I've got a embedding-video extension (
http://jimbojw.com/wiki/index.php?title=EmbedVideo) on an wiki I am
administering and as far as strange it could seem I do not know how to use
it. which tag should I write?
I'd appreciate any suggestion.
I thank in advance
--
{+}Nevinho
Venha para o Movimento Colaborativo http://sextapoetica.com.br !!
Domas has posted to wikitech-l that all WMF MySQL servers are now on 5.1.
I understand MediaWiki continues to support 4.0 onward. Will the
minimum version be raised as the main customer gets more heavily into
5.1?
(I have no objection whatsoever to requiring a later MySQL, just
asking about future plans.)
- d.
Bri,
There are a few good extensions for doing what [I think] you want to do, but
you can actually control permissions like this just by defining custom
namespaces and groups in your localsettings.php file.
That said, the extensions for this generally give you an easier way to do
it. The problems with managing permissions is that it quickly becomes an
administrative time-suck. The complexity of figuring out who gets which
permissions on which page (or category or namespace) can really make things
confusing. Recommend you look at these:
http://www.mediawiki.org/wiki/Category:User_rights_extensions
And read up on these:
http://www.mediawiki.org/wiki/Manual:Preventing_accesshttp://www.mediawiki.org/wiki/Manual:User_rights
Personally, I use this extension, but you'll want to plan some time to work
with the author.
http://www.mediawiki.org/wiki/Extension:GroupPermissionsManager
The whole experience with user permission management is fraught with peril,
but if you stick to it you'll find many workable solutions.
CW
>
> I have looked, but not found a way to hide a page from non-administrators.
> If someone knows how to do this, please explain it or provide a URL to
> the mediawiki article.
>
> Thanks,
> Bri
>
>
>
Probably, the best things to do, if you need to stay on one single
wiki, is to work at namespace level settings the appropriate
permissions on each group of users.
As example, you can have two namespace called PUBLIC and SECRET.
The content of the first namespace is available to all the people,
while the second is available only to a specified group of users.
Anyway, as other people stated, you must be carefull when writing your
page, because a link to SECRET namespace page from a page of PUBLIC
namespace could be a pithfall in your "strategy".
G.
--
Giuseppe Briotti
g.briotti(a)gmail.com
"Alme Sol, curru nitido diem qui
promis et celas aliusque et idem
nasceris, possis nihil urbe Roma
visere maius."
(Orazio)