[Mediawiki-l] Re: How to remove the Search Button from the Re : How to remove the Search Button from the MediaWiki and have just the Go Button.

Alistair Johnson JohnsonA at rembrandt.co.nz
Thu Mar 31 20:25:22 UTC 2005


You can edit the skins\skinname.php file.

e.g. for monobook the code you are looking for is in skins\monobook.php

	    <form name="searchform" action="<?php
$this->text('searchaction') ?>" id="searchform">
	      <input id="searchInput" name="search" type="text"
	        <?php if($this->haveMsg('accesskey-search')) {
	          ?>accesskey="<?php $this->msg('accesskey-search') ?>"<?php
}
	        if( isset( $this->data['search'] ) ) {
	          ?> value="<?php $this->text('search') ?>"<?php } ?> />
	      <input type='submit' name="go" class="searchButton"
id="searchGoButton"
	        value="<?php $this->msg('go') ?>"
	        />&nbsp;<input type='submit' name="fulltext"
	        class="searchButton"
	        value="<?php $this->msg('search') ?>" />
	    </form>

I've removed the "go" button without difficulty.

Cheers,

al.

-----Original Message-----
From: Karthik Gopalakrishnan [mailto:mailkars at gmail.com]
Sent: Friday, 1 April 2005 6:32 a.m.
To: mediawiki-l at wikimedia.org
Subject: [Mediawiki-l] Re: How to remove the Search Button from the Re:
How to remove the Search Button from the MediaWiki and have just the Go
Button.


Hi,

I'm using the Mediawiki 1.4rc1 . I couldn't find the 
templates/xhtml_slim.pt file.

There is no templates directory..

!!! Please Help !!!
Karthik.G





>The main skeleton of pages is in templates/xhtml_slim.pt

>Beware when you play with it, it's not simple html. As you can see it is
 >a little bit written to be interpreted by an engine (called phptal)

>Fxparlant
>(François)

Karthik Gopalakrishnan wrote:
> Hi,
>
> I'm relatively to new to mediawiki. I'm planning to run a wiki in my
> local intranet using the wikipedia Database Dump. I know that full
> text search functionalaity is disabled. I want to remove the "Search"
> Button and just have the "Go" Button to search the articles. Which php
> file should I modify.
>
> !!! Please Help !!!
> Karthik.G
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l



More information about the MediaWiki-l mailing list