« Customize MT4 Commenter Sign In Tenplates | Main | Ajax Comments for MT4 »

Ajax Rating v1.1 - Full Support for MT4

Ajax Rating is a plugin for Movable Type that enables visitors to rate your entries or your blog.

Try it now by rating this blog:

  • Currently 3.7/5
  • 1
  • 2
  • 3
  • 4
  • 5

The "Pro" version of Ajax Rating lets you rate comments, trackbacks, categories, authors, tags, and just about anything else. Added features include threshold viewing for comments based on rating, listing "hot" items, and comment reporting. More details on the Pro version below.

Ajax Rating is easy to setup and use. After downloading the plugin and installing the files, a few simple changes to your templates will enable you to adding Ajax Star Raters to your entries. For example, just add <MTAjaxStarRater type="entry"> to after the <MTEntryBody> tag and you are done - instant Ajax Star Ratings.

New in Version 1.11

Update 9/7/07 11:15 EDT: - Version 1.11 has been released, which fixes 2 bugs, one that affected new MT4 installs in which the tables didn't get added,. and the other affect the star rater under dynamic publishing. If you downloaded version 1.1 yesterday or earlier today, you should updgrade to v1.11 using the download link below.

Ajax Rating v1.11 adds full support for Movable Type 4 (including Ajax Rating Pro). Version 1.11 supports three major versions of MT: 3.2, 3.3x, and 4.0+. Apart from adding MT4 support, there are no new features in this version. Also note that the Templater Installer plugin is required when installing Ajax Rating on MT4.

Download Now

Download Now (Ajax Rating for Personal Use)
Downloads: 6214

Ajax Rating Pro

Ajax Rating Pro has a lot more features:

  • Thumbs up /down (or plus/minus) rating modes
  • Display listings of top rated items
  • Rate comments and other objects
  • Hide comments below a certain rating threshold
  • Enable visitors to choose their own threshold
  • Include a button for reporting spam or inappropriate comments
  • Display "hot lists" based on recent voting activity

Digg-like Functionality

The "hot lists" feature mentioned above is one of the most powerful features of Ajax Rating. It can be used to enable Digg-like functionality, in which your home page can be set to display only the items that are "popular now". Used this way, the ratings become a filter for the content you feature on the home page. If you have a site or blog network with new entries be added frequently, this feature is especially useful. In a typical blog-format home page, entries get pushed lower down the page every time a new one is posted, so even popular entries can get pushed off the home page quickly on a busy site. Ajax Ratings gives you an alternative to this, displaying the hottest entries first, as determined by visitor rankings. This is automatic, and you can define the "hot" time frame (1 day, 3 days, 2 weeks, etc.). Ajax Rating hot lists can really change the dynamics of a site, and may inspire ideas for new ratings-driven sites.

Comment Viewing Threshold

Sites like Slashdot, Scoop-powered sites, and Digg have a similar feature, which hides comments if they are below a certain rating or score threshold. Referred to as a comment viewing threshold or a "collaborative filtering tool", the idea is to display top-rated comments prominently, while hiding or collapsing lower rated comments. With the Ajax Rating plugin, it is possible to do this with Movable Type comments. The plugin is very flexible in how you want to set this, but a common approach might be to enable readers to vote each comment "up" or "down" (plus or minus, thumbs up, thumbs down, etc.). A vote up would equal +1 point and a vote down would equal -1 point. You then set a default viewing threshold. For example, you might choose -10 as the default, meaning that comments with a total score of less than -10 will appear collapsed (or partially or completely hidden, you choose). Collapsed comments can be displayed with a single click. You can also include a form that enables readers to set their own threshold level. Again, this is very customizable, you decide how you want things to work on your site. Take a look at this test entry, which demonstrates both a Star Rater (for the entry) and Plus/Minus comment threshold viewing (for the comments). Set your own threshold using the form at the bottom of the comments and see how the display changes. Similar to the hot list described, above comment viewing thresholds are another way to transform the display of your content based on user ratings.

