Rating & Reviews Plugins

Last modified 09:35, 10 Nov 2014

See it in Action

Check Out the Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1255">
<script src="http://cdn.gigya.com/JS/socialize.js?apiKey=2_Y82PzwJ_chSFImHXaIDJClnLyJzmk-VFOavSsaNTzl6m901s_NNxRAS0xJ3bd3_N" 
<h2>Rating & Reviews Demo</h3>
<h3>The Rating Plugin:</h3>
<div id="ratingDiv" ></div>
<h3>The Review (Comments) Plugin:</h3>
<div id="commentsDiv" ></div>
<script type="text/javascript">
	// Present the Rating plugin
	var ratingsParams =
		categoryID: 'ReviewsWiki', // Comments category ID (from Comments Setup page)
		streamID: 'ReviewsTest',
        containerID: 'ratingDiv', // <div> ID  in which to present the plugin
		linkedCommentsUI: 'commentsDiv' // link the Ratings plugin to the Comments plugin. 
									//The '# reviews' link becomes an anchor to the Comments plugin on the page. 
	// Present the Comments plugin	
	var commentsParams =
		categoryID: 'ReviewsWiki',  // Comments category ID (from Comments Setup page)
		streamID: 'ReviewsTest',
        containerID: 'commentsDiv',
		version: 2

In order to make this code work in your environment, please:
  • Click the "view source" icon (link located above code on the right hand side) - This will open a popup window with a text version of the code, which you may copy.
  • The API key in the sample will only work on http://localhost/...
  • To load the page from your domain, modify the value of the "APIKey" field in the code to your own Gigya API Key. A Gigya API Key can be obtained on the Site Dashboard page on Gigya's website. Please make sure that the domain from which you are loading the page is the same domain name that you used for generating the API Key.

Page statistics
1364 view(s) and 2 edit(s)
Social share
Share this page?


This page has no custom tags.
This page has no classifications.


You must to post a comment.