News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Karma Description Mod

Started by Grek.Kamchatka, September 11, 2005, 11:48:26 PM

Previous topic - Next topic

RoarinRow

Quote from: Grek_Kamchatka on October 29, 2006, 12:40:47 AM
New version of Karma Description Mod now available.
*I changed restrict karma function from User name to user ID, because of users can changed their realname so engine can't restrict karma action
*Added another one restrict karma function.

RoarinRow, you can upload viewkarma.template.php from new version of KDM 2.2. It's only bug fixes and nothing new in this file.

Cool, great Grek  8)   Thanks!

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Gobo

aahh the new version givin me too many errors

but ill update manually later
thanks

Grek.Kamchatka

Quote from: akulion on October 29, 2006, 08:13:04 PM
aahh the new version givin me too many errors

but ill update manually later
thanks
In package manager?

Gobo

yup nothing to worry about though...just the usual glitches between code edits by older versions vs other mods vs default code - if u get what i mean :)

install failure...will dig into the xml file when i have time

Grek.Kamchatka


Reynard

This is the only good karma mod there is out there. Works perfectly and has lots of options.

It would be great if you could have some reprocusions because of your karma. Such as people with certain karma points can enter a certain forum which the rest cannot; being able to have increased PM space; being able to change their forum title; etc. ALso for people with below 0 karma not to be able to give out karma; not to be able to post that much; etc.

With inclusions such as this or mabye even the shopping mod with karma points, then there would be nothing else to include.

Pedja

#486
Great mod. I could nt install before because install test failed on few script. The newest version went well.

There is option that I would like added: possibility for admins to cancel Karma point, when they realize that point is given without justified reason or with inproper description (bad language for instance).

Also it would be good to have an options to forbid setting karma for Admins, forum modes or board mods (in boards where they are mods).

Option to forbid user to set karma if he does not have some minimum karma. now we can limit setting carmba based on number of posts but it is not good criteria. It is better to allow user to set karma if he has some positive karma points (meaning that others treat him as positive member).





cassie

#487
Hello,
I uninstalled the 2 mods I have in order to apply the update to 1.09 and then reinstalled the karma description mod. But now when you try to change someone's karma, you get an error

Parse error: syntax error, unexpected '}' in /home/***/public_html/Sources/Karma.php on line 1302
When I uninstalled the mod to perform the update, I got a Failure notification on executing mod on     ./Sources/Karma.php. When I try to reapply the mod I get the same error.

****Okay...I saw this in the previous posts: After uninstalling the mod, i advice you upload new Karma.php couse package manager can't clean normaly this file

From where do I upload the new Karma.php? I'm sure this sounds stupid. I just don't know exactly what to do to fix this file. Can someone help dummy me fix this?

Thank you in advance.

cassie

Alright...this dummy fixed it.

Deleted Karma.php and uploaded new copy, etc.

:)

PopsicleStickChick

This mod is not working for us.  We get the same error mentioned above.  We uploaded a new copy of the karma.php file.  We get a karma log, but the description part never shows up, and the logs resets itself frequently.  Help would be appreciated!
www.grubesismyleader.com

An Internet forum dedicated to a former board operator at a Dallas sports talk radio station

Avinash4

Since this is SSI, is there any hopes of getting an output as a joomla module?
McMaster University's Largest Online Community
http://mac-central.com
Powered by SMF and Mambo

littleone

Below is the link to the description of the my problem.  I beleive its this mod that is causing it and its flooding my error log with 50 to 100 pages of errors PER PERSON whenever they do whatever to set it off.

http://www.simplemachines.org/community/index.php?topic=125498.0

Grek.Kamchatka

remove >>> and <<< from your line.

littleone

Well duh.  I added those so you would know what line its on.  Those arent in the actual code.  Give me a bit more credit and I did say that in my post that those werent in the code that I had just added them so you all would know what line was in question.

Piwaille

Hello

I've installed the KDM... but I ran into problems
* the uninstall feature doesn't work properly saying that karma.php can't be deleted (not important but should be easy to correct)
* When s/o change karma with user notification set, It run into troubles saying "Hacking attempt..." on file : karma.php , line = 511. If I (or s/o else) change the karma of s/o that didn't set "PM notification" it works all right.

* looking around line 511, I've seen one problem :
$modSettings['karma_pm_send_changelink'] ? $karma_pm_body = $karma_pm_body_with : $karma_pm_body_without;
if (!$modSettings['karma_pm_send_changelink']) $karma_pm_body = $karma_pm_body_without;

those 2 lines could be corrected be a single
$karma_pm_body = $modSettings['karma_pm_send_changelink'] ?$karma_pm_body_with : $karma_pm_body_without;

but I didn't manage to correct the "hacking attempt" :(

the last thing
* I'm really not sure the code is secure. I think it is a great risk of SQL injection...
You should use db_insert_id instead of db_query("INSERT INTO...
It is in subs.php script and it prevents those many nasty things.


Some improvement (for later) :
* ability to let anonymous karma changes (if admin accept)


I think I will remove that mod as it is too risky now  ::)
but next version should be nice ;) there is a great job done.
Piwaille
le chant du vario est motorisé par SMF 1.1.15

littleone

Grek.  I am still having a big problem.  Your last response for the fix what not even the problem.  Here is the current situation and I need a fix as soon as you can get one. It seems to be a major problem.

http://www.simplemachines.org/community/index.php?topic=125498.msg830751#msg830751

Thanks.


Grek.Kamchatka

Add "is_read" field in your database at smf_log_karma table with default value = 0.

littleone


Grek.Kamchatka

Here is a query
ALTER TABLE `{$db_prefix}log_karma`
ADD `is_read` INT NOT NULL

Don't set default value

creatures

Any news for supporting SMF V 1.1? (final)

I want to use this cool mod on SMF 1.1 also :)

Advertisement: