Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
Feedback

OpenSearch

rubenwardy
Tuesday, April 28, 2015 - 03:04
rubenwardy's picture

OpenSearch allows websites to specify their own search mechanisms for the search bar of browsers. This means that you could search for resources from the search bar.

See the wikipedia and twitter links? This would allow OGA to be added there too.
It's as simple as this. In the <head> of all webpages:

<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">

opensearch.xml

<OpenSearchDescription>
    <ShortName>OpenGameArt</ShortName>
    <Description>Search OpenGameArt</Description>
    <InputEncoding>UTF-8</InputEncoding>
    <Image width="16" height="16" type="image/x-icon">
        https://opengameart.org/favicon.ico
    </Image>
    <Url type="text/html" method="get"
            template="http://opengameart.org/art-search-advanced?keys={searchTerms}"/>
    <moz:SearchForm>
        http://opengameart.org/art-search-advanced
    </moz:SearchForm>
</OpenSearchDescription>

  • Log in or register to post comments
nosycat
joined 13 years 8 months ago
Tuesday, April 28, 2015 - 17:16
nosycat's picture

It's even easier, actually. Create your search box with <input type="search"> instead of <input type="text"> and Firefox at the very least will recognize it and offer to add it to its list of search engines in the search bar's drop-down menu.

  • Log in or register to post comments
rubenwardy
joined 11 years 4 months ago
Tuesday, April 28, 2015 - 17:19
rubenwardy's picture

Chrome recognises that too. It's HTML5, so older browsers might not, but it's better than not doing it. It's much cleaner than opensearch.xml

http://rubenwardy.com/

  • Log in or register to post comments