Not a developer? Go to MovableType.com

Plugin and Theme Directory

Ajax Ratings Pro v1.4.11

By Mark Carey
Posted June 4, 2014, in Entry & Page.

Details

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

Refer to http://mt-hacks.com/ajaxrating.html for documentation on this plugin. The following documents additions made since version 1.261.

Upgrading

Version 1.3+ is converted to a config.yaml style plugin. Be sure to remove the old AjaxRating.pl file when upgrading.

The upgrade process itself may not go smoothly with this change. You should expect to see an upgrade notice from MT twice: once to install the config.yaml style plugin, and a second time to migrate and update data.

Version 1.3 also changes its table names, shortening them for compatibility with Oracle. This change won’t require any modification to your templates. The change does require you to work with the database: the old table mt_ajaxrating_votesummary will need a new column created: ajaxrating_votesummary_vote_dist as type text. This must be done before the new plugin is installed.

Plugin data is stored differently with the config.yaml style, so you will need to re-set Ajax Rating Plugin Settings, at both the System and Blog level.

Configuration

In System Overview > Plugins > Ajax Rating Pro > Settings, you’ll find an option to Enable IP Checking. This checkbox provides an easy way to restrict votes by IP address. Disable during development for easy testing.

Tag Reference

AjaxRatingUserVotes

The tag AjaxRatingUserVotes is a block tag that outputs a list of the recent objects voted on by a specific user. Starting in 1.4.1, the sort order is most-recent vote first — note that the sorting it based on when the vote was made, NOT the date of the object. This tag is well suited to an Author archive or user profile page.

AjaxRatingVoteDistribution

The tag AjaxRatingVoteDistribution is a block tag that will provide insight to the votes received on an object. Within this block tag, access the score and vote variables to understand the voting distribution, as in the following example:

<mt:AjaxRatingVoteDistribution>
    <mt:If name="__first__">
    <ul>
    </mt:If>
        <li><mt:Var name="score"> stars received <mt:Var name="vote"> votes.</li>
    <mt:If name="__last__">
    </ul>
    </mt:If>
</mt:AjaxRatingVoteDistribution>

As you’ll notice, the loop meta variables are also supported, including __first__, __last__, __odd__, __even__, and __counter__.

(Optional) JSON Output For Voting Script

(Advanced Feature) Staring in version 1.4.1, the voting script (mt-vote.cgi) can send its responses in JSON format. To request JSON format responses, POSTs to the voting script must include a format parameter set to json (&format=json).

Example responses:

success:

{
    "obj_id": "64246",    # object id of object
    "status": "OK",       # OK indicates a successful save
    "vote_count": 29,     # number of votes for this object 
    "score": "5",         # score for this vote
    "total_score": 126,   # sum of scores for all votes.
    "obj_type": "entry",  # type of object, usually 'entry'
    "message": "Vote Successful"
}

error:

{
    "status": "ERR",
    "message": "You have already voted on this item."
}

Get Votes Endpoint

The endpoint mt-getvotes.cgi returns the vote summary information for any given object. Data must be submitted through a POST request and must include blog ID (blog_id), object ID (obj_id), and object type (obj_type). Optionally, the format parameter can be set to json; it is text by default. Example:

http://myblog.com/mt/plugins/AjaxRating/mt-getvotes.cgi?blog_id=7&obj_type=entry&obj_id=123&format=json

Generates a JSON response such as:

{
    "obj_type":"entry",
    "obj_id":"123",
    "status":"OK",
    "vote_count":"1",
    "total_score":"5",
    "message":"Vote summary retreived."
}

Many objects can be retrieved by specifying a comma-separated value for the obj_id argument. (Note that the specified object IDs must all be of the same object type.) Example:

http://myblog.com/mt/plugins/AjaxRating/mt-getvotes.cgi?blogid=7&objtype=entry&obj_id=123,124,125&format=json

Generates a JSON response such as:

