All, I've been getting a lot of complaints from users about when entering text in the search box and they hit enter , searching defaults to doing a 'go' search (like pressing the go button). Is there a way to change this behavior so when users enter text and press enter the search defaults to a 'page results search' instead? Thank you very much.
-p
In your Monobook.php skin file - you could just reverse the order of the two <input> tags. That ought to do it.
-- Jim R. Wilson (jimbojw)
On 6/29/07, Pedro Flores pjflores@comcast.net wrote:
All, I've been getting a lot of complaints from users about when entering text in the search box and they hit enter , searching defaults to doing a 'go' search (like pressing the go button). Is there a way to change this behavior so when users enter text and press enter the search defaults to a 'page results search' instead? Thank you very much.
-p
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
That reverses the buttions alright, but it does not change the behaviour of when hitting enter after entering text in the search box, the search still defaults to a 'go' one. Thanks.
Jim Wilson wrote:
In your Monobook.php skin file - you could just reverse the order of the two <input> tags. That ought to do it.
-- Jim R. Wilson (jimbojw)
On 6/29/07, Pedro Flores pjflores@comcast.net wrote:
All, I've been getting a lot of complaints from users about when entering text in the search box and they hit enter , searching defaults to doing a 'go' search (like pressing the go button). Is there a way to change this behavior so when users enter text and press enter the search defaults to a 'page results search' instead? Thank you very much.
-p
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 NotDashEscaped: You need GnuPG to verify this message
Pedro Flores wrote:
That reverses the buttions alright, but it does not change the behaviour of when hitting enter after entering text in the search box, the search still defaults to a 'go' one. Thanks.
Try changing includes/SpecialSearch.php like so:
Index: SpecialSearch.php =================================================================== --- SpecialSearch.php (revision 23623) +++ SpecialSearch.php (working copy) @@ -32,12 +32,12 @@
$search = $wgRequest->getText( 'search', $par ); $searchPage = new SpecialSearch( $wgRequest, $wgUser ); - if( $wgRequest->getVal( 'fulltext' ) || - !is_null( $wgRequest->getVal( 'offset' ) ) || - !is_null ($wgRequest->getVal( 'searchx' ) ) ) { + if( $wgRequest->getVal( 'go' ) && + is_null( $wgRequest->getVal( 'offset' ) ) && + is_null ($wgRequest->getVal( 'searchx' ) ) ) { + $searchPage->goResult( $search ); + } else { $searchPage->showResults( $search ); - } else { - $searchPage->goResult( $search ); } }
-- Greg Sabino Mullane greg@turnstep.com End Point Corporation PGP Key: 0x14964AC8 200707012026 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
Hello everybody!!!
Can you give some advices about using CAPTCHA in my mediwiki!!!???
Well, thanks ;) B.
On 7/1/07, Blast o_O neryver@infomed.sld.cu wrote:
Hello everybody!!!
Can you give some advices about using CAPTCHA in my mediwiki!!!???
Well, thanks ;) B.
http://www.mediawiki.org/wiki/Extension:ConfirmEdit Is that what you needed, or do you need help with something more specific?
Sorry Pedro - I figured that would do it :(
-- Jim
On 7/1/07, Greg Sabino Mullane greg@turnstep.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 NotDashEscaped: You need GnuPG to verify this message
Pedro Flores wrote:
That reverses the buttions alright, but it does not change the behaviour of when hitting enter after entering text in the search box, the search still defaults to a 'go' one. Thanks.
Try changing includes/SpecialSearch.php like so:
Index: SpecialSearch.php
--- SpecialSearch.php (revision 23623) +++ SpecialSearch.php (working copy) @@ -32,12 +32,12 @@
$search = $wgRequest->getText( 'search', $par ); $searchPage = new SpecialSearch( $wgRequest, $wgUser );
if( $wgRequest->getVal( 'fulltext' ) ||
!is_null( $wgRequest->getVal( 'offset' ) ) ||
!is_null ($wgRequest->getVal( 'searchx' ) ) ) {
if( $wgRequest->getVal( 'go' ) &&
is_null( $wgRequest->getVal( 'offset' ) ) &&
is_null ($wgRequest->getVal( 'searchx' ) ) ) {
$searchPage->goResult( $search );
} else { $searchPage->showResults( $search );
} else {
$searchPage->goResult( $search ); }
}
-- Greg Sabino Mullane greg@turnstep.com End Point Corporation PGP Key: 0x14964AC8 200707012026 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -----BEGIN PGP SIGNATURE-----
iD8DBQFGiEakvJuQZxSWSsgRAwMBAKDFMyXcdRNizLhz2mSysJmNSSKjYwCdF/AT RVECxNTT8zpNY0qi7hLZFSo= =Bwi0 -----END PGP SIGNATURE-----
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org