Page 1 of 1

[SOLVED] Edit search engines in portal block?

Posted: 23. October 2009 11:03
by Onetimer
Your Portal Version: 1.0.3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Is it possible to determine what search engines show up in the pull down menu in the search block?

Re: Edit search engines in portal block?

Posted: 23. October 2009 13:05
by Marc
You will need to edit this part of styles/*yourstyle*/template/portal/block/search.html:

Code: Select all

	case 'wikipedia':
		window.open('http://en.wikipedia.org/wiki/Spezial:Search?search=' + qs_keywords, '_wikipedia', '');
		return false;
	case 'google':
		window.open('http://www.google.com/search?q=' + qs_keywords, '_google', '');
		return false;
	case 'yahoo':
		window.open('http://search.yahoo.com/search?p=' + qs_keywords, '_yahoo', '');
		return false;	
	case 'msnlive':
		window.open('http://search.live.com/results.aspx?q=' + qs_keywords, '_msnlive', '');
		return false;
	case 'altavista':
		window.open('http://www.altavista.com/web/results?itag=ody&q=' + qs_keywords + '&kgs=0&kls=0', '_altavista', '');
		return false;
	case 'lycos':
		window.open('http://search.lycos.com/?query=' + qs_keywords, '_lycos', '');
		return false;
	case 'odp':
		window.open('http://search.dmoz.org/cgi-bin/search?search=' + qs_keywords, '_odp', '');
		return false;

Re: Edit search engines in portal block?

Posted: 23. October 2009 14:12
by Onetimer
Cool, thanks!

I was looking at the root/portal/block/search.html file... :oops:

I also took out this bit;

Code: Select all

					<option value="google" style="background-color: #FEF2D6;">Google</option>
					<option value="yahoo" style="background-color: #FEF2D6;">Yahoo</option>
etc..