could this be enhanced with an AJAX Star rating?
This is very nice! Looking for something like this for a long time, but most scripts out there are not sophisticated enough…yours is really nice and would also work without JS! But if JS is enabled I think it’s not very nice to reload the whole page just because of a simple rating choice =)...so I need definitly ajax for this if possible…so have a look at that, giving you maybe an idea of what I mean…
http://www.fyneworks.com/jquery/star-rating/#tab-Overview
this combined with yours….booom
when you update this version with ajax or jquery ?
I am about to go on holidays for a week (out of country), but when I come back I can start working on the upgrade. I just finished upgrading another one of my items and I have been working on a project with a client but this is also on my list.
I plan to have an upgrade out for this near the end of January or beginning of February.
It really kinda sucks… You can vote an unlimited amount of times, w/o even refreshing the page
I went ahead and installed this onto my server and it works – But I would like to know how can I select the one I like and add it onto a web page in html. Please help!
Hi Globaltower, thank you for purchasing the item. There is documentation included in the purchased package which you can always refer to (as well as the example page).
However, once you find a rating style you like; all you need to do in your own PHP Code is write a small bit of code. (such as the following)
require_once 'Rating.php';
$Rating = new Rating(0, 5, 0, 'thankyou.php');
// To display on a page use the following
print $Rating->rate_item('star', 1205);
Quick explanation. When you create the class Rating you want to give it the minimum amount the user can vote (0) and the maximum (5). If you are going to show the percentage of voting (results) you should specific the decimal places (0). Finally the last page (thankyou.php) is where you want to take the user after they clicked on rating.
When you print out (print $Rating->rate_item(‘star’, 1205)
it will display the rating (in this case Stars). The 2nd parameter is telling the system what item they are voting (if you use it for multiple items then each call to rate_item() should have a unique 2nd parameter.
If you need more help feel free to send a message through my profile.
- Has been a member for 3-4 years
- Exclusive Author
- Sold between 1 and 100 dollars
- Bought between 50 and 99 items
- United States
Hi TutelageSystems,
how do you modify the code; so that, the star rating will stay when a user votes? I want to disallow site visitors to vote moe than once and show how they voted graphically with the stars.
thanks, todd
Hi myfriendtodd,
You can easily add a new style into the ts_rating_stars.css that will hold which ever rating you are using along with the current star rating.
Example
ts_rating_stars.css
.picked_4{ background-position:0 -64px;}
This will tell the CSS to move the background over to the 4th star.
You would need to do some coding to add something like the following html
<ul class="rating_star rating_star_5 picked_4">
<li class="">0</li>
<li class="one">1</li>
<li class="two">2</li>
<li class="three">3</li>
<li class="four">4</li>
<li class="five">5</li>
</ul>
I am thinking about upgrading this script shortly to include these types of features if it would help.
how can you use this on several pages with it redirecting back to that page or not even redirecting to any page just the refresh
so your saying i can only use this on one page of a website and nothing else. So having it on multiple pages is not a option without it redirecting to the index page or the same page it is on.
Sorry for the confusion.
What I am saying is in the current system there is no AJAX however, you can have it on multiple pages and have it redirect to any place you want it to (example: back to the page you were just on).
When you declare your Rating class
$Rating = new Rating(0, 5, 0, 'page1.php); // Minimum = 0, Maximum = 5, Decimals = 0, Redirect = page1.php
$Rating->rate_item('select', 3); // Show a select box with an ID of 3
So when the user rates the item they are redirected to page1.php
Thus on another page you can do the same thing
$Rating = new Rating(0, 5, 0, 'page47.php); // Minimum = 0, Maximum = 5, Decimals = 0, Redirect = page47.php
$Rating->rate_item('select', 88); // Show a select box with an ID of 88
So if a user rates this item, they are redirected to page47.php and not index.php
Check out the constructor and you will see all the options (See Rating.php and the function “Rating”).
Hope that makes sense, if not feel free to email me (or reply here)
Hey guys, i just wanted to say that TutelageSystems greatly helped me with their support and answered my emails within 24/7. They solved my problems and I couldn’t be helped better
. Fantastic job TutelageSystems! It’s an amazing script!
Hello,
I need to know if tweaks can be made for customization.
For example, on our site, we would like the highest rated photo to be called if user requests. sort of like a button… “view 10 top rated photos | click here”
If customizations are possible how do you quote i.e. hourly or by the project etc. Thank you.
Warm regards, Kevin Williams
hii the script is greate but i was woundering if its possible to allow a user a onetime rating if so how ?
thnx for your help
TutelageSystems hurry up with ajaxifying this! i need this.


78 Purchases
12 Comments