Rate Anything

Another advanced feature is the ability to rate anything at all. In addition to rating MT objects like entries, comments, categories, authors, and blogs, you can also use Ajax Ratings to rate other things. For example, if you want to create a rater for a movie or book, you can do that. (Example: <$MTAjaxStarRater type="movie" id="23" max_points="5$> -- just remember what movie you assigned the ID 23 to....)

One Vote per IP Address

To prevent people from voting multiple times on the same item, only one vote is accepted per IP address per item.

Template Tags

Template tags for Ajax Rating are available for both static and dynamic (php) publishing.

The following template tags are available in Ajax Rating (free version):

  • <MTAjaxStarRater> - This tag will output a star rater like the one shown above. To rate entries, it must be used in an Entry context (ie. between <MTEntries> and </MTEntries> tags or in the Individual Archive Template. A good spot is just after the <MTEntryBody> tag. The following arguments are supported:
    • type - Recommend (but not required) when rating entries and required when rating a blog. (Example: <MTAjaxStarRater type="entry"> or <MTAjaxStarRater type="blog"). With Ajax Rating Pro, you can also specify the following types: comment, category, author, tag, trackback, or anything else (see "rate anything" above).
    • max_points - Not required for entries and comments, but required for other types. This argument specifies the number of stars that will be displayed. (Example: <MTAjaxStarRater type="blog" max_points="5"> will create a rater with 5 stars)
    • id - For advanced use, the id argument enables you specify a specific object ID number that you want to rate. If you use the tag in the correct context, you don't need to include the 'id' argument. But if you want to place a rater outside of the relevant context, or if you want to rate a non-MT object (see "rate anything" above), then you must specify the id of the object. Normally, you don't want to use this, so forget I mentioned it. ;)
  • <MTAjaxRatingTotalScore> - This will display the total score for the item being rated (adding up the values of all of the ratings made).
  • <MTAjaxRatingAverageScore> - This will display the average score for the item being rated.
  • <MTAjaxRatingVoteCount> - This will display the number of votes or ratings that have been submitted for this item.
  • <MTAjaxRatingEntryMax> - This will display the maximum number of points (stars) for rating entries, as specified in the plugin settings for that blog.

With Ajax Rating Pro, the following tags are also available (in addition to those described above):

  • <MTAjaxRatingList> - A general purpose container tag for displaying listings of "top rated" items in the MT database. The following arguments are available:
    • type - Required. Allowed values are: entry, comment, trackback, category, blog, author, tag. Tip: do not pluralize these types.
    • sort_by - Determines which metric is use to rank the results. Allowed value are: average, votes, total. The default is sorting by total score.
    • sort_order - The sort_order defaults to 'descend' (highest rating first), but you could also specify 'ascend' to show the worst rated items first.
    • blogs - To display a list of items from all blogs on the system, specify blogs="all". Otherwise, leave this out and the list will be restricted to the current blog.
    • show_n - Use this argument to specify the number of items you want to list (the default is 10). (Example: <MTAjaxRatingList type="entry" show_n="15">)
    • hot - Set 'hot' equal to 1 to generate a list of recently "hot" items (this is the powerful feature discussed above). When the 'hot' argument is set to 0 or omitted, the listing will be based on "all time" ratings data. Adding hot="1" will based the listing on recent voting activity only.
  • <MTAjaxRatingEntries> - Same as <MTAjaxRatingList type="entry">. Same arguments as MTAjaxRatingList, but the 'type' argument is not required.
  • <MTAjaxRatingComments> - Same as <MTAjaxRatingList type="comment">. Same arguments as MTAjaxRatingList, but the 'type' argument is not required.
  • <MTAjaxRatingPings> - Same as <MTAjaxRatingList type="trackback">. Same arguments as MTAjaxRatingList, but the 'type' argument is not required.
  • <MTAjaxRatingCategories> - Same as <MTAjaxRatingList type="category">. Same arguments as MTAjaxRatingList, but the 'type' argument is not required.
  • <MTAjaxRatingBlogs> - Same as <MTAjaxRatingList type="blog">. Same arguments as MTAjaxRatingList, but the 'type' argument is not required.
  • <MTAjaxRatingAuthors> - Same as <MTAjaxRatingList type="author">. Same arguments as MTAjaxRatingList, but the 'type' argument is not required.
  • <MTAjaxRatingTags> - Same as <MTAjaxRatingList type="tag">. Same arguments as MTAjaxRatingList, but the 'type' argument is not required.
  • <MTAjaxThumbRater> - Instead of a star rater, this tag will display a thumbs up/down (or plus/minus, etc.) rater. With this type of rater, there are images for voting an item "up" or "down". A vote "up" is equal to 1 point, a vote "down" is equal -1 point. The following arguments are available:
    • type - Recommend (but not required when used in an entry or comment context). (Example: <MTAjaxThumbRater type="comment">). The same types can be used as described for <MTAjaxStarRater> above.
    • id - Same (advanced) usage as described for <MTAjaxStarRater> above.
    • report_icon - This optional argument will display a third button, a "report" button, when used with comment raters. Visitors to your site can click this button to report the comment (for abuse, spam, profanity, etc.). When a comment is reported, an email is sent to the author of that entry, along with a link to edit the comment in question.
  • <MTAjaxRaterOnclickJS> - In addition to the convenient star and thumb raters, you can create your own rater. This tag makes it easier. To enable a rating button (or text link), you need to specify a javascript onclick event. This tag fills in the details. For example suppose you wanted to create a single voting text link for each entry - you could do so as follows: <a href="#" onclick="<$MTAjaxRaterOnclickJS type="entry" points="1"$>">I like it!</a>). Arguments include:
    • type - Recommended (but not required when used in an entry or comment context).
    • id - Same (advanced) usage as described for <MTAjaxStarRater> above.
  • <MTAjaxRatingCommentMax> - This will display the maximum number of points for rating comments, as specified in the plugin settings for that blog.
  • <MTAjaxRatingDefaultThreshold> - This will display the default threshold for viewing comments, as specified in the plugin settings for that blog.
  • <MTIfAjaxRatingBelowThreshold> - This is conditional tag whose contents will be displayed if the comment is below the default threshold, as specified in the settings. Note that this tag does not apply to user-specified thresholds (more on those later).
  • <MTAjaxRatingRefreshHot> - WARNING: You should not use this tag if you have a busy site with high-volume voting activity. This a special tag, it displays no ouput. It simply triggers the process of calculating the list of "hot" items. Note that "hot" list are not tabulated when the listing tags are rebuilt. For performance reasons, this process happens separately, usually via an MT scheduled task that runs automatically (approx) once every hour. If, for some reason, you want to manually refresh to the "hot" list, you can place the <MTAjaxRatingRefreshHot> tag into an index template and rebuild it (be sure to uncheck the "rebuild this template with indexes" box!). Again, this should be used carefully on busy sites, and usually not at all. The "hot" list can also be refreshed via an included cron script (more on this later).
