vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - e-steki Karma version 2.2 (https://vborg.vbsupport.ru/showthread.php?t=154264)

dellow 08-16-2007 08:42 AM

Quote:

Originally Posted by Michelle (Post 1318745)
With your controversy classes, if more than 75% of the votes are either [X+0.5]-1, or [X+0.5] or [X+0.5]+1, he will have a low controversy.

again and again sorry, but ...


if 75% of the votes ...

is the votes that for that user ? or the entire votes of the site ?

Lea Verou 08-16-2007 08:44 AM

Quote:

Originally Posted by yahoooh (Post 1318754)
can we use it with vbcredets product ?

I don't think so, as I've never heard of that product.

Quote:

Originally Posted by dellow (Post 1318781)
again and again sorry, but ...


if 75% of the votes ...

is the votes that for that user ? or the entire votes of the site ?

Of course the votes for that user! Controversy is a user statistic, not a site statistic!

yahoooh 08-16-2007 09:56 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=151924" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=151924</a>

dellow 08-16-2007 11:59 AM

what is default controversy classes ? and which one is the best you think ?

Lea Verou 08-16-2007 12:15 PM

Leave it at its default and then after a while adjust the values according to what happens on your community. If you see eg too many members with very high controversy, or too many members with low it means you have to adjust the classes so that they are almost equally distributed.

dellow 08-16-2007 12:49 PM

great idea..

but what if you make tha controversy classes generated automaticly by calculating the entire comunity votes, rather than i adjust it manualy using my mine ?

Lea Verou 08-16-2007 01:22 PM

Quote:

Originally Posted by dellow (Post 1318909)
great idea..




but what if you make tha controversy classes generated automaticly by calculating the entire comunity votes, rather than i adjust it manualy using my mine ?

Nice idea but:
1. Its hard to do so (from a coding point of view)
2. Members will not like the algorithm changing all the time. At least in my forum where karma plays a very important role they would be mad)

dellow 08-16-2007 09:01 PM

hello,

when user post his rate in the postbit, he should forwarded to same page.
users will not like to vote becuse thay need to go back to the thread that thay was reading.

am i right ?

dellow 08-16-2007 09:03 PM

hello,

i think if there is option in admincp to allow only member with number of post more than x

thank you :)

DJ XtAzY 08-16-2007 10:02 PM

Quote:

Originally Posted by Michelle (Post 1318146)
Yeah, this is the plugin that adds the template :confused:
Do the other automatic template edits work?
Do you have a modified modifyoptions template perhaps?

The other auto template edits works fine. I dont have the modifyoptions customized either. It doesnt work on the original vb default skin either. Oh im using PHP5 in case your wondering.

Wolf Link 08-17-2007 05:34 AM

Once I add the xml, I get an error.

What's wrong? :(

Lea Verou 08-17-2007 09:06 AM

Quote:

Originally Posted by dellow (Post 1319215)
hello,

when user post his rate in the postbit, he should forwarded to same page.
users will not like to vote becuse thay need to go back to the thread that thay was reading.

am i right ?

You are right, its something I want as well. However, I haven't found a way to do that so far.

Quote:

Originally Posted by dellow (Post 1319217)
hello,

i think if there is option in admincp to allow only member with number of post more than x

thank you :)

You can create a usergroup that members will automatically join after X posts (via the user promotions system that is built in vB) and then allow only this usergroup to participate ;) This is what I have done in my forums ;)

Quote:

Originally Posted by Wolf Link (Post 1319430)
Once I add the xml, I get an error.

What's wrong? :(

What is the error?

Quote:

Originally Posted by XtAzY (Post 1319246)
The other auto template edits works fine. I dont have the modifyoptions customized either. It doesnt work on the original vb default skin either. Oh im using PHP5 in case your wondering.

Do you have $template_hook[usercp_options_other] in your modifyoptions template?

dellow 08-17-2007 09:13 AM

i just install the Karma in my production forum, every thing seems good, but after about 10 hours i find about 85% of members are not participate Karma.
i am using latest version and this is the cron file that i am use:
i changed the value 0 to be 1 and return back all members to Karma, but i think still there is a problem ethir with me or woth code.

PHP Code:

<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''karma_cron');

// ######################### REQUIRE BACK-END ############################
//require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################


//exclude from the karma, users that are inactive, if such a thing has been set
if (!is_object($vbulletin->db))
{
    exit;
}
if(
$vbulletin->options['karma_lastactivity'])
{
    
$vbulletin->db->query_write("UPDATE `" TABLE_PREFIX "user` SET `karma` = 0 WHERE((" TIMENOW "-lastactivity)/(24*3600)>" $vbulletin->options['karma_lastactivity'] . ")");
}

