Page 38 of 102

Re: [BETA] Karma MOD

Posted: Tue Feb 26, 2008 3:30 pm
by sixtvs
peterspliid wrote:I still cant find a solution

I have looked through this thread, but no answer :(
Here, scroll towards the middle, posted by ***Blaze***:
http://www.phpbb.com/community/viewtopi ... &start=420

Re: [BETA] Karma MOD

Posted: Fri Feb 29, 2008 1:25 am
by lance.johnsn
peterspliid wrote:I get this error when I've edited all files :(
Parse error: syntax error, unexpected ')' in /www/110mb.com/s/t/u/n/t/-/l/a/stunt-landia/htdocs/forum/includes/functions_karma.php on line 623
I saw this as well it is due to a missing ":"

Code: Select all

(($forum_id) ? "f=$forum_id&")
should be

Code: Select all

(($forum_id) ? "f=$forum_id&" : '')

Re: [BETA] Karma MOD

Posted: Fri Feb 29, 2008 8:42 am
by sixtvs
I installed the MOD, no problems other than:

1. The increase/decrease/Karma is not showing up on the user's profile in the forum, but its showing up on the user's profile
2. I shifted the profiles to the left, and now I have nothing.

Anyone have any ideas please?

Re: [BETA] Karma MOD

Posted: Fri Feb 29, 2008 7:03 pm
by lance.johnsn
Got everything working. Tested lowering a karma from a karma of zero and the following error occured:

Code: Select all

SQL ERROR [ postgres ]

ERROR: division by zero []

SQL

UPDATE phpbb_posts SET post_karma = post_karma - 1, post_karma_powered = post_karma_powered - 5, post_karma_count = post_karma_count + 1, post_karma_search = (post_karma / post_karma_count), post_karma_search_powered = (post_karma_powered / post_karma_count) WHERE post_id = 29

BACKTRACE


FILE: includes/db/postgres.php
LINE: 177
CALL: dbal->sql_error()

FILE: includes/functions_karma.php
LINE: 456
CALL: dbal_postgres->sql_query()

FILE: karma.php
LINE: 614
CALL: karmamod->submit_karma()


Re: [BETA] Karma MOD

Posted: Fri Feb 29, 2008 9:27 pm
by Tripp
Yeah, yo ucan't have negative karma.

Re: [BETA] Karma MOD

Posted: Sat Mar 01, 2008 12:55 am
by lance.johnsn
Drugs wrote:Yeah, yo ucan't have negative karma.
which makes sense theoretically. currently the code allows one to get into this state though.

Re: [BETA] Karma MOD

Posted: Sat Mar 01, 2008 7:37 am
by Toffmonster
Hello.
I've installed this mod on Gold and everything works fine, but the problem is, I can see only two karma comments per page regardless of the setting in the ACP. Total comments value is correct, but the ones displayed are always two last comments, and it always says "Page 1 of 1", so I can't view older comments.
Did I screw up anything? Does anyone know how to fix this?
Thank you.

Re: [BETA] Karma MOD

Posted: Sat Mar 01, 2008 8:57 pm
by blauesblut
hello
i just get error

Parse error: syntax error, unexpected ')' in /kunden/186895_27753/phpBB3/includes/functions_karma.php on line 623

please help me :x

Re: [BETA] Karma MOD

Posted: Sat Mar 01, 2008 9:37 pm
by Tripp
blauesblut wrote:hello
i just get error

Parse error: syntax error, unexpected ')' in /kunden/186895_27753/phpBB3/includes/functions_karma.php on line 623

please help me :x
Please try searching a few posts first.

Re: [BETA] Karma MOD

Posted: Sat Mar 01, 2008 9:44 pm
by blauesblut
Drugs wrote:
blauesblut wrote:hello
i just get error

Parse error: syntax error, unexpected ')' in /kunden/186895_27753/phpBB3/includes/functions_karma.php on line 623

please help me :x
Please try searching a few posts first.
did someone have the same problem?

Re: [BETA] Karma MOD

Posted: Sat Mar 01, 2008 9:52 pm
by Tripp
Yes...search back 1-3 pages and there's a link to the fix.

Re: [BETA] Karma MOD

Posted: Sat Mar 08, 2008 9:11 am
by Surf007
search gives this error

Parse error: parse error, unexpected T_VARIABLE, expecting ')' in /home/content/p/r/a/prateekgupta/html/desi-tadka/search.php on line 79

Re: [BETA] Karma MOD

Posted: Sat Mar 08, 2008 3:33 pm
by =D_17
Is it possible to allow a custom profile field if the user have XX Karma-Points ?
And if it is possible, how to do it ?

=D_17

Re: [BETA] Karma MOD

Posted: Sat Mar 15, 2008 4:16 pm
by odriego
How is it going with this mod? Do you release a stable version yet? :D

Im looking forvard to it!

Re: [BETA] Karma MOD

Posted: Sun Mar 16, 2008 9:59 am
by RobSkelton
Regarding the inability to give karma to friends or foes, which is a feature.

I'm not a fan of it, and so when I couldn't find a way of changing it anywhere, I went to karma.php and removed the code from lines 463 to 475:

Code: Select all

		// Is this user friend/foe?
		if ($zebra_enabled)
		{
			$sql = 'SELECT *
				FROM ' . ZEBRA_TABLE . '
				WHERE user_id = ' . (int) $user->data['user_id'] . "
					AND zebra_id = $user_id";
			$result = $db->sql_query($sql);
			if ($row = $db->sql_fetchrow($result))
			{
				trigger_error('KARMA_CAN_NOT_KARMA_ZEBRA');
			}
		}
And my board now lets users give karma to friends or foes.

VERY IMPORTANT: I know nothing about php at all, so I accept no responsibility for if this change wrecks anything. All I did was search the main file for the word foe. I have no understanding of how that code works, or what it does, other than the clue in the comment line