Jump to content

Please Help With this Star Rating Script


MxGucci

Recommended Posts

Hi,

 

I used an open source code for a 5 star rating system and it works perfectly fine, however I didn't realize when customizing the code to suite my needs that it would refresh the entire page when user rated something, this really annoys me and will bother some of my users. I have hear jquery would help me out with this but I have no concept of it and don't understand most terminology from the tutorials they have on their site.

 

Does anyone just have a simple method of having this script refresh everytime someone clicks on the page rather having to refresh the page. Should I paste the whole code or just the part that echo's the star rating onto the page?

 

Here is how I put it onto my page:

 

include("include/rate.php"); // 5 star rating system

  echo '

<tr><td background="imgs/menu_master_gfx.gif" align="center" class="left_top_right_border">
<font class="table_title">
User Ratings
</td></tr>

<tr><td bgcolor="FFFFFF" align="center" class="left_right_border">
<font class="inside_text">';

writeRate($poker_room_field);

  echo '<p style="margin-top: 0; margin-bottom: 0">
  <img border="0" width="0" height="4"></p>
</td></tr>';

 

I think you all might need the entire code as maybe I have to edit some stuff there, but if anyone could possibly fix this for me, I'd greatly appreciate it.

 

For a working example of the script please go to : www.tiltnation.com/beta/reviews.php?site=pokerstars and you'll see the star rating under "USER RATINGS".

 

Test it out and you'll notice it refreshes the entire page. Can someone please help?!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.