View Full Version : e-steki Karma BETA
Lea Verou
03-06-2006, 10:00 PM
New version for 3.6, with a lot more features, bugfixes and better coding!! (https://vborg.vbsupport.ru/showthread.php?t=154264)
-------------------------------------------------------------------------------
Beware that this is still a BETA. This means, it may have bugs. If you want to help with the beta-testing phase, please mention what happened with this hack (if it works or not, if you encountered any bugs, if everything is ok etc) as detailed as possible.
I used quite a lot code from User Rating 1.0 (https://vborg.vbsupport.ru/showthread.php?t=109234) by tnguy3n for this modification. Then I changed it a lot to fit my needs, and I think it's so changed that it could be released as a separate modification. I also got his permission for this :)
What does e-steki Karma have that User Rating 1.0 doesn't?
1. When a user votes someone for a second (or third, fourth etc) time, the new vote replaces the old instead of being added. I felt it was more fair this way.
2. There is a complete statistics page, with 7 tables that display various statistics
3. Ratings are from -5 to 5 instead of 1-10 and they are represented by images
4. The Karma of each user displays in the postbit (unless he has it turned off)
5. Users that have the Karma turned off don't count at all for the system. their votes don't count in anything, and the votes others gave them before they turned it off also don't count at all. Those users also, can't see anything that has to do with the karma system anywhere. It's like the karma does not exist for them and they don't exist for the karma. However, if they switch it on again, nothing is lost.
6. Since there are no comments, there is no possibility that the user gets a "you didn't complete all fields" error. In fact, even the phrase for it is removed.
7. The table is not placed where the hack author wants (above the footer in UR1) but where YOU want it (by inserting a small comment in the place that you want it in MEMBERINFO). This, however, means one more template change is involved.
8. There is no field that you should add via the userfield manager. This caused bugs in UR1 as you had to run a query to set all the checkboxes to 1 and new registrants had their karma turned off by default.
9. IP in who rated
10. Although they can't see who voted, they can see if they have rated a user and with what (see screenshot).
Why somebody may prefer User Rating 1.0 over e-steki Karma?
I have removed some of the user rating 1.0 features that I didn't need. Some of you may need them though, so pay a visit to User Rating's thread as well.
1. There are no comments in this hack. Nowhere. I've removed anything that has to do with comments.
2. There is no "anonymous voting". In my site, only admins see who has voted, so it's useless to us.
3. No template changes in UR1.
4. A little bit less queries and plugins (since there are less abilites in certain things) in UR1.
5. The "can rate himself" is off by default.
6. Only admins can see who voted. This is planned to be a usergroup permission in the future though.
Misc features
1. WOL location for stats
2. Fully phrased
3. Usergroup permissions
Why is it a beta?
1. Because the end product is the biggest modification I've worked on and there is a high chance I missed something
2. The permission for "Can view Stats" is not working sometimes.
3. I'm not sure how if the install code is going to give an error on an existing installation of e-steki Karma or UR1.
Planned features
1. Of course, bugfixes
2. Usergroup permission for who can see who voted. (currently only admins can see that.)
3. The stats line in memberinfo wont appear if the user does not have permission to view the stats.
4. Ignore specific usergroups from the karma (such as banned)
5. Suggest your own, as long as they keep the system as fair as possible. My main concern is that the system is fair and democratic, and this is why I made most of the changes.
Don't forget to click INSTALL if you use this or you will be damned to hell :p
The Chief
03-07-2006, 02:01 PM
looks cool, ill check it out sometime :)
Lea Verou
03-07-2006, 02:01 PM
First post reserved (hey, everyone does it :p)
edit: Darn, The Chief got there before me :(
mark1491
03-07-2006, 02:36 PM
thanks again Michelle!
stamos2003
03-07-2006, 02:37 PM
Geia sou ;)
looks nice but.....
when calling the karma_stats.php it answers with:
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 60
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 80
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 86
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 90
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 98
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 100
Warning: asort() expects parameter 1 to be array, null given in /karma_stats.php on line 111
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 113
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 125
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 127
Warning: array_count_values(): The argument should be an array in /karma_stats.php on line 140
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 157
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 159
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 172
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 174
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 188
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 189
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 190
Warning: array_count_values(): The argument should be an array in /karma_stats.php on line 191
any ideas?
p.s. there is a typo at the bitfields "Can view the Karma ststistics?" missing a "a" ;)
Lea Verou
03-07-2006, 02:40 PM
If there are no votes, the stats wont work.
I don't have time to fix it now, I'm going out to eat.
See you guys and gals! :)
Please write any bugs here and I'll take a look when I come back :)
The Chief
03-07-2006, 02:45 PM
First post reserved (hey, everyone does it :p)
edit: Darn, The Chief got there before me :(
ah, sorry for that, I will install for that :)
* The Chief clicks install
stamos2003
03-07-2006, 02:48 PM
true, with the first votes the errors disappeared.
MissKalunji
03-07-2006, 02:49 PM
Lets thest this
MissKalunji
03-07-2006, 02:54 PM
ok first bug
Database error in vBulletin 3.5.3:
Invalid SQL:
ALTER TABLE user ADD karma SMALLINT(1) NOT NULL DEFAULT '1';
MySQL Error : Duplicate column name 'karma'
Error Number : 1060
Date : Tuesday, March 7th 2006 @ 11:53:04 AM
Script : http://www.dancehallareaz.com/forum/admincp/plugin.php
Referrer : http://www.dancehallareaz.com/forum/admincp/plugin.php?do=productadd
IP Address : xxxx
Username : MissKalunji
Classname : xxxx
Perhaps :) if table exist drop it :p
projectego
03-07-2006, 03:06 PM
Sounds interesting, I'll be sure to check this out once the bugs are resolved. :)
MissKalunji
03-07-2006, 03:10 PM
its nto really a bug just annoying if you had a previous karma installed on previous vb thats all :)
MissKalunji
03-07-2006, 03:20 PM
template isnt working..............
Snake
03-07-2006, 04:09 PM
Sweeet! I've been waiting for this. :D
Gizmo5h1t3
03-07-2006, 04:12 PM
rofl...10 most HATED users?
reckon thats the wrong choice of phrase for an install on a board which tries to promote user participation.
hack itself looks really promising apart from that tho.
Lea Verou
03-07-2006, 05:20 PM
Gizmo5h1t3 the hack is fully phrased. There is no need to keep that phrase ;)
MissKalunji which template? Also, if you drop the userrating table you will lose the votes :( I have to figure out a way to overwrite without drop :(
Also, it seems that you have a column named karma on your "user" table??? UR1 did not add that. Did you have another karma system installed in the past? Whas there something like that? Which hack was it?
Lea Verou
03-07-2006, 05:26 PM
Admincp sceenshot added. I had forgotten :o
hiiped
03-07-2006, 05:36 PM
great work Michelle
looks nice
< reserves space # 18 >
< clicks install >
Lea Verou
03-07-2006, 05:44 PM
< reserves space # 18 >
LOL, that was smart! :D
Tell me how it goes.
Also, ppl, do not only mention bugs. If you installed it and you found no bugs please mention that too. Your experience helps in the development of this hack, since it's a beta. It only takes you 1 minute to post what happened ;)
MissKalunji
03-07-2006, 05:52 PM
Gizmo5h1t3 the hack is fully phrased. There is no need to keep that phrase ;)
MissKalunji which template? Also, if you drop the userrating table you will lose the votes :( I have to figure out a way to overwrite without drop :(
Also, it seems that you have a column named karma on your "user" table??? UR1 did not add that. Did you have another karma system installed in the past? Whas there something like that? Which hack was it?
the memberinfo isnt showing
and i realise in usercp i cant tick : enable karma system...
and yes back on vb2 i had karma system
Lea Verou
03-07-2006, 05:58 PM
the memberinfo isnt showing
and i realise in usercp i cant tick : enable karma system...
and yes back on vb2 i had karma system
Did you add the html comment mentioned in the readme file?
You mean that if you tick the checkbox and then go back it's not ticked?
How was that karma system? Can you give me a link? :)
MissKalunji
03-07-2006, 06:05 PM
Did you add the html comment mentioned in the readme file?
You mean that if you tick the checkbox and then go back it's not ticked?
How was that karma system? Can you give me a link? :)
www.dancehallareaz.com/forum/misskalunji
yes i added the <!--end rating--> right under the google add
not showing
i fixed the checkbox error i 4got to rebuild the plugins...
but its still not showing....in the profile here the stats
http://www.dancehallareaz.com/forum/karma_stats.php
Lea Verou
03-07-2006, 06:37 PM
www.dancehallareaz.com/forum/misskalunji (http://www.dancehallareaz.com/forum/misskalunji)
yes i added the <!--end rating--> right under the google add
not showing
i fixed the checkbox error i 4got to rebuild the plugins...
but its still not showing....in the profile here the stats
http://www.dancehallareaz.com/forum/karma_stats.php
-Is the karma system enabled?
-Have you adjusted the permissions?
-Do you have YOUR karma enabled?
-Does the postbit part show?
-Try disabling and enabling your karma
-Try placing the comment somewhere else
-Stupid but check this too: Are you logged in?
-If nothing works try removing the conditional "<if condition="$doesparticipate[karma]">" and tell me if it worked.
Good luck!
PS: I may go to sleep in a few minutes.
MissKalunji
03-07-2006, 07:50 PM
i figured it out :-/ there was custom template that i did with the other user rating and forgot to revert them :)
MissKalunji
03-07-2006, 08:21 PM
Next question i dont want it to show has average 5 i want it show example
average 5 = 5 stars
average 4 = 4 stars etc
how can i do that?
Injektilo
03-07-2006, 08:30 PM
i get this errors on karma_stats.php
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 172
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 174
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 189
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 190
mark1491
03-07-2006, 08:47 PM
i get this errors on karma_stats.php
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 60
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 80
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 86
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 90
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 98
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 100
Warning: asort() expects parameter 1 to be array, null given in /karma_stats.php on line 111
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 113
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 125
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 127
Warning: array_count_values(): The argument should be an array in /karma_stats.php on line 140
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 157
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 159
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 172
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 174
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 188
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 189
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 190
Warning: array_count_values(): The argument should be an array in /karma_stats.php on line 191
If there are no votes, the stats wont work.
I don't have time to fix it now, I'm going out to eat.
See you guys and gals! :)
Please write any bugs here and I'll take a look when I come back :)
Read Michelle's comment that was already posted
eNforce
03-07-2006, 09:03 PM
Great plugin, installed :)
Injektilo
03-07-2006, 09:10 PM
Read Michelle's comment that was already posted
i've posted wrong error messages... check again now :P
lazytown
03-07-2006, 10:24 PM
THANK YOU FOR YOUR BRILLIANT WORK!
Great mod! Will install once it gets ironed out a bit (or perhaps install on one of my smaller forums first). Ranked it a 5 * for now to show support. :)
IDEA 1: I've modified some ratings systems (like for photos) so that, for example, if there are more than 3 votes the lowest scored vote gets dropped (or the highest, etc). Or the lowest score gets a boost of one point. So if you have a user with 25 votes and 4.99 score (because of one bad vote) they rank higher than a user with 2 votes at 5.0. This could be customizable somehow.
IDEA 2: The effects/weight of a karma vote could be modified by the voting member's stats in some way (like number of posts, registration date, their karma, etc). This would be a little more like the rep system, but not really because it is always an average with one vote per person. This would be a big change but would be a lot more accurate of "true karma."
QUICK QUESTION: Are the stats only visible to admins? If they are visible to everyone, it would be nice to be able to turn some sections on/off (though I probably could do this with template changes if you used templates for the display of stats).
Thanks
-vissa
Vizionz
03-08-2006, 12:09 AM
Invalid SQL:
SELECT karma FROM user WHERE userid=358;
i get that when i try to view the posts now
tnguy3n
03-08-2006, 12:12 AM
Invalid SQL:
SELECT karma FROM user WHERE userid=358;
i get that when i try to view the posts now
It means you don't have karma column in user table. Re-import the product xml and choose Overwrite option to insert necesary data.
Vizionz
03-08-2006, 12:13 AM
same thing after importing it again with overwrite
Vizionz
03-08-2006, 12:25 AM
i cant even uninstall it now either :(
Invalid SQL:
ALTER TABLE usergroup DROP userratingday, DROP userratingperm;
MySQL Error : Can't DROP 'userratingday'. Check that column/key exists
then if i overwrite it again it says installed same errors try to uninstall and go through the same thing ovr and over
Lea Verou
03-08-2006, 02:49 AM
THANK YOU FOR YOUR BRILLIANT WORK!
Great mod! Will install once it gets ironed out a bit (or perhaps install on one of my smaller forums first). Ranked it a 5 * for now to show support. :)
You could install it in your test forum so that there are more beta-testers :)
IDEA 1: I've modified some ratings systems (like for photos) so that, for example, if there are more than 3 votes the lowest scored vote gets dropped (or the highest, etc). Or the lowest score gets a boost of one point. So if you have a user with 25 votes and 4.99 score (because of one bad vote) they rank higher than a user with 2 votes at 5.0. This could be customizable somehow.
Very nice, but can you think of an algorithm for that?
IDEA 2: The effects/weight of a karma vote could be modified by the voting member's stats in some way (like number of posts, registration date, their karma, etc). This would be a little more like the rep system, but not really because it is always an average with one vote per person. This would be a big change but would be a lot more accurate of "true karma."
Nah, I don't agree with this. It's not fair. For instance, how would you feel if in the elections your vote counted less than the president's?
QUICK QUESTION: Are the stats only visible to admins? If they are visible to everyone, it would be nice to be able to turn some sections on/off (though I probably could do this with template changes if you used templates for the display of stats).
There are usergroup permissions for the stats. However strangely enough they don't work all the time :ermm: After some tries though the permissions gets stored at last (one of the known issues) :p
tnguy3n
03-08-2006, 02:51 AM
i cant even uninstall it now either :(
Invalid SQL:
ALTER TABLE usergroup DROP userratingday, DROP userratingperm;
MySQL Error : Can't DROP 'userratingday'. Check that column/key exists
then if i overwrite it again it says installed same errors try to uninstall and go through the same thing ovr and over
Go to Maintenance -> Execute SQL Query, then run following queries (1 query a time).
ALTER TABLE usergroup ADD userratingday SMALLINT(4) NOT NULL DEFAULT '0'
ALTER TABLE usergroup ADD userratingperm INT(10) NOT NULL DEFAULT '0'
CREATE TABLE IF NOT EXISTS userrating (voteid) int(10) NOT NULL DEFAULT '0'
ALTER TABLE user ADD karma SMALLINT(1) NOT NULL DEFAULT '1'
Then uninstall the product.
Lea Verou
03-08-2006, 02:52 AM
Next question i dont want it to show has average 5 i want it show example
average 5 = 5 stars
average 4 = 4 stars etc
how can i do that?
In the postbit and memberinfo:
With conditionals that check $averating. But you will lose accuracy, as they will only show whole numbers.
You can put the actual rating as the alt text though :)
Also you can make half images, but I don't want to think about how complicated those conditionals will be :ermm:
Lea Verou
03-08-2006, 02:54 AM
Go to Maintenance -> Execute SQL Query, then run following queries (1 query a time).
...
Then uninstall the product.
Thanks a lot for helping with the support :) :)
But why wouldn't those fields be installed? The install code is supposed to install those too :(
Lea Verou
03-08-2006, 02:56 AM
Invalid SQL:
SELECT karma FROM user WHERE userid=358;
i get that when i try to view the posts now
What exact error message do you get?
If you get "column karma does not exist" or something like that, your problem is what tnguy3n says.
MissKalunji
03-08-2006, 03:12 AM
In the postbit and memberinfo:
With conditionals that check $averating. But you will lose accuracy, as they will only show whole numbers.
You can put the actual rating as the alt text though :)
Also you can make half images, but I don't want to think about how complicated those conditionals will be :ermm:
lol ok i guess im stuck to be using the numbers til i figure it out
thanks!
Lea Verou
03-08-2006, 03:12 AM
i get this errors on karma_stats.php
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 172
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 174
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 189
Warning: Invalid argument supplied for foreach() in /karma_stats.php on line 190
Check please the userrating table in the db. Are there any records to it?
Lea Verou
03-08-2006, 03:13 AM
lol ok i guess im stuck to be using the numbers til i figure it out
thanks!
I also wanted to use images there, but after some thought I decided it would make the postbit too crowded.
MissKalunji
03-08-2006, 04:17 AM
i dont use the postbit only the memberinfo...
ThePimp
03-08-2006, 05:53 AM
rofl...10 most HATED users?
reckon thats the wrong choice of phrase for an install on a board which tries to promote user participation.
hack itself looks really promising apart from that tho.
Ever hear of negative marketing? You should look into it.
Lea Verou
03-08-2006, 07:26 AM
Exactly ThePimp! Also, after a while, those users will be mostly trolls I think, so who cares about their participation? This is exactly why I made this, to point out the trolls without doing anything on my behalf. It hasn't worked this way so far, as there are good members there too (the trolls that participate are there also however) but I think after more votes, the things will settle and only really bad members will be there.
Btw, everyone that has those foreach errors, download the new zip file, and replace karma_stats.php with the new one.
Lea Verou
03-08-2006, 07:36 AM
Btw in the next version it will be an option whether to show the karma on postbit or not :)
Harley77
03-08-2006, 02:33 PM
Tried the update, rendered a blank page with an unxexpected foreach in line 60. Looking at the code, I removed the @ symbol (as foreach doesn't support that form of error suppression http://us3.php.net/foreach) and at least it now displays something. Maby use some conditionals?
Harley77
03-08-2006, 03:10 PM
Also, Is it intentional that you can have someone with a 4+ rating (with none being a negative) show up in the top 10 Favored AND Hated? Seems to me that it would be more logical that only those who at least recieved a negative rating would show up in the hated list.
hiiped
03-08-2006, 03:21 PM
When I CHANGE the usergroup permission to ALL YES
the last 2 entries does NOT SAVE ( see attachment ) , keeps reverting to NO
Anyone else having this problem ?
<>
mark1491
03-08-2006, 03:30 PM
When I CHANGE the usergroup permission to ALL YES
the last 2 entries does NOT SAVE ( see attachment ) , keeps reverting to NO
Anyone else having this problem ?
<>
I get the same problem, but i don't think that it really stays at no, it just show it that way.
hiiped
03-08-2006, 03:57 PM
I get the same problem, but i don't think that it really stays at no, it just show it that way.
Im not sure
but it "might" be the reason I'm getting an error when I click to view Karma Statistics
I get this error
Parse error: parse error, unexpected T_FOREACH in /user/43/e26734/htdocs/forum/karma_stats.php on line 80
line 80of karma_stats.php is
@foreach($karma_table['rating'] as $key=>$value)
Lea Verou
03-08-2006, 04:09 PM
Tried the update, rendered a blank page with an unxexpected foreach in line 60. Looking at the code, I removed the @ symbol (as foreach doesn't support that form of error suppression http://us3.php.net/foreach) and at least it now displays something. Maby use some conditionals?
Oops! Darn, and I thought I could avoid the ifs that way :(
Thanks so much for pointing out my mistake :o
Lea Verou
03-08-2006, 04:11 PM
hiiped:
Issue #1 is a known issue that I'm unable to solve ATM, due to lack of knowledge on ugp. It's the first time I use usergroup permissions in a hack of mine, my older hacks just had an editbox where you entered usergroupids :o It works though, but not from the first time you set it. After some times it gets the message :p :ermm: Perhaps tnguy3n could help? :o
Issue #2 will be resolved in a few minutes. It's due to my ultimate stupidity mentioned above :p
Lea Verou
03-08-2006, 04:21 PM
zip updated. I used is_array() this time. I hope I didn't mess things up again :( :o
Harley77
03-08-2006, 04:56 PM
zip updated. I used is_array() this time. I hope I didn't mess things up again :( :o
umm, actually..
if(is_array($karma_table['rating']){
The above should read
if(is_array($karma_table['rating'])){
Notice the additional ")"
Needs to be done to every line that has the "is_array" in it.
hiiped
03-08-2006, 04:58 PM
thanks Michelle for fast reply, didnt expect so a prompt reply. LOL
take your time on fixing these bugs, we can wait
anyone who cant wait will be e-smacked
har har
Lea Verou
03-08-2006, 05:15 PM
Thanks Harley, that was accidental, and since I copy-pasted the first one (changing it each time appropriately), I have that error on the others too :(
Unluckily I tend to do these kind of errors all the time... :(
Lea Verou
03-08-2006, 05:19 PM
zip updated again. I hope I didn't do other stupid mistakes this time. :/
forumthemes
03-08-2006, 05:19 PM
IT's a great mod you did, I also really like the skin you used in the screenshots :)
Lea Verou
03-08-2006, 05:21 PM
IT's a great mod you did, I also really like the skin you used in the screenshots :)
Thanks! I made it myself :D
However, I think the header needs some changes... For instance the candlestick is completely odd there... :/
Any ideas?
Injektilo
03-08-2006, 07:20 PM
michelle, i've updated just now, and now on karma_stats.php i get
Warning: arsort() expects parameter 1 to be array, null given in /karma_stats.php on line 179
Lea Verou
03-08-2006, 07:23 PM
Darn, I have to put the conditionals b4 the sorting functions...
Injektilo, do you have any votes in the system?
Injektilo
03-08-2006, 07:25 PM
yep 2 votes :)
Lea Verou
03-08-2006, 07:28 PM
Do these users have their karma turned on?
Apart from that error does anything show in the statistics?
May I have a link please?
lazytown
03-09-2006, 07:36 AM
IDEA 1: I've modified some ratings systems (like for photos) so that, for example, if there are more than 3 votes the lowest scored vote gets dropped (or the highest, etc). Or the lowest score gets a boost of one point. So if you have a user with 25 votes and 4.99 score (because of one bad vote) they rank higher than a user with 2 votes at 5.0. This could be customizable somehow. Very nice, but can you think of an algorithm for that?
I've done it before -- I will look it up, though I'm not sure if it will plug right into your code.
IDEA 2: The effects/weight of a karma vote could be modified by the voting member's stats in some way (like number of posts, registration date, their karma, etc). This would be a little more like the rep system, but not really because it is always an average with one vote per person. This would be a big change but would be a lot more accurate of "true karma." Nah, I don't agree with this. It's not fair. For instance, how would you feel if in the elections your vote counted less than the president's?
True it wouldn't be fair if it was an election (and I agree with you in principle), but then you don't have as much voting fraud (hopefully) in a real election. On a forum, certain user's opinions do count more IMHO. If votes couldn't be weighted differently, how about only allowing certain usergroups to vote (or is that already possible?). That way you can keep your newbies from voting (but still allow them to be rated). I'm concerned about people registering multiple accounts just to vote for themselves. If the newbie usergroup wasn't allowed to vote, that would probably prevent it.
Thanks
-vissa
Lea Verou
03-09-2006, 08:01 AM
True it wouldn't be fair if it was an election (and I agree with you in principle), but then you don't have as much voting fraud (hopefully) in a real election. On a forum, certain users opinions do count more my IMHO. If votes couldn't be weighted differently, how about only allowing certain usergroups to vote (or is that already possible?). That way you can keep your newbies from voting (but still allow them to be rated). I'm concerned about people registering multiple accounts just to vote for themselves. If the newbie usergroup wasn't allowed to vote, that would probably prevent it.
Thanks
-vissa
That's possible already, as I've left the usergroup permission from UR1 but I'm not sure it works, I haven't tested it :ermm:
Lea Verou
03-09-2006, 11:00 AM
For those with the asort warnings try the new karma_stats.php (just updated).
Injektilo, this one is for you :)
yayvb
03-09-2006, 04:10 PM
Hi Guys :)
I am using Danny's comment system on my 2 boards. The disappearing comment problem was never fixed so I was pointed to the recently added user rating modification by tnguy3n. I was hoping to have avatar pictures next to the comments instead of just the names but then I guess that was scrapped too so now I'm here at this thread since this is the new version or something.
The problem is I don't see any comments in the examples so I wonder if that part was just scrapped also in this new version?
If anyone can help, I'm looking for a comment system that shows avatars and one where the comments don't automatically delete themselves randomly.
Thanks in advance!! Hmmm, maybe I can just use avatarurl or something.
MissKalunji
03-09-2006, 04:28 PM
You're not on the right one she removed it on the update
its USER RATING
that one : https://vborg.vbsupport.ru/showthread.php?t=109234
thebeanie
03-10-2006, 03:23 AM
Hi, This looks great in the screen shots and i carn't wait to see it working!
Please look at my profile on my site:
http://www.hoefax.com/beanie
There is nothing showing up on the profile about ratings. I followed the instructions.
Uploaded all the files
imported the product xml
added <!--end rating--> before footer in MEMBERINFO
I couldnt find the code in postbit or postbit_legacy, so i skiped that step
i added the code in modifyoptions
Any ideas as why its not showing up?
All the best,
Beanie
Lea Verou
03-10-2006, 03:30 AM
Are you sure the plugins for e-steki Karma are all enabled?
Do you have your karma enabled?
PS: If you want it in the postbit, you can give me the postbit code and I can tell you were to put the code :)
PS2: offtopic tip: It's better to make the css file external. It reduces time needed for your pages to load :)
thebeanie
03-10-2006, 03:43 AM
Thank you for the fast reply Michelle.
I think the plugins are enabled. If i click Plugin Manager, everything is Active, is this what you mean?
If i click vBulletin Options, select e-steki Karma Options and press Edit Settings, it says Enable this feature? YES
I dont know what the postbit code is, im new to vBulletin.
Thank you, i will lookinto making the css file external
Cheers for the help, can u see what ive done wrong?
Lea Verou
03-10-2006, 03:45 AM
No, I mean YOUR karma. Go to edit options in you usercp and tell me if the checkbox is checked :)
thebeanie
03-10-2006, 03:56 AM
Ah!
Participate in the Karma system, the box was unticked! I ticked the box and it works!! Thanks Alot!
I chaged the css settings and the site loads way fast now!! thanx again
Lea Verou
03-10-2006, 04:01 AM
Don't get too exited, that's a problem. It should be enabled by default :(
Do you know how to run queries from phpmyadmin?
thebeanie
03-10-2006, 04:10 AM
yeah i changed the default value of the field to 1 :)
Lea Verou
03-10-2006, 04:19 AM
Good :)
I'll take it that you changed it from the database, right? :)
Btw did anyone else have this problem? Cause if he did, I'll have to review my code :/
hiiped
03-10-2006, 04:24 AM
edit: confirmed, works in Opera also
request/suggestion
can there be a way so a USER can NOT turn off/on his/her Karma at his/her leisure ?
Only ADMINS should be able to disable individual users Karma
why ?
when a user receives many/some NEGATIVE Karmas, s/he may TURN it OFF to reset their Karma to ZERO ( not fair player )
Lea Verou
03-10-2006, 04:25 AM
What shows up instead?
PS: I forgot to tell you but I really like your sig :o
hiiped
03-10-2006, 04:30 AM
What shows up instead?
PS: I forgot to tell you but I really like your sig :o
Parse error: parse error in c:\appserv\www\s98007638\karma_stats.php on line 80
funny thing is line 80 of karma_stats.phpis BLANK
line 79: }
line 80:
line 81: if(is_array($karma_table['rating'])){
Lea Verou
03-10-2006, 04:42 AM
Are you using it on localhost? Does it do the same on an online site?
The same script doesn't produce errors on other browsers? :confused:
That's really weird... I always said that Opera sucks :p (not as much as IE though :p)
hiiped
03-10-2006, 04:47 AM
Are you using it on localhost? Does it do the same on an online site?
The same script doesn't produce errors on other browsers? :confused:
That's really weird... I always said that Opera sucks :p (not as much as IE though :p)
LOL
yes I was just fondling with it on localhost ;)
other browsers worked fine ( IE, Firefox , Maxthon )
will report later if ONLINE site has same issues with browser
Lea Verou
03-10-2006, 04:49 AM
Maxthon is practically IE in these things (it uses IE's rendering machine). Correct me if I'm mistaken :)
Exitilus
03-12-2006, 09:12 PM
*grins* .... I've been waiting for something like this. I'll be installing it shortly. Let you know how it goes! :)
Exitilus
03-13-2006, 12:13 AM
Looking very good so far :)
The only thing I'm noticing is nothing is showing up in the post bit. O.o
Lea Verou
03-13-2006, 06:09 AM
The user must have the karma enabled to show in the postbit...
Also the Karma system in general should be enabled...
MissKalunji
03-13-2006, 12:42 PM
A got a new bug :-/
Whenever someoen quick replies a receive an sql error saying this :
Invalid SQL:
SELECT karma FROM user WHERE userid=;
MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
when someone uses quick reply
but no error shows in the postbit...
Lea Verou
03-13-2006, 05:28 PM
Since you have don't use the postbit function you can deactivate that plugin. :)
Does anyone else have this problem?
MissKalunji
03-13-2006, 07:29 PM
edit ---------- no
still doing it
Lea Verou
03-13-2006, 07:32 PM
No way! If you have deactivated the correct plugin there is no code from this hack running in showthread. :confused:
Exitilus
03-16-2006, 09:09 PM
Found a Mispelled word :)
In Usergroup Options:
Can view the Karma ststistics?
hiiped
03-16-2006, 09:11 PM
Found a Mispelled word :)
In Usergroup Options:
Can view the Karma ststistics?
already reported here (https://vborg.vbsupport.ru/showpost.php?p=918214&postcount=5)
:)
Exitilus
03-20-2006, 08:26 PM
Few questions I have
1.) I've noticed the rating seems .. "different" ... For the Negative Votes you have -5 through -1
For Positive you have 1, 2, 3, 9 & 10 ... O.o Not sure why the huge jump?
2.) I found that 2 of the images pull from the \images directory ... while the noexpression.gif pulls from your server? Making it impossible to update O.o
3.) Good Job on it :thumbup
Exitilus
03-20-2006, 08:26 PM
already reported here (https://vborg.vbsupport.ru/showpost.php?p=918214&postcount=5)
:)
thanks :)
Lea Verou
03-20-2006, 08:30 PM
Few questions I have
1.) I've noticed the rating seems .. "different" ... For the Negative Votes you have -5 through -1
For Positive you have 1, 2, 3, 9 & 10 ... O.o Not sure why the huge jump?
2.) I found that 2 of the images pull from the \images directory ... while the noexpression.gif pulls from your server? Making it impossible to update O.o
3.) Good Job on it :thumbup
1) Where? For me its -5 to 5
2) Darn I forgot it!! :o :o :o You can change the url to ours, the smilie is included in the package... I will fix it in the next version but I have no time these months... Expect the new ver around easter holidays...
3) Thanks! :)
Exitilus
03-20-2006, 10:28 PM
1) Where? For me its -5 to 5
2) Darn I forgot it!! :o :o :o You can change the url to ours, the smilie is included in the package... I will fix it in the next version but I have no time these months... Expect the new ver around easter holidays...
3) Thanks! :)
1.) On a Users Profile. It's really weird ....
www.houseofcrazed.com
You can either sign up / or I could send you the login for a Test account in a PM? But it goes from -5 to 3,9,10
Tis really Odd
2.) No problem. atleast you know now :) And np on the no time. Just don't abandon us!! *laugh* I like it so far. :D
So where do you change the image? in the php file itself?
Lea Verou
03-20-2006, 10:31 PM
1) Can you paste me the template "memberinfo_userrating"?
2) Via the template memberinfo_ratingform. Nope, I wont abandon it :) At least I'll try my best not to :)
Exitilus
03-20-2006, 10:39 PM
<if condition="$doesparticipate[karma]">
<a name="karma"></a>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td colspan="2" align="center" class="tcat">$vbphrase[userrating]</td>
</tr>
<tr><td class="alt2" align="right">$vbphrase[userrating_average]: </td>
<td class="alt1" align="left">$averating</td></tr><tr>
<td class="alt2" align="right">$vbphrase[userrating_totalvote]:</td>
<td class="alt1" align="left">$ratinginfo[totalvotes]</td></tr>
<if condition="$ratinginfo['totalvotes']"><tr><td class="alt2" align="right">$vbphrase[userrating_lastrated]:</td>
<td class="alt1" align="left">$ratinginfo[dateline]</td></tr></if>
<if condition="$hasvotedvote!=''"><tr><td class="alt1 smallfont" align="center" colspan="2">$vbphrase[karma_you_have_voted] $hasvotedvote</td></tr></if>
<if condition="$userrating['showform']">
<tr><td colspan="2" align="center" class="thead">$vbphrase[userrating_options]</td>
</tr>
<tr><td class="alt1" align="center" colspan="2">$ratingform</td></tr></if>
<tr><td class="alt2" align="center" colspan="2">
<a href="karma_stats.php">
<phrase 1="$vbphrase[karma_title]">$vbphrase[x_statistics]</phrase>
</a></td>
</tr>
<if condition="is_member_of($bbuserinfo, 6)">
<tr>
<td colspan="2" align="center" class="tcat"><a href="#top" onclick="return toggle_collapse('karma_details')" style="float:$stylevar[right]"><img alt="" border="0" id="collapseimg_karma_details" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_karma_details].gif" /></a>$vbphrase[userrating_detail]</td>
</tr>
<tr id=collapseobj_karma_details>
<td class="alt1" align="left" colspan="2">
$ratingdetail
</td>
</tr>
</if>
</table>
</if>
Exitilus
03-27-2006, 02:50 PM
You ever get a chance to find out why my voting #'s are all weird? :)
The Chief
04-07-2006, 02:29 AM
I would love to install this on my site, but would like know if this could be done easier, like click a link to rate someone, then we could get a url for each member's ratings, then they vote, and the vote is recorded thats all, and a top 10 rated users...
This would really be good for what i would like to do, you think you could do this Michelle?
Lea Verou
04-07-2006, 06:06 AM
Extilus, no I need to see the ratingform one.
The Chief I didn't understand what you said.
The Chief
04-07-2006, 12:45 PM
Extilus, no I need to see the ratingform one.
The Chief I didn't understand what you said.
ah, now I need to write it again...lol
ok, well would it be possible to make this hack as simple as can be, by like having a different link for people to vote, like let's say, http://www.myetalk.com/forums/rating.php?u=MEMBERID here or something like that, then anybody could vote, then the average voting of the user is displayed in the profile represented in a cool image or something?
I would like to make this as easy as possible, no need of like all the extra stuff like the comments and other things..?
hope you will be able :)
Exitilus
04-07-2006, 08:37 PM
Here's the rating form:
<form action="$thiscript" method="post">
<input type="hidden" name="do" value="rateuser">
<input type="hidden" name="userid" value="$userinfo[userid]">
<input name="rating" type="radio" value="-5">
<img src="images/karma_minus.gif" alt="$vbphrase[karma_m5]"><img src="images/karma_minus.gif" alt="$vbphrase[karma_m5]"><img src="images/karma_minus.gif" alt="$vbphrase[karma_m5]"><img src="images/karma_minus.gif" alt="$vbphrase[karma_m5]"><img src="images/karma_minus.gif" alt="$vbphrase[karma_m5]">
<input name="rating" type="radio" value="-4">
<img src="images/karma_minus.gif" alt="$vbphrase[karma_m4]"><img src="images/karma_minus.gif" alt="$vbphrase[karma_m4]"><img src="images/karma_minus.gif" alt="$vbphrase[karma_m4]"><img src="images/karma_minus.gif" alt="$vbphrase[karma_m4]">
<input name="rating" type="radio" value="-3">
<img src="images/karma_minus.gif" alt="$vbphrase[karma_m3]"><img src="images/karma_minus.gif" alt="$vbphrase[karma_m3]"><img src="images/karma_minus.gif" alt="$vbphrase[karma_m3]">
<input name="rating" type="radio" value="-2">
<img src="images/karma_minus.gif" alt="$vbphrase[karma_m2]"><img src="images/karma_minus.gif" alt="$vbphrase[karma_m2]">
<input name="rating" type="radio" value="-1">
<img src="images/karma_minus.gif" alt="$vbphrase[karma_m1]">
<br />
<input name="rating" type="radio" checked="checked" value="0">
<img src="/images/neutral.gif" alt="$vbphrase[karma_0]"><br />
<input name="rating" type="radio" value="1">
<img src="images/karma_plus.gif" alt="$vbphrase[karma_p1]">
<input name="rating" type="radio" value="2">
<img src="images/karma_plus.gif" alt="$vbphrase[karma_p2]"><img src="images/karma_plus.gif" alt="$vbphrase[karma_p2]">
<input name="rating" type="radio" value="3">
<img src="images/karma_plus.gif" alt="$vbphrase[karma_p3]"><img src="images/karma_plus.gif" alt="$vbphrase[karma_p3]"><img src="images/karma_plus.gif" alt="$vbphrase[karma_p3]">
<input name="rating" type="radio" value="4">
<img src="images/karma_plus.gif" alt="$vbphrase[karma_p4]"><img src="images/karma_plus.gif" alt="$vbphrase[karma_p4]"><img src="images/karma_plus.gif" alt="$vbphrase[karma_p4]"><img src="images/karma_plus.gif" alt="$vbphrase[karma_p4]">
<input name="rating" type="radio" value="5">
<img src="images/karma_plus.gif" alt="$vbphrase[karma_p5]"><img src="images/karma_plus.gif" alt="$vbphrase[karma_p5]"><img src="images/karma_plus.gif" alt="$vbphrase[karma_p5]"><img src="images/karma_plus.gif" alt="$vbphrase[karma_p5]"><img src="images/karma_plus.gif" alt="$vbphrase[karma_p5]"><br />
<br />
<input class="button" type="submit" name="submit" value="$vbphrase[userrating_ratenow]"><br />
</form>
Lea Verou
04-07-2006, 08:40 PM
ah, now I need to write it again...lol
ok, well would it be possible to make this hack as simple as can be, by like having a different link for people to vote, like let's say, http://www.myetalk.com/forums/rating.php?u=MEMBERID here or something like that, then anybody could vote, then the average voting of the user is displayed in the profile represented in a cool image or something?
I would like to make this as easy as possible, no need of like all the extra stuff like the comments and other things..?
hope you will be able :)
:confused:
There are no comments in this hack...
Lea Verou
04-07-2006, 08:42 PM
Extilus, the problem is on the alt tags or on the number of images?
Exitilus
04-07-2006, 11:58 PM
Yup. just checked those phrases. Sure enough they were set for 9 & 10 ... Quite odd :laugh
The Chief
04-08-2006, 12:28 AM
:confused:
There are no comments in this hack...
ok but did you get the thing about the seperate link?
Allan
04-15-2006, 07:44 PM
Thanks for this hack :)
Click Install ;)
Allan
04-15-2006, 08:03 PM
i'm a big problem with this hack:
- On "karma_stats.php" page, on top, i have:
"Warning: array_count_values(): The argument should be an array in /karma_stats.php on line 146
Warning: array_count_values(): The argument should be an array in /karma_stats.php on line 205"
- In postbit, nothing show
- And, on "member.php" page, nothing show also
ps: permissions to usergroup OK, permissions hack OK
ConKien
05-07-2006, 07:11 PM
Michelle, r u still working on this?
Lea Verou
05-08-2006, 06:36 AM
I don't have time atm. Perhaps during summer I will develop it further but I can't make any promises. :)
Exitilus
05-25-2006, 02:35 AM
I really hope you do have time *cry*
PoetJA-1975
10-08-2006, 06:04 AM
this hack looks simply marvelous. using 3.5.4
SLOT 113 RESERVED :)
Jacquii.
PoetJA-1975
10-08-2006, 03:19 PM
Hi MICHELLE - this is a fabulous addition to my poetry site - I do hope you've had time to work out some of the issues of this hack though.
All of the issues I have - have already been discussed throughout this thread:
1. AdminCP Usergroup Permissions
2. The Postbit number not showing up as is shown in the screens:
https://vborg.vbsupport.ru/attachment.php?attachmentid=43934&d=1141746745
But mostly - I'm really liking the promise of this hack. I'm not sure if I'll be able to keep it though. I'd like to - but wondering if you'll fix it to working condition.
I'm kinda scared of sending you a PM LOL - I know each of us has things to do besides the PC thing - but anyway... I'm rambling.
Would like to see this hack out of Beta stage :)
Thanx for your work AND your sharing.
Jacquii.
ps - CLICKS INSTALL (reserves the uninstall)
PoetJA-1975
10-12-2006, 02:56 AM
Hello!?!?
will work for vb 3.6.0 ??
Lea Verou
08-04-2007, 03:03 AM
I'm very excited to announce that e-steki Karma version 2 was released for vB 3.6.8, with a lot more features, bugfixes and better coding.
Find it here: https://vborg.vbsupport.ru/showthread.php?t=154264
This hack is not supported any more, nor will be updated, I will only work at the new version.
nyunyu
11-12-2007, 02:10 AM
can this add on be used in 3.5.4? or i only can install beta version for 3.5.4??
by the way, it is really nice to have this add on.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.