MyBB Community Forums

Full Version: Rate Me a Funny
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7
(2012-12-02, 10:10 AM)poppin27 Wrote: [ -> ]
(2012-12-01, 01:42 PM)jung3o Wrote: [ -> ]ok there is not button in the plugin its just a clickable image. its called ajax request which, another word for it, refreshing the page wihout actually refreshing the page.

in he admin cp settings there is an option for the user to see an updated result every x seconds. you should be able to see the result right after few seconds.
I'm quite aware how it works, I reviewed the source. I do see the options in the admin configuration panel, and the (clickable icons) don't seem to function, D:.
Groups that cannot use: Groups I've selected that shouldn't be able to use them like, banned, and awaiting activation.
Ajax enabled.
5 Sec auto refresh.
Allow multi-rate: No.
Rate Delete: Yes

So all seems good, but when I click the icon and wait 20-30 seconds, nothing. I even tried walking about and coming back with the same result. Your plugin is neat, and I would love to use it. I also tried pressing the button and refreshing a minute later. In the end, It doesn't display any ratings.

have you enabled xmlhttp in your admincp? can you check your browser console to make sure there are url requests to xmlhttp.
Yes, It is enabled.
This runs every 5 seconds like in the CP.
But, I'm not seeing any rates, ):.
Inspector:
xmlhttp.php
GET
200
OK
text/html
prototype.js:1528
Script
370B

EDIT:
/xmlhttp.php?action=ratemf_r&page=1&tid=1295

Response Header:
Cache-Control:no-cache, must-revalidate
Connection:close
Content-Encoding:gzip
Content-Length:41
Content-Type:text/html; charset=UTF-8
DateConfusedun, 02 Dec 2012 21:39:13 GMT
ExpiresConfusedat, 1 Jan 2000 01:00:00 GMT
Last-ModifiedConfusedun, 02 Dec 2012 21:39:13 GMT
Pragma:no-cache
Server:LiteSpeed
Vary:Accept-Encoding

Query String Parameters:
action:ratemf_r
page:1
tid:1295

Response:
{"4638":"","4637":"","4732":""}


Here's the information for the xmlhttp requests.
oh lawd. I have deleted a line...

Fix
find function
"ratemf_do_rate()"

under global add
"$ratemf = $mybb->input['ratemf'];"

Sorry, I had no access to what was wrong til today because I didn't really have my stuff.
Excellent! Things work perfect now, also thanks for your support, keep up the good work.

Edit:
A suggestion:
If you could make it display the rating name when you hover the icon, that would be very useful.
(2012-12-03, 01:29 AM)poppin27 Wrote: [ -> ]Excellent! Things work perfect now, also thanks for your support, keep up the good work.

Edit:
A suggestion:
If you could make it display the rating name when you hover the icon, that would be very useful.

np. thanks!

I'll do that thanks for your suggestion!

1.2.0 out
Recent Change
1.2.0
    + Fixed some errors & bugs
    + New feature - Rating names dissapear after # of rates (default 5)

GitHub
https://github.com/jung3o/Rate-Me-a-Funny/downloads
In the admin CP I have ajax update on, but, when I click a rate, and wait a minute, It doesn't seem to update. In the config, It is set to yes and the time to 5 seconds.
Plugin v.1.2 validated.
(2012-12-03, 05:34 AM)poppin27 Wrote: [ -> ]In the admin CP I have ajax update on, but, when I click a rate, and wait a minute, It doesn't seem to update. In the config, It is set to yes and the time to 5 seconds.

is there the javascript function?
should look something around
https://github.com/jung3o/Rate-Me-a-Funn...f.php#L526

also check for ajax requests
(2012-12-03, 08:31 PM)jung3o Wrote: [ -> ]
(2012-12-03, 05:34 AM)poppin27 Wrote: [ -> ]In the admin CP I have ajax update on, but, when I click a rate, and wait a minute, It doesn't seem to update. In the config, It is set to yes and the time to 5 seconds.

is there the javascript function?
should look something around
https://github.com/jung3o/Rate-Me-a-Funn...f.php#L526

also check for ajax requests
It's getting the ajax update every 5 seconds, chrome inspector shows it updating every 5 secs, but I don't see my rate get updated after I press one and wait a bit. The lines match and seem to be the same files.
hm... I just realized chrome isn't loading, but firefox is doing just fine... I'll look into this. thank you.

It was not a bug just for chrome. It was just tested in different threads and there is a code in there that wouldn't let the rate update if it's a new thread without any ratings.

This is fixed in 1.2.1.
New update 1.2.2!
Version 1.2.2
    - Doesn't say 'ratename x 0' anymore.

Version 1.2.1
    + Fixed a bug where newly made threads / threads without any ratings would not update when clicked on rate.

Download
https://github.com/jung3o/Rate-Me-a-Funny/downloads

or you can wait for it to be approved in the mybb website.
Pages: 1 2 3 4 5 6 7