On Nov 10, 2006, at 4:56 AM, Alexis Moinet wrote: Ok, I'm deeply sorry, I didn't read carefully, I thought you were talking about urls (which I'm still wondering whether it can be used without User: )
to remove this, in monobook.php (1.8.2) , find the line :
<h1 class="firstHeading"><?php $this->data['displaytitle']!=""?$this-
html('title'):$this->text('title') ?></h1>
and replace the two ('title') with ('titletext')
<h1 class="firstHeading"><?php $this->data['displaytitle']!=""?$this-
html('titletext'):$this->text('titletext') ?></h1>
Alexis
PS : same thing in the <head> of monobook.php : change <title><?php $this->text('pagetitle') ?></title> to <title><?php $this->text ('titletext') ?></title>
Does anyone know if this works in other versions of MediaWiki and with other skins? I can't seem to get it to work in 1.6.7 with a custom skin.
Sam Odio a écrit :
Does anyone know if this works in other versions of MediaWiki and with other skins? I can't seem to get it to work in 1.6.7 with a custom skin.
yes, 'titletext' seems to exist only since in 1.8 version.
you can either modify includes/SkinTemplate.php or skins/nameofyourskin.php :
in SkinTemplate.php :
add
$tpl->set( 'titletext', $this->mTitle->getText() );
in function outputPage( &$out ) { ...} (put it after $this->mTitle has been defined;)
NB : if you need to reinstall mediawiki 1.6, you'll need to change this again (though if you ever reinstall, you should upgrade to 1.8 at the same time ;-) and you won't have the problem anymore)
If you don't want to change SkinTemplate.php, you can do something like this in your skin file: <h1 class="firstHeading"> <?php global $wgTitle; echo htmlspecialchars($wgTitle->getText()); ?></h1>
but I don't know if using global is a good idea (looks like mw developers avoid to use it in skins).
You better change SkinTemplate.php or upgrade to 1.8.2
mediawiki-l@lists.wikimedia.org