Movable Type

Call of Cthulhu Knights of the Dinner Table Online

Here is an example of its use:

  • :
  • Arguments:
  • <MT>

    Version :

    ChangeLog:

    « MTForm | Main | A Couple New Card Games »

    March 06, 2003

    MTVote

    It's been a while since I wrote just a plain plugin, and this doesn't really qualify as one. But it's close. I was inspired by a thread in the MT Support Forums today, and figured it was a good excuse to play with some of the new features in MT 2.6.

    This is still a very preliminary version. I am far from finished. But it works, and there's enough code there for people to play around with in their blogs, so I figured I would release what I've got so far and keep working on it.

    First, the new tags: MTVoteNumber, MTVoteAverage, and MTTotalValue. MTVoteNumber gives you the number of votes submitted. MTVoteAverage gives you the average vote value. MTTotalValue gives you the total value of all the votes.

    Now, to cast a vote, use mt-vote.cgi. You'll have to setup a form or a link to a URL using the following fields: __mode, entry_id, and value. Set __mode to vote to cast the vote. The entry_id field contains the entry id on which to cast the vote, at value's value. For example, to cast a vote of 7 on entry 157, use the following URL:

    http://www.yourdomain.com/mt-path/mt-vote.cgi
    ?__mode=vote
    &entry_id=157
    &value=7

    So, to use this plugin, download either vote.tar.gz or vote.zip, unpack it, and place mt-vote.cgi in your base MT directory, Vote.pm in the lib/MT/App/ directory, and votes.pl in the plugins/ directory.

    Planned for future versions:

    Update (2003-03-06 16:13):

    Comments and Trackbacks

    1. David,

      your plugin worked great for almost two weeks - now it has stopped working without an obvious reason saying.

      Can't call method "created_on" without a package or object reference at /htdocs/mt/plugins/votes.pl line 50.

      This is the code we use:

      Most popular " add_onclick="1" title="">...

      Any help appreciated!

      Thanks in advance!

      Posted by: Torsten on July 24, 2005 02:46 PM

      Blogs vs. Forums

      It is reasonable to suggest that a large chunk of blogs are just like forums with one difference: on a blog, the ability to create a new thread is limited to the authors of the blog. Why then has blogging...
      Trackbacked from NSLog(); on November 17, 2004 12:03 PM
    Post a comment









    Remember personal info?






    Outgoing Pings

    Related Entries

    Related Pages (via Google)

    超だるログ: MTVote投票プラグイン

    超だるログ: エントリ削除したらMTVoteがエラーに

    超だるログ: MTVoteその後

    David Raynes: MTVote

    China & Japan 1/2 life: 写真BlogにMTVoteを設置

    GadgetMadness.com :: We Made Our Own MTVote Rating Plugin for ...

    海原に落つる星の雫: MTVote続き

    [F] MT的投票功能(MTVote.cgi)

    はぢめ雑記張(正しい親ばか自己満足サイト): MTVote::投票プラグイン導入

    Trackback Me?

    TrackBack URL for this entry:
    http://mt.rayners.org/mt-tb.fcgi/159

    Want To Say Thanks?

    Amazon Wish List

    Think Geek Wish List