?>


dellow 08-17-2007 09:15 AM

Quote:

Originally Posted by Michelle (Post 1319444)
You are right, its something I want as well. However, I haven't found a way to do that so far.

what about AJAX ?

dellow 08-17-2007 10:06 AM

Michelle ,

i am sorry for too many post here, but how can add top five rated members in the bottum of home page?

Lea Verou 08-17-2007 10:30 AM

1. How many days have you set in the setting "Ignore users that haven't visited for X days"?
2. AJAX would be perfect but I haven't learned AJAX good enough yet. If I ever understand AJAX, its one of my plans to make the vote & the remove vote with AJAX ;)
3. This needs a new plugin, if you have a knowledge of php, take a look at karma.php in the stats section and fit it to your needs. Sorry, I can't make it as I'm too busy at the moment with another hack I'm making (I have to make a lot this month for an update of my board that I'm planning) and also I don't need it (my members are too concerned with their karma already, I don't want it to get worse :p)

dellow 08-17-2007 12:59 PM

Quote:

Originally Posted by Michelle (Post 1319479)
1. How many days have you set in the setting "Ignore users that haven't visited for X days"?

it was 100 days.

Lea Verou 08-17-2007 01:45 PM

Quote:

Originally Posted by dellow (Post 1319616)
it was 100 days.

Are you sure that these users have visited your forum for the last 100 days?

dellow 08-17-2007 04:33 PM

ohh..

no not sure..

i think thay did not visit the forum in last 100 days.

i just know that if user did not visit the forum for las x days he will be not participate Karma.
i was think his votes only will not be counted.

i think the user should not removed from participate Karma, but should only delete his votes.

Regards,

Wolf Link 08-17-2007 04:49 PM

<a href="http://www.shadowshr.com/forums/member.php?find=lastposter&f=3" target="_blank">http://www.shadowshr.com/forums/memb...lastposter&f=3</a>

"Warning: require_once(./includes/karma_functions.php) [function.require-once]: failed to open stream: No such file or directory in /member.php(838) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required './includes/karma_functions.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.tiema/shadows/shadowshr.com/forums/member.php(838) : eval()'d code on line 1"

Lea Verou 08-17-2007 05:45 PM

Quote:

Originally Posted by dellow (Post 1319724)
ohh..

no not sure..

i think thay did not visit the forum in last 100 days.

i just know that if user did not visit the forum for las x days he will be not participate Karma.
i was think his votes only will not be counted.

i think the user should not removed from participate Karma, but should only delete his votes.


Regards,

I think its not nice to register on a forum, post some messages and then visit it again in some months and see that you have an average rating of -3 for instance.
If his votes don't count, then he shouldn't be participating at all, its not fair to be rated when your votes to others don't count!

Quote:

Originally Posted by Wolf Link (Post 1319736)
http://www.shadowshr.com/forums/memb...lastposter&f=3

"Warning: require_once(./includes/karma_functions.php) [function.require-once]: failed to open stream: No such file or directory in /member.php(838) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required './includes/karma_functions.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.tiema/shadows/shadowshr.com/forums/member.php(838) : eval()'d code on line 1"

You probably did not upload karma_functions.php in your includes folder.

DJ XtAzY 08-17-2007 08:32 PM

Quote:

Originally Posted by Michelle (Post 1319444)
You are right, its something I want as well. However, I haven't found a way to do that so far.



You can create a usergroup that members will automatically join after X posts (via the user promotions system that is built in vB) and then allow only this usergroup to participate ;) This is what I have done in my forums ;)



What is the error?



Do you have $template_hook[usercp_options_other] in your modifyoptions template?

Yes i do.... if i remove all those conditional statements and just have eval(....), then it works fine.

Lea Verou 08-17-2007 08:37 PM

Quote:

Originally Posted by XtAzY (Post 1319855)
Yes i do.... if i remove all those conditional statements and just have eval(....), then it works fine.

:confused: :confused: :confused:
I have no idea, I've never faced something like that before... :confused:

DJ XtAzY 08-18-2007 10:16 PM

Quote:

Originally Posted by Michelle (Post 1319860)
:confused: :confused: :confused:
I have no idea, I've never faced something like that before... :confused:

I just tried it on a fresh testvb and again it doesnt work. Maybe it's just me. Can anyone who installed this hack go to UserCP-->Edit Options and tell me if it works for you guys?

dellow 08-18-2007 10:19 PM

Hi Michelle,

i just complete the top X users rating in homepage and it is working very fine.

