Tumblr search update
Ok I redid a bunch of my tumblr search code. Here’s the update list
To include this in your site add this code to the customize part somewhere between the tags.
- 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
<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!
これを導入するとTumblrに負荷をかけるらしいので注意
引用:”このスクリプトはページを開くたびに全POSTを取得しに行くためTumblrに高負荷をかけていることを教えていただきました。現在は外しています。”
Reblogged & Liked (41 notes) | Tumblr Reblog Tree
-
roamin liked this
-
sgtoken liked this
-
kidotch
reblogged this from
jacobd
-
syoichi
reblogged this from
jacobd
and added:
これを導入するとTumblrに負荷をかけるらしいので注意 引用:”このスクリプトはページを開くたびに全POSTを取得しに行くためTumblrに高負荷をかけていることを教えていただきました。現在は外しています。”...
-
bnwtheme liked this
-
bandit
reblogged this from
jacobd
and added:
here: http://blog.bandit.co.nz/post/80415548/tumblr-ajax-inline-search
-
chancegarcia
reblogged this from
jacobd
and added:
in came up with an undefined Tumblr error
-
dongthao
reblogged this from
buicongtu
and added:
Làm sao bác mở comment trên này được thế? Của mình không có comment
-
tapbut
reblogged this from
buicongtu
and added:
Hay, thử luôn :)
-
buicongtu
reblogged this from
jacobd
and added:
Đã ứng dụng thử, cực kỳ cool, index được cả tiếng Việt.
-
davehauenstein
reblogged this from
jacobd
and added:
is pretty awesome. This dude wrote some javascript so...box. I plan on setting this up...
-
gedfetz
reblogged this from
jacobd
-
willwm
reblogged this from
jacobd
-
jbreazeale
reblogged this from
jacobd
-
florencio
reblogged this from
jacobd
-
anchi
reblogged this from
jacobd
-
teleute
reblogged this from
jacobd
-
do-nothing
reblogged this from
jacobd
-
plasticdreams
reblogged this from
browneyes
-
ontheroad
reblogged this from
browneyes
and added:
Ok I redid a bunch of my tumblr search code. Here’s the update list Overhauled entire script. much cleaner Uses “AJAX”...
-
browneyes
reblogged this from
noisebox
-
noisebox
reblogged this from
jacobd
-
tyzm
reblogged this from
nyama
-
nyama
reblogged this from
freedomcat
-
kuwataro
reblogged this from
freedomcat
-
anta
reblogged this from
sn
-
sn
reblogged this from
jacobd
and added:
Tumblr.searchBox()
-
kuriz
reblogged this from
ontheroad
-
browneyes
reblogged this from
nakano
-
skashu
reblogged this from
freedomcat
-
thinkcreative
reblogged this from
nakano
and added:
Tumblr.searchBox()
-
nakano
reblogged this from
ontheroad
-
ontheroad
reblogged this from
freedomcat
-
dara-j
reblogged this from
browneyes
-
browneyes
reblogged this from
freedomcat
-
cocacola
reblogged this from
jacobd
and added:
Tumblr.searchBox()
-
tanigami
reblogged this from
jacobd
and added:
Tumblr.searchBox()
-
freedomcat
reblogged this from
jacobd
-
lomo
reblogged this from
jacobd
-
edvakf
reblogged this from
jacobd
-
timtom
reblogged this from
jacobd
and added:
Tumblr.searchBox()
-
jacobd
posted this