[
    {
        "obj_type":"entry",
        "obj_id":"123",
        "status":"OK",
        "vote_count":"1",
        "total_score":"5",
        "message":"Vote summary retreived."
    },
    {
        "obj_type":"entry",
        "obj_id":"124",
        "status":"OK",
        "vote_count":"9",
        "total_score":"25",
        "message":"Vote summary retreived."
    },
    {
        "obj_type":"entry",
        "obj_id":"125",
        "status":"OK",
        "vote_count":"3",
        "total_score":"4",
        "message":"Vote summary retreived."
    }
]

Compatibility

Movable Type versions: 4.35.05.15.26.0

License

Multiple,Other


Back

47 Comments

Dylan

Dylan on April 4, 2016, 6:15 a.m. Reply

interested in watching movies in free time? check out these free movie streaming sites

Romi

Romi on June 9, 2016, 12:53 p.m. Reply

Merci pour la documentation sur le système de rating en ajax by Movabletype, je vais l’utiliser sur mon site : ikoupi dès aujourd’hui. J’en avais justement besoin pour mettre en place un système de commentaires sur mes offres.

Cheerz, Romi

P B Agarwal

P B Agarwal on October 7, 2016, 9:20 a.m. Reply

This is very nice I also want to use it on my blog jee main admit card

eRowz

eRowz on May 12, 2016, 12:58 p.m. Reply

Hi dear,

I’m asking myself if we could use this on our search engine for second hand goods eRowz? I’m not in charge of the development so I’m not sure how it can be helpfull ? Thanks for the article anyway.

Robin

longtable

longtable on May 13, 2016, 2:55 a.m. Reply

Wallet Camera Lens

agfr

agfr on August 8, 2016, 6:52 a.m. Reply

You have a lot of useful suggestions on this site This is a well done article that I have bookmarked for future reading Have a great day

s4softwares.net Driver Easy PRO v5.0.8 Crack Free Download driver talent pro crack

agfr

agfr on August 8, 2016, 6:53 a.m. Reply

You have a lot of useful suggestions on this site This is a well done article that I have bookmarked for future reading Have a great day s4softwares.net

newstart028

newstart028 on August 9, 2016, 8:19 a.m. Reply

Ajax Ratings Pro v1.4.11 is very useful, I use it on my site waist trainer, it is very helpful for me to get better effect.

And the settings of Ajax Ratings Pro are very easy to set

janifermagi

janifermagi on October 2, 2016, 9:01 a.m. Reply

Hi man its a great idea work with SpyHunter crack. thanks for this favor, time and love. keep it up all the time.

P B Agarwal

P B Agarwal on October 7, 2016, 9:21 a.m. Reply

this is very nice plugin

vacey

vacey on October 25, 2016, 4:52 p.m. Reply

Hmmmmmmmmm good agreed wid you AVG Torrent

vacey

vacey on October 25, 2016, 4:51 p.m. Reply

Well man keep it up Gta vice city torrent

kate

kate on November 24, 2016, 12:09 p.m. Reply

this is very nice plugin. Thank you! eyebrow threading

maxcovn

maxcovn on December 27, 2016, 2:31 a.m. Reply

Eva air vietnam - Jetstar Pacific

maxcovn

maxcovn on December 27, 2016, 2:32 a.m. Reply

Great! Thanks for sharing the information. Eva air vietnam Jetstar Pacific

Marry Lama

Marry Lama on January 15, 2017, 3:12 p.m. Reply

Office 2016 Full Cracked Free

kushal

kushal on January 18, 2017, 12:32 p.m. Reply

I am impress with the layout of you theme

CWC 2019 Schedule IPL 2018 IPL 2017 Schedule IPL 2017 Poiints Table IPL 2018 Schedule IPL 2018 Points Table

kushal

kushal on January 18, 2017, 12:33 p.m. Reply

thanks for your post

CWC 2019 Schedule IPL 2018 IPL 2017 Schedule IPL 2017 Poiints Table

md joja1

md joja1 on January 18, 2017, 1:43 p.m. Reply

I believe its a brilliant case of style in such a climate. Great blend. I like it to such an extent. Avast Antivirus 2017 license key

mpcindia

mpcindia on January 24, 2017, 7:11 p.m. Reply

free vst plugins

mpcindia

