Jacob DeHart

Jacob DeHart

I am Jacob DeHart. I start businesses with my wife Mischa. Our first project is CulinaryCulture. Check me out on flickr, twitter.

Random Tumblelog

Wednesday December 26th 2007

Tumblr search update

This is out of date, in fact I don’t even own the url that this was hosted at anymore. I have a new version in the works, follow me for the update!

Ok I redid a bunch of my tumblr search code.  Here’s the update list
  • Overhauled entire script. much cleaner
  • Uses “AJAX” to pull in data.
  • Loads all data, not just last 20 posts. (maybe should limit this in the future!)
  • Can have multiple search boxes
To include this in your site add this code to the customize part somewhere between the  tags.

<script src=”http://www.thisismydevsite.com” type=”text/javascript”></script>

Then put this code where you want a search box to appear.

<script type=”text/javascript”>Tumblr.searchBox()</script>

If you can, copy that JS file to your own server and link to that.

If you view source on my page you can see the custom CSS I added to format the search results, otherwise it will look pretty raw.

Enjoy!

  1. cheap-papers reblogged this from tanigami
  2. cheap-papers reblogged this from noisnotalwaysno
  3. cheap-papers reblogged this from chancegarcia
  4. free-bets reblogged this from jacobd
  5. gkojay reblogged this from kuwataro
  6. doremifasollatido reblogged this from gkojay
  7. gkojay reblogged this from kuwataro
  8. kidotch reblogged this from jacobd
  9. syoichi reblogged this from jacobd and added:
    これを導入するとTumblrに負荷をかけるらしいので注意 引用:”このスクリプトはページを開くたびに全POSTを取得しに行くためTumblrに高負荷をかけていることを教えていただきました。現在は外しています。”...
  10. bandit reblogged this from jacobd and added:
    here: http://blog.bandit.co.nz/post/80415548/tumblr-ajax-inline-search
  11. chancegarcia reblogged this from jacobd and added:
    in came up with an undefined Tumblr error
  12. dongthao reblogged this from noisnotalwaysno and added:
    Làm sao bác mở comment trên này được thế? Của mình không có comment