Last modified: 2012-02-09 22:10:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3825, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1825 - Adding more search engines to 'googlesearch'
Adding more search engines to 'googlesearch'
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-05 13:45 UTC by Ævar Arnfjörð Bjarmason
Modified: 2012-02-09 22:10 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ævar Arnfjörð Bjarmason 2005-04-05 13:45:38 UTC
It has recently been brought to my attention that there exist other search
engines on the web besides Google, we might want to provide a search for those
as well on the fallback search form, the most frequently suggested one seems to
be "Yahoo!".
Comment 1 Ævar Arnfjörð Bjarmason 2005-04-10 14:28:18 UTC
It should be noted that the reason I took out the Yahoo option is that it's
(AFAIK) impossible to generate a search form dynamically with MediaWiki that
searches a particular website with Yahoo, the reason for this is that we don't
have a magic word to refer to the current IP/DNS name of the server, only the
url to it. Google accepts this but Yahoo does not.

We could of course get around this by just using the $wgServerName variable,
however that's bad form as we're trying to eliminate any php code from the
messages as they probably won't be evaluated as such in the future.

The solution to this problem is:
1. Not to include a search via Yahoo.
2. Tell yahoo to fix its stupid search, it would hardly be *that* hard to add
something like $searchstr =~ s#https?://## to it
3. Make a new magic word like {{SERVERNAMEWITHOUTTHEHTTPORWHATEVERPART}}
4. Use $wgServerName
Comment 2 Ævar Arnfjörð Bjarmason 2005-06-24 02:55:44 UTC
(In reply to comment #1)
> 3. Make a new magic word like {{SERVERNAMEWITHOUTTHEHTTPORWHATEVERPART}}

Update: I've added a {{SERVERNAME}} magic word that does just that, return
$wgServerName, doing something like this is now possible.

Comment 3 MZMcBride 2008-10-09 09:20:23 UTC
This is filed under "MediaWiki" but as far as I'm aware, no external search engines are included with a vanilla installation of MediaWiki. I will note that http://en.wikipedia.org/wiki/Special:Search?search= uses JS to create a drop-down of multiple search engines, including Yahoo and Google.

I'm inclined to resolve this. Thoughts?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links