Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Search Help


  #1  
Old Sep 29, 2009, 02:08 PM
joestyer's Avatar
joestyer
 
17 posts · Feb 2009
Falmouth Kentucky
Hi
I just affiliated with a co-branded store and they asked me to an additional thing to my search box.

Add an option on your site search for searching the store.
To add a store-search option to your search widget, simply pass the search terms through a url formatted like the following (example search: “poker game”):
HTML Code:
http://your.store.url/home.asp?platform=0&sString=poker+game&cmdSearch.x=0&cmdSearch.y=0
Or, if you use google search you can simply create an option for searching the store subdomain.


Hi hope the above makes sense to someone because I do not have a clue on this one. If it is not possible to do with the embeded search plugin just let me know. I am at an absolute loss on this one.
My site is www.blackberrysites.com
my store is a subdomain http://store.blackberrysites.com

Thank you
Joe Styer

Last edited by juggledad; Sep 29, 2009 at 02:28 PM.
  #2  
Old Sep 30, 2009, 11:30 PM
joestyer's Avatar
joestyer
 
17 posts · Feb 2009
Falmouth Kentucky
Search Box Help

Hi
I just affiliated with a co-branded store and they asked me to an additional thing to my search box.

Add an option on your site search for searching the store.
To add a store-search option to your search widget, simply pass the search terms through a url formatted like the following (example search: “poker game”):

HTML Code:
http://your.store.url/home.asp?platform=0&sString=poker+game&cmdSearch.x=0&cmdSearch.y=0
Or, if you use Google search you can simply create an option for searching the store sub-domain.


Hi hope the above makes sense to someone because I do not have a clue on this one. If it is not possible to do with the embedded search plug-in just let me know. I am at an absolute loss on this one.
My site is www.blackberrysites.com
my store is a sub-domain http://store.blackberrysites.com

Thank you
Joe Styer

Last edited by juggledad; Oct 1, 2009 at 08:24 AM.
  #3  
Old Oct 13, 2009, 09:47 AM
flaneur
 
10 posts · Oct 2009
Bloomington, IN, USA
Hi Joe. I may be able to help you on this one. Using form code in a text widget, I placed a custom search box on my blog.

It allows visitors to enter a search term, then searches Twitter traffic for those terms within a 15-mile radius of Bloomington, Indiana.

First, I had to get the url format of the search engine results. (It looks like you have this already in your post.)

Next, I added this form in a text widget to my blog:

Code:
<form name="form" target="_new" method="get" action="http://lafleurphoto.com/btweets.php">
<b>Search Bloomington Twitter traffic:</b><br />
<input name="btweets" type="text" /> <input type="submit" name="submit" value="Go" />
</form>
The last step was to create the PHP file that outputs the search in a new window, and save it in my directory as btweets.php:

Code:
<?php

if (isset($_GET['btweets']))
{
$search = $_GET['btweets'];

echo "<meta http-equiv=\"Refresh\" content=\"0; url=http://search.twitter.com/search?q=" . $search . "+near%3A%22Bloomington%2C+Indiana%22+within%3A15mi\">";
}
else
{
echo "You need to enter a search term";
}

?>
You can see it in action at the bottom of http://lafleurphoto.com/?p=118 . I'm certain this would work for your needs once you change the url in the PHP file. Note that you are passing 'btweets' from the form to the PHP function, so if you want to change it to another word, you have to change it throughout the PHP file as well. Hope this helps!


Michael LaFleur
www.lafleurphoto.com

Bookmarks

Tags
customize search box, search box



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make the search wigget search in pages? aquilaciencia Plugins & Atahualpa 3 Aug 17, 2009 10:21 AM
Search box mhp Header configuration & styling 0 Jul 28, 2009 06:01 PM
Search Button Cali Header configuration & styling 7 Jul 23, 2009 09:43 PM
Add Google Search to Search box? ldaily Header configuration & styling 0 Jul 21, 2009 10:12 AM
search box and archive search box zizi Page & Category Menu Bars 2 Mar 28, 2009 12:31 PM


All times are GMT -6. The time now is 12:31 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.