Karma MOD

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
SuperFedya
Registered User
Posts: 248
Joined: Sun Jul 14, 2002 9:14 pm
Contact:

Re: Karma MOD

Post by SuperFedya » Sun Mar 14, 2010 4:00 am

Oh my... 1.4.0 FULL OF BUGS! After added this line in overal_header:

Code: Select all

<!-- [+] Karma MOD //-->
<!-- INCLUDE karma_notify.html -->
<!-- IF S_KARMA_AJAX_ENABLED -->
	<script type="text/javascript" src="{ROOT_PATH}includes/mods/karma.js"></script>
	<div id="karma-ajax"></div>
<!-- ENDIF -->
<!-- [-] Karma MOD //-->
All, I repeat - all links (in header) became un-clickable!!! In Opera browser. In IE all works fine. So, I disabled karma mod (upd. disabled ajax feature) and wait fix for that bug (or install an other point mod).

Thanks.

SuperFedya
Registered User
Posts: 248
Joined: Sun Jul 14, 2002 9:14 pm
Contact:

Re: Karma MOD

Post by SuperFedya » Sun Mar 14, 2010 4:18 am

Shit, now 1.4.0 version brake my Drupal site:
[phpBB Debug] PHP Notice: in file /includes/mods/functions_karma.php on line 20: Undefined variable: table_prefix
[phpBB Debug] PHP Notice: in file /includes/mods/functions_karma.php on line 21: Undefined variable: table_prefix
[phpBB Debug] PHP Notice: in file /includes/mods/functions_karma.php on line 22: Undefined variable: table_prefix

!!!IF YOU USE DRUPAL WITH PHPBB3 BRIDGE STAY AWAY FROM 1.4.0!!!

upd. fix:
in functions_karma.php
find 20, 21, 22 lines and change it for:

Code: Select all

define('KARMA_DRAFTS_TABLE', 'phpbb_karma_drafts');
define('KARMA_RANKS_TABLE', 'phpbb_karma_ranks');
define('KARMA_TABLE', 'phpbb_karma');
phpbb_ your table prefix.

User avatar
m157y
Registered User
Posts: 482
Joined: Mon Apr 30, 2007 9:39 am
Location: Russia, Moscow, Khimki
Contact:

Re: Karma MOD

Post by m157y » Sun Mar 14, 2010 11:03 am

2 Muazam
Very nice mod indeed, I was wondering if its possible for me to Change the "Karma" to something else like "Reputation"?
Just replace karma to reputation at language file, don't touch array indexes(something like ACP_KARMA_SETTINGS_GENERAL and etc) only language strings(something like 'Edit karma settings').
If I install the 1.4.0 version, how difficult would it be to upgrade it to 1.5.0? Like do I have to start from the beginning or is there a Auto updater?
Here will be instructions for update, auto-updater will be later... Some ideas about it need more details, so currently it doesn't implemented...
2 andrius757
Cannot find module ./../includes/acp/acp_karma.php