Ajax Rating Settings

The settings for Ajax Ratings looks like this:

The blog settings for Ajax rating Pro looks like this:

Ajax Rating Pro also has a setting that is set only at the system level (Go to System Overview > Plugins). The system setting looks like this:

One of the notable settings is the "Rebuild After a Vote" option. High traffic site with high-volume voting should be careful with this setting. Generally speaking rebuilds can consume a lot of processor cycles, and a significant rebuilding after votes could slow things down, depending on several factors. The best performance option is "No Rebuilds" -- if you choose this option, the page will get update with the reader's vote immediately, but if this refresh the page, their vote won't be reflected (because the page has not yet been rebuilt). In this mode, ratings and votes counts get recorded into the database, but are not reflected on your pages until those pages are rebuilt (such as after a comment is posted to the entry, or manually rebuilt). If you have a site with high volume voting, chances are that you also have high-volume commenting -- if this is true, use the "No Rebuilds" option here and your entries will still be rebuilt every time a comment is posted. The second option here is "Rebuild Entry Only" -- this will only rebuild the Individual Archive template(s) for that entry (or if the vote is for a category, it will only rebuild the relevant category archive page) -- performance-wise, this option is not too bad. The third option is "Rebuild Entry, Archives, Indexes" -- this is the same level of rebuilding that happens when a comment is posted. It is the worst option performance-wise, as many pages may be rebuilt (the individual archive page(s), each of the category pages for the entries categories, any date-based archives enabled, and every index template in your blog. Be careful with this one on high-traffic blogs. The final option is "Build Indexes Only", which will only rebuild your index templates. This option might be suitable if you are only using the "Rate This Blog" widget (more on this later) on your main index. Note that if you are using PHP Dynamic publishing, there is no issue with rebuilds, you can set this to "No Rebuilds" and ratings will always be reflected correctly each time the page is loaded.

Requirements

(Note: If you are running 3.3x or 4.0, installation will be much easier, as the database tables will be automatically created for you. If you are running 3.2, you will need to create the tables manually - or via a utility like phpMyAdmin)

Installation Instructions

  1. Expand the zip file.
  2. Upload the contents of the 'plugins' directory to the 'plugins' directory of your MT install (usually /cgi-bin/mt/plugins)
  3. Upload the contents of the 'mt-static' directory to the static directory created when you installed MT (usually called 'mt-static')
  4. Change the permissions on the mt-vote.cgi and mt-report.cgi (Pro only) files found within /plugins/AjaxRating/ to 755 (CHMOD 755)
  5. Login to Movable Type (or if already logged, click "Main Menu")
  6. If your are running MT 3.3x or 4.0, you should now be redirected to an Upgrade screen that will install the tables for Ajax Rating. If you are running MT 3.2, then you need to create the tables manually, using the ajaxrating.sql file to create these tables.
  7. After the tables have been created, browse to the settings (Preferences>Plugins for MT4 or Settings->Plugins for older versions) for the blog you want. Choose the settings that you want and then save.
  8. Return to the settings and click the "Install Templates" link. This will install the javascript and styles index templates and rebuild them automatically. (Note: if you change you settings in future, remember to manually rebuild this index templates afterwards)
  9. For every template for which you plan to place raters, add the following between the <head> and </head> tags (if you are using the MT4 default templates, go to Template Modules and edit the "Header" template):
  10. <script type="text/javascript" src="<MTStaticWebPath>prototype.lite.js"></script>
    <script type="text/javascript" src="<MTStaticWebPath>moo.ajax.js"></script>
    <script type="text/javascript" src="<MTBlogURL>ajaxrating.js"></script>
    <link rel="stylesheet" href="<$MTBlogURL$>ajaxrating.css" type="text/css" />

  11. Now you can place raters to meet your needs. Most people may want to add something like the following below the <MTEntryBody> tag (if you are using the MT4 default templates, go to Template Modules and edit the "Entry Summary" and "Entry Detail" templates):
  12. <$MTAjaxStarRater type="entry"$>
    Rating: <strong><span id="ajaxrating_entry_<$MTEntryID$>_avg"><$MTAjaxRatingAverageScore type="entry"$></span></strong>/<$MTAjaxRatingEntryMax$> (<span id="ajaxrating_entry_<$MTEntryID$>_cnt"><$MTAjaxRatingVoteCount type="entry"$></span> votes cast)

  13. Add the included Ajax Rating widget to your sidebar. This will display a "Rate this Blog" section that will enable people to rate your blog. (Optional)

  14. Test it out and tell people they can start submitting votes!

For more advanced usage, see the articles linked at the bottom of this entry.

Get Ajax Rating

Ajax Rating is free for personal use, but you must include a link on your home page to http://mt-hacks.com/ajaxrating.html, such as:

Ratings on this site are powered by the <a href="http://mt-hacks.com/ajaxrating.html">Ajax Rating</a> plugin for Movable Type.

Download Now

Download Now (Ajax Rating for Personal Use)
Downloads: 6214

A lot of effort went into this plugin, donations are much appreciated. Suggested donation is $10:

If you wish to use Ajax Rating for commercial use, a commercial license must be purchased for $25:

Get Ajax Rating Pro

Ajax Rating Pro Regular License (1 to 10 blogs)

A regular license for Ajax Rating Pro enable you to use Ajax Rating Pro on up to 10 blogs on a single MT installation. The cost is $249:

Ajax Rating Pro Blog Network License (10+ blogs)

If you want to use Ajax Rating Pro on more than 10 blogs on a single MT installation, you can purchase a "Blog Network License". The blog network license is for unlimited blogs on the same install, and includes up to 2 hours of implementation consulting and a custom multi-blog installation script. The multi-blog installation script can be customized to meet your needs (subject to the 2 hours of consulting time) and includes setup of settings and installation of templates for each blog. The blog network license is $499.

Rater Images and CSS Styles

I did not design the default star graphic used with this plugin, and I did not craft the CSS styles that make it look and work so slick. Much credit for both of these elements goes to Ryan Masuga of Masuga Design. Ryan's Unobtrusive AJAX Star Rating Bar has been downloaded more than 85,000 times! Thank you Ryan.

The plus / minus images, on the other hand, I did design .... and it shows. Graphic design is not my forte. As mentioned above, you can swap out your own images for both types of raters (more on that soon). If anyone out there want to design some better button images, please do! Thumbs up and thumbs down images would be cool, and maybe a better plus/minus set as well. If you design some buttons you want to share, let me know I will post them here or include them with Ajax Rating (giving you credit of course).

Future Features

In the future Ajax Rating Pro will be enhanced even further. If you purchase a license for Ajax Rating Pro, you can help steer the development of new features. I see a lot of potential for this plugin with very active blog sites, and blog networks in particular -- and new features will likely be in this area. Here are a few ideas that may be worth adding if customers are interested:

  • more sophisticated "hot" list algorithms - making this more sophisticated and customizable, so you can fine tune everything to make sure that the popularity filter is promoting those items that help build community and create buzz
  • score summary for authors and commenters - look at which authors have the highest and lowesst rated entries (maybe offer prizes or compensation based on ratings), also look at summarized raters for each commenter, possibly triggering automatic or manual review when commenters have continually poor ratings (troll meter)
  • displaying rating and vote information on the MT admin screens
  • notification thresholds that will flag comments below thresholds, or even rules that automatically unpublish them pending review.

As always, comments, feedback, suggestions are welcome. Please reply to this entry.

Rate this entry:

  • Currently 4/5
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 4/5 (1009 votes cast). Powered by the Ajax Rating plugin.

Comments (38)

Hey there Mark, I've installed this rating plugin and everything shows up just fine but when someone makes a vote it does not update when you refresh. In fact, it seems as though the vote is going unrecorded.

Not sure where to go from here but I'll guess I'll wait until you get back from vacation. ;-)

