Js Kit Ratings

By Squark Squark

Description

This solution allows to put a star-rating or thumb-rating on your site from the JS-Kit toolkit. Simply put a code shown below on your site, either star- or thumb-.
You can use also both of them. And you show in an extra Code -the results -the Top rated pages.

If you want to rate different obejcts on a page than you should use different path names for every object: i.e:
- path="/shopping/item/1" ,
- path="/shopping/item/2", .. a.s.o.

If you want to rate the same object on more than one page you should use a permanent link like; path="/blogEntry42" on every embeded div block.
More instructions about the customization are on the JS-Kit Custom page.

NOTE: Using this kind of solution, you cannot sort your pages (i.e. using ListPages module) by rating.

Code

Rated:

[[embed]]
<div class="js-kit-rating" title="Rated item" permalink="" starColor="Green"></div>
<script src="http://js-kit.com/ratings.js"></script>
[[/embed]]
[[embed]]
<div class="js-kit-rating" title="Rated item" permalink="" starColor="Blue"></div>
<script src="http://js-kit.com/ratings.js"></script>
[[/embed]]

Scored:

[[embed]]
<div class="js-kit-rating" title="Scored item" view="score" permalink=""></div>
<script src="http://js-kit.com/ratings.js"></script>
[[/embed]]

Top rated Pages !

[[embed]]
<div class="js-kit-top" title="Top rated topics"></div>
<script src="http://js-kit.com/top.js"></script>
[[/embed]]

Rated and scored:

[[embed]]
<div class="js-kit-rating" title="Rated item" permalink=""></div>
<div class="js-kit-rating" title="Scored item" view="score" permalink=""></div>
<script src="http://js-kit.com/ratings.js"></script>
[[/embed]]

In action

Rated:

Stars in "Green"

Stars in "Blue"

Top rated Pages!

(makes no real sense here with only ONE page ( this article) in the ratings…)


Scored:


Rated and scored:



Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by Squark

Teachertube - 06 Jun 2021 03:45
Mp3 and video player - 21 Oct 2016 12:48
Voicethread - 16 Feb 2012 01:51
Vimeo - 16 Feb 2012 01:51
Slideboom - 16 Feb 2012 01:42
Schooltube - 16 Feb 2012 01:40
Reflections - 16 Feb 2012 01:39
Playlist - 16 Feb 2012 01:31
Picasaweb - 16 Feb 2012 01:30
Ohloh - 16 Feb 2012 01:27
Gametrailers - 16 Feb 2012 01:03
Flickr Video - 16 Feb 2012 01:01
Dailymotion - 15 Feb 2012 00:42
Collapsible Block Unleashed - 15 Feb 2012 00:33
Blip TV - 15 Feb 2012 00:26


Rate this solution

If you think this solution is useful — rate it up!

rating: +22
R74 R74 21 Apr 2020 10:56

Sorry.
This is not working ・_・?


Tech Cap. of SCP-JP

by R74 R74 , 21 Apr 2020 10:56
Transparent Transparent 12 Dec 2009 21:30

Why only ratings?

I would love to implement JS Kit or Disqus comments on my site, I want my comments to integrate with the rest of the social media world.

by Transparent Transparent , 12 Dec 2009 21:30
wikidot forum ratings
uandi2gether uandi2gether 01 Dec 2009 19:05

I would like to use this to rate postings within forums. Literally what I want to do is for members to make suggestions on specific topics and other members to rate the suggestions so that the moderator can select and apply the highest rated suggestions.

  • How can I add this to a wikidot template for ratings to be automatically created for each posting?
  • Can I get statistics on votes (ratings) from members, i.e. to track member activity and participation?

Thanks

by uandi2gether uandi2gether , 01 Dec 2009 19:05
RE: RE: RE: HELP!!! PLZ!!!
Isabelleyang Isabelleyang 27 Jun 2009 21:50

Yah I tried it it's all good…Thanks alot Helmuti_pdorf!!!

by Isabelleyang Isabelleyang , 27 Jun 2009 21:50
RE: RE: HELP!!! PLZ!!!
Isabelleyang Isabelleyang 27 Jun 2009 21:39

So if I had three items I would put the following? (So that the rating will be different on every item)

Item #1

[[embed]]
<div class="js-kit-rating" title="Rated item" permalink="" starColor="Green" path="/shopping/item/1"></div>
<script src="http://js-kit.com/ratings.js"></script>
[[/embed]]

Item#2

[[embed]]
<div class="js-kit-rating" title="Rated item" permalink="" starColor="Green" path="/shopping/item/2"></div>
<script src="http://js-kit.com/ratings.js"></script>
[[/embed]]

Item#3

[[embed]]
<div class="js-kit-rating" title="Rated item" permalink="" starColor="Green" path="/shopping/item/3"></div>
<script src="http://js-kit.com/ratings.js"></script>
[[/embed]]

