I have an issue where my Hot or Not install is not working. When a user rates a photo, the rating is captured, the screen flickers "1 vote" quickly, but then the image is not updated nor is the next image displayed. You are left on the same photo you already rated, and your rating is not displayed either. Seems as if the rating is captured, but then whatever function is supposed to fire to update the page isn't firing.
Confirmed in Safari 4.0.4 (Mac) and Firefox 3.5.5 (Mac).
If the page is manually refreshed by clicking "Reload" or "Refresh", then the image updates. Also, if the image is viewed elsewhere or comes back up in rotation in Hot or Not the rating is reflective of the Hot or Not clicks that aren't triggering the page update.
http://forum.nsupps.com/m/photos/rate
Any ideas?
|
just like you said it it shows the photo randomly in the menu when you click on hot or not it shows you a photo you rate it .. move on it won't reload or show you next photo to rate without clicking on the menu again Nothing wrong with it its just the way it works |
just like you said it it shows the photo randomly in the menu when you click on hot or not it shows you a photo you rate it .. move on it won't reload or show you next photo to rate without clicking on the menu again Nothing wrong with it its just the way it works
Going to look into updating that page's code so that an OnClick event (rating) triggers a page reload...unless you or anyone else have a better idea? Typically a Hot or Not is a great user capture feature, can snag people and get them to sit on your site for quite a while. But if they have to click on Reload over and over then it'll probably defeat the purpose.
|
just like you said it it shows the photo randomly in the menu when you click on hot or not it shows you a photo you rate it .. move on it won't reload or show you next photo to rate without clicking on the menu again Nothing wrong with it its just the way it works
Going to look into updating that page's code so that an OnClick event (rating) triggers a page reload...unless you or anyone else have a better idea? Typically a Hot or Not is a great user capture feature, can snag people and get them to sit on your site for quite a while. But if they have to click on Reload over and over then it'll probably defeat the purpose.
Updated the following file: [D7 root]/modules/boonex/photos/templates/base/rate_object.html
Where:
BxDolVoting.prototype.onvote = function (fRate, iCount) {
document.location = '__url__';
}
Updated:
BxDolVoting.prototype.onvote = function (fRate, iCount) {
document.location = '__url__';
window.location.reload();
}
|
wtf it's weird i just tried it out and it works without applying that changes |
wtf it's weird i just tried it out and it works without applying that changes
I'm by no means a Javascript pro, I know barely enough to get into trouble. But, shouldn't the original line do what I'm trying to do anyway, just instead of reloading the whole window, reload the page's URL?
document.location = '__url__';
|
yes you got it right but what im saying is on my site it works without applying that changes hmmmm i remember it didn't work probably it was on a beta version donno |
yes you got it right but what im saying is on my site it works without applying that changes hmmmm i remember it didn't work probably it was on a beta version donno
The "__URL__" is even populating with the correct URL, checked the source after the page loaded. So its strange that its not functioning correctly for me. I'm wondering if its a situation of a Mac browser difference, but in cases such as that its almost never verified by both Safari and Firefox at the same time.
|
maybe someone can confirm this ?.. |
Im a little surprised more people do not have this problem. Gymrat's solution fixed me up good. Thanks brother. This sentance says nothing, and its possibly spellt wrong. |
Strange. I just set up another dolphin site on the same exact vps server, from the same download of d7 off my desktop, and the rater worked this time for me. I did not need to change anythingthis time, as opposed to the previous install. This crazy script is gunna make me go bald.
I suppose its me. fml
This sentance says nothing, and its possibly spellt wrong. |