MT Version: 4.01
Plugin Version: 1.1
Website: www.sanjosebass.com

Let me know if you have any suggestions.

Kevin Author Profile Page:

If you're running a subdomain the script won't be able to find the path to the Ajax rating program's cgi script. In my experience that's the usual problem when the votes aren't being counted. The most complete solution is somewhat complicated. You'd need to add:
ScriptAlias /mt/ "/path_to_mt/"

(you must substitute in your full file system path to MT)

to your server httpd.conf (and restart), then change the mt-config.cgi to:

CGIPath /mt/

This allows all blogs on your install to access the MT admin scripts and plugins via relative paths.

You might try changing MTCGIRelativeURL in the Ajax Rating Javascript to MTCGIPath, but that's never really worked for me...

it does not work for me, i keep getting error.

majid Author Profile Page:

Hi,
I've uploaded and installed ajax rating successfully on my web site. but when I add any rating code, it doesn't record anything in database.
My mt version is 3.3, but this plugin doesn't create database automatically. though I created it manually with the sql code inside zip file.
all permissions are correct, but no data recorded in database and other settings seem to be ok.
It's driving me crazy.
would you please help me. my web site address is http://majid.hajali.ir

HI majid,

Seems like the mt-vote.cgi voting script is missing. When I try to vote on your site, (using FireBug) the Ajax post returns the following error:

