Articles Tagged nanoblogger

Pollxn commenting in NanoBlogger

Posted on April 24th, 2008 08:51:06 by landon
Comments

Last night NanoBlogger was causing me frustration to no end as I searched for a commenting system to add to it. Nbcom wasn't working (at this point I chalk it up to user stupidity. JS-Kit wanted me to store comments on their server (although it did look mighty fine :( ), which just didn't go over well with me. So I was browsing other NanoBlogger blogs and stumbled across this one, which had just the comment system I wanted. After some diddling about with Pollxn, I wished that blogger had posted his own experiences, but he didn't, so I might as well!

  1. To get Pollxn to work nicely, you need to install to your main blog directory (/var/www/blog/ in my case) and then run nb --configure.
  2. In the conf you need to set BLOG_URL_ACTION="pollxn.pl?storypath=" (we'll add the rest of the URL in the templates.)
  3. Direct yourself to the templates directory and bring $EDITOR with entry.htm and permalink_entry.htm
  4. Doing this part from memory, but starting from the
    and ending at the -->, replace that section with this line: | <a href="\${BASE_URL}\$BLOG_URL_ACTION\`echo $NB_EntryPermalink | tail -c 24`">template_cmtlink</a> This will let pollxn.cgi get the actual filename, since $permalink_file doesn't seem to work.
  5. In pollxn.cgi, set $datadir to be the data directory ( /var/www/blog/data in my case)