but only one problem, the problem is : it is show the top rating regardless checking the option karma_stats_minvotes , and because i am just a goat owner :D i don't know how to add the (if) function to check the option karma_stats_minvotes .

the code is:
PHP Code:

if ($adet<1)
{
$adet 5;
}

$getkarmax $db->query_read("SELECT * FROM " TABLE_PREFIX "user ORDER BY karmatotal DESC LIMIT 0, $adet");
while (
$getkarma$db->fetch_array($getkarmax))

$topkarmausers .= "<a href=\"member.php?u=".$getkarma['userid']."\">".$getkarma['username']."</a> (".$getkarma['karmatotal']."), ";


would you please help what to add to fix it?


Regards,

Techno05 08-26-2007 04:02 AM

I installed it but in the postbit there is 4 different things that say karma :P can you help me?

Lea Verou 08-30-2007 08:33 AM

Quote:

Originally Posted by Techno05 (Post 1325826)
I installed it but in the postbit there is 4 different things that say karma :P can you help me?

Huh? :eek:
Can you post a screenshot?

DJ XtAzY 08-31-2007 05:49 PM

Quote:

Originally Posted by XtAzY (Post 1320593)
I just tried it on a fresh testvb and again it doesnt work. Maybe it's just me. Can anyone who installed this hack go to UserCP-->Edit Options and tell me if it works for you guys?

Ok i finally got it to work. It was my fault on my end... something to do with gzip. Anyways now i get this error msg when i Edit Options

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /profile.php(879) : eval()'d code on line 5

Lea Verou 09-01-2007 07:25 AM

Quote:

Originally Posted by XtAzY (Post 1329613)
Ok i finally got it to work. It was my fault on my end... something to do with gzip. Anyways now i get this error msg when i Edit Options

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /profile.php(879) : eval()'d code on line 5

Can you provide more details about the conditions that this error occurs?
How many members does this board have?
Does it occur all the time in the edit options page?

NolF 09-06-2007 01:18 PM

Installed, and gave me no errors.
I have a whole bunch of hacks installed and no conflics. Abou 60k users and hips of posts xD so it works ^^

3 suggestiosn I can think at the moment

First: The images (thumbs up down and neutral) should be in the misc folder of the theme instead of the root folder of images :) ($stylevar[imgdir_misc]/)

Second: Put a link to the stats on the "quick link" menu :)

Third: An option to hide who gave the karma

Lovely hack, and honestly great work :) hoppefully we'll see the unvote hack for 3.6 :D
Keep up with the good work and good luck with the MOTM

Lea Verou 09-06-2007 02:29 PM

Quote:

Originally Posted by NolF (Post 1333568)
Installed, and gave me no errors.
I have a whole bunch of hacks installed and no conflics. Abou 60k users and hips of posts xD so it works ^^

3 suggestiosn I can think at the moment

First: The images (thumbs up down and neutral) should be in the misc folder of the theme instead of the root folder of images :) ($stylevar[imgdir_misc]/)

Second: Put a link to the stats on the "quick link" menu :)

Third: An option to hide who gave the karma

Lovely hack, and honestly great work :) hoppefully we'll see the unvote hack for 3.6 :D
Keep up with the good work and good luck with the MOTM