The requested URL /cgi-bin/mt33/plugins/AjaxRating/mt-vote.cgi was not found on this server

This could be because your blog is at majid.hajali.ir but your MT is at www.hajali.ir. Ajax Rating uses a relative URL, which assumes that your MT is on the same subdomain as your blog. The reason is that most browsers will throw a security error if you try to do an AJAX post to another subdomain.

The best solution, if possible, is to alias the /cgi-bin/ directory to all domains on the system. In my apache config, I have:

ScriptAlias /cgi-bin/ /var/www/cgi-bin/

Which points /cgi-bin/ all all domains on my server to the same filesystem directory on my server, where MT lives.

If you don't have access to change your apache config, let me know. There is another way to get this to work.

Thank you Mark,
unfortunately I don't have access to my web server settings. could you please tell me the alternative way?

Majid,

The alternate way is a little bit trickier, but it does work:

The goal is to copy the voting script to your blog domain, so it will work without any cross-domain errors:

  • Upload a copy of the mt-vote.cgi file in:

    <www directory>/cgi-bin/mt33/plugins/AjaxRating/mt-vote.cgi

    to

    <majid directory>/cgi-bin/mt33/plugins/AjaxRating/mt-vote.cgi

  • Now the voting script is in right place, but it won't work just yet. We need to edit the file so that it knows where the rest of MT lives
  • Edit the new mt-vote.cgi file. The contents should look like the follow, there are only 3 lines:
  • use strict;
    use lib "lib", ($ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : "../../lib");
    use MT::Bootstrap App => 'AjaxRating::AddVote';

    The second line tells the script where to find MT. The last part is the part we want to change:

    "../../lib"

    The above says "go up two directories and then look in the 'lib' directory, which is normally /mt/lib/ -- but since we moved the file, it won't find MT within the majid directory tree. The easiet way is to change this to the full abosolute file system path to /mt/lib/. This depends on your directory structure, but it might look something like:

    "/home/<user_name>/public_html/www.hajali.ir/cgi-bin/ mt/lib"

    The above is just a guess, you need to find out the correct path.

  • Save the edited mt-vote.cgi, make sure is has CHMOD 755 permissions, then try to vote.
  • Hi Mark,
    Thank you so much for your guides, but I've got another error with firebug.


    Got an error: Can't locate AjaxRating/AddVote.pm in @INC (@INC contains: /home/hajali/public_html/cgi-bin

    /mt33/extlib lib /home/hajali/public_html/cgi-bin/mt33/lib /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5

    /5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl

    /5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.6.2

    /usr/lib/perl5/site_perl .) at (eval 4) line 1.

    majid, what was the exact edit that you made to the mt-vote.cgi file?

    make sure the path doesn't end with cgi-bin, it must also include the "mt/lib" part. It should be:

    "/home/hajali/public_html/cgi-bin/mt33/lib"

    Also make sure that you have uploaded all of the plugin files correctly. It should look like:

    /mt33/plugins/AjaxRating/AjaxRating.pl
    /mt33/plugins/AjaxRating/lib/AjaxRating.pm
    /mt33/plugins/AjaxRating/lib/AjaxRating/AddVote.pm
    ...and so on...

    Mark, all settings seem to be ok.
    I don't know why I've got error. :(
    this is the second line of mt-vote.cgi file :
    use lib "lib", ($ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : "/home/hajali/public_html/cgi-bin/mt33/lib");

    Thank you mark, your last guide was a good point.
    In the error I'd got there is a line said there is no addvote.pm in extlib folder, so I copied the contents of lib folder in plugins folder to extlib too.
    The problem is solved.
    thank you so much,

    Will:

    Hi,

    Might want to make it so you can still vote if javascript is disabled instead of getting the ugly 404 page. Thanks!

    Take Care,

    Will

    nevado Author Profile Page:

    Hi, i need use 2 styless of ajax rating, one for the Index and other for page of entry, how i can do this? thanx

    nevado Author Profile Page:

    In the ajax rating pro i can put this but i need the list of only entries of one category, in i can put this category="" but i test it in MTajaxratinglist but it not work, how i can use this? thanx

    nevado, to use different styles for different pages, you may want to customize the rater using the techniques described in this article.

    In the current version you cannot display a list of ranked entries by category. That said, I do plan to add this feature in a future version.

    nevado Author Profile Page:

    I not run vote to category, author, or anything. only i can vote to entries. i have the version pro and im put this but i cant vote to author and in the html have this code 1

    The script not see the id of author to can vote. Im use MT 4.0
    thanx

    nevado Author Profile Page:

    Hi Mark, with the article you say i can change the styles of ajax rating, but only to vote im want see in a page with 2 diferent styles the points in stars that a entry have. example if a entry have a 3 stars of average in the entry im need see thi 3 stars in 2diferents styles, and in the article you only see how change the styles to vote, not to see the votes of one entri. thanx

    Rob Staveley (Tom):

    The ajaxrating.js and ajaxrating.css doesn't seem to want to install. Referencing explicitly the .js and .css from your site is obviously not good netiquette, but this seems to be what's needed in 9, if you don't pull the files locally:

    <script type="text/javascript" src="<MTStaticWebPath>prototype.lite.js"></script>
    <script type="text/javascript" src="<MTStaticWebPath>moo.ajax.js"></script>
    <MTIgnore>
    <script type="text/javascript" src="&tt;MTBlogURL>ajaxrating.js"></script>
    <link rel="stylesheet" href="<$MTBlogURL$>ajaxrating.css" type="text/css" />
    </MTIgnore>
    <script type="text/javascript" src="http://www.markcarey.com/mthacks/331/ajaxrating.js"></script>
    <link rel="stylesheet" href="http://www.markcarey.com/mthacks/331/rating.css" type="text/css" />

    Reckon that's an MT4.1 integration issue (or me just missing something from the instructions)?

    Also, I'm not seeing the votes getting lodged.

    amir:

    hi.
    i am using this plugin in mt4 and work successfully.
    but i haveinstalling it in mt 3.36 and plugin setting does not show in the setting > plugin in my weblog.
    i can't see the plugin!
    in the main menu > plugins i can seee the plugin name but only there is "show resource" link for plugin. and setting does not appear.
    my tables in sql is sucessfully created and upgrading is done.
    please help me .

    Getting this error, as reported by Firebug

    Reporting: moo.ajax.js (line 22)
    Error: POST http://speedcenter.tv/cgi-bin/m/plugins/AjaxRating/mt-vote.cgi 500 140ms

    500 Internal Server Error

    Internal Server Error
    The server encountered an internal error or
    misconfiguration and was unable to complete
    your request.

    The cgi is in the correct spot, and I've triple-checked it's CHMOD 755 already. Nothing unusual about the directory or URL structure. Probably something simple, but I can't find it. Suggestions?

    Oh, I should add this is for Movable Type Pro version 4.21-en

    Re-installed. No changes, just used the default folder names this time and it worked. Not sure if that's the problem or I messed something up the first time, but it's good now.

    Su Author Profile Page:

    Mark, on a client install I'm working on at the moment, the systems person has confirmed a suspicion that the db tables were not created for whatever reason. Is there a way to force the plugin to run through the install process again? This is still in non-public dev, so I don't care if it reboots things, although there's no data being saved anyway.

    Everything else is behaving perfectly, including an OK response from the Ajax call, so this was a final effort.

    Su Author Profile Page:

    Mark, on a client install I'm working on at the moment, the systems person has confirmed a suspicion that the db tables were not created for whatever reason. Is there a way to force the plugin to run through the install process again, or do you have a 4.2 version of the manual SQL file at hand? This is still in non-public dev, so I don't care if it reboots things, although there's no data being saved anyway.

    Everything else is behaving perfectly, including an OK response from the Ajax call, so this was a final effort.

    kiran Author Profile Page:

    Hi,
    How to use Ajaxrating plugin for Oracle DB as it is failing while upgrading

    Dear Mark,

    I just installed the Ajax Rating plugin on MT Pro Version 4.24. The installation process was very smooth and everything seemed to work fine.

    I do however get a list of numbers instead of Stars displayed and voting doesn't seem to work that way. You can see an example at http://www.journalofaphotographer.com/test/

    I understand that you certainly get lot's of support questions for your plugins and I appreciate your help for the community. I hope you could lead me to finding an answer for my problem.

    Thanks a lot,
    Martin

    Mark, I am sorry, I solved the problem. In the Plugin's settings I chose the mode "Thumbs Up/Down" rating instead of the Star rating. I changed it to Star rating and now it works. Do you have an idea why the Thumbs Up/Down don't?

    Thanks again,
    Martin

    There is still one bug I encountered. On http://www.journalofaphotographer.com/test/ I am able to cast my vote and it's displayed. But as soon as you reload the page the vote is gone. Do you have any idea why that could be?

    Thanks so much,

    Martin

    figured it out: "Change the permissions on the mt-vote.cgi and mt-report.cgi (Pro only) files found within /plugins/AjaxRating/ to 755 (CHMOD 755)" - I thought the mt-vote.cgi would be in Pro only as well, I changed the permission and that fixed the problem.

    Re-installed. No changes, just used the default folder names this time and it worked. Not sure if that's the problem or I messed

    Anonymous:

    Can anyone confirm that either the basic or pro version of this works with MT 4.25. Specifically the pro version, I'd like to know that it will install before buying it :) thanks!

    Tom:

    I thought I had installed Ajax Rater correctly but all I see on the entry page is:

    Currently 0/10 1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    .....exactly as shown (i.e. no stars!).

    I'm using MT 4.01.
    Any ideas?
    Thanks,
    Tom


    Jenn:

    We've purchased Ajax Rating Pro for our blogs found at Baristanet.com. On our test blog (http://baristanet.com/jenn_test), I have the thumbs up/down template installed. Our votes, though, do not save. The tables were created, but they remain empty no matter how many times we vote or refresh or republish. Firebug shows an error saying "Ajax not defined" from the following line of the ajaxrating.js:

    new ajax('http://www.baristanet.com/cgi-bin/mt/plugins/AjaxRating/mt-vote.cgi', {postBody: 'obj_type='+type+'&r='+r+'&obj_id='+id+'&blog_id='+b+'&a='+a, onComplete: updateRating});

    I did CHMOD 755 both .cgi file, and we have an install of MT 4.21.

    Do you have any suggestions or ideas as to why this may not be working?

    I thought I had installed Ajax Rater correctly but all I see on the entry page is:

    Currently 0/10 1

    Scattered:

    I'm having an issue where the rating doesn't count until I publish the site...

    Is the issue cause by the fact that I pulled the ajaxrating.JS and ajaxrating.CSS files from your site?

    If I don't add them to the root folder of my site, no JS or CSS files can be found...

    Any help would be appreciated.

    Scattered:

    btw, I'm using MT-5.01

    Hi Mark,
    U know why is problem with 500 International server error? I change chmod to 755 and 711, still same problem, thx for help.
    Greetings

    Hi Mark,
    U know why is problem with 500 International server error? I change chmod to 755 and 711, still same problem, thx for help.
    Greetings

    Post a comment