Call of Cthulhu Knights of the Dinner Table Online
Here is an example of its use:
<MT>
ChangeLog:
« MTForm | Main | A Couple New Card Games »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):
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...
China & Japan 1/2 life: 写真BlogにMTVoteを設置
GadgetMadness.com :: We Made Our Own MTVote Rating Plugin for ...
はぢめ雑記張(正しい親ばか自己満足サイト): MTVote::投票プラグイン導入
TrackBack URL for this entry:
http://mt.rayners.org/mt-tb.fcgi/159
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!