2016-04-28, 07:53 AM
Excuse me all,
I am new to this community. However, I have been with MyBB for about 2 years. And I really fall in love with it :)
I am currently establishing my newly created forum site. My concern right now is just modifying the mobile theme (using MyBB GoMobile as base), therefore I want to make my site very friendly even for old phones.
Hence, I decided to change the method of rating a thread, for convenience. ( My phone is an old Android, the default rating thread, the stars couldnt appear, so I cannot rate the thread, even just to see how much the rating)
Therefore, gladly I found an alternative to it. I changed the method to be using "select option" in HTML. Yes, finally using this, it functions well in my phone (it appaers and clickable). Unfortunately, it cannot work as it should be. For example, If i want to rate a thread, i choose a number, it doesn't response correctly, but an error message appears "Authorization code mismatch. Are you accessing this function correctly? Please go back and try again."
I am really stuck with this, still not knowing how to solve. With these, I humbly asks for help to the people here about this :)
My site URL: www.noblun.com
Here is the codes I used there:
Thank you all for the attention :))
I am new to this community. However, I have been with MyBB for about 2 years. And I really fall in love with it :)
I am currently establishing my newly created forum site. My concern right now is just modifying the mobile theme (using MyBB GoMobile as base), therefore I want to make my site very friendly even for old phones.
Hence, I decided to change the method of rating a thread, for convenience. ( My phone is an old Android, the default rating thread, the stars couldnt appear, so I cannot rate the thread, even just to see how much the rating)
Therefore, gladly I found an alternative to it. I changed the method to be using "select option" in HTML. Yes, finally using this, it functions well in my phone (it appaers and clickable). Unfortunately, it cannot work as it should be. For example, If i want to rate a thread, i choose a number, it doesn't response correctly, but an error message appears "Authorization code mismatch. Are you accessing this function correctly? Please go back and try again."
I am really stuck with this, still not knowing how to solve. With these, I humbly asks for help to the people here about this :)
My site URL: www.noblun.com
Here is the codes I used there:
<select name="rateThread" onchange="getRating(this)">
<option value="0" selected="">Rate it!</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<script>
function getRating(sel) {
var rate = sel.value;
if (rate) { // require a URL
window.location = "./ratethread.php?tid=1&rating='rate'&my_post_key=52116e4d0a8ad82f89f1ab895c6a02e1" // redirect
}
}
</script>
Thank you all for the attention :))