Hello all
I'd like to customise some of my Wiki pages, alas, I don't know how (am not much of a PHP expert)...
1. I have this little error: Fatal error: Call to undefined function text() in C:\Server\htdocs\wiki\skins\MonoBook.php on line 61
How to solve this?
2. How can I change the "Main_Page" to something else? Additionally, I have a bilingual wiki so I need two names for the Main_Page both accessible
3. How to change the 'Talk:Article' to something different (i.e. like they did with the translations of Wikipedia) 4. I have written a SSI-footer and header, however, I can't get them into including them in my index.php (php require('foo.bar') function), how do I do this, or can't I? 5. Can I change 'index.php' to 'wiki.php' w/o any problems? (the reason being, i'd like my wiki to be placed in my main directory, where my index.php already exists) 6. I've never been fond on the WikiFormatting ([[internal link]], ''italic text'', '''bold text''', etc), so I prefer using HTML in my Wiki, though, HTML is disabled by default... How can I enable all possible HTML and disable the WikiFormatting (don't argue or ask why)...
I guess that was it for now... Thanks in advance
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Ikke Snoeckx wrote:
Hello all
I'd like to customise some of my Wiki pages, alas, I don't know how (am not much of a PHP expert)...
- I have this little error:
Fatal error: Call to undefined function text() in C:\Server\htdocs\wiki\skins\MonoBook.php on line 61
How to solve this?
Where do you see this error? Generally, it should not happen. Which versions of PHP and MediaWiki do you use?
- How can I change the "Main_Page" to something else?
Edit the system message (like a regular page) MediaWiki:Mainpage.
Additionally, I have a bilingual wiki so I need two names for the Main_Page both accessible
In LocalSettings.php, add the following code: $wgForceUIMsgAsContentMsg = array( 'mainpage' ); Then, each user can define his language in Special:Preferences, and can access the main page for him.
- How to change the 'Talk:Article' to something different (i.e. like
they did with the translations of Wikipedia)
If you want to change it to something like "Discussion:Article" ? edit the variable $namespaceNames in MessagesEn.php if you use the latest trunk version, or $wgNamespaceNamesEn in Language.php if you use any other version, including 1.7.x.
- I have written a SSI-footer and header, however, I can't get them
into including them in my index.php (php require('foo.bar') function), how do I do this, or can't I?
What's the problem, and what do you want to do?
- Can I change 'index.php' to 'wiki.php' w/o any problems? (the reason
being, i'd like my wiki to be placed in my main directory, where my index.php already exists)
You can, and then you have to change $wgArticlePath and $wgScriptPath in LocalSettings.php.
- I've never been fond on the WikiFormatting ([[internal link]],
''italic text'', '''bold text''', etc), so I prefer using HTML in my Wiki, though, HTML is disabled by default... How can I enable all possible HTML and disable the WikiFormatting (don't argue or ask why)...
I don't think disabling the wikitext is currently possible, but setting the following in LocalSettings.php: $wgRawHtml = true; will allow *all* the HTML, including scripts, etc., therefore it's very dangerous. By default, you can use only limited HTML.
I guess that was it for now... Thanks in advance
- -- #define Name RotemLiss #define Mail mail-AT-rotemliss-DOT-com #define Site www.rotemliss.com
#define KeyFingerPrint 4AFD 8579 A449 4267 BED9 38E5 6EF8 5B1F EBDE 7AC0
Okay, very much thanks for the previous answers...
- I have this little error:
Fatal error: Call to undefined function text() in C:\Server\htdocs\wiki\skins\MonoBook.php on line 61
How to solve this?
Where do you see this error? Generally, it should not happen. Which versions of PHP and MediaWiki do you use?
I use MediaWiki 1.7.1 and PHP 5.2.x-dev, and it showed up when I accessed my wiki (so the index.php...). I have solved the problem by reinstalling my wiki (after a DB-backup of course :-) ), so that problem is over...
Additionally, I have a bilingual wiki so I need two names for the Main_Page both accessible
In LocalSettings.php, add the following code: $wgForceUIMsgAsContentMsg = array( 'mainpage' ); Then, each user can define his language in Special:Preferences, and can access the main page for him.
Okay, I have done as you said, but there is a little problem... It looks as there are now two Mainpages, one for each language... An English user now sees 'Main Page', but a Dutch user 'Hoofdpagina', which are two separate articles... (My wiki is bilingual, some articles are in English, others in Dutch, however, the Main Page - and some other articles - should for both languages be the same, but with a different title...) An addition: Is there a possibility to access *any* article by different names? If not, not *any*, but *some*?
- I have written a SSI-footer and header, however, I can't get them
into including them in my index.php (php require('foo.bar') function), how do I do this, or can't I?
What's the problem, and what do you want to do?
Well, basically, this applies to a skin, I have a particular header (that is, from the beginning of the html document to the middle of the body) I use on every page, and I'd like to use it also on my wiki. So, do I need to open a skin and add " <?php require("header.php"); ?> " at the top of the page, (and delete the standard header), or is this placed in the index.php?
7. The capitalisation of MediaWiki needs to be customised: when a page " A random noncapitalised page " exists, and a user accesses " A RandOm NonCapitalIzed PAge ", ... well, those aren't the same... Is it possible to change the Capitalisation Rules, or to make MediaWiki case-insensitive?
8. While going through 'Language.php', I saw a string " NS_MAIN => '' ", so, I thought I'd add something there (like 'Article'), alas, it didn't do anything, and so I wondered myself, is there a possibility to add a prefix (like 'Article') to *any* page not being a Special, User, etc page? (However, a minor problem would occur: you would need to add 'Article:' to any page you would request - i.e. /wiki/Article:Main_Page instead of just /wiki/Main_Page - so could it be modified that the 'Article:'-prefix only shows up in the Title, and not in the URL? Additionally, I want some special pages (like Main_Page, among other special-purpose pages) *not* to display the 'Article:'-prefix (don't worry, the list is short, so it can be done by manually editing the .php-pages)...
9. The URL rewriting: currently, my wiki uses " index.php?title=Article&action=edit ", I have no problems with that, however, I would have even less problems with rewriting it to " /wiki/Article?action=edit " (this was described in "http://meta.wikimedia.org/wiki/Talk:Eliminating_index.php_from_the_url#My_ed..." but i have installed mediawiki under /wiki/ and not under /w/ so that didn't work for some reason) ... I guess I'm not much of a programmer and so I have no clue how to make it work for me...
That was it for the moment, I might come up later with new ideas :-)
Thanks very much, Sebastiaan Snoeckx
mediawiki-l@lists.wikimedia.org