Is it broken for everyone or did I break my journal when I modified it? it only ever shows '1 comment' when there are sometimes more than one. If I broke it, how do I unbreak it?
Hmm. I grabbed their 'notebook' template and modded it. I really didn't change that much though. I'll have to test it tonight and see if this template was just broken to begin with or if I messed something up then cut and paste a fix.
Hmm. Just noticed I have no code to delete comments. I wonder if this is a feature or a flaw... I sorta think of it as a feature.
Also, I'll have to explore the code in more detail later. The published code I modified from was in fact broken so your code put me on the path to fixing it but for now I have the text of the comment-counters hard-coded into the program. I have to figure out what they called the class for the journal in my code so I can get the variables from the right place. :)
(no subject)
Date: 2004-04-05 11:39 pm (UTC)(no subject)
Date: 2004-04-06 12:43 am (UTC)"""<div class="footer">"""; if ($e.comments.enabled) { if ($e.comments.count > 0 or $e.comments.screened) { """<a href="$e.comments.read_url">""" + get_plural_phrase($e.comments.count, $p.view == "friends" ? "text_read_comments_friends" : "text_read_comments") + "</a>"; } """ <a href="$e.permalink_url">◉</a> <a href="$e.comments.post_url">""" + ($p.view == "friends" ? $*text_post_comment_friends : $*text_post_comment) + "</a>"; "</div>"; } else { " </div>"; }I'm too lazy to separate the logic from the markup. It looks like "5 comments ◉ Leave a comment".
(no subject)
Date: 2004-04-06 01:57 am (UTC)(no subject)
Date: 2004-04-06 02:13 am (UTC)Also, I'll have to explore the code in more detail later. The published code I modified from was in fact broken so your code put me on the path to fixing it but for now I have the text of the comment-counters hard-coded into the program. I have to figure out what they called the class for the journal in my code so I can get the variables from the right place. :)