Search bar problem

kriskaykriskay Registered Users Posts: 2 Beginner grinner
edited January 5, 2008 in SmugMug Support
Dear helpful people,

I am working on www.kristenkay.com and there is a problem with the search tool. The search tool only searches the page, which the user is on and not the entire site. Is there a way to either include all the pages in the search or have a "Find" page that searches all other pages (kind of like moon rivers)?

Thank you,
-Mike
Web Admin

Comments

  • Craig RidleyCraig Ridley Registered Users Posts: 169 Major grins
    edited January 3, 2008
    Same problem here...
    Having just completed an overhaul of my site, I too implemented the SMUGSEARCH and would like the search to search my entire site no matter where you are within the site (i.e. current behaviour is to search the gallery you are in if you are not on the homepage).

    Does anybody have any answer on how to modify SMUGSEARCH to always search the entire site as this problem has been bugging me as well?

    Thanks,
    Craig.

    http://ridley.smugmug.com
    My Site: http://www.craigridley.com
    Facebook: http://www.facebook.com/craigridleyoutdoorphotography

    Want to save $5 on a smugmug account? Use this coupon code: WzG2eZLQPGrqI
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited January 4, 2008
    Having just completed an overhaul of my site, I too implemented the SMUGSEARCH and would like the search to search my entire site no matter where you are within the site (i.e. current behaviour is to search the gallery you are in if you are not on the homepage).

    Does anybody have any answer on how to modify SMUGSEARCH to always search the entire site as this problem has been bugging me as well?

    Thanks,
    Craig.

    http://ridley.smugmug.com
    I search your site from homepage, or gallery page, and I get a results page, I'm still on your site...

    You do need to style the .searchResults page I think, to match the rest of your customizing.
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited January 4, 2008
    kriskay wrote:
    or have a "Find" page that searches all other pages (kind of like moon rivers)?

    Thank you,
    -Mike
    Web Admin
    I'll ask RichW to pop in and show you the way :)
  • richWrichW Registered Users Posts: 941 Major grins
    edited January 4, 2008
    Whole Site Search
    To search your whole site on matter where you are at, remove the SMUGSEARCH if you like and add or replace with the following:

    <!-- start standard search code -->
    <*form method="get" action="http://NICK_NAME.smugmug.com/search/index.mg">
    <*input type="text" name="searchWords" />
    <*input type="hidden" name="searchType" value="InUser" />
    <*input type="hidden" name="NickName" value="NICK_NAME" />
    <*input type="submit" name="sa" value="Search" size="20" class="buttons"/>
    <*/form>

    Replace the 'NICK_NAME' with your site's nickname.
    Remove the *'s after the '<'
    <!-- end code -->
    <!-- end code -->
    <!-- end code -->
  • richWrichW Registered Users Posts: 941 Major grins
    edited January 4, 2008
    kriskay wrote:
    Dear helpful people,

    I am working on www.kristenkay.com and there is a problem with the search tool. The search tool only searches the page, which the user is on and not the entire site. Is there a way to either include all the pages in the search or have a "Find" page that searches all other pages (kind of like moon rivers)?

    Thank you,
    -Mike
    Web Admin
    Andy does have a nice looking Search Page, I wonder who made it for him :Dhttp://www.moonriverphotography.com/find

    kriskay, which items are you looking to have on your search page? Knowing this will help me to write up all the needed codes. Let me know...
  • Craig RidleyCraig Ridley Registered Users Posts: 169 Major grins
    edited January 4, 2008
    richW wrote:
    To search your whole site on matter where you are at, remove the SMUGSEARCH if you like and add or replace with the following:

    <!-- start standard search code -->
    <*form method="get" action="http://NICK_NAME.smugmug.com/search/index.mg">
    <*input type="text" name="searchWords" />
    <*input type="hidden" name="searchType" value="InUser" />
    <*input type="hidden" name="NickName" value="NICK_NAME" />
    <*input type="submit" name="sa" value="Search" size="20" class="buttons"/>
    <*/form>

    Replace the 'NICK_NAME' with your site's nickname.
    Remove the *'s after the '<'
    <!-- end code -->
    <!-- end code -->
    <!-- end code -->

    Rich - Thank you so much - this is exactly what was after! Works brilliantly on my site. Now I just need to make the search glass icon of my own to replace the boring search button (since the nice search glass disappeared with the SMUGSEARCH).

    Thanks again for your quick response and solution!

    Cheers,
    Craig.

    http://ridley.smugmug.com
    My Site: http://www.craigridley.com
    Facebook: http://www.facebook.com/craigridleyoutdoorphotography

    Want to save $5 on a smugmug account? Use this coupon code: WzG2eZLQPGrqI
  • richWrichW Registered Users Posts: 941 Major grins
    edited January 5, 2008
    Rich - Thank you so much - this is exactly what was after! Works brilliantly on my site. Now I just need to make the search glass icon of my own to replace the boring search button (since the nice search glass disappeared with the SMUGSEARCH).

    Thanks again for your quick response and solution!

    Cheers,
    Craig.

    http://ridley.smugmug.com
    You're Welcome....thumb.gif

    nice navBar you got going there, looks good...
  • mhilbushmhilbush Registered Users Posts: 70 Big grins
    edited January 5, 2008
    Now I just need to make the search glass icon of my own to replace the boring search button (since the nice search glass disappeared with the SMUGSEARCH).

    I don't remember where I found this, but to get the search glass, I've been using this line in place of the line containing 'input type="submit"' above.

    <*input type="image" src="/img/spacer.gif" alt="Submit Search" title="Submit Search" class="searchglass" />
    </pre>
    Mark
    Mark
  • Craig RidleyCraig Ridley Registered Users Posts: 169 Major grins
    edited January 5, 2008
    mhilbush wrote:
    I don't remember where I found this, but to get the search glass, I've been using this line in place of the line containing 'input type="submit"' above.

    <*input type="image" src="/img/spacer.gif" alt="Submit Search" title="Submit Search" class="searchglass" />


    </PRE>
    Mark

    Thanks...Works a treat! <img src="https://us.v-cdn.net/6029383/emoji/clap.gif&quot; border="0" alt="" >
    My Site: http://www.craigridley.com
    Facebook: http://www.facebook.com/craigridleyoutdoorphotography

    Want to save $5 on a smugmug account? Use this coupon code: WzG2eZLQPGrqI
Sign In or Register to comment.