vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   e-steki Karma BETA (https://vborg.vbsupport.ru/showthread.php?t=109716)

Lea Verou 03-08-2006 03:12 AM

Quote:

Originally Posted by Injektilo
i get this errors on karma_stats.php

Code:

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

Quote:

Originally Posted by MissKalunji
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

Quote:

Originally Posted by Gizmo5h1t3
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

Quote:

Originally Posted by hiiped
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

Quote:

Originally Posted by mark1491
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

Quote:

Originally Posted by Harley77
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

Quote:

Originally Posted by Michelle
zip updated. I used is_array() this time. I hope I didn't mess things up again :( :o


umm, actually..
PHP Code:

if(is_array($karma_table['rating']){ 

The above should read

PHP Code:

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

Quote:

Originally Posted by forumthemes
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

Quote:

Originally Posted by Michelle
Quote:

Originally Posted by vissa
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.

Quote:

Originally Posted by Michelle
Quote:

Originally Posted by vissa
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

Quote:

Originally Posted by vissa
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

Quote:

Originally Posted by Michelle
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'])){


All times are GMT. The time now is 02:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01284 seconds
  • Memory Usage 1,831KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete