2010. 11. 29
The “feedback” plugin
Took some tweaking to get it to work. It only works on single-story pages, which aren’t accessible with the vanilla blosxom flavours.
I had to tweak my story.html a bit to give me links to a single story:
<p>
<a name="$fn"
href="$blosxom::url$blosxom::path/$fn.$blosxom::flavour"
>
<h2 class="pagetitle">$title</h2>
</a>
<br />
$body
</p>
By putting the href attribute on the anchor, you get to the actual story.
I also added a bit of fluff to make a nice footer:
<p class="storylinks">
<span id="commentlink">
<a href="$blosxom::url$blosxom::path/$fn.$blosxom::flavour">
comments: $feedback::comments_count
</a>
</span>
<span id="permalink">
time: $hr:$min <i>[$directorybrowse::browseable_path ]
<a href="$url/$yr/$mo_num/$da#$fn">permalink</a></i>
</span>
</p>
Adding this css makes it look decent:
p.storylinks #commentlink {
text-align: left;
width:100px;
float: left;
}
p.storylinks #permalink {
text-align: right;
position: relative;
display: block;
margin-left:100px;
}
Once that was in place, the feedback plugin
works like a charm. I like the moderation, and it looks reasonably secure.
No comments yet [ / text / blosxom ] permalink
Comments are closed for this story.