Thanks NolF, especially for the "good luck with the MOTM" part :) (although I'm sadly loosing :()

I agree with your first and second suggestion, however I don't have the time atm to update or support this modification (as I said, its only supported for a few days after each release). The third suggestion is not needed, as they are already hidden for the members.

DJ XtAzY 09-06-2007 03:32 PM

ok i fixed this myself. I have to change a little for the sql query in the "e-steki Karma profile field part 2" to get rid of this error for some reason

Code:

$isthere = mysql_num_rows($db->query_read("SELECT karma FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND karma=1"));
to

Code:

$isthere = $db->num_rows($db->query_read("SELECT karma FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND karma=1"));

NolF 09-08-2007 02:03 AM

Well I've found couple of interesting things. One is a serious bug, which never came to my mind, but has to be fixed :O because is a big one aye

[bug 1]
Code:

When u give karma to someone, you use this link
./karma.php?do=processvote&u=$$$$&rating=4
But if you use firefox (works on ie too u just have to bother yourself coping the link word for word), and copy the link, you cna change that number to any number, for example 100, and it will give 100 karma points to that user. if you put -1000 it will take 1000 points from that user :O

I wonder how one of my users figured it out, but very cleaver indeed. The creep didn't even report it, but there you go

[bug? 2]
I'm pretty sure it is how you intended it to, but, is a bit ehhh to classify inactive users as not having opted to participate in the system. I mean, in the stats page the part which says "users have chosen to not participate in the Karma system. Shame on them!"
In my personal opinion, only active users, who have opted not to participate should be counted here. :D

[Suggestion 1]
Okey this suggestion, is better than any of the previous 3 ^^
When you give karma, you are redirected to the members profile, but my users (at least) find it quite annoying. I guess vBulletin has made them used to been redirected to the same page they were at.

[Suggestion 2]
At the moment, in order to calculate karma averages, you are using the old fashion add all scores and divide by the number. However, it is not the same to have 100 votes and an average of 4 than having 5 votes and an average of 5.
I recon a formula such as the one used on imdb.com is more aquarate than the current formula
Quote:

Originally Posted by imdb
weighted rating (WR) = (v ? (v+m)) ? R + (m ? (v+m)) ? C

where:
R = average for the movie (mean) = (Rating)
v = number of votes for the movie = (votes)
m = minimum votes required to be listed in the Top 250 (currently 1300)
C = the mean vote across the whole report (currently 6.7)

Variables, I guess should be determined via ACP, or calculated to correspond with the votes flux

[Comment]
I run a Spanish forum, so I had to translate the phrases, I just wanted to say, it was quite complicated at times to translate them, because it wasn't intuitive from the names, and the original English sentence what the purpose of the phrase was.
Also in many cases, you just put a word/sentence, which will be followed by a variable (ie number username etc) and dont use the {1} that makes it quite complicated to translate in many languagues
I could do a list if you are interested :)

Thx for listening ^^

Lea Verou 09-08-2007 02:10 AM

Really useful feedback NolF. Thanks a lot.
I hope my users don't figure out bug #1 till I have time to fix it :(
Its so scary to think of what can happen if they do, they really take the karma seriously. :(
I don't think bug #2 can easily be fixed though. Perhaps a workaround would be to substract inactive users from that number, whether they have opted out voluntarily or not.
I'll try to find some time to fix bug #1 soon, it doesn't seem too time consuming to fix.

About the phrases, {1},{2} etc is used in vB phrases as well, its supposed to be the "correct" way. Placing a variable next to the phrase is problematic if a language requires it to be before the phrase or in the middle of it.

edit: Perhaps you should put bug #1 in code tags, till its fixed, so that it can't be read by guests or unlicensed users. You never know who's reading.

Lea Verou 09-08-2007 02:16 AM

Bug #1 bothered me quite a lot, so here's a workaround.
Tell me if it works.

NolF 09-08-2007 03:00 AM

yep that works, when u give 100 for example, it is set back to 5, and if you use 4.5 for example it counts as 4 :)

great job :) faster than I expected great job

Quote:

Originally Posted by Michelle
About the phrases, {1},{2} etc is used in vB phrases as well, its supposed to be the "correct" way. Placing a variable next to the phrase is problematic if a language requires it to be before the phrase or in the middle of it.

That is what I was trying to say ^^. Some of your phrases don't use the {1} etc
for example
karma_rated ---- {1} has rated
in my opinion should be {1} has rated {2}

karma_you_have_voted ---- You have rated this user a
it should be -> You have rated this user a {1}
etc there are some more

Lea Verou 09-08-2007 03:02 AM

Oh, lol :o
Yeah, a list of those would help, so that I change them in the next update. :)

NolF 09-08-2007 03:36 AM

Here you go, a list with the sentences I recon need the {1}s

karma_percent_of_votes == % of total votes => {1} % of total votes [Note: I think this phrase is not beign used]

karma_rated == {1} has rated => {1} has rated {2}

karma_ratedby == {1} was rated by => {1} was rated by {2}

karma_users_have_rated == users have rated => {1} users have rated {2} users

karma_users_not_participate == users have chosen to not participate in the Karma system. Shame on them! => {1} users have chosen to not participate in the Karma system. Shame on them!

karma_users_that_gave_the_most_x_votes == users that gave the most {1} votes => {2} users that gave the most {1} votes [Note: the {2} is the number 10 by default]

karma_you_have_voted == You have rated this user a => You have rated this user a {1}

userrating_lastrated == Last rated on => Last rated on {1}

=======
Note: I've only included the ones users can see, ACP functions can go in english no problem

Thx for the fix once again ^^

ijob 09-08-2007 07:41 AM

I'm wanting to install this hack but am unsure about if its working without problems? Can someone advise on its status? does it work?

cheers

MikeHolohan 09-08-2007 07:54 AM

This is an excellent hack, well done, just a question tho can I change the word Karma to something else?

thanks, Mike.


All times are GMT. The time now is 05:55 PM.

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.01647 seconds
  • Memory Usage 1,876KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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