acp_karma.php suppose to be in includes/mods/acp/acp_karma.php?
So where to change those things?
Are you completed instructions at includes/acp/acp_modules.php and includes/functions_module.php?
Because without this instructions you'll have this error.
Have some problems finding 1.4 version
You'll find it at svn under branches directory
2 Screagle
I had the same problem with the 1.2.3 version with my phpbb 3.0.7 ! Try with the 1.4.0 version.
Khm, after update? Check your modifications at includes/acp/acp_modules.php and includes/functions_module.php, because i installed it to clear 3.0.7 without any problems.
And, of course, i interested at other translations...
2 Groundy
I still have no buttons and am beginning to regret installing this as support seems to be a bit hit and miss.
Don't forget that is fully free modification and i have more important things at my life.
The buttons appear and work in the Prosilver theme, but disappear when I switch to my Reds theme, my Red's theme has no template file....is this causing the problem?
Firstly, i asked a link to your theme and you don't provide it.
Secondly, what about separate imageset for this theme? Possible, you don't add karma images to imageset of this template.
Should I find a similar theme which has a template file ?
Look for styles/xxx/imageset/imageset.cfg. Does it exists? If yes, you need make modifications from karma mod to this file like for prosilver.
Installation with AutoMOD leaves a lot to guess work
Maybe because AutoMOD was updated and new version of karma not validated? Because 1.4 was fixed for automod. Just look for release date of this version
2 troublegum44
1. I can't reproduce this too. Can you tell more information about your system/browser/etc for testings?
2. Yep, i already know about this and fixed at one of later version(sorry, don't remember 1.4 or 1.5)
2 SuperFedya
Maybe you want write a more detailed bug-reports?
Firstly, all mods for phpbb developing for phpbb at original version, not for ports at other engines, i don't seen phpbb-port for drupal so i can't say anything about this, but you says that karma mod is shit, okay, you can don't use it and use something else.
Secondly, it's full of bugs on bridged phpbb, which have lot of modifications at original code, so i prefer to say, that bridge is patches everything, so it brokes lot of mods, because it removes system variable $table_prefix which used for defining sql-tables of phpbb and mods.
Thirdly, unclickable links at Opera? Oh, really? Which version of opera on which OS? Because Opera10 on WinXPSP3 works perfectly.
And about icons, i'll recheck it, but i thinks, that it's problem of your brigde. Because it works perfectly on original phpbb.
P.S.
If you'll be more attentive, you'll see that i'm fixing conflicts with other mods. For example from changelog of 1.4

Code: Select all

Fixed conflict with phpBB Statistics mod (Thanks to Andrewsha for report)

And finally, don't like Karma MOD, don't use it or i can abandon it and no problems more... and you'll use another stable mods...
m157y aka Misty
NO SUPPORT VIA PM
KarmaMOD for phpBB 3.0.x | bbAJAX
Follow me on twitter

SuperFedya
Registered User
Posts: 248
Joined: Sun Jul 14, 2002 9:14 pm
Contact:

Re: Karma MOD

Post by SuperFedya » Sun Mar 14, 2010 3:32 pm

okay, you can don't use it and use something else.
Great user support! Thanks!
Can you just called 1.4.0 version something like 1.4.0 Alpha? Like 1.2.3v, when I installed it, I saw Fatal Error, because you didn't write a right path to includes/mod. Who validated this mod?
hat bridge is patches everything
Yeah! Everything! Only 1 file - functions_user.php.
Maybe you want write a more detailed bug-reports?
Ok, ill start again.
When I added this code to overal_header:
<!-- [+] Karma MOD //-->
<!-- INCLUDE karma_notify.html -->
<!-- IF S_KARMA_AJAX_ENABLED -->
<script type="text/javascript" src="{ROOT_PATH}includes/mods/karma.js"></script>
<div id="karma-ajax"></div>
<!-- ENDIF -->
<!-- [-] Karma MOD //-->
All links in header became unclickable. So, your karma.js was not tested with Opera browser. Right? Just tested with Chrome - same problem. All links work fine only with IE, when I disablem AJAX - work fine.

For other problems I took some screenshots. What more I can tell you? If smilies don't work in Ajax window, what more I need to say? Opera version 10, Windows 7, others users report me about this error too. Template Hestia (subsilver based).

And what about broken link in UCP? Why I see it, if Karma options is disabled for users control?

SuperFedya
Registered User
Posts: 248
Joined: Sun Jul 14, 2002 9:14 pm
Contact:

Re: Karma MOD

Post by SuperFedya » Sun Mar 14, 2010 5:36 pm

[deleted]

troublegum44
Registered User
Posts: 58
Joined: Wed May 13, 2009 7:46 pm

Re: Karma MOD

Post by troublegum44 » Sun Mar 14, 2010 6:48 pm

m157y wrote: 2 troublegum44
1. I can't reproduce this too. Can you tell more information about your system/browser/etc for testings?
I have tried this on multiple machines both Mac and Windows and Safari, Firefox and IE and the issue occurs on them all.

As mentioned before it happens both on my Xampp development board as well as the live board.

I have done a bit of debugging, and it seems to be the following database query that is causing the problem:

Code: Select all

SELECT u.*, z.friend, z.foe, p.*, k.karma_time, k2.karma_time as karmaed FROM (phpbb_users u, phpbb_posts p) LEFT JOIN phpbb_zebra z ON (z.user_id = 59 AND z.zebra_id = p.poster_id) LEFT JOIN phpbb_karma k ON (k.poster_id = 59 AND k.user_id = p.poster_id) LEFT JOIN phpbb_karma k2 ON (k2.poster_id = 59 AND k2.post_id = p.post_id AND k2.user_id = p.poster_id) WHERE p.post_id IN (11071, 11054, 11052, 11043, 11029, 10927, 10732, 10711, 10710, 10703, 10669, 10664, 10660, 10438, 10433)
AND u.user_id = p.poster_id
I have attached screenshots of this query and you can see the massive time difference between them. The first is when I logged in a test user and the second is from my regular user account. The regular account took about 15 seconds to run this query.

I am not sure what is different about my regular user account that would cause it to be affected in this way. :?
And finally, don't like Karma MOD, don't use it or i can abandon it and no problems more... and you'll use another stable mods...
Please don't abandon this MOD because of comments from SuperFedya. I for one appreciate the hard work that you have put into this, and it is generally a good MOD.
Attachments
slow query on my regular account
slow query on my regular account
Screen shot 2010-03-14 at 18.40.48.jpg (97.2 KiB) Viewed 1227 times
fast query on test account
fast query on test account
Screen shot 2010-03-14 at 18.40.30.jpg (96.22 KiB) Viewed 1227 times
Last edited by troublegum44 on Sun Mar 14, 2010 7:26 pm, edited 1 time in total.

troublegum44
Registered User
Posts: 58
Joined: Wed May 13, 2009 7:46 pm

Re: Karma MOD

Post by troublegum44 » Sun Mar 14, 2010 7:15 pm

Further to my previous post, I have identified some other users on my board that are having this problem.

It seems to be that the more Karma a user has given, the longer it takes to run that query when they view a topic. I have probably given about 300 Karma points and others will be the same.

chunky975
Registered User
Posts: 54
Joined: Fri Jul 24, 2009 1:49 pm

Re: Karma MOD

Post by chunky975 » Sun Mar 14, 2010 10:27 pm

i now cant access my ACP after installing this, i get a 403 forbidden page when i try to access it again. anyone else had same problems? + help would be appreciated ASAP as i cant do anything right now.

Samanthavv
Registered User
Posts: 36
Joined: Tue Mar 31, 2009 2:07 am
Location: Alaska
Contact:

Re: Karma MOD

Post by Samanthavv » Tue Mar 16, 2010 5:56 am

Does this work on 3.0.7-PL?
I am a BIRTH DOULA.
I use CLOTH DIAPERS.
My son is exclusively BREASTFED.
I have donated my MILK to 8 other babies in need.
I keep a BLOG at http://www.anotherteenmom.com

xersion
Registered User
Posts: 4
Joined: Thu Mar 11, 2010 5:47 am

Re: Karma MOD

Post by xersion » Wed Mar 17, 2010 2:04 am

i'm using auto mod.. got this error. pls advice using lastest phpbb version

Unexpected header, ending loop

Screagle
Registered User
Posts: 10
Joined: Sat Feb 27, 2010 4:38 pm

Re: Karma MOD

Post by Screagle » Thu Mar 18, 2010 8:41 pm

I'm using karma 1.4.0 and phpbb 3.0.7 pl1 ! It works perfectly !

For your information, i didn't use the automod !
Try without it if you get some problems !

Muazam
Registered User
Posts: 33
Joined: Tue Apr 12, 2005 4:38 pm
Contact:

Re: Karma MOD

Post by Muazam » Fri Mar 19, 2010 1:18 am

Code: Select all

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\forum5\install_karma\index.php on line 735

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\forum5\install_karma\index.php on line 809

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\forum5\install_karma\index.php on line 845
and it says:
Sorry, but only users with administrator privileges can install or update the Karma MOD
It logged me out, I've tried several times. Anyone know how to fix it? or what causes this?

Mod Version 1.4.0
Phpbb 3.0.7-PL1

Samanthavv
Registered User
Posts: 36
Joined: Tue Mar 31, 2009 2:07 am
Location: Alaska
Contact:

Re: Karma MOD

Post by Samanthavv » Fri Mar 19, 2010 5:18 am

Screagle wrote:I'm using karma 1.4.0 and phpbb 3.0.7 pl1 ! It works perfectly !

For your information, i didn't use the automod !
Try without it if you get some problems !
So you manually installed it on 3.0.7-PL and it worked fine? :)
I am a BIRTH DOULA.
I use CLOTH DIAPERS.
My son is exclusively BREASTFED.
I have donated my MILK to 8 other babies in need.
I keep a BLOG at http://www.anotherteenmom.com