mpcindia on January 24, 2017, 7:11 p.m. Reply

Great post thanks!

https://www.mpcindia.co/free-vst-plugins/

fawadgetful

fawadgetful on January 25, 2017, 3:20 p.m. Reply

Windows 7 ultimate product keyWindows 7 is the most utilized working framework which is discharged in back July 2009. On the off chance that you have an issue with your existing running Windows 7 in your context and need to repair or re-introduce windows then you require having windows 7 item key or serial key.

manoj

manoj on January 29, 2017, 4:57 a.m. Reply

Indian Premier League T20 2017 auction watch live, IPL T20 2017 Auction date and time, IPL auction 2017 date and time IPL 10 live score IPL 10 auction live

Gas Line Repair Costa Mesa

Gas Line Repair Costa Mesa on February 13, 2017, 11:22 p.m. Reply

Awesome info, as always.

plusteam

plusteam on February 15, 2017, 4:02 p.m. Reply

Gracias Movabletype

Plumber

Plumber on February 24, 2017, 12:18 a.m. Reply

Very useful, as always!

http://www.thirtytwomachine.com/

Roof Repair Orange County

Roof Repair Orange County on March 2, 2017, 9:00 p.m. Reply

Nice work!

Roof Repair Orange County

Chuck1

Chuck1 on March 15, 2017, 8:24 p.m. Reply

Good stuff. Thanks for posting.

palatine plumber

mpcindia

mpcindia on March 22, 2017, 2:26 p.m. Reply

sylenth1 presets awesome plugin

mpcindia

mpcindia on April 7, 2017, 11:09 a.m. Reply

best water softener guide

birikkiuch

birikkiuch on April 8, 2017, 11:01 a.m. Reply

Your blogs further more each else volume is so entertaining further serviceable It appoints me befall retreat encore.

chendler

chendler on April 11, 2017, 6:00 a.m. Reply

This post is very simple to read and appreciate without leaving any details out. Great work! You completed certain reliable points there. I did a search on the subject and found nearly all persons will agree with your blog. downlodable apps

shodiyor

shodiyor on April 13, 2017, 12:48 p.m. Reply

Blog gave us useful information to work. You have done an amazing job. check out this

Rustambek

Rustambek on April 14, 2017, 6:44 a.m. Reply

I just want to let you know that I just check out your site and I find it very interesting and informative. downlodable software

akmalaka

akmalaka on April 25, 2017, 3:54 a.m. Reply

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. liuhey.com

Rustam Radjapov

Rustam Radjapov on April 26, 2017, 4:44 a.m. Reply

Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site. awesomewarezdownloadblog.ru

twoandahalfmen

twoandahalfmen on May 2, 2017, 11:32 a.m. Reply

Designed by JB’s Fitness TrainingIOS Programming Done By Eminosoft. downlodable torrent This is the first time I have used any backup service, so I have no other benchmarks to compare to.

Radjapov

Radjapov on May 3, 2017, 9:19 a.m. Reply

When Did It Happen Facts, for iPhone and iPod Touch, lets you scroll through facts by date. downlodable serial numbers Keeping it simple and straight makes it sharp and reliable.

mpcindia

mpcindia on May 10, 2017, 9:41 a.m. Reply

Sylenth1 Presets is a virtual analosg VSTi synthesizer that takes the definitions of quality and performance to a higher level. Until now only very few software synthesizers have been able to stand up to the sound quality standards of hardware synths.

carportfactorydirect

carportfactorydirect on May 23, 2017, 8:02 p.m. Reply

Great plugin - thanks for sharing!

carportfactorydirect

carportfactorydirect on May 23, 2017, 8:05 p.m. Reply

This has worked great on my website before.

7ryanwalker

7ryanwalker on June 8, 2017, 7:56 a.m. Reply

This has worked great on

7ryanwalker

7ryanwalker on June 8, 2017, 7:57 a.m. Reply

Packers and Movers to help the user who are searching packers and movers in mumbai

Jawad

Jawad on June 16, 2017, 12:38 p.m. Reply

thnaks for this i add this rating system in site run 3 http://run3.cc/

Leave a Comment