Is it possible to add/remove tags based on notes count ?

80 views
Skip to first unread message

Lensblr

unread,
Apr 1, 2012, 6:03:46 AM4/1/12
to Tumblr API Discussion
Hi, I'm a Graphic designer with some knowledge in web-design but not
that much in programing.

I launched a Tumblr project three days ago called Lensblr, it's a
network of photo-blogs aiming to regroup original content creators.
The url is http://lensblr-network.tumblr.com (will add a custom domain
today)

Users can submit their blogs, and vote for others.

Once a blog got enough votes (called ISO in my project) they get
featured.

I use tags to separate the different blogs, and I would like to do the
next thing:

Once a post got 25 notes add the tag "25iso" and remove the tag
"lensblr"
Once a post got 50 notes add the tag "50iso" and remove the tag
"25iso"
etc...

Is that even possible ?

Another quick question, is it possible to return in an html variable
the total number of posts under a specific tag ?
For example I would like to have a menu item saying "featured (n)"
where N is the total number of posts under the tag "featured"

Thanks in advance for your help,
Sincerely Sam.

felix bonkoski

unread,
Apr 1, 2012, 12:14:40 PM4/1/12
to tumbl...@googlegroups.com
Once a post got 25 notes add the tag "25iso" and remove the tag
"lensblr"
Once a post got 50 notes add the tag "50iso" and remove the tag
"25iso"
etc...

Is that even possible ?

Sounds possible to me with the API.
You'd have to write a little program to periodically poll posts on your blog, then use the "note_count" on the post information to edit the tags on the post.

 
Another quick question, is it possible to return in an html variable
the total number of posts under a specific tag ?
For example I would like to have a menu item saying "featured (n)"
where N is the total number of posts under the tag "featured"

Not terribly easily, but yes.
    That will return a "total_posts" variable for that tag, although it should be noted that the total_posts seems to have some bugs (see thread).
2. You could have a server-side program that downloads & caches the "post count" for any tag you're interested in, and request that from your
    blog with JSONP or include it in a dynamically-generated javascript.


Reply all
Reply to author
Forward
0 new messages