Thread Starter
Cj Cat
(@cj-cat)
And another, more ellegant way.
File: postratings-js.js
Function: rate_post()
in jQuery.ajax() parameters : url: get_correct_url()
get_correct_url() function listing:
function get_correct_url() {
var splitted = location.href.split('/');
return 'http://' + splitted[2] + '/wp-admin/admin-ajax.php';
}
But I have some doubts about security…
Thread Starter
Cj Cat
(@cj-cat)
Thanks for very fast answer!
Tried .htaccess method and got 500 error.
PollDaddy is not suitable for me.
But I found a really simple and stupid way – just reload page after rating (add location.reload(); after success rate in js-file). Dirty way, but works for me.
Thanks a lot anyway!
Just delete text in plugin options page)
Have the same problem too.
OS – Ubuntu 13.04.
browser – FF 23.0, Chrome – 29.0.1547.65.