moneff
Registered User
Posts: 5
Joined: Tue Mar 16, 2010 6:42 pm
Name: Simeon Tonev

Re: Karma MOD

Post by moneff » Fri Mar 19, 2010 5:59 pm

I have a problem after i put this mod... When i try to [Administrate user] it gives me this

Code: Select all

Parse error: syntax error, unexpected T_GLOBAL, expecting ')' in /var/www/****/*****/forum/includes/acp/acp_users.php on line 1493
How to fix it? on my 1493 line this is the code

From line 1931:

Code: Select all

						add_log('admin', 'LOG_ATTACHMENTS_DELETED', implode(', ', $log_attachments));
						trigger_error($message . adm_back_link($this->u_action . '&u=' . $user_id));
					}
					else
					{
						confirm_box(false, $user->lang['CONFIRM_OPERATION'], build_hidden_fields(array(
							'u'				=> $user_id,
							'i'				=> $id,
							'mode'			=> $mode,
							'action'		=> $action,
							'delmarked'		=> true,
							'mark'			=> $marked))
						);
					}
				}

				$sk_text = array('a' => $user->lang['SORT_FILENAME'], 'c' => $user->lang['SORT_EXTENSION'], 'd' => $user->lang['SORT_SIZE'], 'e' => $user->lang['SORT_DOWNLOADS'], 'f' => $user->lang['SORT_POST_TIME'], 'g' => $user->lang['SORT_TOPIC_TITLE']);
				$sk_sql = array('a' => 'a.real_filename', 'c' => 'a.extension', 'd' => 'a.filesize', 'e' => 'a.download_count', 'f' => 'a.filetime', 'g' => 't.topic_title');

				$sd_text = array('a' => $user->lang['ASCENDING'], 'd' => $user->lang['DESCENDING']);

