[SOLVED] Edit search engines in portal block?

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
Onetimer
Active Member
Posts: 48
Joined: 27. June 2008 13:29

[SOLVED] Edit search engines in portal block?

Post 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?
Last edited by Onetimer on 23. October 2009 14:35, edited 1 time in total.
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Edit search engines in portal block?

Post 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;

Topic author
Onetimer
Active Member
Posts: 48
Joined: 27. June 2008 13:29

Re: Edit search engines in portal block?

Post 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..
Locked

Return to “board3 Portal 1.0.x - English Support”