Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Is it possible to add/remove tags based on notes count ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lensblr  
View profile  
 More options Apr 1 2012, 6:03 am
From: Lensblr <lens...@gmail.com>
Date: Sun, 1 Apr 2012 03:03:46 -0700 (PDT)
Local: Sun, Apr 1 2012 6:03 am
Subject: Is it possible to add/remove tags based on notes count ?
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
felix bonkoski  
View profile  
 More options Apr 1 2012, 12:14 pm
From: felix bonkoski <felixschwer...@gmail.com>
Date: Sun, 1 Apr 2012 09:14:40 -0700 (PDT)
Local: Sun, Apr 1 2012 12:14 pm
Subject: Re: Is it possible to add/remove tags based on notes count ?

> 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<http://www.tumblr.com/docs/en/api/v2#posts>on your blog, then use the "note_count" on the post information to edit
the tags <http://www.tumblr.com/docs/en/api/v2#editing> 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.
1. You could use JSONP to call
"http://api.tumblr.com/v2/blog/lensblr-network.tumblr.com/posts?tag=fe..."
    That will return a "total_posts" variable for that tag, although it
should be noted that the total_posts seems to have some bugs<https://groups.google.com/d/topic/tumblr-api/ZOkrxlUKIc8/discussion> (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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »