Ratings & Reviews And Q&A Software Integration
3 Easy Steps Set Up Your Rating & Review And Q&A System
1 Register with us. You receive access and privileges to use out tools.
2 Create your rating boxes or/and Q&A boxes using the tools we provide.
3 We provide the required Javascript code to place on your web site.
Take a look at the Rating & Review Demo and Q&A Demo Pages
There are fields you might want to change to get additional functionality(* optional):
After you create rating box you will get javascript code for your website. Although there are many fields in the rating box request, all of them are required and you will need to change some of them manually to comply with your site settings.
<script
type="text/javascript">
if (document.getElementById)
{
var r_companyid = ?;//Do NOT change it
var r_ratingboxid = ?;//Do NOT change it
var r_typeid = ?;
var r_itemid = encodeURIComponent(window.location.href);;//page URL or ID of the rating entity
var r_folder = 'StarYellow';//Do NOT change it
var r_matte = 'w';//Do NOT change it
var r_css = 'Olive-Full-w.css';//Do NOT change it
var r_name = 'Rate It:';
var r_userid = '0';//Need to be changed to comply with your website setting
var r_presentationtype=3;
document.write('<iframe width="100%"
height="100%" name="ratingframe" id="ratingframe" marginwidth="0" marginheight="0"
frameborder="0" hspace="0" src="http://www.rating-system.com/rating-system.html?company=' +r_companyid+ '&ratingboxid=' +r_ratingboxid+ '&typeid=' +r_typeid+ '&itemid=' +r_itemid+ '&folder=' +r_folder+ '&matte=' +r_matte+ '&css=' +r_css+ '&name=' +encodeURIComponent(r_name)+ '&userid_name=' +r_userid+ '&presentationtype=' +r_presentationtype+ '"></iframe>');
}
</script>
| Value |
Description |
| r_companyid |
Company ID, will be assigned to you by our system. |
| r_ratingboxid |
Rating Box ID will be assigned to you by our system. |
| r_typeid |
Rating entity type ID, will be assigned to you by our system. |
| r_itemid |
"encodeURIComponent(window.location.href)" is your web page URL or you can use your product ID if your product ID is not part of URL. |
| r_folder |
Folder Name, will be assigned to you by our system, please don't change it. |
| r_matte |
Image Matte, will be assigned to you by our system, please don't change it. |
| r_css |
Css File name, will be assigned to you by our system, please don't change it. |
| r_name |
Rating Box name |
| r_userid |
Need to be changed to comply with your website setting, need to be set to your user ID to have ability to rate and review.
If r_userid='0' user will be prompted to login.
If r_userid='-1' - user can rate and review anonymously.
If r_userid='' user will be prompted to login or signup to rating system account(rating-system.com implementation). |
| r_presentationtype |
Presentation Type, will be assigned to you by our system. |
There are seven parameters you might want to change for your reviews feed (* optional):
After your customer submits a rating & review box, RSS feeds of these reviews will be available for you to present on your website.
RSS url:http://www.rating-system.com/rss/reviews.ashx?cid=You Company ID&cguid=You Company GUID&rid=Rating Box ID&itemid=Product ID&itemtype=Product Type&maxelements=10&page=1
RSS url parameters:
| Value |
Description |
| cid |
You Company ID. Will be assigned to you when you create an account with us. |
| cguid |
You Company GUID, unique identifier. Will be assigned to you when you create an account with us. |
| rid |
You rating box ID, will be assigned when you create rating box. |
| itemid |
Your web page URL or Your Product ID, you used for you rating box |
| itemtype |
Type of the rated entities. We have tens of types you can choose from. This will be assigned by our system when you choose one. |
| maxelements |
Max ammount of reviews are returned by the feed. We suggest to keep default value "10" |
| page |
All reviews are sorted date, page=1 means first page of most recent reviews |
Rating System - Feeds Integration Options
Place javascript below on your page:
Modify iframe url parameters accordingly:
<script
type="text/javascript">
document.write('<iframe width="100%" height="100%" name="feedframe" id="feedframe" marginwidth="0" marginheight="0" frameborder="0" hspace="0" src="http://www.rating-system.com/reviews.html?company=' +r_companyid+ '&ratingboxid=' +r_ratingboxid+ '&typeid=' +r_typeid+ '&itemid=' +r_itemid+ '&folder=' +r_folder+ '&matte=' +r_matte+ '&css=' +r_css+ '&name=' +encodeURIComponent(r_name)+ '&userid_name=' +r_userid+ '&presentationtype=' +r_presentationtype+ '"></iframe>');
</script>
Place ASP.NET code on your page:
Modify iframe url parameters accordingly:
<%@ Register Assembly="RssToolkit" Namespace="RssToolkit" TagPrefix="cc1" %>
<asp:DataList ID="reviews" runat="server" CellPadding="4" DataSourceID="RssDataSource1" ForeColor="#333333" Width="100%" >
<HeaderTemplate>
<h5>Reviews:</h5>
</HeaderTemplate>
<ItemTemplate>
<b><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("link") %>' Text='<%# Eval("title") %>' Target="_blank"></asp:HyperLink></b>
<asp:Label ID="lblDesc" runat="server" Text='<%# Eval("description") %>' />
</ItemTemplate>
<FooterTemplate>
<small>Powered by <a target="_blank" href="http://www.Rating-System.com">Rating-System.com</a></small>
</FooterTemplate>
<FooterStyle HorizontalAlign="Right" />
<ItemStyle BorderColor="ControlDark" BorderStyle="Solid" BorderWidth="1" />
<AlternatingItemStyle BackColor="White" />
</asp:DataList>
<cc1:rssdatasource id="RssDataSource1" runat="server" MaxItems="0"></cc1:rssdatasource>
Codebehind RSSDateSource setting:
RssDataSource1.Url = String.Format("http://www.rating-system.com/rss/reviews.ashx?cid= <Company ID> &cguid= <Company GUID> &rid= <Rating Box ID> &itemid={0}&itemtype= <Rating Entity Type ID> &maxelements=10&page=1", Request.Url.AbsoluteUri.ToString());
* Where Request.Url.AbsoluteUri.ToString() is your web page URL or you can use product id. Use the same value you specified for rating box.
* Please, download RssToolkit and place dll into your website "bin" folder.