Welcome Guest, Not a member yet? Register   Sign In
Problem with star rating
#1

[eluser]gamshid[/eluser]
I have used the code as suggested in http://ellislab.com/forums/viewthread/71620/ for using Ajax Star Rating.

it works until i embed it in a page which retrieve specific article id and display the article in it

the URI is looks like ....../articles/view/2
when the mouse is over the star or clicking on it its seems that the browser is going to

........./articles/view/rpc.php?...
and this of course is not exist and generate errors told me that all variables i put it in the view file (ex. article_id, article_title) are not defined and that i cant insert empty records in the ratings table in my DB

can any one help me in this plz ?
#2

[eluser]gamshid[/eluser]
ok now i used the modified package posted in the last page

but also when click it output this

/ratings/ratings_rpc/index/vote-2/idnum-id21/ipnum-127.0.0.1/units-5/nojs-1 - Url is tight
Sorry, vote appears to be invalid.

any ideas ?
#3

[eluser]gamshid[/eluser]
ok guys i solve it

i follow the error in the rating_rpc class

i find that @ (vote-sent > vote_limit ) this error is generated

i check my database table and find that my column (vote_limit) default value is 0 so i modify it to something like 900 so it works at end.

thanks for your future response Big Grin Big Grin




Theme © iAndrew 2016 - Forum software by © MyBB