06/29/2008
Dear Lazy Tumblr
[Because this worked so well the last time, I figured I’d try again.]
Suppose I wanted to enable disqus comments on only some of my posts (or, if you like, only some of my post types, eg text only) and then only some of the time.
Here is what I imagine the behaviour to be:
- write a new text post
- tag is with “commentsenabled”
- comments are enabled
Text posts that don’t have comments enabled are ordinary text posts without comments.
I’ve had a brief look at the tagsasclasses functionality and, awesome as it is, it seems that it only really supports differential styling, not differential functionality. Of course, I could be totally wrong on that.
Is this even possible?
Differentially yours,
Ben
The way that your tumblr theme works is that you have a main posts block, that contains the formatting for all your posts, it goes like this:
{ block:Posts }
{ block:Video }
blah blah video code
{ /block:Video }
{ block:Quote }
blah blah quote code
{ /block:Quote }
and all the other blocks, video, text, etc
{ /block:Posts }
By default disqus wants you to throw in their code at the end, before the {/block:Posts} so every single post type gets the default treatment of the disqus comments and comment box. But if you wanted to enable it for certain types of posts you would throw in the code that disqus gives you not before the {/block:Posts} but before the blocks you wanted to enable commenting for.
This also comes in handy when you want to customize the comment link for certain blocks. (i.e. right justifying the comment link for quotes, etc)
If you don’t include the code on a certain type of post, Disqus won’t append anything to it. But you have to do it before the {/block} tag for each category you want it enabled on.
I hope that makes sense. If you, or anybody else needs clarification drop me an email or IM, I’d be happy to help. :)
Text posted at 10:25pm / 6 notes
-
benkraal
reblogged this from
pierreism
and added:
that hopeless, am I? Also, I think we got out of sync with reblogs, I posted that before I saw
-
pierreism
reblogged this from
benkraal
and added:
Livejamie, looks like our css woes aren’t over yet :( thatguyben, I’m gonna assume you’ve read my previous reply, but...
-
livejamie
reblogged this from
pierreism
and added:
Wow, way to totally show me up! ;) Yeah after I posted that and spoke to some friends we came across that idea as well....
-
benkraal
reblogged this from
livejamie
and added:
But there’s two bits of...include. The first bit does
-
pierreism
reblogged this from
livejamie
-
livejamie
reblogged this from
benkraal
and added:
The way that your tumblr theme works is that you have a main posts block, that contains the formatting for all your...
-
benkraal
posted this
