2023-01-08, 03:53 PM
Dear all,
I know that the "thread rating" feature of MyBB is not very popular, but in my own board, we use it very much (because we have a forum in which each thread is one ratable movie).
What I would really like to change is that after clicking your desired star rating, the page gets refreshed so that users can directly see the effects of their rating. (Right now, there's a small green AJAX popup that the rating has been saved, but the visible star rating only changes after a page refresh.)
Could anybody help me with this?
I figure that I need to edit the file "ratethread.php", especially somewhere after here
I've tried adding a PHP page refresh after this code, but it didn't work. (I'm no PHP professional, though.)
Thanks so much in advance!
I know that the "thread rating" feature of MyBB is not very popular, but in my own board, we use it very much (because we have a forum in which each thread is one ratable movie).
What I would really like to change is that after clicking your desired star rating, the page gets refreshed so that users can directly see the effects of their rating. (Right now, there's a small green AJAX popup that the rating has been saved, but the visible star rating only changes after a page refresh.)
Could anybody help me with this?
I figure that I need to edit the file "ratethread.php", especially somewhere after here
$plugins->run_hooks("ratethread_process");
$db->write_query("
UPDATE ".TABLE_PREFIX."threads
SET numratings=numratings+1, totalratings=totalratings+'{$mybb->input['rating']}'
WHERE tid='{$tid}'
");
I've tried adding a PHP page refresh after this code, but it didn't work. (I'm no PHP professional, though.)
Thanks so much in advance!