Searching from the address box

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
kjmora
Observer
Observer
Posts: 2
Joined: Fri Sep 04, 2009 8:44 am

Searching from the address box

Post by kjmora »

When using IE 7, a user can type, for example, "rentals" in the address box and no site being found, a search on rentals will be done in Google. Is there a way to duplicate this behavior in PWB v. 2.10?

Scott
Site Admin
Site Admin
Posts: 2527
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

We could add the functionality into PWB v2.10.8.

Currently you can only redirect to another page using the HTML error redirect, but this only redirects and does not search.

[HTMLError]
404=http://www.google.com

PWB v2.10.7 includes a search bar. Add the following to the PWB INI file to enable it.

ShowSearchBar=True
SearchBarText=Search
SearchBarPage=http://www.google.com/search?q=%SEARCH%

--Scott

kjmora
Observer
Observer
Posts: 2
Joined: Fri Sep 04, 2009 8:44 am

Post by kjmora »

Thank you for the information. We'll try that for now, but would love to see that functionality in a future version.

Scott
Site Admin
Site Admin
Posts: 2527
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

In PWB v2.10.8 the following has been changed.

Changed [HTMLError] codes to include %SEARCH% macro.

Example:

[HTMLError]
2148270085=http://www.google.com/search?q=%SEARCH%

Using the above example, when a URL typed in is not found, PWB will b redirected to the URL and the %SEARCH% will be replaced by what was typed into the Address box without the leading HTTP:// if typed in.

--Scott

Scott
Site Admin
Site Admin
Posts: 2527
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Related HRESULT nagivation error status codes can be found here.

http://msdn.microsoft.com/en-us/library/aa768365.aspx

--Scott

Post Reply