to line 1952:

Can someone help me solve this problem?

Kukulis ;*
Registered User
Posts: 2
Joined: Sat Mar 13, 2010 11:23 am

Re: Karma MOD

Post by Kukulis ;* » Sun Mar 21, 2010 12:24 am

Hi ,. please help :) change viewtopic_body.html
location:

Code: Select all

		<!-- [+] Karma MOD -->
		<!-- IF postrow.S_KARMA_ENABLED -->
			<!-- IF postrow.U_KARMA_COMMENTS -->
				<dd><a href="{postrow.U_KARMA_COMMENTS}"><strong>{L_KARMA}:</strong> {postrow.KARMA}</a></dd>
			<!-- ELSE -->
				<dd><strong>{L_KARMA}:</strong> {postrow.KARMA}</dd>
			<!-- ENDIF -->
                        <!-- IF postrow.U_KARMA_INCREASE --> <a href="{postrow.U_KARMA_INCREASE}"><img src="{T_IMAGESET_PATH}/icon_karma_increase.gif" title="[+]" alt="[+]"</a><!-- ENDIF -->
		<!-- ENDIF -->
		<!-- [-] Karma MOD -->
Please change it would seem that
Karma: 0 Image

Thank you very much!
Sorry . me bad English language :?

Locked

Return to “[3.0.x] MOD Database Releases”