Categories?

213 views
Skip to first unread message

a_c_m

unread,
Nov 8, 2010, 10:19:33 AM11/8/10
to Disqus Developers
I'm attempting to add category support to the Drupal module for
Disqus, i already have the get_categories_list call implemented in the
disqus.php and that integrated into the Drupal admin system

Where i am stuck, is how to tell Disqus that the form loaded is in
category X, i *though* it would be something as simple as setting "var
disqus_category_id = XXXX;" as part of the JS envocation code. But its
not seemed to work.

I assume this is how you do it, but its not working, as far as i can
test.

I've tested it by getting the comments from get_most_commented_threads
with the category ID passed in.

Any ideas?

a_c_m

Rob Loach

unread,
Nov 10, 2010, 12:27:29 PM11/10/10
to Disqus Developers
Having the ability to filter through the categories in the JavaScript
embed code would be very handy...

var disqus_category_id = XXX

..... That would be very nice.

Thanks a lot,
Rob

a_c_m

unread,
Nov 10, 2010, 12:29:48 PM11/10/10
to Disqus Developers
http://disqus.com/docs/embed/

Doesn't mention category support :(

Also, the reasons you would want to use categories (e.g.
http://groups.google.com/group/disqus-dev/web/api-1-1#get_most_commented_threads)
all seem to require a partner_api_key :(

Seems strange that they go to the effort of publishing the UI for this
feature when its seems like its only open to a very small subset of
users?

a_c_m

Erich

unread,
Nov 17, 2010, 4:21:52 PM11/17/10
to Disqus Developers
The benefit of using categories is still unclear to me.

Is this essentially just for analytics? Say, I'd want to see whether
more people comment on "sports" or on "science" pages?
Or is there some straightforward use of categories for everyone?

Regards,
Erich

Anton Kovalyov

unread,
Nov 17, 2010, 4:23:56 PM11/17/10
to disqu...@googlegroups.com
Mostly for analytics. Also, useful for the API if you want to get, say, latest comments from some particular category, etc.

Anton



David Cramer

unread,
Nov 17, 2010, 4:24:27 PM11/17/10
to disqu...@googlegroups.com
Categories are more of an advanced feature. Disqus used to be more a
forum-esque platform, so categories made sense. Now it's just
something that we offer if the end-user needs it. I think it's more
geared towards server-side API uses now (someone else can correct me
if I'm wrong). As far as I'm aware there's no real inclusion in
analytics or anything else on the web end of things, though analytics
does sound like a nice use case that we may look into in the near
future.

--
David Cramer
http://disqus.com/zeeg/

> --
> --
> http://groups.google.com/group/disqus-dev?hl=en

a_c_m

unread,
Dec 2, 2010, 3:11:19 AM12/2/10
to Disqus Developers
Our use case is basically what Anton suggested. We have several
sections e.g. 'Sports' or 'News' or 'Politics' and we would want to be
able to pull back recent comments per category not site wide.

Our hack solution (as the current category support, doesn't work), was
to create several 'sites' in disqus and then on the server side side
inject a different short code depending on the section. Not ideal, but
it works.

a_c_m

On Nov 17, 10:24 pm, David Cramer <da...@disqus.com> wrote:
> Categories are more of an advanced feature. Disqus used to be more a
> forum-esque platform, so categories made sense. Now it's just
> something that we offer if the end-user needs it. I think it's more
> geared towards server-side API uses now (someone else can correct me
> if I'm wrong). As far as I'm aware there's no real inclusion in
> analytics or anything else on the web end of things, though analytics
> does sound like a nice use case that we may look into in the near
> future.
>
> --
> David Cramerhttp://disqus.com/zeeg/

Chris French

unread,
Dec 2, 2010, 11:14:33 AM12/2/10
to disqu...@googlegroups.com

I did this exact same thing for my site. After categories didn't work.

However now that there are paid sites you would need to upgrade each site and pay monthly for each site correct?

a_c_m

unread,
Dec 2, 2010, 1:48:33 PM12/2/10
to Disqus Developers
if you wanted the pro stuff, yes - but i expect they (Disqus) would
cut you a deal / only charge you once (or at least i would hope).

On Dec 2, 5:14 pm, Chris French <cont...@chrisfrench.me> wrote:
> I did this exact same thing for my site. After categories didn't work.
>
> However now that there are paid sites you would need to upgrade each site
> and pay monthly for each site correct?

David Cramer

unread,
Dec 2, 2010, 2:07:31 PM12/2/10
to disqu...@googlegroups.com
You only actually are charged once for your account. All forums owned
by your account receive access to all package features.

--
David Cramer
http://www.davidcramer.net

> --
> --
> http://groups.google.com/group/disqus-dev?hl=en

David Zhou

unread,
Dec 2, 2010, 3:45:01 PM12/2/10
to disqu...@googlegroups.com
For further details, see the "Premium Accounts" section here:

Chris French

unread,
Dec 3, 2010, 11:32:25 AM12/3/10
to disqu...@googlegroups.com
Oh good, i was concerned about this, I am going to upgrade now than. Thanks for the great system.


Reply all
Reply to author
Forward
0 new messages