The original has:

[[embed]]
<div class="js-kit-rating" title="Rated item" permalink="" starColor="Green"</div>
<script src="http://js-kit.com/ratings.js"></script>
[[/embed]]

I modified it to what I think you said:

[[embed]]
<div class="js-kit-rating" title="Rated item" permalink="" starColor="Green" path="/shopping/item/1"></div>
<script src="http://js-kit.com/ratings.js"></script>
[[/embed]]

Base on what you said,I think I am supposed to put the path="/shopping/item/1" on the <div> block.Please correct me if I'm wrong! Other than that…Thanks!!

Last edited on 27 Jun 2009 21:48 by Isabelleyang
by Isabelleyang Isabelleyang , 27 Jun 2009 21:39
HELP!!! PLZ!!!
Isabelleyang Isabelleyang 25 Jun 2009 18:45

I used this snippet so that ppl who watched my videos could vote on it.But I added the exact same code for each video and for some reason if I vote on one of them,I vote on all of them!What's wrong?

Example: (0 = non-colored star,o = colored star)

Before

00000
zero votes
_
l l
l This is l
l The Video #1l
l l
ll

00000
zero votes
_
l l
l This is l
l The Video#2 l
l l
ll


I vote on the second video (I vote 5 out of 5 stars)


After

ooooo
Thank you!
_
l l
l This is l
l The Video #1l
l l
ll

ooooo
One vote
_
l l
l This is l
l The Video#2 l
l l
ll


PLZ HELP!!!

I am in need of help!

by Isabelleyang Isabelleyang , 25 Jun 2009 18:45
Re: HELP!!! PLZ!!!
Isabelleyang Isabelleyang 25 Jun 2009 18:47

The videos were wrong it's something like this:

_
l……….l
l……….l
l…#1….l
l
_l

But still plz help!

by Isabelleyang Isabelleyang , 25 Jun 2009 18:47
Re: HELP!!! PLZ!!!
Helmut_pdorf Helmut_pdorf 26 Jun 2009 16:02

PLease use the path= attribzte for different rating-objects!
(copied from teh page above:

If you want to rate different obejcts on a page than you should use different path names for every object: i.e:
- path="/shopping/item/1" ,
- path="/shopping/item/2", .. a.s.o.

If you want to rate the same object on more than one page you should use a permanent link like; path="/blogEntry42" on every embeded div block.


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 26 Jun 2009 16:02
change title ?
cold_blood3d cold_blood3d 05 Sep 2008 22:54

on my embedded top rated pages box, i am getting things like "Rated item" for the page names. By default, JS-Kit is supposed to use the page unix name, like category:pagename as the titles in the top rated box. I assume this was because the code i copied from here has title="Rated item" in the embed code for the ratings. I have since removed that, but it continues to show "Rated item" and not the page name even after getting more votes on that particular rating, which should have refreshed it. Does anyone have any ideas on how to get the titles to display normally?

EDIT: fixed i guess, the solution is that you must have title="" to force it to the default name

Last edited on 10 Sep 2008 18:26 by cold_blood3d
by cold_blood3d cold_blood3d , 05 Sep 2008 22:54
not fully implemented
cold_blood3d cold_blood3d 21 Aug 2008 08:16

as i stated here, there are some important functions related to this embed that have not been enabled by wikidot. please fix this.

by cold_blood3d cold_blood3d , 21 Aug 2008 08:16
Re: not fully implemented
Helmut_pdorf Helmut_pdorf 25 Aug 2008 07:31

Hi !

1. I changed the snippets- rating star color to green & Blue- this works....!
2. I testet the Top ratings too - this works...!
3. I inserted the description of the possibilities of different ratings for different objects on the same page.
4. I inserted the description the possibuility of specific ratings for ONE object on differentpages (=duplicated insertion with same path - link..

Not yet tested the others like polls, etc.
I do not know what has changed since your start with the snippets - but now it is working!


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

Last edited on 25 Aug 2008 07:33 by Helmut_pdorf
by Helmut_pdorf Helmut_pdorf , 25 Aug 2008 07:31
Re: not fully implemented
wikiclimber wikiclimber 26 Aug 2008 09:53

hells to the yeah…. but um I could be an idiot, but I tried copying and pasting the top rated and scored embedded code into a page and I get a weird error message, and it doesnt save. lemme know if Im just an idiot

by wikiclimber wikiclimber , 26 Aug 2008 09:53
Re: not fully implemented
Helmut_pdorf Helmut_pdorf 27 Aug 2008 07:19

Are your pages on a "private" site ? ( could be a security problem with 3. party cokkies)
Which error message have you gotten?


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 27 Aug 2008 07:19
page revision: 14, last edited: 16 Feb 2012 01:15
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /