Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Grek.Kamchatka on September 11, 2005, 11:48:26 PM

Title: Karma Description Mod
Post by: Grek.Kamchatka on September 11, 2005, 11:48:26 PM
[Link to the mod](https://custom.simplemachines.org/index.php?mod=192)

[![Build Status](https://travis-ci.org/realdigger/SMF-Karma-Description.svg?branch=master)](https://travis-ci.org/realdigger/SMF-Karma-Description)
# SMF Karma Description mod [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=SMF%20Karma%20Description.%20This%20mod%20allow%20to%20see,%20for%20what%20users%20changed%20Karma%20to%20other%20users.&url=https://github.com/realdigger/SMF-Karma-Description&hashtags=smf,smf_karma_description_mod)
* **Author:** Grek.Kamchatka
* **License:** GPLv3
* **Compatible with:** SMF 2.0
* **Languages:** English, Russian, Spanish

## Installation  
Download and install latest release tar.gz file from [releases page](https://github.com/realdigger/SMF-Karma-Description/releases).

## Description
This mod allow to see, for what users changed Karma to other users.  
Worked perfectly since 2005...

### Features
![karma_description](https://user-images.githubusercontent.com/1187218/33131436-f883495e-cfaf-11e7-8ae1-66cc84a30bbb.jpg)

![karma_description_1](https://user-images.githubusercontent.com/1187218/33131437-f8a9d2e0-cfaf-11e7-8679-9d1230ea846f.jpg)

![karma_description_3](https://user-images.githubusercontent.com/1187218/33131438-f8ce4558-cfaf-11e7-8c60-7e8ba357465a.jpg)
## Установка    
Загрузите и установите файл tar.gz актуальной версии со [страницы загрузок](https://github.com/realdigger/SMF-Karma-Description/releases).

## Описание
Позволяет вводить причину изменения кармы и предоставляет возможность просмотра логов изменений.
Title: Re: Karma Description Mod
Post by: revgreed on September 12, 2005, 03:33:31 AM
Hi there,

I installed this mod early this morning.   Nice, clean, quick installation.  No errors.  I tested it and it works perfectly for me.  Great job and thank you.
Title: Re: Karma Description Mod
Post by: trenchteam on September 12, 2005, 04:37:46 AM
Can i see a working demo of this?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 12, 2005, 06:12:35 AM
Revgreed, can i put a link to your forum? ;-)
http://www.sinning.org/forum/
Here you can see Karma Description Mod in work.
Near the Stats label, there is a [Karma Stat] link. Use it. =)
Title: Re: Karma Description Mod
Post by: Kindred on September 12, 2005, 07:15:59 AM
hmmm... no offense, but this looks to do very similar things as my KarmaLog mod (with the improvements that I have been working on, but not released yet...)

Title: Re: Karma Description Mod
Post by: russ on September 12, 2005, 05:17:15 PM
IS it compatible with 1.0.5? just curious

congrats on a great looking mod :)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 12, 2005, 07:45:08 PM
Kindred, I long ago worked on this mod, was got so you has released its earlier, but I have only finished)

Russ, sorry, but no =(
Title: Re: Karma Description Mod
Post by: trenchteam on September 13, 2005, 01:57:21 AM
Thanks! This is great! LMAO!
Title: Re: Karma Description Mod
Post by: ANARCH¥ on September 13, 2005, 12:34:39 PM
1. Execute Modification ./Sources/Admin.php Success
2. Execute Modification ./Sources/Karma.php Failure
3. Execute Modification ./Sources/ModSettings.php Success
4. Execute Modification ./Themes/default/Admin.template.php Success
5. Execute Modification ./Themes/default/BoardIndex.template.php Success
6. Execute Modification ./Themes/default/languages/Admin.english.php Success
7. Execute Modification ./Themes/default/languages/ModSettings.english.php Success
8. Execute Modification ./Themes/default/languages/Who.english.php Success
9. Execute Modification ./Themes/default/languages/index.english.php Failure
10. Execute Modification ./index.php Success
11. Execute Code db_change.php 
12. Extract File ./Sources/Viewkarma.php 
13. Extract File ./Themes/default/Viewkarma.template.php 
14. Extract File ./Themes/default/DescriptionKarma.template.php


what can i do ?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 13, 2005, 07:52:56 PM
First. Have you any other installed mod on your forum?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 13, 2005, 08:45:48 PM
I understand... you use SMF 1.0.5 but this mod package work with 1.1 beta 3
Title: Re: Karma Description Mod
Post by: ANARCH¥ on September 13, 2005, 08:59:10 PM
k, thx a lot for your answer.
Title: Re: Karma Description Mod
Post by: Repsol AL on September 13, 2005, 09:51:34 PM
thru package manager, in downloaded it, installed it
it said  success
but it does not appear in my forum
how can i manually install it ???
how do i get it to do the modification ?
Title: Re: Karma Description Mod
Post by: revgreed on September 13, 2005, 10:12:00 PM
Quote from: Repsol AL on September 13, 2005, 09:51:34 PM
thru package manager, in downloaded it, installed it
it said  success
but it does not appear in my forum
how can i manually install it ???
how do i get it to do the modification ?

Hi,

Did you enable it?

Admin > Features and Options > Karma > Enable Karma Description Mod
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 13, 2005, 11:48:27 PM
Thq revgreed =)
Title: Re: Karma Description Mod
Post by: Repsol AL on September 14, 2005, 08:04:33 AM
not there, just the basic enable +/-

message says its installd but whn i view installed mods
it says none are installed
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 14, 2005, 06:56:15 PM
http://www.pkforum.ru/index.php?action=dlattach;topic=6046.0;id=14624

Chek the "Enable Karma Description Mod"
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 14, 2005, 07:07:26 PM
Quote from: Repsol AL on September 14, 2005, 08:04:33 AM
not there, just the basic enable +/-
Realy? Are you shore you install this mod? If there always was "Test Successful"?

Quote
message says its installd but whn i view installed mods
it says none are installed
I think, you must install it again. If you'll see "Test failed" it's mean you install it twise, don't apply. If you'll see "Test Successful" everything ok, install it again and don't be afraid if you'll see "Database error" It's mean that field "Description" is present in log_karma table. It's ok...
Title: Re: Karma Description Mod
Post by: Repsol AL on September 14, 2005, 09:13:41 PM
I get
Type Action Description
1. Extract File ./Themes/default/Karma.template.php 
2. Execute Modification index.php Success
3. Execute Modification ./Sources/Karma.php Success
4. Execute Modification ./Sources/Admin.php Success
5. Execute Modification ./Sources/Subs.php Success
6. Execute Modification ./Themes/default/languages/Modifications.english.php Success
7. Execute Code KarmaLog.php

there is no "test"
nothing to enable it
it just never gets installed
how can i execute the XML files to do the modifications
from ftp software ?


Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 15, 2005, 12:43:24 AM
It's not my mod...
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 15, 2005, 11:35:28 PM
Now available new version of Karma_Description_Mod_ver.1.1. It compatible with SMF 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1 Beta 3 Public.
Title: Re: Karma Description Mod
Post by: SeaOfSin on September 17, 2005, 05:56:06 AM
Great mod, but I was wondering, how hard would it be to make it so that when a user goes into the karma stats all they see are the ones for them and the ones by them, in other words the ones with their id under ID_EXECUTOR and ID_TARGET.
Title: Re: Karma Description Mod
Post by: frostwhite on September 17, 2005, 06:30:34 AM
This Mod is really great! Installed it - works fine ;)

But I think the reason field shouldn't be required. No reason -> no entry in the Log.

Thanks :)
Title: Re: Karma Description Mod
Post by: !Hachi! on September 17, 2005, 11:18:04 PM
how we can view "Karma Change Description"   because i didn't saw any link to that page?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 17, 2005, 11:47:13 PM
In Admin panel->Features and Options-> check "Enable Karma Description Mod"
Then on main page you will see [Karma Stat] label near the [More Stats]

http://yourdomain/forum/index.php?action=viewkarma
Title: Re: Karma Description Mod
Post by: thinkbig on September 19, 2005, 01:13:07 PM
great mod! thanks! it's working fine on my 1.0.5

I'm thinking, is there any way to make it such that only admins or mods can view the log?
is there any way we can take away the link [Karma Stat] from the main page?
What php file should I pull out and edit?

Thank you!
Title: Re: Karma Description Mod
Post by: Dem0n on September 19, 2005, 01:39:35 PM
^ thats a good idea.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 20, 2005, 03:51:23 AM
If you want to remove [Karma Stat] label from main page, just open BoardIndex.template.php, find this code:
';
//If Karma Description Mod Enable then give me please link on viewkarma action
if (!empty($modSettings['karmadescmod'])){echo'   <a href="'.$scripturl.'?action=viewkarma">' . $txt['statkarma'].'</a>',' ';} echo'
and replace it.

And if you want to disable this option for users, but enable it for admin and moderators, just open Viewkarma.php and add after global $db_prefix, $context, $scripturl, $modSettings, $txt; and before loadTemplate('Viewkarma'); this code:

//You can't view karmalog if you are !mod
if (!allowedTo('moderate_forum'))
fatal_lang_error('smf63', false);

Do U understand my English? =))
Title: Re: Karma Description Mod
Post by: L0relei on September 20, 2005, 08:04:08 AM
It does'nt work if there is a waiting time. It works only the first time a user modifies the karma of another one after installation. After that, there's always an error about the waiting time between two votes, even if the time is over. So I have to clear the log...


I think that I 've found the reason but I don't know how to solve that :

The mod deletes this part of the code of Karma.php :
// Delete any older items from the log. (karmaWaitTime is by hour.)
db_query("
DELETE FROM {$db_prefix}log_karma
WHERE " . time() . " - logTime > " . (int) ($modSettings['karmaWaitTime'] * 3600), __FILE__, __LINE__);


That's why this code is never executed because the condition is never true if there is a waiting time :
{ if ( empty($action) || empty($modSettings['karmaWaitTime']))
        { $_POST['Description'] = AddSlashes($_POST['Description']);
                // Put it in the log.
                db_query("
                        INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$_POST[Description]', $ID_MEMBER, ". time()." )
                        ", __FILE__, __LINE__);
// Change by one.
updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karmaGood' : 'karmaBad' => '+'));
}



Do you have any solution please ?


PS : Sorry for my English, I'm French
Title: Re: Karma Description Mod
Post by: Kindred on September 20, 2005, 08:08:10 AM
my solution in the karma=log mod (for admins only) was to make a second table in the database to handle the karam logging....
Title: Re: Karma Description Mod
Post by: wickedtaz on September 20, 2005, 12:25:56 PM
This in my opinion, has to be one of the best Mods to date.

I am getting an overwhelming amount of compliments.

I have had a lot of ratings abuse in my forum, and this was
definitely the answer.

I am though getting requests to have sort options. I will
look into coding this, but I just thought I would let you know.

BTW I have a busy board with over 40,000 members, and
runs seamlessly.

THANK YOU!

Title: Re: Karma Description Mod
Post by: discojo on September 20, 2005, 12:32:27 PM
Invaluable mod for my board....however, the option to sort is also invaluable. I really hope I see a fix for that soon!
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 20, 2005, 09:00:55 PM
I try to fix all bugs, and add a sort function in next version.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 23, 2005, 07:54:44 PM
Do you need a link to the profile on users name?
Title: Re: Karma Description Mod
Post by: discojo on September 23, 2005, 09:04:18 PM
I think that would be great! Thank you for working on it - I don't know what I'd do without all the nice people who share mods for us coding-challanged.  :D
Title: Re: Karma Description Mod
Post by: anniewayz on September 24, 2005, 08:36:00 PM
doesn't support rc 1 yet eh?

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Karma Description Mod
Post by: PopLife on September 24, 2005, 11:33:50 PM
Are there any plans to make only the Karma descriptions received viewable to the user (and admins and mods)?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 25, 2005, 08:21:06 AM
I made a new version of this mod. It will be compatible with 1.1 RC1. I'm adding a sort option. If you want, you can use a user names as a link to their profile. And i think i can do a choise of who can see a log, only admin and mod's or admin, mod's and users.
Title: Re: Karma Description Mod
Post by: PopLife on September 25, 2005, 08:28:33 AM
I was trying to ask (please excuse my not-making-senseness) if you will make users only be able to see their own Karma messages, not every other user's.
Title: Re: Karma Description Mod
Post by: anniewayz on September 25, 2005, 10:37:40 AM
Can't wait ^_^
Title: Re: Karma Description Mod
Post by: rsarwar on September 28, 2005, 01:25:50 PM
I have installed this mod perfectly with no problems and enabled it. However when I go to the main page it doesnt show me [karma stat] .. I am using Bloc's theme Black22 (http://www.o-yaar.com/covers) and it wont show. If I switch to SMF Default it shows up. Can anyone please tell me what coding needs to be copied from the Default template over to the black22 theme?

BTW Excellent Mod cant wait to get it working! :D
Title: Re: Karma Description Mod
Post by: rsarwar on September 28, 2005, 01:37:45 PM
If I change the below:


        <install>
                <readme type="inline">Karma Description Mod (ver. 1.1)
Tested with SMF 1.1 Beta 3 Public and now with SMF 1.0.5

Use it at your own risk. Don't forget to BACKUP!!!</readme>
                <modification>Karma_Description_Mod.xml</modification>
              <code>db_change.php</code>
                <require-file name="Viewkarma.php" destination="$sourcedir" />
                <require-file name="Viewkarma.template.php" destination="$boarddir/Themes/default" />
                <require-file name="DescriptionKarma.template.php" destination="$boarddir/Themes/default" />
        </install>


To this .. would it install it for the Black22 theme?:


        <install>
                <readme type="inline">Karma Description Mod (ver. 1.1)
Tested with SMF 1.1 Beta 3 Public and now with SMF 1.0.5

Use it at your own risk. Don't forget to BACKUP!!!</readme>
                <modification>Karma_Description_Mod.xml</modification>
              <code>db_change.php</code>
                <require-file name="Viewkarma.php" destination="$sourcedir" />
                <require-file name="Viewkarma.template.php" destination="$boarddir/Themes/black22" />
                <require-file name="DescriptionKarma.template.php" destination="$boarddir/Themes/black22" />
        </install>


I have the changed the desitination to point to the Black22 theme ..
Title: Re: Karma Description Mod
Post by: m00h on September 29, 2005, 10:53:55 AM
great job! thanks for the new release!

my users only want to write an opinion if the karma is neg., so could you modify this feature? ;)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 29, 2005, 07:52:41 PM
Hi m00h. If you want your users write only negative Karma Description, you must do next:
First, BackUp your Karma.php
Second, open Karma.php and find code:

//Loading Template of Description
if (!empty($modSettings['karmadescmod'])){
        loadTemplate('DescriptionKarma');}

Replace it with this code:

//Loading Template of Description
if (!empty($modSettings['karmadescmod']) && ($_REQUEST['sa'] == "smite"))
        loadTemplate('DescriptionKarma');


Then, find this:

if (!empty($modSettings['karmadescmod'])){
if (!array_key_exists('Description',$_POST) || strlen($_POST["Description"]) == 0){return;}}

And replace with this:

if (!empty($modSettings['karmadescmod']) && ($_REQUEST['sa'] == "smite")){
if (!array_key_exists('Description',$_POST) || strlen($_POST["Description"]) == 0){return;}}

if (!empty($modSettings['karmadescmod']) && ($_REQUEST['sa'] == "applaud"))
$_POST['Description'] = "applaud";


And last, find this code:

{ if ( empty($action) || empty($modSettings['karmaWaitTime']))
        { $_POST['Description'] = AddSlashes($_POST['Description']);
                // Put it in the log.

Replace with:

{ if ( empty($action) || empty($modSettings['karmaWaitTime']))
        { if (empty($modSettings['karmadescmod'])) $_POST['Description'] = "Mod was disable";
                // Put it in the log.


That's all, enjoy =)

Woops, sorry, just remember=) if you want your users look ONLY negative karma in Karma log, you must do next...
First, BackUp your Viewkarma.php
Second, open Viewkarma.php and find this code in function Viewkarma():

$request = db_query("
SELECT COUNT(action)
FROM {$db_prefix}log_karma
", __FILE__, __LINE__);

Replace it with this:

$request = db_query("
SELECT COUNT(action)
FROM {$db_prefix}log_karma
WHERE action = -1
", __FILE__, __LINE__);


Then, find:

$result = db_query("
                             SELECT lk.ID_TARGET, lk.ID_EXECUTOR, lk.logTime, lk.action, lk.Description, memt.realName AS targetName, meme.realName AS executorName
                             FROM {$db_prefix}log_karma AS lk, {$db_prefix}members AS memt, {$db_prefix}members AS meme                             
                             WHERE memt.ID_MEMBER = lk.ID_TARGET
                             AND meme.ID_MEMBER = lk.ID_EXECUTOR
                             ORDER BY $_REQUEST[sort] " . (isset($_REQUEST['asc']) ? 'ASC' : 'DESC') . "
                             LIMIT $context[start], $modSettings[karmamaxmembers]", __FILE__, __LINE__);

And replace it with:

$result = db_query("
                             SELECT lk.ID_TARGET, lk.ID_EXECUTOR, lk.logTime, lk.action, lk.Description, memt.realName AS targetName, meme.realName AS executorName
                             FROM {$db_prefix}log_karma AS lk, {$db_prefix}members AS memt, {$db_prefix}members AS meme                             
                             WHERE memt.ID_MEMBER = lk.ID_TARGET
                             AND meme.ID_MEMBER = lk.ID_EXECUTOR
                             AND lk.action = -1
                             ORDER BY $_REQUEST[sort] " . (isset($_REQUEST['asc']) ? 'ASC' : 'DESC') . "
                             LIMIT $context[start], $modSettings[karmamaxmembers]", __FILE__, __LINE__);
                                                 

And last...if you want your users can see only negative karma in their profiles (I mean own karma), you must do next:
In Viewkarma.php function OwnKarma() find:


$request = db_query("
SELECT COUNT(action)
FROM {$db_prefix}log_karma
WHERE ID_TARGET=".$_REQUEST['u']."
", __FILE__, __LINE__);

Replace with:

$request = db_query("
SELECT COUNT(action)
FROM {$db_prefix}log_karma
WHERE ID_TARGET=".$_REQUEST['u']."
AND action = -1
", __FILE__, __LINE__);


Then:

$result = db_query("
                             SELECT lk.ID_TARGET, lk.ID_EXECUTOR, lk.logTime, lk.action, lk.Description, memt.realName AS targetName, meme.realName AS executorName
                             FROM {$db_prefix}log_karma AS lk, {$db_prefix}members AS memt, {$db_prefix}members AS meme                             
                             WHERE memt.ID_MEMBER = lk.ID_TARGET
                             AND meme.ID_MEMBER = lk.ID_EXECUTOR
                             AND lk.ID_TARGET = ".$_REQUEST['u']."
                             ORDER BY $_REQUEST[sort] " . (isset($_REQUEST['asc']) ? 'ASC' : 'DESC') . "
                             LIMIT $context[start], $modSettings[karmamaxmembers]", __FILE__, __LINE__);

Replace with

$result = db_query("
                             SELECT lk.ID_TARGET, lk.ID_EXECUTOR, lk.logTime, lk.action, lk.Description, memt.realName AS targetName, meme.realName AS executorName
                             FROM {$db_prefix}log_karma AS lk, {$db_prefix}members AS memt, {$db_prefix}members AS meme                             
                             WHERE memt.ID_MEMBER = lk.ID_TARGET
                             AND meme.ID_MEMBER = lk.ID_EXECUTOR
                             AND lk.ID_TARGET = ".$_REQUEST['u']."
                             AND lk.action = -1
                             ORDER BY $_REQUEST[sort] " . (isset($_REQUEST['asc']) ? 'ASC' : 'DESC') . "
                             LIMIT $context[start], $modSettings[karmamaxmembers]", __FILE__, __LINE__);
                                                                                  

And in the function OtherKarma()
Find:

$request = db_query("
SELECT COUNT(action)
FROM {$db_prefix}log_karma
WHERE ID_EXECUTOR=".$_REQUEST['u']."
", __FILE__, __LINE__);

And replace with:

$request = db_query("
SELECT COUNT(action)
FROM {$db_prefix}log_karma
WHERE ID_EXECUTOR=".$_REQUEST['u']."
AND action = -1
", __FILE__, __LINE__);

Then find:

$result = db_query("
                             SELECT lk.ID_TARGET, lk.ID_EXECUTOR, lk.logTime, lk.action, lk.Description, memt.realName AS targetName, meme.realName AS executorName
                             FROM {$db_prefix}log_karma AS lk, {$db_prefix}members AS memt, {$db_prefix}members AS meme                             
                             WHERE memt.ID_MEMBER = lk.ID_TARGET
                             AND meme.ID_MEMBER = lk.ID_EXECUTOR
                             AND lk.ID_EXECUTOR = ".$_REQUEST['u']."
                             ORDER BY $_REQUEST[sort] " . (isset($_REQUEST['asc']) ? 'ASC' : 'DESC') . "
                             LIMIT $context[start], $modSettings[karmamaxmembers]", __FILE__, __LINE__);

And replace it with:

$result = db_query("
                             SELECT lk.ID_TARGET, lk.ID_EXECUTOR, lk.logTime, lk.action, lk.Description, memt.realName AS targetName, meme.realName AS executorName
                             FROM {$db_prefix}log_karma AS lk, {$db_prefix}members AS memt, {$db_prefix}members AS meme                             
                             WHERE memt.ID_MEMBER = lk.ID_TARGET
                             AND meme.ID_MEMBER = lk.ID_EXECUTOR
                             AND lk.ID_EXECUTOR = ".$_REQUEST['u']."
                             AND lk.action = -1
                             ORDER BY $_REQUEST[sort] " . (isset($_REQUEST['asc']) ? 'ASC' : 'DESC') . "
                             LIMIT $context[start], $modSettings[karmamaxmembers]", __FILE__, __LINE__);


Now that's all =)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 29, 2005, 07:57:53 PM
Look at new version(1.3) of my mod. It include all you wanted functions.
Title: Re: Karma Description Mod
Post by: m00h on September 30, 2005, 09:54:05 AM
Grek_Kamchatka, YOU'RE  G R E A T !!

Big thanks! :-* :-* :-*

Your newest release: Can I set the permissions, that the user can view only the own karma ( Who change my karma? + Whom I change karma? ) and not the whole list?
Title: Re: Karma Description Mod
Post by: rsarwar on September 30, 2005, 10:05:40 AM
What about my request to this working in another theme other than the default? :( :'( :(
Title: Re: Karma Description Mod
Post by: xenovanis on September 30, 2005, 01:27:05 PM
Quote from: rsarwar on September 30, 2005, 10:05:40 AM
What about my request to this working in another theme other than the default? :( :'( :(

How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 02, 2005, 05:56:42 AM
Sorry, but it is very easy...i think you'll made it yourself.
After installing the Karma Description Mod, open /Themes/black22/BoardIndex.template.php and find this code:

<a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '


After it, add this code:

';
if (!empty($modSettings['karmadescmod']))/*{echo'   <a href="'.$scripturl.'?action=viewkarma">' . $txt['statkarma'].'</a>',' ';}*/
{  if ($context['show_karmastat'])
                echo '
                        <a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
echo'


Then, open /Themes/black22/languages/index.english.php and add this code at the end of the file.

//Karma Description Mod
$txt['karmaview'] = 'The survey of a change in the reputation of users';
$txt['whykarmamod'] = 'Karma change';
$txt['Description'] = 'No Description';
$txt['karmamoder'] = 'Please, write here for what you change karma for this user';
$txt['karmarequare'] = '(Require field)';
$txt['karmawho'] = 'Who';
$txt['karmawhos'] = 'Whom';
$txt['karmawhat'] = 'What (+/-)';
$txt['karmadesc'] = 'For What';
$txt['karmatime'] = 'When';
$txt['karmanumb'] = 'Values: ';
$txt['statkarma'] = '[Karma Stat]';
$txt['viewkarma_title'] = 'Karmachange description';
$txt['karma_back'] = '< Back';
$txt['karma_continue'] = 'Continue >';
$txt['karmadescappl'] = ' (Applaud)';
$txt['karmadescsmi'] = ' (Smite)';


That's all. Easy, isn't it? =)
Anything else?
Title: Re: Karma Description Mod
Post by: m00h on October 02, 2005, 07:25:45 AM
QuoteAnything else?

Hmmm yep! ;D

QuoteYour newest release: Can I set the permissions, that the user can view only the own karma ( Who change my karma? + Whom I change karma? ) and not the whole list?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 02, 2005, 11:45:03 PM
I'll think about it. It's easy to.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 03, 2005, 01:19:43 AM
So, for you, m00h.

Do you want the separate rights? (View whole list right and view own&other right)
If not, you must do this.
In Sources/Profile.php find

// Set the profile layer to be displayed.
        $context['template_layers'][] = 'profile';


After it add this code:

$context['show_karmastat'] = allowedTo('karmalog_view') && empty($modsettings['karmapermiss']);


And then, in Profile.template.php
find:

// If karma enabled show the members karma.
        if ($modSettings['karmaMode'] == '1')
        {        echo '
                                <tr>
                                        <td>
                                                <b>', $modSettings['karmaLabel'], ' </b>
                                        </td><td>
                                                ', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '
                                        </td>
                                </tr>';
        if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmalinks']))
        {        echo'
                                <tr>
                                        <td><a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id']. '">'.$txt['who_change_my_karma'].'</a></td>
                                        <td><a href="'. $scripturl . '?action=otherkarma;u=' . $context['member']['id'] . '">'.$txt['whom_i_change_karma'].'</a></td>
                                </tr>'
                                ;}
         }
                               
        elseif ($modSettings['karmaMode'] == '2')
        {        echo '
                                <tr>
                                        <td>
                                                <b>', $modSettings['karmaLabel'], ' </b>
                                        </td><td>
                                                +', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '
                                        </td>
                                </tr>';
        if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmalinks']))
        {        echo'
                                <tr>
                                        <td><a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '">'.$txt['who_change_my_karma'].'</a></td>
                                        <td><a href="'. $scripturl . '?action=otherkarma;u=' . $context['member']['id'] . '">'.$txt['whom_i_change_karma'].'</a></td>
                                </tr>
                                '
                                ;}
        }
        echo '
                                <tr>
                                        <td><b>', $txt[233], ': </b></td>
                                        <td>', $context['member']['registered'], '</td>
                                </tr><tr>
                                        <td><b>', $txt['lastLoggedIn'], ': </b></td>
                                        <td>', $context['member']['last_login'], '</td>
                                </tr>';

        // If the person looking at the summary is an admin the the account isn't activated, give the admin the ability to do it themselves.
        if ($user_info['is_admin'] && !$context['member']['is_activated'])
                echo '
                                <tr>
                                        <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
                                </tr><tr>
                                        <td colspan="2">
                                                <span style="color: red;">' . $txt['account_not_activated'] . '</span>&nbsp;(<a href="' . $scripturl . '?action=profile2;sa=activateAccount;userID=' . $context['member']['id'] . ';sesc=' . $context['session_id'] . '">' . $txt['account_activate'] . '</a>)
                                        </td>
                                </tr>';

        // Messenger type information.


And replace it with this code:

// If karma enabled show the members karma.
        if ($modSettings['karmaMode'] == '1')
        {        echo '
                                <tr>
                                        <td>
                                                <b>', $modSettings['karmaLabel'], ' </b>
                                        </td><td>
                                                ', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '
                                        </td>
                                </tr>';
        if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmalinks']))
        {   if ($context['show_karmastat'])     echo'
                                <tr>
                                        <td><a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id']. '">'.$txt['who_change_my_karma'].'</a></td>
                                        <td><a href="'. $scripturl . '?action=otherkarma;u=' . $context['member']['id'] . '">'.$txt['whom_i_change_karma'].'</a></td>
                                </tr>'
                                ;}
         }
                               
        elseif ($modSettings['karmaMode'] == '2')
        {        echo '
                                <tr>
                                        <td>
                                                <b>', $modSettings['karmaLabel'], ' </b>
                                        </td><td>
                                                +', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '
                                        </td>
                                </tr>';
        if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmalinks']))
        {   if ($context['show_karmastat'])     echo'
                                <tr>
                                        <td><a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '">'.$txt['who_change_my_karma'].'</a></td>
                                        <td><a href="'. $scripturl . '?action=otherkarma;u=' . $context['member']['id'] . '">'.$txt['whom_i_change_karma'].'</a></td>
                                </tr>
                                '
                                ;}
        }
        echo '
                                <tr>
                                        <td><b>', $txt[233], ': </b></td>
                                        <td>', $context['member']['registered'], '</td>
                                </tr><tr>
                                        <td><b>', $txt['lastLoggedIn'], ': </b></td>
                                        <td>', $context['member']['last_login'], '</td>
                                </tr>';

        // If the person looking at the summary is an admin the the account isn't activated, give the admin the ability to do it themselves.
        if ($user_info['is_admin'] && !$context['member']['is_activated'])
                echo '
                                <tr>
                                        <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
                                </tr><tr>
                                        <td colspan="2">
                                                <span style="color: red;">' . $txt['account_not_activated'] . '</span>&nbsp;(<a href="' . $scripturl . '?action=profile2;sa=activateAccount;userID=' . $context['member']['id'] . ';sesc=' . $context['session_id'] . '">' . $txt['account_activate'] . '</a>)
                                        </td>
                                </tr>';

        // Messenger type information.


In KDM ver.1.4 it fixed.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 03, 2005, 11:47:33 PM
New version 1.5
Now you can display users karma in Karma log opposit the usernames.
Title: Re: Karma Description Mod
Post by: m00h on October 05, 2005, 02:03:32 PM
And new version 1.6

You are unbelieveable!
Title: Re: Karma Description Mod
Post by: m00h on October 07, 2005, 01:18:41 PM
Could you make this http://www.simplemachines.org/community/index.php?topic=49088.msg363510#msg363510 to a default function? Otherwise I have to change the code every time :(

And what about a german Translation? :)

Big Thanks for this mod!!!
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 07, 2005, 08:45:50 PM
Quote from: m00h on October 07, 2005, 01:18:41 PM
Could you make this http://www.simplemachines.org/community/index.php?topic=49088.msg363510#msg363510 to a default function? Otherwise I have to change the code every time :(
I'll think about it.

Quote from: m00h on October 07, 2005, 01:18:41 PM
And what about a german Translation? :)
I don't know german language) But, if you need it, you can use a translator))
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 07, 2005, 09:43:26 PM
In new version of the mod, you can remove any log messages. (Only for admin)
See screenshot:
http://www.pkforum.ru/index.php?action=dlattach;topic=6046.0;id=15723
Title: Re: Karma Description Mod
Post by: Gwion on October 09, 2005, 10:04:55 AM
I couldn't get this to work.
My board is SMF 1.0.5

I installed via package manager, all fine.
I switched to SMF default template to see the mod.
Nothing. No new stats link etc.
The only difference which might be due to the mod was that it tells me I have to wait 1 hour before I can applaud/smite an user again. This might be forum default however, I have not tried it out before.

So, my questions are:
1. Is there anything else to do apart from running the package manager? Would I have to log in/out before I can see changes? Reload pages?
Not that I have not tried this already ..

2. In case the mod would work - I am using a different theme than default. Would I have to change all the files in my theme by hand?
I am not that keen on doing so especially since the mod seems not to be working for me.

Would it be possible to rename my theme to "default"? If so, would this make changing template files by hand for future mods still necessary?





Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 09, 2005, 11:13:45 PM
You must enable it in Admin Panel -> Edit Features and Options -> Karma -> Enable Karma Description Mod

Version 1.7 now available.
Title: Re: Karma Description Mod
Post by: Gwion on October 10, 2005, 08:23:38 AM
Ah! Thank you ..

Seems to be ok now but if you click on applaud/smite you get this:

Parse error: parse error, unexpected '}' in /home/XXX/public_html/board/Sources/Karma.php on line 246

As mentioned in another post - how to I find this bit?
In notepad you have no lines, Word counts them only per page ..

And even if I find that line, do I just remove the } ?
I have just installed the mod and enabled it, so is that a mod bug or have I made a mistake?

I guess my webhost's system might cause a problem but of course I would like to learn why this happened and how to prevent it in future.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 10, 2005, 05:56:28 PM
I think you installed this mod twise. You must open Karma.php and remove two closed brackets before ?>
Title: Re: Karma Description Mod
Post by: SOTG Marine on October 11, 2005, 12:51:57 AM
^^^ I had the same problem, you should have two close brackets at the end, delete any extras.

My question is, everything seems to work fine, except I have NO KARMA LOG.

lol

It prompts me for a reason, it puts the karma on, but I have no log link in the admin section... what's the "action" code for the karmalog? I can't find the log anywhere... that, and I don't get the other little goodies added on to my main forum stats, like where it says "karma stats"

I'm using the helios multi premod theme... is that the problem maybe?
Title: Re: Karma Description Mod
Post by: SOTG Marine on October 11, 2005, 12:54:17 AM
I found it... it's called viewkarma  but I have no link... any guess on why it's not visible in my theme?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 11, 2005, 01:45:21 AM
Because my mod edit this file /Themes/default/BoardIndex.template.php
You must open your /Themes/Helios multi premod/BoardIndex.template.php and find this code:

</td>
<td width="32%" class="smalltext" valign="top">

And add this code before:

';
if (!empty($modSettings['karmadescmod']))
{  if ($context['show_karmastat'])
                echo '
                        <a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
echo'
Title: Re: Karma Description Mod
Post by: steve in houston on October 12, 2005, 02:13:49 AM
excellent mod.

thanks  ;D
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 12, 2005, 03:04:21 AM
Thank YOU =)
Title: Re: Karma Description Mod
Post by: houston on October 12, 2005, 03:25:31 PM
Do you need to uninstall the previous version before installing the newest version?

Thanks
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 12, 2005, 08:54:15 PM
Yes, uninstall previous version and install new. If you'll recieve an error in karma.php open Sources/Karma.php and delete 2 close brackets at the end of the file.
Title: Re: Karma Description Mod
Post by: houston on October 12, 2005, 08:55:09 PM
Quote from: Grek_Kamchatka on October 12, 2005, 08:54:15 PM
Yes, uninstall previous version and install new. If you'll recieve an error in karma.php open Sources/Karma.php and delete 2 close brackets at the end of the file.

Thank you.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 12, 2005, 09:12:17 PM
You are welcome =)
Title: Re: Karma Description Mod
Post by: finnhack on October 13, 2005, 04:47:38 PM
Hi! Thanks for this nice mod!

I have been using my own simple karmalog since the beginning of smf, but your mod really covers all the features my users have asked for so they are very happy.

Just wondering about some issues... from time to time I get this error in the database:

Quote
8: Undefined variable: link
File: /home/xxx/Sources/Karma.php
Line: 171

And line 171 in Karma.php is for me the row starting with VALUES:

   // You decided to go back on your previous choice?
                db_query("
                        INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, ". time()." )", __FILE__, __LINE__);


Does any one else get this? I haven't really been able to sort out what causes this error, it probably has something to do with $link being empty, because it turns up with no linkdata in the karmalog, but why it is empty is just a mystery.

The other thing is that users no longer have the possibility to change opinion, if they have applauded (+) someone, they can't change it to smite (-) before the restricttime has passed.

Best regards,
finnhack
Title: Re: Karma Description Mod
Post by: SirGotxi on October 14, 2005, 12:29:02 PM
Hi,

first of all congratulations for this great mod.

I'm doing this mod in spanish. If the owner wants, I can send him the mod in both languages, english and spanish.

I've a question.

When you go to Forum Maintenance - General Maintenance and click in "Empty out unimportant logs.", all the karma's descriptions are deleted. Please try to make a solution for this.

Thanks
Title: Re: Karma Description Mod
Post by: Gwion on October 14, 2005, 01:39:50 PM
You were of course right. After running it in a proper php editor and finding the lines, removing the brackets, it works fine.

I have just one more question.
It says "who change my karma" etc. I want to change this text but I can't find the file where it is set.
I checked "list files" and read through this thread but I couldn't spot it.
I am sure I read it somewhere ..

Ok, I found the part in themes/default/languages/Profile.english.php.
Problem solved. :)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 16, 2005, 01:26:42 AM
Quote from: SirGotxi on October 14, 2005, 12:29:02 PM
I've a question.

When you go to Forum Maintenance - General Maintenance and click in "Empty out unimportant logs.", all the karma's descriptions are deleted. Please try to make a solution for this.

Thanks
Whoops, sorry. I think it worked fine.  I forget to remove this string from the Admin.php, but added another function in maintenance (Empty out Karmachange Description log) =))
Thank you, it will be fixed in Karma_Description_Mod_ver.1.8
By the way, in new version you'll see other Karma Statistic, 4example: Top 5 MAX applauded and smited users, User MAX applauding other users, User MAX smiting other users,
Today karma points, Today "+" and Today "-". May be anything else?
Title: Re: Karma Description Mod
Post by: SirGotxi on October 16, 2005, 06:48:41 AM
Quote from: Grek_Kamchatka on October 16, 2005, 01:26:42 AM
Quote from: SirGotxi on October 14, 2005, 12:29:02 PM
I've a question.

When you go to Forum Maintenance - General Maintenance and click in "Empty out unimportant logs.", all the karma's descriptions are deleted. Please try to make a solution for this.

Thanks
Whoops, sorry. I think it worked fine.  I forget to remove this string from the Admin.php, but added another function in maintenance (Empty out Karmachange Description log) =))
Thank you, it will be fixed in Karma_Description_Mod_ver.1.8
By the way, in new version you'll see other Karma Statistic, 4example: Top 5 MAX applauded and smited users, User MAX applauding other users, User MAX smiting other users,
Today karma points, Today "+" and Today "-". May be anything else?

Oh thanks,

I can colaborate doing an spanish translation of the mod.

Also, if you want, you can make one more modification. I think you've to activate 1 option for admins:

- If Admin wants, only you can vote one person 1 time. Not posible send 2 votes to the same user.

Also I think there are some bugs:

- You can not modigy the text of the votes. I think people send votes hast to be the possibility to change the description of the vote.

- If you go to Karma Stats and try to delete 1 vote as a admin, you can only delete de registry, but the user has the vote. For instance. If I vote to John, john has +1 in Karma. But admin goes to Karma stats and delete the vote, this is cleaned but not erased, and john has 1 vote without description.

Hope you can solve this

Thanks and congratulations for this great mod ^^
Title: Re: Karma Description Mod
Post by: Gwion on October 17, 2005, 04:04:32 AM
Ok, one more thing.
I guess there should be Karma stats somewhere but I do not have them.
I looked in "more stats" (at least this is what my theme calls it) but there is nothing about Karma.
Should it be a public stat or can that only be seen by an admin? *confused*

And if there should be something in stats is it not there because of the different theme?
I can live without stats but it would be nice to have them.

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 17, 2005, 07:38:26 PM
Hi, Gwion, it will be in new version....soon =)
Title: Re: Karma Description Mod
Post by: JustJa on October 18, 2005, 04:23:15 PM
Fantastic!
I just don´t want normal users to know who changed their Karma...
How can I do that?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 18, 2005, 08:04:03 PM
Hi, Brasileira, just edit their permissions =)
By default, only admin can view log.
Title: Re: Karma Description Mod
Post by: JustJa on October 19, 2005, 04:49:04 AM
 I want them to see the reason why they got + or - ....
but not who chanegd the karma  ::)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 19, 2005, 09:09:32 PM
Gwion, you said about it?
http://www.pkforum.ru/index.php?action=dlattach;topic=6046.0;id=16359
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 19, 2005, 10:28:35 PM
New version now available. (Karma_Description_Mod_ver.1.8)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 19, 2005, 10:46:14 PM
Quote from: Brasileira on October 19, 2005, 04:49:04 AM
I want them to see the reason why they got + or - ....
but not who chanegd the karma  ::)
The most light variant is find in Viewkarma.template.php this code:

elseif (!empty($modSettings['karmalogview']))
{
        echo '
                        <tr class="windowbg">
                                <td width="14%" align="center"><a href="'. $scripturl . '?action=profile;u=' . $member['id_exec'] . '" title="' . $txt[92] . ' ' . $member['executor'] . '">' . $member['executor'] . '</a>';
                                if (!empty($modSettings['karmakarma']))
                                                echo' <span class="smalltext">(+',$member['executorkarmagood'],'/-',$member['executorkarmabad'],')</span>';
        echo '</td>

And replace it with this code:

elseif (!empty($modSettings['karmalogview']))
{
        echo '
                        <tr class="windowbg">
                                <td width="14%" align="center"></td>

Admin can see who it was, but other users not.
Title: Re: Karma Description Mod
Post by: SirGotxi on October 20, 2005, 06:29:05 AM
Hi,

first of all congratulations for your great mod, one of my favourites !!!

Now I'm using v1.7 and I people has voted around 30 times. I want install this new mod and keep the old votes and descriptions. I think first I've to uninstall and then install mod 1.8, but I want to know if message will be there or will be lost.

Thanks again
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 20, 2005, 07:52:54 PM
It will be lost. Hm...what you can do to keep old votes...
First of all, you can do all mod actions by your hand (Search and replace)
Second, i think, you can open Karma_Description_Mod_ver.1.7.zip on your server (Forum/Packages)
and edit file package-info.xml You must remove this code:

<code>uninstall.php</code>

And then you can uninstall mod. If you can't edit this file, just download it, i mean Karma_Description_Mod_ver.1.7.zip, from your host, unzip to the folder, edit package-info.xml and zip all files again to the Karma_Description_Mod_ver.1.7.zip. Upload back to the server, where it was and uninstall the mod. I think so =)
And third. You can copy your table "db_prefix_log_karma" on your mysql database to other place, like _log_karma2, for example, uninstall the mod, install new version and then replace _log_karma with old table _log_karma2. Don't forget to rename it to _log_karma =) You will save all your actions.

Can i see your worked version of my mod?
Title: Re: Karma Description Mod
Post by: JustJa on October 20, 2005, 08:38:49 PM
Thanks!
that was PERFECT!
:D
Title: Re: Karma Description Mod
Post by: SirGotxi on October 21, 2005, 07:49:05 AM
Quote from: Grek_Kamchatka on October 20, 2005, 07:52:54 PM
Can i see your worked version of my mod?

YEEEEES !!!

http://foro.ssaf.net

Forum language is only in spanish. It's a forum for saint seiya knights of the zodiac collectors toys. To view the Karma (in my forums called Cosmos) you've to registry first. Please register with your username Grek_Kamchatka. The problem is you need 50 messages to see stats.

No spam please  :P I prefer send you a pictures of this mod working in my forums:  :P

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg454.imageshack.us%2Fimg454%2F6561%2Fkarma033xe.th.jpg&hash=31f8ed75aa3e320fa7bec7a8415e9e77426ac13d) (http://img454.imageshack.us/my.php?image=karma033xe.jpg) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg454.imageshack.us%2Fimg454%2F3742%2Fkarma016gl.th.jpg&hash=4b85c988474d78536f63d106faa42dcdd78bf4fc) (http://img454.imageshack.us/my.php?image=karma016gl.jpg) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg454.imageshack.us%2Fimg454%2F9049%2Fkarma023hq.th.jpg&hash=c83ef86e858d178b17114a4dd6a51e77587bcd27) (http://img454.imageshack.us/my.php?image=karma023hq.jpg)

now I will test the mod. I've updated to v1.8 and I haven't lost votes. That's great by the moment !!!
Title: Re: Karma Description Mod
Post by: SirGotxi on October 21, 2005, 08:29:16 AM
Hi,

I've a big problem !!! please help me !!!

Anybody can not vote !!!

I've removed the code uninstall.php as you've said me, then I've unistall the v1.7 mod and then I've installed v1.8, but when I want to vote to someone, I read the next message:

QuoteParse error: parse error, unexpected '}' in /home/ssafnet/public_html/foro/Sources/Karma.php on line 251

I think I've a problem with karma.php because I can not send any vote.

Please send me your karma.php to compare. My mail is [email protected]

Thanks
Title: Re: Karma Description Mod
Post by: m00h on October 21, 2005, 06:19:45 PM
I think there's a conflict between your new version and the "show-only-negative-function" http://www.simplemachines.org/community/index.php?topic=49088.msg365050#msg365050

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg468.imageshack.us%2Fimg468%2F6547%2Fkarmastat6av.th.jpg&hash=06fd667ee98e753f1717edfe12905a07b2853e4a) (http://img468.imageshack.us/my.php?image=karmastat6av.jpg)

I. i get only this (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg468.imageshack.us%2Fimg468%2F3883%2Funbenannt6lf.png&hash=9d1a3e8b29b7dabc2f1bdface04f99dcf666b111)

II. and in the where-field i get only http://xy.com/smf/index.php?topic= without any topic numbers


would be great if you could fix it :)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 21, 2005, 08:25:53 PM
Quote from: SirGotxi on October 21, 2005, 08:29:16 AM
Hi,

I've a big problem !!! please help me !!!

Anybody can not vote !!!

I've removed the code uninstall.php as you've said me, then I've unistall the v1.7 mod and then I've installed v1.8, but when I want to vote to someone, I read the next message:

QuoteParse error: parse error, unexpected '}' in /home/ssafnet/public_html/foro/Sources/Karma.php on line 251

I think I've a problem with karma.php because I can not send any vote.

Please send me your karma.php to compare. My mail is [email protected]

Thanks
Delete 2 close brackets at the end of the file Karma.php. (When package manager uninstalling the mod, it can't remove it. I don't know why.)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 21, 2005, 08:32:33 PM
Quote from: m00h on October 21, 2005, 06:19:45 PM
I think there's a conflict between your new version and the "show-only-negative-function" http://www.simplemachines.org/community/index.php?topic=49088.msg365050#msg365050

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg468.imageshack.us%2Fimg468%2F6547%2Fkarmastat6av.th.jpg&hash=06fd667ee98e753f1717edfe12905a07b2853e4a) (http://img468.imageshack.us/my.php?image=karmastat6av.jpg)

I. i get only this (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg468.imageshack.us%2Fimg468%2F3883%2Funbenannt6lf.png&hash=9d1a3e8b29b7dabc2f1bdface04f99dcf666b111)

II. and in the where-field i get only http://xy.com/smf/index.php?topic= without any topic numbers


would be great if you could fix it :)
Hi, m00h =)
What version do you use? Do you have any errors in Error Log? If you use ver.1.8 what version do you use until you installed ver.1.8?
Title: Re: Karma Description Mod
Post by: m00h on October 22, 2005, 05:59:06 AM
Oops :D

version 1.8 (+SMF 1.1 RC1)

I have a fresh install of my forum, so no previous version of your mod.

this is the error log when i run http://xysite.com/smf/index.php?action=viewkarma


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg475.imageshack.us%2Fimg475%2F7476%2Fforumerrorlog11299745373288nt.th.png&hash=4d262414fdb02f5587f02ac3fbbdcef7adac6847) (http://img475.imageshack.us/my.php?image=forumerrorlog11299745373288nt.png)

thanks :)
Title: Re: Karma Description Mod
Post by: SirGotxi on October 22, 2005, 07:01:13 AM
Quote from: Grek_Kamchatka on October 21, 2005, 08:25:53 PM
Delete 2 close brackets at the end of the file Karma.php. (When package manager uninstalling the mod, it can't remove it. I don't know why.)
This is not the error.  I do it and I see the same error. Please send me the karma.php file to my mail or if you say your mail, I can send tiy my Karma.php.

I will pu here as a quote:

Quote<?php
/******************************************************************************
* Karma.php                                                                   *
*******************************************************************************
* SMF: Simple Machines Forum                                                  *
* Open-Source Project Inspired by Zef Hemel ([email protected])                *
* =========================================================================== *
* Software Version:           SMF 1.1 Beta 3 Public                           *
* Software by:                Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2005 by:     Lewis Media (http://www.lewismedia.com)         *
* Support, News, Updates at:  http://www.simplemachines.org                   *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it     *
* under the terms of the provided license as published by Lewis Media.        *
*                                                                             *
* This program is distributed in the hope that it is and will be useful,      *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of            *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                        *
*                                                                             *
* See the "license.txt" file for details of the Simple Machines license.      *
* The latest version can always be found at http://www.simplemachines.org.    *
******************************************************************************/
if (!defined('SMF'))
   die('Hacking attempt...');

/*   This file contains one humble function, which applauds or smites a user.

   void ModifyKarma()
      - gives or takes karma from a user.
      - redirects back to the referrer afterward, whether by javascript or
        the passed parameters.
      - requires the karma_edit permission, and that the user isn't a guest.
      - depends on the karmaMode, karmaWaitTime, and karmaTimeRestrictAdmins
        settings.
      - is accessed via ?action=modifykarma.
*/

// Modify a user's karma.
function ModifyKarma()
{
   global $modSettings, $db_prefix, $txt, $ID_MEMBER, $user_info, $topic;

   // If the mod is disabled, show an error.
   if (empty($modSettings['karmaMode']))
      fatal_lang_error('smf63');

   // If you're a guest or can't do this, blow you off...
   is_not_guest();
   isAllowedTo('karma_edit');

   checkSession('get');

   // If you don't have enough posts, tough luck.
   // !!! Should this be dropped in favor of post group permissions?  Should this apply to the member you are smiting/applauding?
   if ($user_info['posts'] < $modSettings['karmaMinPosts'])
      fatal_error($txt['smf60'] . $modSettings['karmaMinPosts'] . '.');

   // And you can't modify your own, punk! (use the profile if you need to.)
   if (empty($_REQUEST['uid']) || (int) $_REQUEST['uid'] == $ID_MEMBER)
      fatal_lang_error('smf61', false);

   // The user ID _must_ be a number, no matter what.
   $_REQUEST['uid'] = (int) $_REQUEST['uid'];

   // Applauding or smiting?
   $dir = $_REQUEST['sa'] != 'applaud' ? -1 : 1;

   // Delete any older items from the log. (karmaWaitTime is by hour.)
   db_query("
      DELETE FROM {$db_prefix}log_karma
      WHERE " . time() . " - logTime > " . (int) ($modSettings['karmaWaitTime'] * 3600), __FILE__, __LINE__);

   // Start off with no change in karma.
   $action = 0;

   // Not an administrator... or one who is restricted as well.
   if (!empty($modSettings['karmaTimeRestrictAdmins']) || !allowedTo('moderate_forum'))
   {
      // Find out if this user has done this recently...
      $request = db_query("
         SELECT action
         FROM {$db_prefix}log_karma
         WHERE ID_TARGET = $_REQUEST[uid]
            AND ID_EXECUTOR = $ID_MEMBER
         LIMIT 1", __FILE__, __LINE__);
      if (mysql_num_rows($request) > 0)
         list ($action) = mysql_fetch_row($request);
      mysql_free_result($request);
   }

   // They haven't, not before now, anyhow.
   if (empty($action) || empty($modSettings['karmaWaitTime']))
   {
      // Put it in the log.
      db_query("
         REPLACE INTO {$db_prefix}log_karma
            (action, ID_TARGET, ID_EXECUTOR, logTime)
         VALUES ($dir, $_REQUEST[uid], $ID_MEMBER, " . time() . ')', __FILE__, __LINE__);

      // Change by one.
      updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karmaGood' : 'karmaBad' => '+'));
   }
   else
   {
      // If you are gonna try to repeat.... don't allow it.
      if ($action == $dir)
         fatal_error($txt['smf62'] . ' ' . $modSettings['karmaWaitTime'] . ' ' . $txt[578] . '.', false);

      // You decided to go back on your previous choice?
      db_query("
         UPDATE {$db_prefix}log_karma
         SET action = $dir, logTime = " . time() . "
         WHERE ID_TARGET = $_REQUEST[uid]
            AND ID_EXECUTOR = $ID_MEMBER
         LIMIT 1", __FILE__, __LINE__);

      // It was recently changed the OTHER way... so... reverse it!
      if ($dir == 1)
         updateMemberData($_REQUEST['uid'], array('karmaGood' => '+', 'karmaBad' => '-'));
      else
         updateMemberData($_REQUEST['uid'], array('karmaBad' => '+', 'karmaGood' => '-'));
   }

   // Figure out where to go back to.... the topic?
   if (isset($topic))
      redirectexit('topic=' . $topic . '.' . $_REQUEST['start'] . '#msg' . $_REQUEST['m']);
   // Hrm... maybe a personal message?
   elseif (isset($_REQUEST['f']))
      redirectexit('action=pm;f=' . $_REQUEST['f'] . ';start=' . $_REQUEST['start'] . (isset($_REQUEST['l']) ? ';l=' . $_REQUEST['l'] : '') . (isset($_REQUEST['pm']) ? '#' . $_REQUEST['pm'] : ''));
   // JavaScript as a last resort.
   else
   {
      echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
      <title>...</title>
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         history.go(-1);
      // ]]></script>
   </head>
   <body>&laquo;</body>
</html>';

      obExit(false);
   }
}

// What's this?  I dunno, what are you talking about?  Never seen this before, nope.  No siree.
function BookOfUnknown()
{
   global $context;

   if (strpos($_GET['action'], 'mozilla') !== false && !$context['browser']['is_gecko'])
      redirectexit('http://www.getfirefox.com/');
   elseif (strpos($_GET['action'], 'mozilla') !== false)
      redirectexit('about:mozilla');

   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
      <title>The Book of Unknown, ', @$_GET['verse'] == '2:18' ? '2:18' : '4:16', '</title>
      <style type="text/css">
         em
         {
            font-size: 1.3em;
            line-height: 0;
         }
      </style>
   </head>
   <body style="background-color: #444455; color: white; font-style: italic; font-family: serif;">
      <div style="margin-top: 12%; font-size: 1.1em; line-height: 1.4; text-align: center;">';
   if (@$_GET['verse'] == '2:18')
      echo '
         Woe, it was that his name wasn\'t <em>known</em>, that he came in mystery, and was recognized by none.&nbsp;And it became to be in those days <em>something</em>.&nbsp; Something not yet <em id="unknown" name="[Unknown]">unknown</em> to mankind.&nbsp; And thus what was to be known the <em>secret project</em> began into its existence.&nbsp; Henceforth the opposition was only <em>weary</em> and <em>fearful</em>, for now their match was at arms against them.';
   else
      echo '
         And it came to pass that the <em>unbelievers</em> dwindled in number, and the opposition found fear from the <em>x</em> and the <em>j</em> while those who stood with the <em>something</em> grew stronger and came together.&nbsp; Still, this was only the <em>beginning</em>, and what lay in the future was <em id="unknown" name="[Unknown]">unknown</em> to those on both sides.';
   echo '
      </div>
      <div style="margin-top: 2ex; font-size: 2em; text-align: right;">';
   if (@$_GET['verse'] == '2:18')
      echo '
         from <span style="font-family: Georgia, serif;"><strong><a href="http://www.unknownbrackets.com/about:unknown" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 2:18</span>';
   else
      echo '
         from <span style="font-family: Georgia, serif;"><strong><a href="http://www.unknownbrackets.com/about:unknown" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 4:16</span>';
   echo '
      </div>
   </body>
</html>';

   obExit(false);
}

?>

Thanks
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 22, 2005, 07:15:40 PM
SirGotxi, i found some errors in your posted code, but i will send you a mail with Karma.php. Sorry for this error.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 22, 2005, 07:52:26 PM
Hm, i just now install SMF 11RC1 + Mod 1.8 but everything ok. May be you edit source code?  May be you try to install "show-only-negative-function"? It's a new version, so one of the changes may corrupt file.
Title: Re: Karma Description Mod
Post by: m00h on October 23, 2005, 09:29:44 AM
Quote from: Grek_Kamchatka on October 22, 2005, 07:52:26 PM
Hm, i just now install SMF 11RC1 + Mod 1.8 but everything ok. May be you edit source code?  May be you try to install "show-only-negative-function"? It's a new version, so one of the changes may corrupt file.

Yes, i changed the source code because of the "show-only-negative-function".

It's all perfect when i install only the mod without the "show-only-negative-function". Because of this I said there's a conflict between this. :(
Title: Re: Karma Description Mod
Post by: m00h on October 27, 2005, 04:54:19 PM
Thanks for your new version 1.9

I've installed it (without any modifications) but I (Admin) can't see the Link to the log on the Board Index. What's wrong? :(

On a fresh install of SMF i can see the link.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 27, 2005, 09:47:19 PM
SMF Default Theme? Do you enabled mod in admin panel?

P.S. New version 1.9.2 Update your mod.
Title: Re: Karma Description Mod
Post by: m00h on October 28, 2005, 08:47:03 AM
Quote from: Grek_Kamchatka on October 27, 2005, 09:47:19 PM
SMF Default Theme? Do you enabled mod in admin panel?

P.S. New version 1.9.2 Update your mod.

Yes, SMF default theme and i enabled the mod.

I've updatet it too but the same strange problem.
Title: Re: Karma Description Mod
Post by: m00h on October 28, 2005, 08:56:03 AM
And: If I applaud to an user, i get this message:

Parse error: parse error, unexpected $ in /usr/export/www/xy/abc/hosting/user/Sources/Karma.php on line 274

(original zip package of you, no source changed)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 28, 2005, 07:23:48 PM
I think it all because of old install of the mod. Can you uninstall the mod, and upload to the server all changed files from the SMF install package?
Title: Re: Karma Description Mod
Post by: m00h on October 30, 2005, 10:24:20 AM
Quote from: Grek_Kamchatka on October 28, 2005, 07:23:48 PM
I think it all because of old install of the mod. Can you uninstall the mod, and upload to the server all changed files from the SMF install package?

Done and fixed.  :)

Thanks for your work!
Title: Re: Karma Description Mod
Post by: Lyrax on October 30, 2005, 08:12:05 PM
hello there, i installed everything, using SMF RC1.1 but got the message: Error: Database modifications failed!
what can i do? please help
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 30, 2005, 08:41:17 PM
Hi, Lyrax. This error may be if mod can't do any changes in your mysql database.
Can you see _log_karma table? If there present Description and link field? If present - everything ok, don't worry. If not you can create this field by your hand.
Title: Re: Karma Description Mod
Post by: thetzfreak on October 30, 2005, 09:32:44 PM
The mod is turned on, and everything is turned on. But, the karma stats link on the front page next to site stats isn't showing up. Why?

Thanks.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 30, 2005, 10:18:21 PM
What theme do you use? It is only for Default theme. If you use another theme you must  edit your BoardIndex.template.php
Title: Re: Karma Description Mod
Post by: qtime on November 05, 2005, 12:43:07 PM
I look forward to use this mod, because some of my forum members like to know who gives the negative karma ;)

But I have an error:
Unable to load the 'main' template.

Clean installation, version 1.92, plz give me some advice. I read this topic and did not found such an error.
Title: Re: Karma Description Mod
Post by: Epimetheus on November 05, 2005, 08:05:38 PM
Just curious, any chance we might be able to add custom titles based on karma + and - and net karma in future versions?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 05, 2005, 09:46:25 PM
Quote from: qtime on November 05, 2005, 12:43:07 PM
I look forward to use this mod, because some of my forum members like to know who gives the negative karma ;)

But I have an error:
Unable to load the 'main' template.

Clean installation, version 1.92, plz give me some advice. I read this topic and did not found such an error.
Look at readme. You must copy this files: Viewkarma.php, Deskriptionkarma.template.php and Viewkarma.template.php to their directory from the mod package. It's a bug in package manager (SMF 1.1 RC1)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 05, 2005, 09:49:21 PM
Quote from: Epimetheus on November 05, 2005, 08:05:38 PM
Just curious, any chance we might be able to add custom titles based on karma + and - and net karma in future versions?
Hm...interesting idea) May be you will see it in next, 2.0, mod version =)
Title: Re: Karma Description Mod
Post by: qtime on November 06, 2005, 04:57:42 AM
Thx Grek_Kamchatka, I did not see a readme file, but now it's working, thx for all your work for this mod and the helping answer.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 06, 2005, 06:29:42 AM
You are welcome)
Title: Re: Karma Description Mod
Post by: Jay T on November 08, 2005, 10:32:46 AM
Can you make the stat section only viewable to admins?

Also, is there a way to make it so a member can only see their log?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 08, 2005, 08:05:37 PM
Quote from: Jay T on November 08, 2005, 10:32:46 AM
Can you make the stat section only viewable to admins?
See permissions. "View Karma Log"

Quote from: Jay T on November 08, 2005, 10:32:46 AM
Also, is there a way to make it so a member can only see their log?
Yes. You can add another one permission "View only members log".
Title: Re: Karma Description Mod
Post by: Jay T on November 08, 2005, 09:09:14 PM
Quote from: Grek_Kamchatka on November 08, 2005, 08:05:37 PM
Quote from: Jay T on November 08, 2005, 10:32:46 AM
Can you make the stat section only viewable to admins?
See permissions. "View Karma Log"

Quote from: Jay T on November 08, 2005, 10:32:46 AM
Also, is there a way to make it so a member can only see their log?
Yes. You can add another one permission "View only members log".

Thanks for helping but could you give a little more detail.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 08, 2005, 10:32:50 PM
You must add this permission, after that you must edit viewkarma.php and control this permission
Title: Re: Karma Description Mod
Post by: Jay T on November 09, 2005, 11:59:16 AM
Quote from: Grek_Kamchatka on November 08, 2005, 10:32:50 PM
You must add this permission, after that you must edit viewkarma.php and control this permission

I have no idea how to do that.

Quote from: Jay T on November 08, 2005, 09:09:14 PM
Can you make the stat section only viewable to admins?
Quote from: Grek_Kamchatka on November 08, 2005, 08:05:37 PM
See permissions. "View Karma Log"

When I uncheck view other Karma stats it makes so no one even admins can see it. I want this info to be only viewable to admins.
Title: Re: Karma Description Mod
Post by: p0w3r on November 12, 2005, 04:53:26 AM
Grek_Kamchatka,
I must say this mod is amazing. Congratulations and thank you.

Just a question:
I've my forum translated to portuguese and i think due to that i cannot see "Whom I Change Karma?" and "Who change my karma?" options. I just only have a blank space instead of that.
I can i do the modification?

Thank you very much.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 12, 2005, 08:31:18 AM
Yes, you can) My mod change only english files. You can open this english files and find and copy all the changes. Then open your language files and past this code)

P.S. To see  "Whom I Change Karma?" and "Who change my karma?" look at the Profile.english.php
Title: Re: Karma Description Mod
Post by: p0w3r on November 12, 2005, 09:01:35 AM
Thank you very much. It solved my problem.
And congratulations again. Superb Mod.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 12, 2005, 08:51:13 PM
You're welcome =)
Thank YOU!
Title: Re: Karma Description Mod
Post by: RoarinRow on November 16, 2005, 06:41:15 PM
Awesome Mod, thanks!  My users accepted it with open arms.   :D
Title: Re: Karma Description Mod
Post by: Jay T on November 21, 2005, 08:46:14 PM
How come it only shows the board where the Karma was given?

Is there a way to make it show the post that was giving Karma?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 21, 2005, 09:27:47 PM
It show the post where Karma was change. Look at my board:
http://www.pkforum.ru/index.php?action=viewkarma

In "where" field, i have links like this:
http://www.pkforum.ru/index.php?topic=6718.msg159210#msg159210
So it show Topic (6718) and Message (msg159210) and if you'll follow this link you'll see this message, not only topic.
Title: Re: Karma Description Mod
Post by: Jay T on November 22, 2005, 09:27:48 AM
You are right. A post that had been deleted was giving Karma so it just went to the index page. The rest go to the post.

Sure wish I could get those modifications I asked for ;)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 22, 2005, 06:42:22 PM
Hm...but what will you see if this post will be deleting again? Index page again.
Title: Re: Karma Description Mod
Post by: Jay T on November 23, 2005, 12:22:11 AM
It works fine, now how about those modifications I wanted?
Title: Re: Karma Description Mod
Post by: b0bby on November 24, 2005, 03:47:44 PM
This mod is VERY buggy and do NOT work on a new installed SMF 1.1 RC1.
The author needs to fix it 1st before releasing all the new addons. Every time i try to install a new updated version they always end up with errors!

Unknown column 'link' in 'field list'
File: home\WWW\Apache2\htdocs\forum\Sources\Karma.php
Line: 152
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 24, 2005, 08:09:05 PM
It work fine with SMF 1.1 RC1 without any bugs and errors.
Title: Karma Description Mod Language Polish version
Post by: viperxp on November 25, 2005, 03:47:23 PM
Language Polish version Karma Description Mod  accessible  here: Karma Description Mod  PL (http://www.simplemachines.pl/component/option,com_smf/Itemid,26/topic,52.0)
Tested from  SMF 1.1 RC1.
I ask about opinions and sugeste.

Polska wersja językowa Karma Description Mod dostępna tutaj:Karma Description Mod  PL (http://www.simplemachines.pl/component/option,com_smf/Itemid,26/topic,52.0)
Testowana z  SMF 1.1 RC1.
Proszę o opinie i sugeste.
Title: Re: Karma Description Mod
Post by: b0bby on November 25, 2005, 10:16:25 PM
if it works fine with smf 1.1 rc1 then what is this error when i try to give someone karma this is what i get:

Unknown column 'link' in 'field list'
File: home\WWW\Apache2\htdocs\forum\Sources\Karma.php
Line: 152
Title: Re: Karma Description Mod
Post by: Jay T on November 26, 2005, 11:25:42 AM
Make sure the edits were done correctly.
Title: Re: Karma Description Mod
Post by: b0bby on November 26, 2005, 02:42:58 PM
i used the smf package manager installer to install this mod
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 27, 2005, 03:39:28 AM
Do you have another installed mod? What version on Karma mod you use?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 30, 2005, 08:23:37 PM
Quote from: frostwhite on November 30, 2005, 01:47:31 PM
Hi
I've translated your mod to german. Hope you enjoy it!
Thank you very much! =)

Quote from: frostwhite on November 30, 2005, 01:47:31 PM
One bug is in it: It doesn't display the link on the forum index -> [Karma Stat] ???
It is because my mod edit only default theme. Choose default template and you'll see karma label))
By the way, read this topic and you will find answer for you question)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on December 01, 2005, 07:11:07 PM
Quote from: frostwhite on December 01, 2005, 11:37:03 AM
Hmmm I'm using the default theme....
At the time of the installation my mod, index.template.php was Success? Hm. it is curiously. You first who talking about this trouble.
Title: Re: Karma Description Mod
Post by: Rasyr on December 02, 2005, 09:24:42 AM
I just tried to install this mod, but came up against a problem.

The actual installation went fine, and everything looked good. I turned everything on for the mod, and set the permissions and so forth.

Then I went to test it. When I tried to adjust somebody's karma, or go to any of the Karma stat pages, I received an error saying that "main template" could not be found.

Any ideas? My users would really like this Mod, and it would be nice if I could install it soon.

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on December 03, 2005, 05:38:33 PM
Rasyr, it is a bug in Package Manager (SMF 1.1).
Copy viewkarma.php to the source dir, index.template.php and deskriptionkarma.template.php to the theme directory from mod package. It's all =)
Title: Re: Karma Description Mod
Post by: snork13 on December 11, 2005, 01:37:15 PM
never had this error before, running 1.1rc1

Duplicate entry '6-1' for key 1
File: /home/phantasy/public_html/forum/Sources/Karma.php
Line: 148

any ideas?

thanks

snork

[edited]

cleared the log and it's working fine, but seems if you have issued karma to someone, and not cleared the log...then you can't issue for the same member until the log is cleared. it would seem additional table are needed in the database, along with a check to see if you have left karma, so it can be added to that table for the member?
Title: Re: Karma Description Mod
Post by: bunglehaze on December 20, 2005, 08:56:46 PM
I am having a problem with this in 1.1rc1. The install seems to work fine but after clicking apply mod it shows an error modifying the database, even so the mod states that it it applied and should work fine.

When I look at my db there is no mention of karma within it. I am at a loss why its not working.

Also I am using the Juno theme and although I can modify the boardindex template there is no index.english.php in languages... Any ideas how to add the links to the theme for this too.

cheers

leigh :D
Title: Re: Karma Description Mod
Post by: RoarinRow on December 20, 2005, 11:01:11 PM
Quote from: bunglehaze on December 20, 2005, 08:56:46 PM
I am having a problem with this in 1.1rc1. The install seems to work fine but after clicking apply mod it shows an error modifying the database, even so the mod states that it it applied and should work fine.

When I look at my db there is no mention of karma within it. I am at a loss why its not working.

Also I am using the Juno theme and although I can modify the boardindex template there is no index.english.php in languages... Any ideas how to add the links to the theme for this too.

cheers

leigh :D

I got the same error with my smf 1.0.5 forum.  I removed this mod and the Visual Warning Mod, which has some interdependancy on each other it seems.  I kept getting db errors.  I removed them just to be safe.

My members surely miss the Karma mod thou.   :-[
Title: Re: Karma Description Mod
Post by: d3sports on December 21, 2005, 10:45:55 PM
First of all, spaseebah (pardon my mangled spelling) for putting this mod together.

However, I can't seem to get it to run. Running 1.0.5, using default theme.
Using package manager. Upload zip file (1.9.2). Hit apply mod. It tells me I need to provide my FTP info, so I do.
It accepts the FTP info, at which point I am here:

Quote from: package managerType     Action     Description
1.    Execute Modification    ./Sources/Admin.php    Success
2.    Execute Modification    ./Sources/Karma.php    Success
3.    Execute Modification    ./Sources/ModSettings.php    Success
4.    Execute Modification    ./Sources/BoardIndex.php    Success
5.    Execute Modification    ./Sources/Profile.php    Success
6.    Execute Modification    ./Sources/ManagePermissions.php    Success
7.    Execute Modification    ./Themes/default/Admin.template.php    Success
8.    Execute Modification    ./Themes/default/BoardIndex.template.php    Success
9.    Execute Modification    ./Themes/default/Profile.template.php    Success
10.    Execute Modification    ./Themes/default/languages/Admin.english.php    Success
11.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Success
12.    Execute Modification    ./Themes/default/languages/Who.english.php    Success
13.    Execute Modification    ./Themes/default/languages/Help.english.php    Success
14.    Execute Modification    ./Themes/default/languages/index.english.php    Success
15.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Success
16.    Execute Modification    ./Themes/default/languages/Errors.english.php    Success
17.    Execute Modification    ./Themes/default/languages/Profile.english.php    Success
18.    Execute Modification    ./index.php    Success
19.     Execute Code     db_change.php     
20.    Extract File    ./Sources/Viewkarma.php    
21.    Extract File    ./Themes/default/Viewkarma.template.php    
22.    Extract File    ./Themes/default/DescriptionKarma.template.php

So I hit the Proceed button, and get this error message:

Quote from: SMFAn Error Has Occurred!
2: copy(/usr/www/d3sports.com/htdocs/post/Themes/default/Viewkarma.template.php): failed to open stream: Permission denied
File: /usr/www/d3sports.com/htdocs/post/Sources/Subs-Package.php
Line: 814

Any suggestions? I uploaded the template files by hand but that didn't seem to do anything for me.
Title: Re: Karma Description Mod
Post by: bunglehaze on December 24, 2005, 12:32:23 PM
I am having problems with this also..


Hi,

for some reason I can view my karma details on my board at www.phishybusiness.co.uk (http://www.phishybusiness.co.uk)

It keeps throwing up an error message

QuoteUnknown column 'action' in 'field list'
File: /home/phishy5/public_html/forum/Sources/Viewkarma.php
Line: 47

When I installed the mod it showed database modification error at the top of the page, so I dropped the table and tried again with the same error. From there I rebuilt the table adding 2 fields (description - TINYINIT -  not null and field - TEXT - not null) as I could see in the karmaview.php file.

It is still doing the same error, so I really need to know where I might have gone wrong, if I am needing to add any extra db fields etc etc - I am using 1.1RC1 and the mod is 1.92

*** edited too ***

I have just gotten a new error, instead of the old one..

QuoteUnknown column 'action' in 'field list'
File: /home/phishy5/public_html/forum/Sources/Viewkarma.php
Line: 154

cheers

leigh ???

Title: Re: Karma Description Mod
Post by: clearly on December 24, 2005, 12:47:38 PM
Just for your information:

I've tested Karma_Description_Mod_ver.1.9.2 on the newest Release Candidate of SMF and got this error message:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg323.imageshack.us%2Fimg323%2F614%2Fpackagemanagerinstallactions11.th.png&hash=0cfc4ecbf0e5c394160eebe2295899f1db951f7f) (http://img323.imageshack.us/my.php?image=packagemanagerinstallactions11.png)

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on December 26, 2005, 05:24:42 PM
Quote from: clearly on December 24, 2005, 12:47:38 PM
Just for your information:

I've tested Karma_Description_Mod_ver.1.9.2 on the newest Release Candidate of SMF and got this error message:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg323.imageshack.us%2Fimg323%2F614%2Fpackagemanagerinstallactions11.th.png&hash=0cfc4ecbf0e5c394160eebe2295899f1db951f7f) (http://img323.imageshack.us/my.php?image=packagemanagerinstallactions11.png)


I haven't RC2, so i can't do anything.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on December 26, 2005, 05:40:25 PM
Quote from: bunglehaze on December 24, 2005, 12:32:23 PM
I am having problems with this also..


Hi,

for some reason I can view my karma details on my board at www.phishybusiness.co.uk (http://www.phishybusiness.co.uk)

It keeps throwing up an error message

QuoteUnknown column 'action' in 'field list'
File: /home/phishy5/public_html/forum/Sources/Viewkarma.php
Line: 47

When I installed the mod it showed database modification error at the top of the page, so I dropped the table and tried again with the same error. From there I rebuilt the table adding 2 fields (description - TINYINIT -  not null and field - TEXT - not null) as I could see in the karmaview.php file.

It is still doing the same error, so I really need to know where I might have gone wrong, if I am needing to add any extra db fields etc etc - I am using 1.1RC1 and the mod is 1.92

*** edited too ***

I have just gotten a new error, instead of the old one..

QuoteUnknown column 'action' in 'field list'
File: /home/phishy5/public_html/forum/Sources/Viewkarma.php
Line: 154

cheers

leigh ???


Hi!
I have a frash install of SMF RC1 just now.
What i'm do:
1. Install SMF RC1
2. In admin panel check the function: "friendly url" (Because you use it function)
3. Register new user test/test
4. Post test message from test user
5. Go to this post message and chage karma to test user by admin
6. Go to the karma log
7. Go to admin panel and error log. It's clear

By the way. I use default theme. It's very important.
I must see your database to help you. Can you show me output of this command:

SELECT *
FROM `smf_log_karma` LIMIT 0, 30
Title: Re: Karma Description Mod
Post by: d3sports on December 27, 2005, 10:09:04 PM
I meant to note that I am using the default theme on my install of SMF 1.0.5.
Title: Re: Karma Description Mod
Post by: Meow Doom on December 28, 2005, 11:51:31 AM
Can someone walk me through changing some of the wording and grammar displayed in this mod? I know English isn't the creators first language, so there had to be some barriers there. But I need to fix that.  ;D
Title: Re: Karma Description Mod
Post by: Gregory on December 28, 2005, 12:07:51 PM
ah great, this is for 1.05 now.

would be great to update the first post, and maybe the thread title, I ignored this mod before but it's just what I need/want!


edit: mod is looking good.
is the page/post where the karma was given not recorded/displayed?
would be good to have a permission so users can just see a log of karma they gave, or they can just see karma they gave and and received.
Title: Re: Karma Description Mod
Post by: clearly on January 01, 2006, 11:39:15 AM
Quote from: Grek_Kamchatka on December 26, 2005, 05:24:42 PM
Quote from: clearly on December 24, 2005, 12:47:38 PM
Just for your information:

I've tested Karma_Description_Mod_ver.1.9.2 on the newest Release Candidate of SMF and got this error message:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg323.imageshack.us%2Fimg323%2F614%2Fpackagemanagerinstallactions11.th.png&hash=0cfc4ecbf0e5c394160eebe2295899f1db951f7f) (http://img323.imageshack.us/my.php?image=packagemanagerinstallactions11.png)


I haven't RC2, so i can't do anything.

RC2 is now public available ;)
Title: Re: Karma Description Mod
Post by: Ryan on January 04, 2006, 05:48:29 PM
Can we have an update for rc2 plsss
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 05, 2006, 08:12:47 AM
Certainly, but i found an error in Karma function in RC2 forum. I tried to enable karma, but i can't (Fresh install), so i can't do anything with Karma Description Mod.
I think you will see a new version of my mod in the near future =)
Title: Re: Karma Description Mod
Post by: gerrymore on January 05, 2006, 01:17:43 PM
Grek, I have a couple of site using RC2 updated from RC1, and no errors. Must just be on fresh install, or a problem with some files you are using.
Title: Re: Karma Description Mod
Post by: Skipdawg on January 05, 2006, 04:24:54 PM
Fresh install of rc2 for testing and the karma is working fine so far here. Mod conflict maybe?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 05, 2006, 09:38:15 PM
Skipdawg, thx, but it's realy error.
Here is my subj. http://www.simplemachines.org/community/index.php?topic=64336.0
Title: Re: Karma Description Mod
Post by: gerrymore on January 09, 2006, 01:22:56 PM
Has any progress been made getting it working for RC2? Or anyone managed to get it working with a manaul install?
Title: Re: Karma Description Mod
Post by: Gobo on January 09, 2006, 05:30:20 PM
i upgraded from 1.1rc to rc2
and the mod wont work anymore
it gives installation error warning as well
Title: Re: Karma Description Mod
Post by: Pink Bee on January 12, 2006, 09:37:46 AM
I'm still using SMF 1.0.5...

Recently, I realized that the [Karma Stats] disappeared from the forum stats. Is it because I changed my forum skin?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 12, 2006, 11:12:44 PM
Quote from: pinkbee on January 12, 2006, 09:37:46 AM
Is it because I changed my forum skin?
Yes it is.
Title: Re: Karma Description Mod
Post by: SleePy on January 12, 2006, 11:21:58 PM
Gret i was able to get karma description mod to work on a fresh intstall of rc2...
i changed 1 thing in the boardindex and got no errors. and it works...
this weekend im going to  upgrade my main forums instead of my test forums so ill let you guys know if what i changed got it working for a upgrade.
Title: Re: Karma Description Mod
Post by: gerrymore on January 14, 2006, 03:14:47 PM
SleePy, if you want your code tested on my test site, I'll certainly give it a try for you. (RC1 upgraded to RC2)
Title: Re: Karma Description Mod
Post by: URPG on January 16, 2006, 05:58:17 PM
Hi there!

I am looking for a way to show karma in a bar diagram. More karma = longer bar
could look like those access stats (http://www.proxy2.de/demo/stat-demo.php) but i got no idea how to integrate that into SMF. Can you add this potion to your mod?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 16, 2006, 09:43:35 PM
Hi all! I just made a new version of my mod. It's work only with 11RC2>> with default theme. But, i want to add some new functions in it. Can you wait for some time?
Title: Re: Karma Description Mod
Post by: URPG on January 17, 2006, 12:33:27 AM
Sure...
how about the bars?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 17, 2006, 12:52:02 AM
KDM ver. 1.9.3 now available. No new functions, just compatibility with RC2 and latest reliese candidate.

URPG, what bars?
Title: Re: Karma Description Mod
Post by: gerrymore on January 17, 2006, 06:46:35 AM
Hundreds of errors coming up on the RC2 version (20 pages in 5 minutes). They are showing on most templates in the error log. One below:

8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /././././smf/Themes/default/Post.template.php (eval?)
Line: 517
Title: Re: Karma Description Mod
Post by: URPG on January 17, 2006, 08:14:02 AM
Just turn one page back to <11> and you will see ;)

I was talking about replacing / optionaly replacing the karma display from numbers into karma-bars even gave an example how to do it in php (not my example, an example, i could not do it)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 17, 2006, 07:17:27 PM
Hi, gerrymore. First of all, my mod don't do anything with this file (Post.template.php) and  i haven't this error on fresh install of my forum. But you can find

karma_stat

and replace it with this

'karma_stat'
Title: Re: Karma Description Mod
Post by: SleePy on January 17, 2006, 07:36:36 PM
Quote from: gerrymore on January 14, 2006, 03:14:47 PM
SleePy, if you want your code tested on my test site, I'll certainly give it a try for you. (RC1 upgraded to RC2)

yea just 2 days ago i upgraded my main site and well the fixed version of the karma description mod i had worked prefect. only 1 minor error but i think that is the package manger error. because everything i installed though package manger seems to act like it was double installed...  :o
Title: Re: Karma Description Mod
Post by: Chronic667 on January 18, 2006, 05:56:20 AM
Hi, i'm having a problem installing this mod, and getting it to work.

I'm using SMF version 1.1 RC2 but when i come to enable it, i get a warning on "BoardIndex.template.php". I am using the RC2 default theme so i've no clue why that is happening.

If i install the mod anyway and then change apply the changes myself to BoardIndex.template.php. Things seem fine until i click on a Karma link such as the one in my profile. I then get this error on my local smf forum (used for testing upgrades and mods).

QuoteUnknown column 'lk.link' in 'field list'
File: c:\phpdev\www\public\smf2\Sources\Viewkarma.php
Line: 175

I also get this error when testing the mod on my live forum which was upgraded from 1.0.5 beta 3 public > RC1 > RC2.

Can anyone help me fix this problem?
Title: Re: Karma Description Mod
Post by: ivogomes on January 18, 2006, 06:03:06 AM
I'm using it on RC2 and had to change the boardindex.template.php by hand because the package has a few extra spaces...

Everything is working fine!
Title: Re: Karma Description Mod
Post by: gerrymore on January 18, 2006, 06:35:02 AM
Quote from: Grek_Kamchatka on January 17, 2006, 07:17:27 PM
Hi, gerrymore. First of all, my mod don't do anything with this file (Post.template.php) and  i haven't this error on fresh install of my forum. But you can find

karma_stat

and replace it with this

'karma_stat'


I have this already in index.english.php

'karma_stat'


These are 30 seconds worth of errors. This was on a clean install, with no mods. boardindex.template failed during the install, but changed by hand. Hope this helps you find this bug.


http://www.*****.co.uk/smf/index.php?action=admin
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/Admin.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/BoardIndex.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/BoardIndex.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/Display.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/Display.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/MessageIndex.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/BoardIndex.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/MessageIndex.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/BoardIndex.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php?action=viewkarma
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/Viewkarma.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/BoardIndex.template.php (eval?)
Line: 517

http://www.*****.co.uk/smf/index.php?action=viewErrorLog;desc
Apply Filter: Only show the errors with the same message
8: Use of undefined constant karma_stat - assumed 'karma_stat'
File: /./././././smf/Themes/default/Errors.template.php (eval?)
Line: 517


Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 18, 2006, 06:54:33 AM
What mod version do you use?
Title: Re: Karma Description Mod
Post by: Chronic667 on January 18, 2006, 06:56:40 AM
um, wern't sure who you were asking there, but i use 1.9.3
Title: Re: Karma Description Mod
Post by: gerrymore on January 18, 2006, 07:52:57 AM
Quote from: Grek_Kamchatka on January 18, 2006, 06:54:33 AM
What mod version do you use?

1.9.3 on RC2 upgraded from RC1
Title: Re: Karma Description Mod
Post by: spicyjoe on January 22, 2006, 04:37:22 AM
hey, i got an error:

1. Execute Modification ./Sources/Admin.php Test successful
2. Execute Modification ./Sources/Karma.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Sources/BoardIndex.php Test successful
5. Execute Modification ./Sources/Profile.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Themes/default/Admin.template.php Test successful
8. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
9. Execute Modification ./Themes/default/Profile.template.php Test successful
10. Execute Modification ./Themes/default/languages/Admin.english.php Test successful
11. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
12. Execute Modification ./Themes/default/languages/Who.english.php Test successful
13. Execute Modification ./Themes/default/languages/Help.english.php Test successful
14. Execute Modification ./Themes/default/languages/index.english.php Test successful
15. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
16. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
17. Execute Modification ./Themes/default/languages/Profile.english.php Test successful
18. Execute Modification ./index.php Test successful
19. Execute Code db_change.php
20. Extract File ./Sources/Viewkarma.php
21. Extract File ./Themes/default/Viewkarma.template.php
22. Extract File ./Themes/default/DescriptionKarma.template.php


it says 8.   Execute Modification   ./Themes/default/BoardIndex.template.php Test failed... :( anyone can help?
Title: Re: Karma Description Mod
Post by: L0relei on January 22, 2006, 08:09:25 AM
The question has been asked many times in this topic...
Change the BoardIndex.template.php by hand.
Title: Re: Karma Description Mod
Post by: spicyjoe on January 22, 2006, 09:36:13 AM
oh! wahahah! but then how do i see what code to add or replace? i dunno how to work with SMF mods since i was using IPB and phpBB last time... :(... anyone can help? thanks
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 22, 2006, 04:22:28 PM
spicyjoeб see Karma_Description_Mod.xml
Title: Re: Karma Description Mod
Post by: spicyjoe on January 23, 2006, 01:41:46 AM
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>IvanV.PetrovichAkaGrek:KarmaDescriptionMod</id>
<version>1.9.3</version>
<file name="$sourcedir/Admin.php">
<operation>
<search position="replace"><![CDATA[// Clear out the karma actions.
db_query("
DELETE FROM {$db_prefix}log_karma", __FILE__, __LINE__);
]]></search>
<add><![CDATA[/* Clear out the karma actions.
db_query("
DELETE FROM {$db_prefix}log_karma", __FILE__, __LINE__); */

]]></add>
</operation>
<operation>
<search position="before"><![CDATA[</body></html>';
obExit(false);
}


ok i took one part of the code... i understand abit but not all.... i know this part:

]]></search>
<add><![CDATA[/* Clear out the karma actions.
db_query("
DELETE FROM {$db_prefix}log_karma", __FILE__, __LINE__); */

]]></add>
</operation>
<operation>
<search position="before"><![CDATA[</body></html>';
obExit(false);
}


that code means i have to search for the code add it but on top or bottom or replace it?

then what this code for?:

<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>IvanV.PetrovichAkaGrek:KarmaDescriptionMod</id>
<version>1.9.3</version>
<file name="$sourcedir/Admin.php">
<operation>
<search position="replace"><![CDATA[// Clear out the karma actions.
db_query("
DELETE FROM {$db_prefix}log_karma", __FILE__, __LINE__);
Title: Re: Karma Description Mod
Post by: Rangarig on January 23, 2006, 04:23:19 AM
I recently updated my board to RC2 and am getting the same error with BoardIndex.template as the others are describing. I changed the BoardIndex.Template File by hand, but now I get the following error:

QuoteUnknown column 'lk.link' in 'field list'
File: /home/cbuesing/public_html/lair/Sources/Viewkarma.php

Various line numbers quoted (68, 175, 279)
Title: Re: Karma Description Mod
Post by: Chronic667 on January 23, 2006, 07:36:34 AM
Yeah, same bug as me Rangarig but no one has posted a fix. Could i ask you what was the previous version of this mod you used before 1.9.3?

My guess is, that the mod is looking for a non-existing column because it wasn't added to the database yet because i went from v1.4 to v1.9.3.
Title: Re: Karma Description Mod
Post by: Tawakol on January 26, 2006, 12:00:56 PM
After a week of trying to install this mod, i finally managed to install it..but when i try to applaud or smite someone i get this error:

QuoteAn Error Has Occurred!
Unable to load the 'main' template.

Forgot to mention that I am using 1.1 RC2
Title: Re: Karma Description Mod
Post by: Chronic667 on January 26, 2006, 12:46:40 PM
If you changed the source by hand, then you've probably missed off the quote and semi colon.
Title: Re: Karma Description Mod
Post by: Tawakol on January 26, 2006, 03:54:24 PM
Quote from: Chronic667 on January 26, 2006, 12:46:40 PM
If you changed the source by hand, then you've probably missed off the quote and semi colon.

nope..I am pretty sure i didn't change the source by hand..lol
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 26, 2006, 08:20:40 PM
Tawakol, upload Viewkarma.template.php and Deskriptionkarma.emplate.php to your Themes directory.
Title: Re: Karma Description Mod
Post by: Tawakol on January 27, 2006, 03:49:25 AM
they're already there  :-\
Title: Re: Karma Description Mod
Post by: dash on January 27, 2006, 12:42:01 PM
Hi,
short question (i didn't search ;)):
Is this mod only for the default-theme, or works it with the classic, too?


Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 27, 2006, 08:21:12 PM
Only default.
Title: Re: Karma Description Mod
Post by: Chronic667 on January 28, 2006, 12:07:06 AM
Has anyone found a fix for the following bug?
QuoteUnknown column 'lk.link' in 'field list'
Title: Re: Karma Description Mod
Post by: Greybrow on January 29, 2006, 03:29:56 PM
Is it possible:
- users can view who/whom they changed karma
- users can't view Karma Log
?
I've tried to change karma options, and permissions, but it was possible only that users can view both or none.
Title: Re: Karma Description Mod
Post by: Julie on January 31, 2006, 06:23:23 AM
Thanks for an awesome Mod! I really needed something like this.

Installed first time with no problems on 1.1 RC2 on an already heavily modded board.

Thanks much!
Julie
Title: Re: Karma Description Mod
Post by: Chronic667 on February 05, 2006, 01:22:43 AM
Well.. i figured how to fix that lk.link bug that a few people (and myself) reported. I done this with phpmyadmin.

First select your SMF database, then look for YOURPREFIX_logs_karma and click that, then run the following query.

ALTER TABLE `YOURPREFIX_log_karma`
ADD `link` TEXT NOT NULL


Where YOURPREFIX is the prefix you gave the database when installing SMF.
Title: Re: Karma Description Mod
Post by: Minsc on February 05, 2006, 10:51:08 AM
Ran in to that BoardIndex.template.php problem as well.  Modding the file manually did the trick. :)

Not sure if anyone mentioned this before, I noticed some english mistakes in various Karma Description Mod menus and such.  Just search for these lines in index.english.php and change them to what ever you think sounds right.

The survey of a change in the reputation of users

Please, write here for what you change karma for this user

Are you shure to delete this record

Are you shore you want to delete this record?

Today karma points


Here's what I changed them to for any lazy people.

Karma Change Log

Reason for changing the karma of this user?

Are you sure you want to delete this record?

Are you sure you want to delete this record?

Karma points doday
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 05, 2006, 06:01:36 PM
Minsc, thank you. Sorry for my english, i'm from Russia.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 05, 2006, 10:07:44 PM
Just made KDM 1.9.4 but i can't upload it((

"The package id given in the uploaded file does not match the package id given by previous versions of this mod."
Title: Re: Karma Description Mod
Post by: SleePy on February 05, 2006, 10:25:23 PM
did you fix the bug were karma can be sometimes double submitted and the way i tried to fix it for ownkarma and viewkarma links?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 05, 2006, 10:33:19 PM
Only this.disabled=(disabled)

own and otherkarma doesn't work fith your function.

Now you can download it.
Title: Re: Karma Description Mod
Post by: SleePy on February 05, 2006, 10:35:34 PM
how odd.. i got it working on my site....

--Edit--
oh i see. it isn't liking some of the code... remove the "?action=" part and it works... odd..
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 05, 2006, 10:52:32 PM
Hm. Don't understand. Can you post here your source code? Or pm me.
Title: Re: Karma Description Mod
Post by: SleePy on February 05, 2006, 10:55:37 PM
this is my whole viewkarma.template.php


<?php
// Version: 1.1 RC2; Viewkarma


function template_main()
{
        global 
$context$txt$member$user_info$scripturl$settings$modSettings$ID_MEMBER;
        echo 
'
                <div style="padding: 3px;">'
theme_linktree(), '</div>
                    <form action="'
$scripturl'?action=viewkarma;start='.$context['start'].';sort='.$context['sort_by'].''$context['sort_direction'] == 'down' ';desc' '''''" method="post" onsubmit="if (lastClicked == \'remove_selection\' && !confirm(\''$txt['sure_about_karma_remove'], '\')) return false; else return true;">
                <table border="0" width="100%" cellspacing="1" cellpadding="2" class="tborder" style="margin-bottom: 1ex;">
                        <tr class="titlebg" valign="middle" align="center">
                                <td align="center" colspan="'
$modSettings['karmaurl'] ? '6' '5' ,'"><b>'$txt['karmaview'], '</b> </td>
                                '
; if ($user_info['is_admin']) echo ' <td align="center"></td>'; echo '
                        </tr>
                        <tr class="windowbg">'
;

$WhatPageIsIt $_SERVER["QUERY_STRING"];
if(
strstr($WhatPageIsIt"viewkarma")){ $WhatPage='viewkarma';}else{$WhatPage='ownkarma;u='.$ID_MEMBER.'';}
echo'
                                        <td width="14%" align="center"><b><a href="' 
$scripturl '?action='.$WhatPage.';start='$context['start'], ';sort=exec'$context['sort_direction'] == 'down' && $context['sort_by'] == 'exec' ';asc' '''">'$txt['karmawho'], ''$context['sort_by'] == 'exec' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></b></td>
                                        <td width="14%" align="center"><b><a href="' 
$scripturl '?action='.$WhatPage.';start='$context['start'], ';sort=targ'$context['sort_direction'] == 'down' && $context['sort_by'] == 'targ' ';asc' '''">'$txt['karmawhos'],''$context['sort_by'] == 'targ' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></b></td>
                                        <td width="10%" align="center"><b><a href="' 
$scripturl '?action='.$WhatPage.';start='$context['start'], ';sort=action'$context['sort_direction'] == 'down' && $context['sort_by'] == 'action' ';asc' '''">'$txt['karmawhat'],''$context['sort_by'] == 'action' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></b></td>
                                        <td width="31%" align="center"><b>'
$txt['karmadesc'],'</b></td>
                                        '
; if (!empty($modSettings['karmaurl'])) echo '<td width="6%" align="center"><b>'$txt['karmawhere'],'</b></td>'; echo '
                                        <td width="25%" align="center"><b><a href="' 
$scripturl '?action='.$WhatPage.';start='$context['start'], ';sort=time'$context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ';asc' '''">'$txt['karmatime'],''$context['sort_by'] == 'time' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></b></td>
                                            '
; if ($user_info['is_admin']) echo ' <td align="center"><b>Delete</b></td>'; echo '
                        </tr>'
;

        
//Âûâîäèì ïîëó÷åííûå äàííûå â òàáëè÷íîé ôîðìå.
        
foreach ($context['karma_changes'] as $member)

if (!empty(
$modSettings['karmalogview']) && ($user_info['is_admin']))

        echo 
'                
                                <script language="JavaScript1.2" type="text/javascript"><!--
                                var lastClicked = "";
                                // --></script>
                        <tr class="windowbg">
                                <td width="14%" align="center"><a href="'
$scripturl '?action=profile;u=' $member['id_exec'] . '" title="' $txt[92] . ' ' $member['executor'] . '">' $member['executor'] . '</a>'
                                if (!empty(
$modSettings['karmakarma'])) 
                                                echo
' <span class="smalltext">(+',$member['executorkarmagood'],'/-',$member['executorkarmabad'],')</span>'
        echo 
'</td>
                                <td width="14%" align="center"><a href="'
$scripturl '?action=profile;u=' $member['id_targ'] . '" title="' $txt[92] . ' ' $member['target'] . '">' $member['target'] . '</a>'
                                if (!empty(
$modSettings['karmakarma'])) 
                                                echo
' <span class="smalltext">(+',$member['targetkarmagood'],'/-',$member['targetkarmabad'],')</span>'
        echo 
'</td>
                                <td width="10%" align="center">'
$member['action'], '</td>
                                <td width="31%" align="center">'
$member['Description'], '</td>';
                                if (!empty(
$modSettings['karmaurl']))
                                                echo 
'<td width="6%" align="center">',$member['link']!='PM' '<a href="'$scripturl '?topic='$member['link'].'" target="_blank">'.$txt['karmawhereurl'].'</a>' $txt['karmawhereurl2'],'</td>';
        echo 
'                  <td width="25%" align="center">'$member['time'], '</td>
                                        <td align="center"><input type="checkbox" name="delete[]" value="'
$member['logtime'], '" class="check" /></td>
                        </tr>'
;
}
elseif (!empty(
$modSettings['karmalogview']))

        echo 
'
                        <tr class="windowbg">
                                <td width="14%" align="center"><a href="'
$scripturl '?action=profile;u=' $member['id_exec'] . '" title="' $txt[92] . ' ' $member['executor'] . '">' $member['executor'] . '</a>'
                                if (!empty(
$modSettings['karmakarma'])) 
                                                echo
' <span class="smalltext">(+',$member['executorkarmagood'],'/-',$member['executorkarmabad'],')</span>'
        echo 
'</td>
                                <td width="14%" align="center"><a href="'
$scripturl '?action=profile;u=' $member['id_targ'] . '" title="' $txt[92] . ' ' $member['target'] . '">' $member['target'] . '</a>'
                                if (!empty(
$modSettings['karmakarma'])) 
                                                echo
' <span class="smalltext">(+',$member['targetkarmagood'],'/-',$member['targetkarmabad'],')</span>'
        echo 
'</td>
                                <td width="10%" align="center">'
$member['action'], '</td>
                                <td width="31%" align="center">'
$member['Description'], '</td>';
                                if (!empty(
$modSettings['karmaurl']))
                                                echo 
'<td width="6%" align="center"><a href="'$scripturl '?topic='$member['link'],'" target="_blank">'.$txt['karmawhereurl'].'</a></td>';
        echo 
'                  <td width="25%" align="center">'$member['time'], '</td>
                        </tr>'
;
}
else
{
        echo 
'
                        <tr class="windowbg">
                                <td width="14%" align="center" >' 
$member['executor'] , ''
                                if (!empty(
$modSettings['karmakarma'])) 
                                                echo
' <span class="smalltext">(+',$member['executorkarmagood'],'/-',$member['executorkarmabad'],')</span>'
        echo 
'</td>
                                <td width="14%" align="center">' 
$member['target'] , '';
                                if (!empty(
$modSettings['karmakarma']))
                                                echo
' <span class="smalltext">(+',$member['targetkarmagood'],'/-',$member['targetkarmabad'],')</span>';
        echo 
'</td>
                                <td width="10%" align="center">'
$member['action'], '</td>
                                <td width="31%" align="center">'
$member['Description'], '</td>
                                <td width="6%" align="center"><a href="'
$scripturl '?topic='$member['link'],'" target="_blank">'.$txt['karmawhereurl'].'</a></td>
                                <td width="25%" align="center">'
$member['time'], '</td>
                        </tr>'
;
}          
        
//Ñòðîêà ñ îáùèì ÷èñëîì ðåçóëüòàòîâ è ññûëêàìè íà ñòðàíè÷êè ñ ðåçóëüòàòàìè
        
echo'
                        <tr class="titlebg" valign="middle" align="center">
                             <td align="center" colspan="'
$modSettings['karmaurl'] ? '6' '5' ,'">(',$txt['karmanumb'].$context['totalActions'],')</td>';
                        if (
$user_info['is_admin']) echo ' <td align="center"><label for="check_all1"><input type="checkbox" id="check_all1" onclick="invertAll(this, this.form, \'delete[]\'); this.form.check_all2.checked = this.checked;" class="check" /> </label></td>'; echo '
                        </tr>
                        <tr class="titlebg">
                             <td colspan="'
$modSettings['karmaurl'] ? '6' '5' ,'"><b>'$txt[139], ':</b> '$context['page_index'] , '</td>';
                        if (
$user_info['is_admin']) echo ' <td align="center"><div style="float: right;"><input type="submit" name="delete_selection" value="'$txt['karma_delete'], '" onclick="lastClicked = \'remove_selection\';" /> </div></td></form>'; echo '
                        </tr>
                        </table>'
;

        
//Ïðî÷àÿ ñòàòèñòèêà
        
if (!empty($modSettings['karmaotherstat']))
        {
        echo 
'<table border="0" width="100%" cellspacing="1" cellpadding="2" class="tborder">                         
                     <tr class="titlebg" valign="middle" align="center">
                         <td align="center" colspan="3"><b>'
$txt['karma_stat'], '</b>
                         </td>
                     </tr>
                     <tr class="windowbg">
                         <td width="38%" align="center"><b>'
,$txt['karma_other_stat'],'</b></td>
                         <td width="31%" align="center"><b>'
,$txt['karma_top_applaud'],'</b></td>
                         <td width="31%" align="center"><b>'
,$txt['karma_top_smite'],'</b></td>                         
                     </tr>
                     
                     <tr class="windowbg">
                         <td width="38%">
              <table border="0" cellpadding="1" cellspacing="0">                     
                     <tr><td width="28%">'
,$txt['karma_max_appl'],'</td>
                     <td width="10%" align="right">'
,$context['memidappl'],' + [',$context['memidapplcount'],']</td></tr>
                     <tr><td width="28%">'
,$txt['karma_max_smit'],'</td>
                     <td width="10%" align="right">'
,$context['memidsmit'],' - [',$context['memidsmitcount'],']</td></tr>
                     <tr><td width="28%">'
,$txt['karma_today'],'</td><td width="10%" align="right">',$context['today_point'] ,'</td></tr>
                     <tr><td width="28%">'
,$txt['karma_today_plus'],'</td><td width="10%" align="right">',$context['today_plus'] ,'</td></tr>
                     <tr><td width="28%">'
,$txt['karma_today_minus'],'</td><td width="10%" align="right">',$context['today_minus'] ,'</td></tr>
              </table></td>
                         <td width="31%">
              <table border="0" cellpadding="1" cellspacing="0">'
;
       foreach (
$context['top_applaud'] as $applauder)
                echo 
'   <tr class="windowbg">
                             <td width="13%" valign="top">'
$applauder['link'], '</td>                                                        
                             <td width="13%" align="left" valign="top">'
$applauder['num_karma'] > '<img src="' $settings['images_url'] . '/bar.gif" width="' $applauder['karma_percent'] . '" height="15" alt="" border="0" />' '&nbsp;''</td>
                             <td width="5%" align="center" valign="top">+ '
$applauder['num_karma'], '</td>                     
                         </tr>'
;
        echo 
'</table></td>        
                      <td width="31%">
              <table border="0" cellpadding="1" cellspacing="0">'
;
       foreach (
$context['top_smite'] as $smiter)
                echo 
'   <tr class="windowbg">
                             <td width="13%" valign="top">'
$smiter['link'], '</td>                                                        
                             <td width="13%" align="left" valign="top">'
$smiter['num_karma'] > '<img src="' $settings['images_url'] . '/bar.gif" width="' $smiter['karma_percent'] . '" height="15" alt="" border="0" />' '&nbsp;''</td>
                             <td width="5%" align="center" valign="top">- '
$smiter['num_karma'], '</td>                     
                         </tr>'
;
        echo 
'</table></td></table>';                         
        }

            
}
?>
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 05, 2006, 11:04:54 PM
OK, i understand. I forget to denote global variable $ID_MEMBER.

So, how about otherkarma?
Title: Re: Karma Description Mod
Post by: SleePy on February 05, 2006, 11:18:56 PM
theres other??? ... oh there is... um... hmmm... i have to think a bit on that... i got to remember how to grab the id number out of the url...

--Edit--


$WhatPageIsIt = $_SERVER["QUERY_STRING"];
$UserViewing = $_REQUEST["u"];
if(strstr($WhatPageIsIt, "viewkarma")){ $WhatPage='viewkarma';}
elseif(strstr($WhatPageIsIt, "otherkarma")){ $WhatPage='otherkarma;u='.$UserViewing;}
else{$WhatPage='ownkarma;u='.$ID_MEMBER.'';}
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 06, 2006, 12:17:12 AM
It's doesn't work.
If you'll see ownkarma, u=your own ID. And if you'll see action=viewkarma, you'll see an error in error log, because "u" variable is absent in url. (www.example.com/index.php?action=viewkarma)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 06, 2006, 12:28:31 AM
OK.
This work

$WhatPageIsIt = $_SERVER["QUERY_STRING"];
$UserViewing = $_REQUEST["u"];
if(strstr($WhatPageIsIt, "viewkarma")){ $WhatPage='viewkarma';}
elseif(strstr($WhatPageIsIt, "otherkarma")){ $WhatPage='otherkarma;u='.$UserViewing;}
else{$WhatPage='ownkarma;u='.$UserViewing.'';}


So. Still one bug is present. "u" variable in url like index.php?action=viewkarma

Edit
SleePy. For you. It's work without any bugs.

$WhatPageIsIt = $_SERVER["QUERY_STRING"];
if (isset($_REQUEST['u'])) $UserViewing = $_REQUEST['u'];
if(strstr($WhatPageIsIt, "viewkarma")){ $WhatPage='viewkarma';}
elseif(strstr($WhatPageIsIt, "otherkarma")){ $WhatPage='otherkarma;u='.$UserViewing;}
else{$WhatPage='ownkarma;u='.$UserViewing.'';}


For other. In KDM ver. 1.9.4 All this bugs is fixed.

Title: Re: Karma Description Mod
Post by: Chronic667 on February 06, 2006, 06:29:17 AM
The page for this mod isn't showing the download url for the lastest version.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 06, 2006, 07:45:22 AM
I know, i know. Moderator will clean old packages id and there will be new version.
Title: Re: Karma Description Mod
Post by: SleePy on February 06, 2006, 06:32:04 PM
oh.. i didn't think about that when they weren't on the page...
btw.. i saw the download for 1.9.4.. i was the first to download it.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 06, 2006, 06:46:58 PM
Ok, available.
Title: Re: Karma Description Mod
Post by: phoneix on February 07, 2006, 04:25:05 PM
can someone write which files and folders, should i make 777 to install this mod...

i use 1.1 rc2
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 07, 2006, 09:42:57 PM
Phoneix, http://_your_smf_forum_/index.php?action=packages;sa=options

Check "All files are writable." and save all changes. After installing the mod you can back to " Only the standard files are writable."

P.S.
Manualy, if you need.
smf\index.php
smf\Source\Admin.php
smf\Source\BoardIndex.php
smf\Source\Karma.php
smf\Source\ManagePermissions.php
smf\Source\ModSettings.php
smf\Source\Profile.php
smf\Themes\default\Admin.template.php
smf\Themes\default\BoardIndex.template.php
smf\Themes\default\Profile.template.php
smf\Themes\default\languages\Admin.english.php
smf\Themes\default\languages\Errors.english.php
smf\Themes\default\languages\Help.english.php
smf\Themes\default\languages\index.english.php
smf\Themes\default\languages\ManagePermissions.english.php
smf\Themes\default\languages\ModSettings.english.php
smf\Themes\default\languages\Profile.english.php
smf\Themes\default\languages\Who.english.php

smf\Sources and smf\Themes\default must be writable.
Title: Re: Karma Description Mod
Post by: perplexed on February 08, 2006, 09:12:40 AM
Hi

This is a great mod and I installed it with no probs whatsoever.

There is only one thing that I cant find  ???


the picture you have in the mod page that shows karma stats 'most applauded' 'most smited' etc 

I cant find that option

All I have in 'karma stats' is karma change description

Where can I find the info that shows who gets the most karma etc?

Thanks
Title: Re: Karma Description Mod
Post by: Chronic667 on February 08, 2006, 10:06:46 AM
I'm guessing you mean the "Top 5 applauded users" and "Top 5 smited users".

This shows on your karma stats page, to find that scroll to the bottom of your index page and next to [More Stats], you should see [Karama Stat]. That page is where you'll find them.
Title: Re: Karma Description Mod
Post by: perplexed on February 08, 2006, 02:43:09 PM
yeah thats what I thought too but its on showing when I click that link,

Heres what I see:

                                                 The survey of a change in the reputation of users 
Who                Whom        What (+/-)           For What                           When
name1            snap                +                      Luff ya!                           Today at 07:34:46 PM
nab1               heart               +                    for my cool banner!           Today at 07:30:29 PM
Ana                 Beth               +                    Thanks                                Today at 07:29:30 PM

and so on for 4 pages...

Which is pretty cool in itself but nowhere can I find the  "Top 5 applauded users" and "Top 5 smited users".

I can reorder that list to sort by who, when etc but that doesnt give me what is pictured on the mod description page :(
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 08, 2006, 05:19:11 PM
Do you enabled "Show other Karma Statistics"? in http://www.your_forum.com/index.php?action=featuresettings;sa=karma
Title: Re: Karma Description Mod
Post by: perplexed on February 08, 2006, 09:55:16 PM
in features and options, under karma, I have:

Karma 

Karma mode  Disable karma Enable karma total Enable karma positive/negative 
Enable Karma Description Mod   SWITCHED ON
Members per page in Karma Description log   10 MEMBER DEFAULT
Use member names as link to the profile   SWITCHED ON
Allow users view Karma Description log (See Permissions)   NOT SWITCHED ON
Enable karma links in users profiles   SWITCHED ON

I cant find that other option you mention ' show other karma stats' :(

If I follow that link ...myforum... ?action=featuresettings;sa=karma it takes me to the main index page of the forum. The karma stats link is next to the forum stats link but as I said above there is no 'top 5' listed

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 08, 2006, 10:02:38 PM
Hm...What version of KDM you use???
Final relise is KDM 1.9.4
Title: Re: Karma Description Mod
Post by: perplexed on February 09, 2006, 07:39:31 AM
I used 1.3 as I am using 1.1b3p,  should I have used a later version for my version of SMF?
Title: Re: Karma Description Mod
Post by: perplexed on February 09, 2006, 08:28:25 AM
ok I just realised there is another problem

the users cant view who gave them karma and who they gave it to, in their profiles.  It comes up with an error saying

' An Error Has Occurred!
Sorry - you don't have the proper permissions to view the Karma Description list. '

How do I fix this?

The only option I have in features and options is

Allow users view Karma Description log (See Permissions)   NOT SWITCHED ON

which will allow users to see all the karma for everyone right?

and
In permissions:
General A X D
  View forum statistics   
  View the memberlist   
  View Who's Online   
  View Karma Log   
  Search for posts and topics   
  Change other people's karma   

I just want them to be able to see their own :(



Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 09, 2006, 05:15:16 PM
Quote from: perplexed on February 09, 2006, 08:28:25 AM
which will allow users to see all the karma for everyone right?
Yes, you are right.

Quote
I just want them to be able to see their own
You can edit source code of my mod. I can't write this function at that time.
Title: Re: Karma Description Mod
Post by: perplexed on February 09, 2006, 05:28:35 PM
Quote from: Grek_Kamchatka on February 09, 2006, 05:15:16 PM
Quote from: perplexed on February 09, 2006, 08:28:25 AM
which will allow users to see all the karma for everyone right?
Yes, you are right.

Quote
I just want them to be able to see their own
You can edit source code of my mod. I can't write this function at that time.

lol maybe someone can but not me!  So are you saying that the mod doesnt work ie users wont be able to see the messages they are inputting and will continually get an error message when they try? :(
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 09, 2006, 06:52:42 PM
Hmm. In overall log they will resieve an error, if you unchecked "Allow users view Karma Description log"
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 09, 2006, 08:23:46 PM
One question. Why don't you use KDM 1.9.4? Now it compatible with all SMF relises
Title: Re: Karma Description Mod
Post by: perplexed on February 10, 2006, 08:50:56 AM
ah ok, I will try this, I thought only 1.3 was compatible with my version, thanks


edited to add:  ok I downloaded it and it is now sitting in package manager BUT it doesnt show [apply mod] option and has  a red icon next to it saying its an older version

I havent uninstalled the 1.3 version yet, so I guess I have to do that first or does the 1.9.4 overwrite the previous version, and

If I uninstall 1.3 then I lose all 25 pages of karma reasons that people have input so far?

thanks for your help
Title: Re: Karma Description Mod
Post by: Gwion on February 10, 2006, 11:58:25 AM
That's a nice mod but isn't it possible to correct the English words (I only use English) with one of the new releases?
I had to correct it to "who changed my karma" and a proper text for the second entry again.
It's no big deal but would make it more perfect. :)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 10, 2006, 09:58:01 PM
perplexed, you must uninstall your 1.3 (All 25 pages will stay there) and install new version. By the way, after uninstalling the mod, it will be better if you will upload clean files (like Karma.php and so on) to your host.

Gwion, i'm from Russia and you see my english =))
Can you write here your version of lang string?
Title: Re: Karma Description Mod
Post by: perplexed on February 11, 2006, 11:51:12 PM
Quote from: Grek_Kamchatka on February 10, 2006, 09:58:01 PM
perplexed, you must uninstall your 1.3 (All 25 pages will stay there) and install new version. By the way, after uninstalling the mod, it will be better if you will upload clean files (like Karma.php and so on) to your host.

Gwion, i'm from Russia and you see my english =))
Can you write here your version of lang string?

Hello Grek, your english is great!  It's much better than my Russian could ever be lol

IMO I guess the text should be 'who changed my karma' and 'whose karma did i change' but its easy to change... anyway

Remember me lol

I upgraded to RC2 today and then reinstalled the karma description mod 1.9.4.  I can now see the 'most applauded' and 'most smited' and I can see everyone's karma reasons, as I am the Admin

However, I do not have the links in the profiles and no one can see who gave them karma or who they gave it to.

Here is what I now have in the admin screen:

Karma
Karma mode  -  Enable karma total
Enable Karma Description Mod   YES
Members per page in Karma Description log   10
Use member names as link to the profile   YES
Allow users view Karma Description log (See Permissions)   NO
Enable karma links in users profiles   YES
Display users karma(+/-) in Karma Description Log   YES
Enable "Where" field in Karma Description Log   YES
Show other Karma Statistics   YES

But still no one can see the karma descriptions except the Admin

I wonder if someone who has this working with RC2 could tell me what is missing or what I have to do to get it to work for members?

Thanks to you
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 12, 2006, 12:43:48 AM
Quote
Hello Grek, your english is great!  It's much better than my Russian could ever be lol
Hi, lol...

P.S. They can't view Karma links in profiles, because they haven't proper permissions.
I think it will be better to divide View karma permission. May be in KDM ver.2.0 =)
Title: Re: Karma Description Mod
Post by: perplexed on February 12, 2006, 06:21:27 AM
Quote from: Grek_Kamchatka on February 12, 2006, 12:43:48 AM
Quote
Hello Grek, your english is great!  It's much better than my Russian could ever be lol
Hi, lol...

P.S. They can't view Karma links in profiles, because they haven't proper permissions.
I think it will be better to divide View karma permission. May be in KDM ver.2.0 =)

yes I understand what you mean but the only 'karma permissions' I have is to let member see the karma log:

  View forum statistics   
  View the memberlist   
  View Who's Online   
  View Karma Log         <-------------------------so this will let them see everyone's karma, I just want them to see their own
  Search for posts and topics   
  Change other people's karma
Title: Re: Karma Description Mod
Post by: Aitsukai on February 12, 2006, 08:11:06 AM
This might be a stupid question, but I have 1.9.3 installed and want to update, do I uninstall that before installing 1.9.4?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 12, 2006, 07:27:29 PM
Quote from: Aitsukai on February 12, 2006, 08:11:06 AM
This might be a stupid question, but I have 1.9.3 installed and want to update, do I uninstall that before installing 1.9.4?
Yes, you do.
Title: Re: Karma Description Mod
Post by: Aitsukai on February 13, 2006, 11:08:13 AM
Quote from: Grek_Kamchatka on February 12, 2006, 07:27:29 PM
Quote from: Aitsukai on February 12, 2006, 08:11:06 AM
This might be a stupid question, but I have 1.9.3 installed and want to update, do I uninstall that before installing 1.9.4?
Yes, you do.
I did that, but I lost all existing data that the karma description log entered into the database. o.O
Title: Re: Karma Description Mod
Post by: perplexed on February 13, 2006, 02:27:27 PM
Quote from: perplexed on February 12, 2006, 06:21:27 AM
Quote from: Grek_Kamchatka on February 12, 2006, 12:43:48 AM
Quote
Hello Grek, your english is great!  It's much better than my Russian could ever be lol
Hi, lol...

P.S. They can't view Karma links in profiles, because they haven't proper permissions.
I think it will be better to divide View karma permission. May be in KDM ver.2.0 =)

yes I understand what you mean but the only 'karma permissions' I have is to let member see the karma log:

  View forum statistics   
  View the memberlist   
  View Who's Online   
  View Karma Log         <-------------------------so this will let them see everyone's karma, I just want them to see their own
  Search for posts and topics   
  Change other people's karma


I reinstalled again and still the same problem.  Either I check view karma log and everyone sees all the karma descriptions for everyone or no one sees any.

There must be a way to get this to work correctly so that you can only see your own karma information?
Title: Re: Karma Description Mod
Post by: justxbox on February 13, 2006, 11:20:57 PM
Great Mod.

Thank You.
Title: Re: Karma Description Mod
Post by: desistyle on February 16, 2006, 06:58:23 PM
Hi can u tell me which version of this mod is compatiable with smf 1.06
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 16, 2006, 07:01:53 PM
I think 1.9.4
Title: Re: Karma Description Mod
Post by: z3nith on February 17, 2006, 11:10:16 PM
hi, thanks for great karma desc mod  :D
is that possible to modify karma display to show like: 90% (26), means 90% applaud from total 26 karma?
is that possible to control and limit karma because my users trade karma between friends and make fake karma reason, how about karma only can gave once for each topic that user become replayer to topic starter?

any suggestion? thanks  ;)
Title: Re: Karma Description Mod
Post by: perplexed on February 18, 2006, 09:33:30 AM
Quote from: perplexed on February 13, 2006, 02:27:27 PM
Quote from: perplexed on February 12, 2006, 06:21:27 AM
Quote from: Grek_Kamchatka on February 12, 2006, 12:43:48 AM
Quote
Hello Grek, your english is great!  It's much better than my Russian could ever be lol
Hi, lol...

P.S. They can't view Karma links in profiles, because they haven't proper permissions.
I think it will be better to divide View karma permission. May be in KDM ver.2.0 =)

yes I understand what you mean but the only 'karma permissions' I have is to let member see the karma log:

  View forum statistics   
  View the memberlist   
  View Who's Online   
  View Karma Log         <-------------------------so this will let them see everyone's karma, I just want them to see their own
  Search for posts and topics   
  Change other people's karma


I reinstalled again and still the same problem.  Either I check view karma log and everyone sees all the karma descriptions for everyone or no one sees any.

There must be a way to get this to work correctly so that you can only see your own karma information?


I'm sorry to post this again but it is still not working correctly I think?

My understanding is that members would only be able to view who gave them karma and who they gave karma too.

However, if I enable 'view karma log' then they are able to view the whole log ie everyone's karma, but can also view the 'who gave me karma' and 'who I gave karma too' via their profile.

Is that what is supposed to happen?  If you enable the 'view karma log' for members or groups they will now be able to see everyones karma reasons?

I'm not sure members would appreciate their private comments being read by other members.

Please confirm that this is the way it is supposed to work

~thanks
Title: Re: Karma Description Mod
Post by: bgspoonz on February 19, 2006, 04:47:57 PM
wheewww.. i read all 17 pages thus far.
First, MOD does work well on 'default theme'...
Will there be a KDM that will work on other themes, like Helios_Multi?

Or, if it is some simple copy/paste changes that can be made to have it work with other themes... that would be nice...
Title: Re: Karma Description Mod
Post by: Chronic667 on February 23, 2006, 08:00:14 AM
as far as i know it works fine on other themes, but the modifaction does not change the theme pages to add the new options.

So yeah.. its just a copy/paste thing, You could make the changes yourself by reading the Karma_Description_Mod.xml file found in the modifaction and altering the correct pages from the target theme.
Title: Re: Karma Description Mod
Post by: perplexed on February 25, 2006, 11:48:19 PM
I'm sorry but I dont think the mod is working or I am misunderstanding how it is meant to function?

in order for members to view who gave them karma or who they gave it to, you have to give them permission to see the karma log...  however that gives them permission to see EVERYBODY'S karma reasons.

surely that cant be right?

This works on other software like vbulletin but you only get to see your own, not everyone's

Am I missing something?  As it seems to be that members can see nothing (not even their own) or everything (everyone's karma reasons)

At the moment it is still switched off on my forum as members do not want other members reading their reasons.


*still confused*
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 26, 2006, 12:03:02 AM
Repeate. It will be in new version.
Title: Re: Karma Description Mod
Post by: perplexed on February 26, 2006, 09:03:08 PM
Quote from: Grek_Kamchatka on February 26, 2006, 12:03:02 AM
Repeate. It will be in new version.

Ok I'm sorry, I did not see where you said that before. Thank you :)
Title: Re: Karma Description Mod
Post by: SleePy on February 27, 2006, 09:01:31 PM
Hey Grek,

Is there something i can do to censor the description? My users are cursing in the karma log and its a public forum were we run the censors for the young people we have on the board. and im getting tired of phpmyadmin to change it. anyway you could make it so admins can change descriptions if they wanted to aswell?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 27, 2006, 09:18:01 PM
Hi, SleePy. You can delete uncensored description by clicking on delete button. But i can made a standart forum censoring function. Is it need?
Title: Re: Karma Description Mod
Post by: SleePy on February 27, 2006, 09:22:45 PM
i would rather not delete them so they are their for record. but something either censor or allow me to edit them would be nice.

edit. would doing something in the karma were it saves it to the log would i do this maybe

$_POST['Description'] = AddSlashes($_POST['Description']);
censorText($_POST['Description']);

??? or would i have to load anything? i found this in the display.php while looking a bug i had.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 27, 2006, 09:40:07 PM
Yep, you are right. It's standart SMF function. Use it
Title: Re: Karma Description Mod
Post by: California Dreamin on March 03, 2006, 12:59:12 AM
I have version 1.0.6 and I have attempted to install this mod.
I have downloaded the 1.9.2 version but, I'm unable to "apply mod"
The last 3 files I uploaded manually and changed the attributes to 777
What else do I need to do to make this mod work?



Install Actions for archive Karma_Description_Mod_ver11.1.9.2.zip:
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/Admin.php Success
2. Execute Modification ./Sources/Karma.php Success
3. Execute Modification ./Sources/ModSettings.php Success
4. Execute Modification ./Sources/BoardIndex.php Success
5. Execute Modification ./Sources/Profile.php Success
6. Execute Modification ./Sources/ManagePermissions.php Success
7. Execute Modification ./Themes/default/Admin.template.php Success
8. Execute Modification ./Themes/default/BoardIndex.template.php Success
9. Execute Modification ./Themes/default/Profile.template.php Success
10. Execute Modification ./Themes/default/languages/Admin.english.php Success
11. Execute Modification ./Themes/default/languages/ModSettings.english.php Success
12. Execute Modification ./Themes/default/languages/Who.english.php Success
13. Execute Modification ./Themes/default/languages/Help.english.php Success
14. Execute Modification ./Themes/default/languages/index.english.php Success
15. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Success
16. Execute Modification ./Themes/default/languages/Errors.english.php Success
17. Execute Modification ./Themes/default/languages/Profile.english.php Success
18. Execute Modification ./index.php Success
19. Execute Code db_change.php 
20. Extract File ./Sources/Viewkarma.php 
21. Extract File ./Themes/default/Viewkarma.template.php 
22. Extract File ./Themes/default/DescriptionKarma.template.php


Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 03, 2006, 09:32:54 AM
Admin-Feautures and Settings-Karma-Enable Karma Description Mod
Title: Re: Karma Description Mod
Post by: California Dreamin on March 04, 2006, 02:43:03 AM
Quote from: Grek_Kamchatka on March 03, 2006, 09:32:54 AM
Admin-Feautures and Settings-Karma-Enable Karma Description Mod

I can not locate Features and Settings.  .......is that the same as Features and Options?
and under that, I have
Karma...Karma Mode:
I only have 3 options: Enable Karma Total, Disable Karma & Enable Karma  Positive/Negative

HELP
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 04, 2006, 08:20:18 PM
Yes, i mean Features and Options, sorry =)
You haven't any karma settings there, because you don't installed my mod. You have all successfull options, but you must press the apply button.
By the way, in 1-2 day it will be a new version of KDM. You can waiting it. But if you can't, try KDM 1.9.4.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 06, 2006, 02:41:06 AM
KDM 1.9.5 now available. Enjoy!
Title: Re: Karma Description Mod
Post by: perplexed on March 06, 2006, 08:13:21 AM
Hello Greg

Thank you for this update. I have been waiting for this option for users to only see their own karma descriptions, however...

I installed this mod today on my testforum but I still have the same problem - users can see everyone's karma reasons.

Maybe I am doing something wrong.  Can you please tell me exactly how to set it up so that users can only read their own karma reasons and not the whole karma log?

Karma
Karma mode  Disable karma Enable karma total Enable karma positive/negative 
Enable Karma Description Mod   
Members per page in Karma Description log   
Use member names as link to their profiles   
Allow users view Karma Description log (See Permissions)   
Enable karma links in users profiles   
Only profile owner can view links to their karma log   
Display users karma(+/-) in Karma Description Log   
Enable "Where" field in Karma Description Log   
Show other Karma Statistics   
Applaud or smite users without explanation   
Write this in the log, when explanation is disabled   
Censor karma explanation   


Can you tell me how the above should be set?

I have tried all different options and switching the permissions on and off but with the 'view karma log' switched on in permissions they can still see the whole list of karma reasons and with 'view karma log' switched off they see no karma reasons, not even their own.

It still seems to be ruled by permissions regardless of what other options are set in the karma features and options

~thanks
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 06, 2006, 10:29:09 PM
In permissions - Disable viewing karma log for all users
In Features and Options - "Allow users view KD log" - disable
In Features and Options - "Only profile ownercan view links to their karma log" - enable.
Title: Re: Karma Description Mod
Post by: perplexed on March 07, 2006, 09:02:28 AM
Quote from: Grek_Kamchatka on March 06, 2006, 10:29:09 PM
In permissions - Disable viewing karma log for all users
In Features and Options - "Allow users view KD log" - disable
In Features and Options - "Only profile ownercan view links to their karma log" - enable.

Hello Greg

I tried this and users can not see the whole karma log which is good but they still can't see their own karma.

When I go to profile to view 'who gave me karma' I get the following error message

QuoteAn Error Has Occurred!
Sorry - you don't have the proper permissions to view the Karma Description list. 

Back
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 07, 2006, 06:43:07 PM
Whoops, sorry) You are right!
Try this steps:
1. Disable "View Karma Log" permission in Permissions to your users
2. "Allow users view Karma Description Log" must be enabled
3. "Only profile ownercan view links to their karma log" must be enable.
It work for me...
Title: Re: Karma Description Mod
Post by: perplexed on March 07, 2006, 10:14:27 PM
Quote from: Grek_Kamchatka on March 07, 2006, 06:43:07 PM
Whoops, sorry) You are right!
Try this steps:
1. Disable "View Karma Log" permission in Permissions to your users
2. "Allow users view Karma Description Log" must be enabled
3. "Only profile ownercan view links to their karma log" must be enable.
It work for me...

Hello greg

sorry it is still doing the same thing, giving the same error message, and not allowing members to view their karma.

As the admin, I can see it at all times but as a regular user on a test account, I get the error message and cant see any karma reasons. My other test users get the same error message also

I'm sorry to hassle you but I really want this mod to work but it still gives the same errors. :(
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 08, 2006, 12:01:48 AM
I undestand you. Sorry again man =) 15 min.

Edit
Ok, KDM 1.9.6 now available.

4 perplexed.
1. Enable "View Karma Log" permission in Permissions section to your users
2. "Allow users view Karma Description Log" must be enabled
3. "Only profile ownercan view links to their karma log" must be enable.

P.S. Not Greg)) I'm Grek
Title: Re: Karma Description Mod
Post by: perplexed on March 08, 2006, 08:41:04 AM
Hi GREK (sorry about the Greg, its a habit)

I uninstalled 1.9.5 and got an error on the uninstall /sources/karma.php

I installed 1.9.6 and it installed successfully but I got an error message at the top of the screen saying:

Error: Database modifications failed!Error: Database modifications failed!

Do you know what this means and how to fix it?  Does it have something to do with the error on the uninstall?

Also 1.9.6 works perfectly with regard to users only being able to see their own karma :)  thanks for that.

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 08, 2006, 05:11:22 PM
Everything ok. You resieved this error because db_change.php can't create 2 fields in your database because this fields already exist in your DB. In next version i substitute it for "Notice:"
Title: Re: Karma Description Mod
Post by: perplexed on March 08, 2006, 06:29:13 PM
Hi Grek

I got a little problem :(

Parse error: parse error, unexpected $ in /home/mysite/public_html/testforum/Sources/Karma.php on line 631

Can you help please?

Quote<?php
/******************************************************************************
* Karma.php                                                                   *
*******************************************************************************
* SMF: Simple Machines Forum                                                  *
* Open-Source Project Inspired by Zef Hemel ([email protected])                *
* =========================================================================== *
* Software Version:           SMF 1.1 RC2                                     *
* Software by:                Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2005 by:     Lewis Media (http://www.lewismedia.com)         *
* Support, News, Updates at:  http://www.simplemachines.org                   *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it     *
* under the terms of the provided license as published by Lewis Media.        *
*                                                                             *
* This program is distributed in the hope that it is and will be useful,      *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of            *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                        *
*                                                                             *
* See the "license.txt" file for details of the Simple Machines license.      *
* The latest version can always be found at http://www.simplemachines.org.    *
******************************************************************************/
if (!defined('SMF'))
   die('Hacking attempt...');

/*   This file contains one humble function, which applauds or smites a user.

   void ModifyKarma()
      - gives or takes karma from a user.
      - redirects back to the referrer afterward, whether by javascript or
        the passed parameters.
      - requires the karma_edit permission, and that the user isn't a guest.
      - depends on the karmaMode, karmaWaitTime, and karmaTimeRestrictAdmins
        settings.
      - is accessed via ?action=modifykarma.
*/

function ModKarm()
{
        global $modSettings, $db_prefix, $txt, $ID_MEMBER, $user_info, $topic, $scripturl;

        // If the mod is disabled, show an error.
        if (empty($modSettings['karmaMode']))
                fatal_lang_error('smf63');

                if (!empty($modSettings['karmasurv']))
                ModKarm();
// If you're a guest or can't do this, blow you off...
        is_not_guest();
        isAllowedTo('karma_edit');

        checkSession('get');

        // If you don't have enough posts, tough luck.
        // !!! Should this be dropped in favor of post group permissions?  Should this apply to the member you are smiting/applauding?
        if ($user_info['posts'] < $modSettings['karmaMinPosts'])
                fatal_error($txt['smf60'] . $modSettings['karmaMinPosts'] . '.');

        // And you can't modify your own, punk! (use the profile if you need to.)
        if (empty($_REQUEST['uid']) || (int) $_REQUEST['uid'] == $ID_MEMBER)
                fatal_lang_error('smf61', false);

        // The user ID _must_ be a number, no matter what.
        $_REQUEST['uid'] = (int) $_REQUEST['uid'];

        // Applauding or smiting?
        $dir = $_REQUEST['sa'] != 'applaud' ? -1 : 1;

        // Start off with no change in karma.
        $action = 0;

        (!isset($modSettings['karmawhatwrite'])) ? $Description='' : $Description=$modSettings['karmawhatwrite'];


          // Not an administrator... or one who is restricted as well.
        if (!empty($modSettings['karmaTimeRestrictAdmins']) || !allowedTo('moderate_forum'))
        {
                // Find out if this user has done this recently...
                $request = db_query("
                        SELECT action
                        FROM {$db_prefix}log_karma
                        WHERE ID_TARGET = $_REQUEST[uid]
                                AND ID_EXECUTOR = $ID_MEMBER
                        LIMIT 1", __FILE__, __LINE__);
                if (mysql_num_rows($request) > 0)
                        list ($action) = mysql_fetch_row($request);
                mysql_free_result($request);
        }

        // They haven't, not before now, anyhow.

/*
        if (empty($action) || empty($modSettings['karmaWaitTime']))
        {
                //Prepare link
                    if (isset ($_REQUEST['topic'])) {
                         $link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         $link = AddSlashes($link);
                         }
                elseif (isset($_REQUEST['f'])) {
                         $link = 'PM';
                         }

                // Put it in the log.
                db_query("
                        INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$Description', '$link', $ID_MEMBER, ". time()." )
                        ", __FILE__, __LINE__);

                // Change by one.
                updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karmaGood' : 'karmaBad' => '+'));
        }
        else
        {       $request = db_query("
                                        SELECT logTime
                                        FROM {$db_prefix}log_karma
                                        WHERE ID_TARGET=$_REQUEST[uid]
                                        AND ID_EXECUTOR=$ID_MEMBER
                                        ORDER BY logTime DESC
                                        LIMIT 1
                                        ", __FILE__, __LINE__);
                $row = mysql_fetch_assoc($request);
                mysql_free_result($request);

                $restricttime = time() - $row['logTime'];
                $timelog = (int) ($modSettings['karmaWaitTime'] * 3600);

                // If you are gonna try to repeat.... don't allow it.
                if ($restricttime < $timelog)
                        fatal_error($txt['smf62'] . ' ' . $modSettings['karmaWaitTime'] . ' ' . $txt[578] . '.', false);

                //Prepare link
                    if (isset ($_REQUEST['topic'])) {
                         $link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         $link = AddSlashes($link);
                         }
                elseif (isset($_REQUEST['f'])) {
                         $link = 'PM';
                         }

                // You decided to go back on your previous choice?
                db_query("
                        INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$Description', '$link', $ID_MEMBER, ". time()." )
                        ", __FILE__, __LINE__);

               
*/
/* They haven't, not before now, anyhow.
           If the key isn't in the array it will return.
           Or if it does exist and it's length is 0 then it will return.
           If Karma Description Mod disable then easy smite or applaud */
if (!empty($modSettings['karmadescmod'])){
if (!array_key_exists('Description',$_POST) || strlen($_POST["Description"]) == 0){return;}}


{ if ( empty($action) || empty($modSettings['karmaWaitTime']))
        { $_POST['Description'] = AddSlashes($_POST['Description']);
          if (!empty($modSettings['karmacensor']))
          censorText($_POST['Description']);
     
      //Prepare link
          if (isset ($_REQUEST['topic'])) {
                         $link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         $link = AddSlashes($link);
                         }
                elseif (isset($_REQUEST['f'])) {
                         $link = 'PM';
                         }

      // Put it in the log.
                db_query("
                        INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, ". time()." )
                        ", __FILE__, __LINE__);
// Change by one.
      updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karmaGood' : 'karmaBad' => '+'));
   }
   else
   {
      $request = db_query("
               SELECT logTime
               FROM {$db_prefix}log_karma
               WHERE ID_TARGET=$_REQUEST[uid]
               AND ID_EXECUTOR=$ID_MEMBER
               ORDER BY logTime DESC
               LIMIT 1
               ", __FILE__, __LINE__);
      $row = mysql_fetch_assoc($request);
      mysql_free_result($request);
            
      $restricttime = time() - $row['logTime'];
      $timelog = (int) ($modSettings['karmaWaitTime'] * 3600);

      // If you are gonna try to repeat.... don't allow it.
      if ($restricttime < $timelog)
         fatal_error($txt['smf62'] . ' ' . $modSettings['karmaWaitTime'] . ' ' . $txt[578] . '.', false);

      //Prepare link
          if (isset ($_REQUEST['topic'])) {
                         $link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         $link = AddSlashes($link);
                         }
                elseif (isset($_REQUEST['f'])) {
                         $link = 'PM';
                         }

      // You decided to go back on your previous choice?
      db_query("
         INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, ". time()." )
                        ", __FILE__, __LINE__);

// It was recently changed the OTHER way... so... reverse it!
                if ($dir == 1)
                        updateMemberData($_REQUEST['uid'], array('karmaGood' => '+'));
                else
                        updateMemberData($_REQUEST['uid'], array('karmaBad' => '+'));
        }

        // Figure out where to go back to.... the topic?
        if (isset($topic))
                redirectexit('topic=' . $topic . '.' . $_REQUEST['start'] . '#msg' . $_REQUEST['m']);
        // Hrm... maybe a personal message?
        elseif (isset($_REQUEST['f']))
                redirectexit('action=pm;f=' . $_REQUEST['f'] . ';start=' . $_REQUEST['start'] . (isset($_REQUEST['l']) ? ';l=' . $_REQUEST['l'] : '') . (isset($_REQUEST['pm']) ? '#' . $_REQUEST['pm'] : ''));

          else
        {
                echo '
<html>
        <head>
                <title>...</title>
                <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                        history.go(-1);
                // ]',']></script>
        </head>
        <body>&laquo;</body>
</html>';

                obExit(false);
        }
}


function ModKarm()
{
        global $modSettings, $db_prefix, $txt, $ID_MEMBER, $user_info, $topic;

        // If the mod is disabled, show an error.
        if (empty($modSettings['karmaMode']))
                fatal_lang_error('smf63');

        // If you're a guest or can't do this, blow you off...
        is_not_guest();
        isAllowedTo('karma_edit');

        checkSession('get');

        // If you don't have enough posts, tough luck.
        // !!! Should this be dropped in favor of post group permissions?  Should this apply to the member you are smiting/applauding?
        if ($user_info['posts'] < $modSettings['karmaMinPosts'])
                fatal_error($txt['smf60'] . $modSettings['karmaMinPosts'] . '.');

        // And you can't modify your own, punk! (use the profile if you need to.)
        if (empty($_REQUEST['uid']) || (int) $_REQUEST['uid'] == $ID_MEMBER)
                fatal_lang_error('smf61', false);

        // The user ID _must_ be a number, no matter what.
        $_REQUEST['uid'] = (int) $_REQUEST['uid'];

        // Applauding or smiting?
        $dir = $_REQUEST['sa'] != 'applaud' ? -1 : 1;

        // Start off with no change in karma.
        $action = 0;

        (!isset($modSettings['karmawhatwrite'])) ? $Description='' : $Description=$modSettings['karmawhatwrite'];


          // Not an administrator... or one who is restricted as well.
        if (!empty($modSettings['karmaTimeRestrictAdmins']) || !allowedTo('moderate_forum'))
        {
                // Find out if this user has done this recently...
                $request = db_query("
                        SELECT action
                        FROM {$db_prefix}log_karma
                        WHERE ID_TARGET = $_REQUEST[uid]
                                AND ID_EXECUTOR = $ID_MEMBER
                        LIMIT 1", __FILE__, __LINE__);
                if (mysql_num_rows($request) > 0)
                        list ($action) = mysql_fetch_row($request);
                mysql_free_result($request);
        }

        // They haven't, not before now, anyhow.
        if (empty($action) || empty($modSettings['karmaWaitTime']))
        {
                //Prepare link
                    if (isset ($_REQUEST['topic'])) {
                         $link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         $link = AddSlashes($link);
                         }
                elseif (isset($_REQUEST['f'])) {
                         $link = 'PM';
                         }

                // Put it in the log.
                db_query("
                        INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$Description', '$link', $ID_MEMBER, ". time()." )
                        ", __FILE__, __LINE__);

                // Change by one.
                updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karmaGood' : 'karmaBad' => '+'));
        }
        else
        {       $request = db_query("
                                        SELECT logTime
                                        FROM {$db_prefix}log_karma
                                        WHERE ID_TARGET=$_REQUEST[uid]
                                        AND ID_EXECUTOR=$ID_MEMBER
                                        ORDER BY logTime DESC
                                        LIMIT 1
                                        ", __FILE__, __LINE__);
                $row = mysql_fetch_assoc($request);
                mysql_free_result($request);

                $restricttime = time() - $row['logTime'];
                $timelog = (int) ($modSettings['karmaWaitTime'] * 3600);

                // If you are gonna try to repeat.... don't allow it.
                if ($restricttime < $timelog)
                        fatal_error($txt['smf62'] . ' ' . $modSettings['karmaWaitTime'] . ' ' . $txt[578] . '.', false);

                //Prepare link
                    if (isset ($_REQUEST['topic'])) {
                         $link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         $link = AddSlashes($link);
                         }
                elseif (isset($_REQUEST['f'])) {
                         $link = 'PM';
                         }

                // You decided to go back on your previous choice?
                db_query("
                        INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$Description', '$link', $ID_MEMBER, ". time()." )
                        ", __FILE__, __LINE__);

                // It was recently changed the OTHER way... so... reverse it!
                if ($dir == 1)
                        updateMemberData($_REQUEST['uid'], array('karmaGood' => '+'));
                else
                        updateMemberData($_REQUEST['uid'], array('karmaBad' => '+'));
        }

        // Figure out where to go back to.... the topic?
        if (isset($topic))
                redirectexit('topic=' . $topic . '.' . $_REQUEST['start'] . '#msg' . $_REQUEST['m']);
        // Hrm... maybe a personal message?
        elseif (isset($_REQUEST['f']))
                redirectexit('action=pm;f=' . $_REQUEST['f'] . ';start=' . $_REQUEST['start'] . (isset($_REQUEST['l']) ? ';l=' . $_REQUEST['l'] : '') . (isset($_REQUEST['pm']) ? '#' . $_REQUEST['pm'] : ''));

          else
        {
                echo '
<html>
        <head>
                <title>...</title>
                <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                        history.go(-1);
                // ]',']></script>
        </head>
        <body>&laquo;</body>
</html>';

                obExit(false);
        }
}


// Modify a user's karma.
function ModifyKarma()
{
   global $modSettings, $db_prefix, $txt, $ID_MEMBER, $user_info, $topic, $scripturl;

   // If the mod is disabled, show an error.
   if (empty($modSettings['karmaMode']))
      fatal_lang_error('smf63');

           if (!empty($modSettings['karmasurv']))
                ModKarm();
// If you're a guest or can't do this, blow you off...
   is_not_guest();
   isAllowedTo('karma_edit');

   checkSession('get');

   // If you don't have enough posts, tough luck.
   // !!! Should this be dropped in favor of post group permissions?  Should this apply to the member you are smiting/applauding?
   if ($user_info['posts'] < $modSettings['karmaMinPosts'])
      fatal_error($txt['smf60'] . $modSettings['karmaMinPosts'] . '.');

   // And you can't modify your own, punk! (use the profile if you need to.)
   if (empty($_REQUEST['uid']) || (int) $_REQUEST['uid'] == $ID_MEMBER)
      fatal_lang_error('smf61', false);

   // The user ID _must_ be a number, no matter what.
   $_REQUEST['uid'] = (int) $_REQUEST['uid'];

   // Applauding or smiting?
   $dir = $_REQUEST['sa'] != 'applaud' ? -1 : 1;

   
//Loading Template of Description
if (!empty($modSettings['karmadescmod'])){
        loadTemplate('DescriptionKarma');}

        //Prepare some variables
        $context['page_title'] = $txt['viewkarma_title'];
        $context['linktree'][] = array(
            'url' => $scripturl . '?action=modifykarma',
            'name' => $txt['viewkarma_title'] );

   // Start off with no change in karma.
   $action = 0;

   // Not an administrator... or one who is restricted as well.
   if (!empty($modSettings['karmaTimeRestrictAdmins']) || !allowedTo('moderate_forum'))
   {
      // Find out if this user has done this recently...
      $request = db_query("
         SELECT action
         FROM {$db_prefix}log_karma
         WHERE ID_TARGET = $_REQUEST[uid]
            AND ID_EXECUTOR = $ID_MEMBER
         LIMIT 1", __FILE__, __LINE__);
      if (mysql_num_rows($request) > 0)
         list ($action) = mysql_fetch_row($request);
      mysql_free_result($request);
   }

   // They haven't, not before now, anyhow.

/*
   if (empty($action) || empty($modSettings['karmaWaitTime']))
   {
      // Put it in the log.
      db_query("
         REPLACE INTO {$db_prefix}log_karma
            (action, ID_TARGET, ID_EXECUTOR, logTime)
         VALUES ($dir, $_REQUEST[uid], $ID_MEMBER, " . time() . ')', __FILE__, __LINE__);

      // Change by one.
      updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karmaGood' : 'karmaBad' => '+'));
   }
   else
   {
      // If you are gonna try to repeat.... don't allow it.
      if ($action == $dir)
         fatal_error($txt['smf62'] . ' ' . $modSettings['karmaWaitTime'] . ' ' . $txt[578] . '.', false);

      // You decided to go back on your previous choice?
      db_query("
         UPDATE {$db_prefix}log_karma
         SET action = $dir, logTime = " . time() . "
         WHERE ID_TARGET = $_REQUEST[uid]
            AND ID_EXECUTOR = $ID_MEMBER
         LIMIT 1", __FILE__, __LINE__);

      
*/
/* They haven't, not before now, anyhow.
           If the key isn't in the array it will return.
           Or if it does exist and it's length is 0 then it will return.
           If Karma Description Mod disable then easy smite or applaud */
if (!empty($modSettings['karmadescmod'])){
if (!array_key_exists('Description',$_POST) || strlen($_POST["Description"]) == 0){return;}}


{ if ( empty($action) || empty($modSettings['karmaWaitTime']))
        { $_POST['Description'] = AddSlashes($_POST['Description']);
          if (!empty($modSettings['karmacensor']))
          censorText($_POST['Description']);
     
      //Prepare link
          if (isset ($_REQUEST['topic'])) {
                         $link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         $link = AddSlashes($link);
                         }
                elseif (isset($_REQUEST['f'])) {
                         $link = 'PM';
                         }

      // Put it in the log.
                db_query("
                        INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, ". time()." )
                        ", __FILE__, __LINE__);
// Change by one.
      updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karmaGood' : 'karmaBad' => '+'));
   }
   else
   {
      $request = db_query("
               SELECT logTime
               FROM {$db_prefix}log_karma
               WHERE ID_TARGET=$_REQUEST[uid]
               AND ID_EXECUTOR=$ID_MEMBER
               ORDER BY logTime DESC
               LIMIT 1
               ", __FILE__, __LINE__);
      $row = mysql_fetch_assoc($request);
      mysql_free_result($request);
            
      $restricttime = time() - $row['logTime'];
      $timelog = (int) ($modSettings['karmaWaitTime'] * 3600);

      // If you are gonna try to repeat.... don't allow it.
      if ($restricttime < $timelog)
         fatal_error($txt['smf62'] . ' ' . $modSettings['karmaWaitTime'] . ' ' . $txt[578] . '.', false);

      //Prepare link
          if (isset ($_REQUEST['topic'])) {
                         $link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         $link = AddSlashes($link);
                         }
                elseif (isset($_REQUEST['f'])) {
                         $link = 'PM';
                         }

      // You decided to go back on your previous choice?
      db_query("
         INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, ". time()." )
                        ", __FILE__, __LINE__);

// It was recently changed the OTHER way... so... reverse it!
      if ($dir == 1)
         updateMemberData($_REQUEST['uid'], array('karmaGood' => '+'));
      else
         updateMemberData($_REQUEST['uid'], array('karmaBad' => '+'));
}
   }

   // Figure out where to go back to.... the topic?
   if (isset($topic))
      redirectexit('topic=' . $topic . '.' . $_REQUEST['start'] . '#msg' . $_REQUEST['m']);
   // Hrm... maybe a personal message?
   elseif (isset($_REQUEST['f']))
      redirectexit('action=pm;f=' . $_REQUEST['f'] . ';start=' . $_REQUEST['start'] . (isset($_REQUEST['l']) ? ';l=' . $_REQUEST['l'] : '') . (isset($_REQUEST['pm']) ? '#' . $_REQUEST['pm'] : ''));
   // JavaScript as a last resort.
/*

   else
   {
      echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
      <title>...</title>
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         history.go(-1);
      // ]]></script>
   </head>
   <body>&laquo;</body>
</html>';

      obExit(false);
   }
}

*/
// What's this?  I dunno, what are you talking about?  Never seen this before, nope.  No siree.
function BookOfUnknown()
{
   global $context;

   if (strpos($_GET['action'], 'mozilla') !== false && !$context['browser']['is_gecko'])
      redirectexit('http://www.getfirefox.com/');
   elseif (strpos($_GET['action'], 'mozilla') !== false)
      redirectexit('about:mozilla');

   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
      <title>The Book of Unknown, ', @$_GET['verse'] == '2:18' ? '2:18' : '4:16', '</title>
      <style type="text/css">
         em
         {
            font-size: 1.3em;
            line-height: 0;
         }
      </style>
   </head>
   <body style="background-color: #444455; color: white; font-style: italic; font-family: serif;">
      <div style="margin-top: 12%; font-size: 1.1em; line-height: 1.4; text-align: center;">';
   if (@$_GET['verse'] == '2:18')
      echo '
         Woe, it was that his name wasn\'t <em>known</em>, that he came in mystery, and was recognized by none.&nbsp;And it became to be in those days <em>something</em>.&nbsp; Something not yet <em id="unknown" name="[Unknown]">unknown</em> to mankind.&nbsp; And thus what was to be known the <em>secret project</em> began into its existence.&nbsp; Henceforth the opposition was only <em>weary</em> and <em>fearful</em>, for now their match was at arms against them.';
   else
      echo '
         And it came to pass that the <em>unbelievers</em> dwindled in number and saw rise of many <em>proselytizers</em>, and the opposition found fear in the face of the <em>x</em> and the <em>j</em> while those who stood with the <em>something</em> grew stronger and came together.&nbsp; Still, this was only the <em>beginning</em>, and what lay in the future was <em id="unknown" name="[Unknown]">unknown</em> to all, even those on the right side.';
   echo '
      </div>
      <div style="margin-top: 2ex; font-size: 2em; text-align: right;">';
   if (@$_GET['verse'] == '2:18')
      echo '
         from <span style="font-family: Georgia, serif;"><strong><a href="http://www.unknownbrackets.com/about:unknown" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 2:18</span>';
   else
      echo '
         from <span style="font-family: Georgia, serif;"><strong><a href="http://www.unknownbrackets.com/about:unknown" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 4:16</span>';
   echo '
      </div>
   </body>
</html>';

   obExit(false);
}

}

?>
Title: Re: Karma Description Mod
Post by: perplexed on March 08, 2006, 10:27:29 PM
(forgot to say)  they are getting the error message when they click on applaud or smite when trying to give someone karma.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 08, 2006, 11:55:09 PM
   Hm. I don't know, but i just now install vanilla smf forum and upload and install KDM 1.9.6 and everything work fine.
   Uninstall KDM 1.9.6, upload vanilla source and template forum files and install KDM 1.9.6 again.

By the way, try to download KDM 1.9.6 again. May be you have corrupt file.
Title: Re: Karma Description Mod
Post by: perplexed on March 09, 2006, 08:39:23 AM
Hi Grek, Uninstalling 1.9.5 gave me that error in /sources.karma.php in the uninstall as I mentioned above.  and then when I installed 1.9.6 I got the 'parse' problem above... 

so what I did today was upload a fresh copy of /sources.karma.php and made sure I could give karma without errors and then reinstalled 1.9.6 again

Everything is working now as far as I can see. I can give karma and I can see my own karma reasons, so I think it's ok now.
But you may want to check that problem with the uninstall.

~thanks again
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 09, 2006, 07:39:22 PM
Yep, you resieved this error because you edit karma.php by hand. I think so...
Now everything ok and it's wonderfull.
Title: Re: Karma Description Mod
Post by: z3nith on March 09, 2006, 09:51:02 PM
thanks for the new version of Karma Mod :)

but i need to really strict Karma in my forum, is that possible?
- karma limited with post amount, so if they already post 5 times they only have 5 karma to give
- karma only can be give to a topic starter by their replier.

thanks,
ek kian
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 09, 2006, 11:21:13 PM
Quote
- karma limited with post amount, so if they already post 5 times they only have 5 karma to give
It's possible, but i think it unclaimed. In additions it's hard.

Quote
- karma only can be give to a topic starter by their replier.
Open Errors.english.php and past at the end of the file this string:
$txt['karma_not_topic_starter'] = 'Sorry, it\'s not topic starter.';

Then open Karma.php and find this code in ModKarm() and ModifyKarma() functions:

// Applauding or smiting?
$dir = $_REQUEST['sa'] != 'applaud' ? -1 : 1;


Past after it this

$request = db_query("
                        SELECT ID_MEMBER_STARTED
                        FROM {$db_prefix}topics
                        WHERE ID_TOPIC = $_REQUEST[topic]
                        LIMIT 1", __FILE__, __LINE__);
        $row = mysql_fetch_row($request);
                mysql_free_result($request);
        if ($_REQUEST['uid'] != $row[0] && $user_info['is_admin']!=1)
              fatal_lang_error('karma_not_topic_starter', false);

That's all. Now if your users will try to change karma other people, not to topic starter, they will resieve an error message.

Quote
thanks,
ek kian
You are welcome

P.S. In new version it will be a standart function
Title: Unknown column 'lk.link' in 'field list'
Post by: b0bby on March 10, 2006, 07:54:14 PM
I had karma mod installed before it worked before fine but now every tim i want to add karma notes or view karma stats it gives me error message:

Unknown column 'lk.link' in 'field list'
File: C:\WWW\Apache2\htdocs\forum\Sources\Viewkarma.php
Line: 71

Please help me i know its probably some code that has been left out in my mysql database that i have to delete but which one?

thanks a lot
Title: Re: Karma Description Mod
Post by: z3nith on March 12, 2006, 01:37:53 PM
Quote
P.S. In new version it will be a standard function

thank you very much :D you the best Mr.Grek :)

i thought that karma desc mod have very great potential to expand SMF capabilities,
we can make kind of expert-exchange.com where topic starter choose one replier as
accepted answer and topic starter give karma to that replier, or we can make SMF
have kind of ebay-like feature where topic starter can choose one replier as someone
who win the bid and after that they can give karma each other.

please keep this mod alive.
thanks a lot  :)
Title: Re: Karma Description Mod
Post by: Washi on March 18, 2006, 10:23:05 PM
Ok this is driving me insane. Could someone post a Karma.php file from 1.0.6 with just the Karma mod installed? I mean, a source 1.0.6 with just the KDM installed? I'm dying here.
I've been working on it for the last 2 hours, and still nothing. I'm about to start tearing my hair out.
I get either a blank page or a page with an error, which, of course, I can't remake, since I have no idea how I made it.
Help?
Title: Re: Karma Description Mod
Post by: z3nith on March 18, 2006, 11:32:32 PM
This SMF1.0.6 with KDM 1.9.2 and works ;)


<?php
/******************************************************************************
* Karma.php                                                                   *
*******************************************************************************
* SMF: Simple Machines Forum                                                  *
* Open-Source Project Inspired by Zef Hemel ([email protected])                *
* =========================================================================== *
* Software Version:           SMF 1.0                                         *
* Software by:                Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2004 by:     Lewis Media (http://www.lewismedia.com)         *
* Support, News, Updates at:  http://www.simplemachines.org                   *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it     *
* under the terms of the provided license as published by Lewis Media.        *
*                                                                             *
* This program is distributed in the hope that it is and will be useful,      *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of            *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                        *
*                                                                             *
* See the "license.txt" file for details of the Simple Machines license.      *
* The latest version can always be found at http://www.simplemachines.org.    *
******************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file contains one humble function, which applauds or smites a user.

void ModifyKarma()
- gives or takes karma from a user.
- redirects back to the referrer afterward, whether by javascript or
  the passed parameters.
- requires the karma_edit permission, and that the user isn't a guest.
- depends on the karmaMode, karmaWaitTime, and karmaTimeRestrictAdmins
  settings.
- is accessed via ?action=modifykarma.
*/

// Modify a user's karma.
function ModifyKarma()
{
global $modSettings$db_prefix$txt$ID_MEMBER$user_info$topic$scripturl;

// If the mod is disabled, show an error.
if (empty($modSettings['karmaMode']))
fatal_lang_error('smf63');

// If you're a guest or can't do this, blow you off...
is_not_guest();
isAllowedTo('karma_edit');

// If you don't have enough posts, tough luck.
if ($user_info['posts'] < $modSettings['karmaMinPosts'])
fatal_error($txt['smf60'] . $modSettings['karmaMinPosts'] . '.');

// And you can't modify your own, punk! (use the profile if you need to.)
if (empty($_REQUEST['uid']) || (int) $_REQUEST['uid'] == $ID_MEMBER)
fatal_lang_error('smf61'false);

// The user ID _must_ be a number, no matter what.
$_REQUEST['uid'] = (int) $_REQUEST['uid'];

// Applauding or smiting?
$dir $_REQUEST['sa'] != 'applaud' ? -1;


//Loading Template of Description
if (!empty($modSettings['karmadescmod'])){
        
loadTemplate('DescriptionKarma');}

        
//Prepare some variables
        
$context['page_title'] = $txt['viewkarma_title'];
        
$context['linktree'][] = array(
            
'url' => $scripturl '?action=modifykarma',
            
'name' => $txt['viewkarma_title'] );

// Start off with no change in karma.
$action 0;

// Not an administrator... or one who is restricted as well.
if (!empty($modSettings['karmaTimeRestrictAdmins']) || !allowedTo('moderate_forum'))
{
// Find out if this user has done this recently...
$request db_query("
SELECT action
FROM 
{$db_prefix}log_karma
WHERE ID_TARGET = 
$_REQUEST[uid]
AND ID_EXECUTOR = 
$ID_MEMBER
LIMIT 1"
__FILE____LINE__);
if (mysql_num_rows($request) > 0)
list ($action) = mysql_fetch_row($request);
mysql_free_result($request);
}

// They haven't, not before now, anyhow.

/*
if (empty($action))
{
// Put it in the log.
db_query("
REPLACE INTO {$db_prefix}log_karma
(action, ID_TARGET, ID_EXECUTOR, logTime)
VALUES ($dir, $_REQUEST[uid], $ID_MEMBER, " . time() . ')', __FILE__, __LINE__);

// Change by one.
updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karmaGood' : 'karmaBad' => '+'));
}
else
{
// If you are gonna try to repeat.... don't allow it.
if ($action == $dir)
fatal_error($txt['smf62'] . ' ' . $modSettings['karmaWaitTime'] . ' ' . $txt[578] . '.', false);

// You decided to go back on your previous choice?
db_query("
UPDATE {$db_prefix}log_karma
SET action = $dir, logTime = " . time() . "
WHERE ID_TARGET = $_REQUEST[uid]
AND ID_EXECUTOR = $ID_MEMBER
LIMIT 1", __FILE__, __LINE__);


*/
/* They haven't, not before now, anyhow.
           If the key isn't in the array it will return.
           Or if it does exist and it's length is 0 then it will return.
           If Karma Description Mod disable then easy smite or applaud */
if (!empty($modSettings['karmadescmod'])){
if (!
array_key_exists('Description',$_POST) || strlen($_POST["Description"]) == 0){return;}}


{ if ( empty(
$action) || empty($modSettings['karmaWaitTime']))
        { 
$_POST['Description'] = AddSlashes($_POST['Description']);
                
//Prepare link
    if (isset ($_REQUEST['topic'])) {
                         
$link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         
$link AddSlashes($link);
                         }
                elseif (isset(
$_REQUEST['f'])) {
                         
$link 'PM';
                         }

// Put it in the log.
                
db_query("
                        INSERT INTO 
{$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES (
$dir$_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, "time()." )
                        "
__FILE____LINE__);
// Change by one.
updateMemberData($_REQUEST['uid'], array($dir == 'karmaGood' 'karmaBad' => '+'));
}
else
{
$request db_query("
SELECT logTime
FROM 
{$db_prefix}log_karma
WHERE ID_TARGET=
$_REQUEST[uid]
AND ID_EXECUTOR=
$ID_MEMBER
ORDER BY logTime DESC
LIMIT 1
"
__FILE____LINE__);
$row mysql_fetch_assoc($request);
mysql_free_result($request);

$restricttime time() - $row['logTime'];
$timelog = (int) ($modSettings['karmaWaitTime'] * 3600);

// If you are gonna try to repeat.... don't allow it.
if ($restricttime $timelog)
fatal_error($txt['smf62'] . ' ' $modSettings['karmaWaitTime'] . ' ' $txt[578] . '.'false);

//Prepare link
    if (isset ($_REQUEST['topic'])) {
                         
$link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         
$link AddSlashes($link);
                         }
                elseif (isset(
$_REQUEST['f'])) {
                         
$link 'PM';
                         }

// You decided to go back on your previous choice?
db_query("
INSERT INTO 
{$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES (
$dir$_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, "time()." )
                        "
__FILE____LINE__);

// It was recently changed the OTHER way... so... reverse it!
if ($dir == 1)
updateMemberData($_REQUEST['uid'], array('karmaGood' => '+'));
else
updateMemberData($_REQUEST['uid'], array('karmaBad' => '+'));
}
}

// Figure out where to go back to.... the topic?
if (isset($topic))
redirectexit('topic=' $topic '.' $_REQUEST['start'] . '#msg' $_REQUEST['m']);
// Hrm... maybe a personal message?
elseif (isset($_REQUEST['f']))
redirectexit('action=pm;f=' $_REQUEST['f'] . ';start=' $_REQUEST['start']);
// JavaScript as a last resort.
/*

else
{
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>...</title>
<script language="JavaScript" type="text/javascript"><!--
history.go(-1);
// --></script>
</head>
<body>&laquo;</body>
</html>';

obExit(false);
}
}

*/
// What's this?  I dunno, what are you talking about?  Never seen this before, nope.  No siree.
function BookOfUnknown()
{
global $context;

if (strpos($_GET['action'], 'mozilla') !== false && !$context['browser']['is_gecko'])
redirectexit('http://www.getfirefox.com/'false);
elseif (strpos($_GET['action'], 'mozilla') !== false)
redirectexit('about:mozilla'false);

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>The Book of Unknown, 2:18</title>
<style type="text/css">
em
{
font-size: 1.3em;
line-height: 0;
}
</style>
</head>
<body style="background-color: #444455; color: white; font-style: italic; font-family: serif;">
<div style="margin-top: 12%; font-size: 1.1em; line-height: 1.4; text-align: center;">
Woe, it was that his name wasn\'t <em>known</em>, that he came in mystery, and was recognized by none.&nbsp;And it became to be in those days <em>something</em>.&nbsp; Something not yet <em id="unknown" name="[Unknown]">unknown</em> to mankind.&nbsp; And thus what was to be known the <em>secret project</em> began into its existence.&nbsp; Henceforth the opposition was only <em>weary</em> and <em>fearful</em>, for now their match was at arms against them.
</div>
<div style="margin-top: 2ex; font-size: 2em; text-align: right;">
from <span style="font-family: Georgia, serif;"><strong><a href="http://www.unknownbrackets.com/about:unknown" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 2:18</span>
</div>
</body>
</html>'
;

obExit(false);
}

}

?>

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 18, 2006, 11:56:50 PM
KDM 1.9.6 compatible with SMF 1.0.6
Title: Re: Karma Description Mod
Post by: Washi on March 19, 2006, 04:14:23 AM
Quote from: Grek_Kamchatka on March 18, 2006, 11:56:50 PM
KDM 1.9.6 compatible with SMF 1.0.6

Could you please post a Karma.php modified only with KDM 1.9.6 so I can see if it works for me? I tried about 30 different version of the file, none worked. But the one posted by z3nith (Thank you so much!) works like a charm.
Thanks a lot!
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 19, 2006, 04:46:04 AM
You don't understand... You must install KDM 1.9.6 on your forum, not copy Karma.php. You resieved errors because KDM 1.9.6 has new functions, (by the way, not only in Karma.php), so you uploaded new Karma.php but other needed files is old. 
Title: Re: Karma Description Mod
Post by: Aitsukai on March 19, 2006, 06:38:40 AM
Could you make an upgrade script for 1.9.4 to 1.9.6 on 1.1 RC2?
Title: Re: Karma Description Mod
Post by: Aitsukai on March 19, 2006, 06:41:05 AM
I tried to install and got:
QuoteThis package is already installed, and no upgrade was found!

You should uninstall the old version first to avoid problems, or ask the author to create an upgrade from your old version.

Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.
I uninstalled the old version last time I updated this mod but it erased all data from the mod. :s
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 19, 2006, 07:04:46 AM
Look at the KDM 1.9.4 archive. Is there present uninstall.php? If you have this file in archive, all data will be erased, but if no, everything will be fine. And 2nd variant...download your KDM 1.9.4 arch from your.forum.com/Packages, and edit package_info.xml.

Delete line where you will find uninstall.php. Then pack it back and upload archive to the forum. Now you can uninstall kdm without any data erasing.
Title: Re: Karma Description Mod
Post by: Washi on March 19, 2006, 09:24:48 AM
Quote from: Grek_Kamchatka on March 19, 2006, 04:46:04 AM
You don't understand... You must install KDM 1.9.6 on your forum, not copy Karma.php. You resieved errors because KDM 1.9.6 has new functions, (by the way, not only in Karma.php), so you uploaded new Karma.php but other needed files is old. 

I do understand, but everything else works in the package, all the files that needed to be edited have been edited correctly, I get the stats and all the other features, but the Karma.php has been corrupted somehow. That's why I would need that specific file, because I tried modding it myself (the original Karma.php), but I can't get it to work.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 19, 2006, 07:10:24 PM
They have been edited by older KDM version.
Title: Re: Karma Description Mod
Post by: Washi on March 19, 2006, 11:07:36 PM
I meant the original Karma.php found in the fresh 1.0.6 zip. Like a brand new one that hasn't been touched before.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 19, 2006, 11:14:34 PM
What's your problem? I'll try to help you. Can you install new KDM 1.9.6 version?
Title: Re: Karma Description Mod
Post by: Washi on March 20, 2006, 06:22:22 AM
Quote from: Grek_Kamchatka on March 19, 2006, 11:14:34 PM
What's your problem? I'll try to help you. Can you install new KDM 1.9.6 version?

Ok, I'm going to start over.

I installed KDM through the package manager, and about the 3 first times, it didn't install well. I went to the files and changed their permissions, and it finally got installed.
Someone on the board then mentioned that they're having a problem giving people Karma, that when they click on [applaud], they get a blank page. After checking all the files that were modified by KDM and the new files that got installed with KDM, I found that my Karma.php is screwed up. The whole code in it is messed up.
I opened a fresh Karma.php page from the SMF zip, and I tired modifying it, but it wouldn't work. The blank page was still there, and sometimes, I got an error message.
I tried about 20 different variations of Karma.php, and none work, so I would need someone to please upload  a Karma.php (compatible with SMF 1.0.6) where only KDM 1.9.6 has been installed because I am getting very tired of trying new variations.
I hope this makes more sense.
Title: Re: Karma Description Mod
Post by: Jay T on March 26, 2006, 09:40:50 AM
Quote from: Grek_Kamchatka on March 08, 2006, 05:11:22 PM
Everything ok. You resieved this error because db_change.php can't create 2 fields in your database because this fields already exist in your DB. In next version i substitute it for "Notice:"

I can't get the db_update to work either. Never mind, I think the database is fine.

Now I can't get to the karma log. It takes me back to the index page.

Fixed this as well. The package installer did not do the index.php edits.
Title: Re: Karma Description Mod
Post by: Chronic667 on April 09, 2006, 08:00:56 AM
When i tried to uninstall 1.9.6 to upgrade to 1.9.7 i got a fail for Karma.php. I got around it by removing the mod anyway then re-uploading karma.php again.

Can anyone else confirm this fail?
Title: Re: Karma Description Mod
Post by: ArkServer on April 09, 2006, 08:48:33 AM
Unknown column 'link' in 'field list'
File: C:\apache\htdocs\forum\Sources\Karma.php
Line: 119

Unknown column 'lk.link' in 'field list'
File: C:\apache\htdocs\forum\Sources\Viewkarma.php
Line: 182

Unknown column 'lk.link' in 'field list'
File: C:\apache\htdocs\forum\Sources\Viewkarma.php
Line: 289
and more

latest karma mod

1.1 rc2 dedicated server
www.happyserver.be
Title: Re: Karma Description Mod
Post by: b0bby on April 09, 2006, 03:34:54 PM
 got the same problem as ArkServer this mod is buggy
Title: Re: Karma Description Mod
Post by: Chronic667 on April 09, 2006, 08:34:50 PM
The mod is fine, i've used it from a very early version and have had very little problems.

The problem you are having is because you have used a version that pre-dated the feature to list where the karma was changed from.

If you took the time to read this topic you would have found that this "bug" has been reported before and also how to fix it.

http://www.simplemachines.org/community/index.php?topic=49088.msg475867#msg475867
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on April 11, 2006, 04:20:23 AM
Thank you veru much, Chronic667.

I can't repeat it 100 times. =)
Title: Re: Karma Description Mod
Post by: b0bby on April 13, 2006, 09:31:46 PM
Chronic667 i did followed that step and it finally works now i can vie the karma log, but when i try to give someone a karma point it just displays a blank screen, any fix for that?

thank you
Title: Re: Karma Description Mod
Post by: Chronic667 on April 14, 2006, 12:58:10 AM
it could be your settings for the mod, is "Enable "Where" field in Karma Description Log" enabled? if so, try playing with other options.. just make a note of the previous settings so you can revert.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on April 14, 2006, 08:33:37 PM
Post here your error log, pls
Title: Re: Karma Description Mod
Post by: Ozman69 on April 15, 2006, 07:31:22 PM
I installed everything fine and have the new options.  However, I don't see the [karma stats] link near the [more stats] on my index page.  I am using SMF 1.0.7 and Cerberus theme on my forum.  I am new to forums, but I think I've followed all of the instructions correctly (I have Enabled Karma Description Mod).  Can anyone offer me any help?  I want to be able to see who's giving karma, but not make it public to my forum.

Oz

I found a workaround for this for the time being, I just put the link into my browser and can get to the log. 

Since I have that sort of figured out, a nice feature for a future update would be to allow someone to see their comment but not see who sent it.  Then when they hit a certain karma level, allow them to see who gives them karma.  Any thoughts?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on April 16, 2006, 08:11:19 AM
Read this topic again. This mod only for default theme. You must edit your boardindex.template.php by your hands.
Title: Re: Karma Description Mod
Post by: Ozman69 on April 16, 2006, 10:54:27 AM
Quote from: Grek_Kamchatka on April 16, 2006, 08:11:19 AM
Read this topic again. This mod only for default theme. You must edit your boardindex.template.php by your hands.

I didn't see that written anywhere, but thank you for the quick answer.

Any thoughts on my suggestion for a future version?  Is it even possible?

Oz
Title: Re: Karma Description Mod
Post by: Raffaele on April 17, 2006, 11:06:18 AM
Thank you very much Grek for this hard and very beautiful work!  :)
There is a way - now (with some little work on code :-\ ) or in the future - to have:
Normal users (by permissions) to see only the other statistics and not the entire Karma log?

Thanx again however!
Title: Re: Karma Description Mod
Post by: ivo2296 on April 23, 2006, 02:43:04 PM
I installed the mod of smf 1.0.7 - everything was OK. But in admin panel i don't see option to view the karma log in the left side where all admin main option are.
Title: Re: Karma Description Mod
Post by: Chronic667 on April 24, 2006, 04:24:48 PM
I have a few feature requests...

Please could you make it so people cannot changed the karma or banned accounts.
And also could you make it so people can only change the karma of people once per day.

I think that last one might need more explaining so here goes:

Currently a member can change the karma of as many people he/she wishes with in the time you set to allow them to change the karma again (mine is set to 24 hours). This means person A can change person B, C, and D's karma without any problem.

Could you add a feature that would allow this to be prevented so person A could only change person B or C or D, not all.

Maybe permissions could be added to this so this only affects certain member groups.
Title: Re: Karma Description Mod
Post by: L.G.S on April 26, 2006, 11:32:39 AM
I have problems.

Members with the permissions can only see the Karma that people have given them, and no where to be seen is a box which lets them give a comment
Title: Re: Karma Description Mod
Post by: ivo2296 on April 26, 2006, 12:11:02 PM
How can the admin see the complete karma log without to enable the karma links in users profiles?


Thank you?
Title: Re: Karma Description Mod
Post by: Raffaele on April 26, 2006, 03:10:48 PM
Quote from: ivo2296 on April 26, 2006, 12:11:02 PM
How can the admin see the complete karma log without to enable the karma links in users profiles?
Features and Options -> KARMA -> Enable Karma Description Mod [V] (checked, and control permissions).
Features and Options -> KARMA -> Enable karma links in users profiles [ ] (unchecked).
Hope it helps.
Title: Re: Karma Description Mod
Post by: ivo2296 on April 27, 2006, 12:45:40 AM
Quote from: Raffaele on April 26, 2006, 03:10:48 PM
Quote from: ivo2296 on April 26, 2006, 12:11:02 PM
How can the admin see the complete karma log without to enable the karma links in users profiles?
Features and Options -> KARMA -> Enable Karma Description Mod [V] (checked, and control permissions).
Features and Options -> KARMA -> Enable karma links in users profiles [ ] (unchecked).
Hope it helps.

Thanks, but where i have to click to see that log.
Title: Re: Karma Description Mod
Post by: perplexed on April 27, 2006, 08:12:43 AM
you should have a link in the Forum Stats box on the main index page
[more stats] [karma stats]
Title: Re: Karma Description Mod
Post by: ivo2296 on April 27, 2006, 11:56:41 AM
Quote from: perplexed on April 27, 2006, 08:12:43 AM
you should have a link in the Forum Stats box on the main index page
[more stats] [karma stats]

Thanks a lot, i was modified classic theme but not fully, when i switched to default one i saw the log.

Thanks one more time!
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 03, 2006, 04:18:41 AM
Hi guys. Do you need a "Notification" function when your users karma was changed? Like PM 4example.
Title: Re: Karma Description Mod
Post by: L.G.S on May 03, 2006, 09:17:29 AM
Quote from: L.G.S on April 26, 2006, 11:32:39 AM
I have problems.

Members with the permissions can only see the Karma that people have given them, and no where to be seen is a box which lets them give a comment
Title: Re: Karma Description Mod
Post by: gragry on May 05, 2006, 03:15:13 PM
Hello, everybody.
I want translate this mod to spanish, but i don't know whats files exactly must be translated.

¿Can anybody explain me?

Thanks
Title: Re: Karma Description Mod
Post by: Raffaele on May 05, 2006, 06:00:00 PM
Quote from: gragry on May 05, 2006, 03:15:13 PM
Hello, everybody.
I want translate this mod to spanish, but i don't know whats files exactly must be translated.
Can anybody explain me?
I use this way: open with a text editor the main file of mod (Karma_Description_Mod.xml) and search for the word english; then I find some english file the mod changes:
Then I apply at each file in my language (for you, they will be Admin.spanish.php, and so on...) the blocks of code (in Karma_Description_Mod.xml) translated in my language.
Example: For Admin.english.php, Karma_Description_Mod.xml says:
<search position="before"><![CDATA[
$txt['maintain_logs'] = 'Empty out unimportant logs.';
]]></search>
<add><![CDATA[
$txt['maintain_karmalog'] = 'Empty out Karmachange Description log';
]]></add>

so in Admin.language.php i search for
$txt['maintain_logs'] =
and, before this, i add
$txt['maintain_karmalog'] = 'translation of Empty out Karmachange Description log';

Sorry for such a long reply, but I hope it helps just a little..
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 05, 2006, 06:26:54 PM
Thank you, Raffaele
Title: Re: Karma Description Mod
Post by: Raffaele on May 08, 2006, 02:44:40 PM
Quote from: Grek_Kamchatka on May 05, 2006, 06:26:54 PM
Thank you, Raffaele
Thanx to you, Grek! for this very great mod! :D
Title: Re: Karma Description Mod
Post by: Hasanudin on May 09, 2006, 08:40:04 AM
i have problems:

You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

any someone can help me?
Title: Re: Karma Description Mod
Post by: Hasanudin on May 09, 2006, 08:57:12 AM
can install manually?
Title: Re: Karma Description Mod
Post by: laxcoo on May 09, 2006, 08:59:09 AM
Hallo

I have problems withs Karma_Description_Mod_ver.1.8

I have install Forum version: SMF 1.1 RC1 after  I am install 1.   Karma Description Mod   1.3  

all is good but  when i am install Karma_Description_Mod_ver.1.8  writing error apply mod

view  

Installations actions for "Karma Description Mod":
   
Installing this package will perform the following actions:
view

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg152.imagevenue.com%2Floc74%2Fth_88577_image.JPG&hash=7e5d5b9484a1ac4be33addf4120013f888c46068) (http://img152.imagevenue.com/img.php?loc=loc74&image=88577_image.JPG)
      
what can i do ?

thanks



PS : Sorry for my English
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 09, 2006, 05:41:33 PM
Use KDM_1.9.2
Title: Re: Karma Description Mod
Post by: laxcoo on May 10, 2006, 12:46:34 PM
Quote from: Grek_Kamchatka on May 09, 2006, 05:41:33 PM
Use KDM_1.9.2


HI

I have  Uninstall KDM 1.3 before than install KDM 1.92 or not

thanks
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 10, 2006, 05:21:35 PM
yes, you must uninstall KDM 1.3, upload vanilla source files to you host and then you can install KDM 1.9.2
Title: Re: Karma Description Mod
Post by: laxcoo on May 11, 2006, 08:08:35 AM
re: Grek_Kamchatka

thanks you for help
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 11, 2006, 06:42:00 PM
u are welcome ;-)
Title: Re: Karma Description Mod
Post by: laxcoo on May 12, 2006, 01:16:41 AM
HI

sorry my question but this morning i see this   

Unknown column 'lk.link' in 'field list'
File: /mnt/data/accounts/p/********/data/www/Sources/Viewkarma.php
Line: 175


*****my host

what can i do ?

thanks
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 12, 2006, 01:24:40 AM
Read this topic again.
Title: Re: Karma Description Mod
Post by: ohioreef on May 12, 2006, 08:17:26 AM
Maybe I missed it, but I haven't been able to find the Karma log. I want to view it, how do I do that?
Title: Re: Karma Description Mod
Post by: ohioreef on May 12, 2006, 08:26:36 AM
Never mind, I found it. I wasn't expecting it to be on the front page.  DUH!!
Title: Re: Karma Description Mod
Post by: ohioreef on May 12, 2006, 04:09:03 PM
I am running SMF 1.1RC2 and tried to uninstall this mod. I got the error below. Can I manually uninstall it?

Quote
!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme
Thank you for testing my mod. Bye-bye =)


Uninstall Actions
Uninstall Actions "Karma Description Mod":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/Admin.php Test successful
2. Execute Modification ./Sources/Karma.php Test failed
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Sources/BoardIndex.php Test successful
5. Execute Modification ./Sources/Profile.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Themes/default/Admin.template.php Test successful
8. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/default/Profile.template.php Test successful
10. Execute Modification ./Themes/default/languages/Admin.english.php Test successful
11. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
12. Execute Modification ./Themes/default/languages/Who.english.php Test successful
13. Execute Modification ./Themes/default/languages/Help.english.php Test successful
14. Execute Modification ./Themes/default/languages/index.english.php Test successful
15. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
16. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
17. Execute Modification ./Themes/default/languages/Profile.english.php Test successful
18. Execute Modification ./index.php Test successful
Title: Re: Karma Description Mod
Post by: Chronic667 on May 12, 2006, 06:44:41 PM
From the information you posted its almost impossible for you to get the exact help you need. You'll need to post if you're upgrading from a previous KDM, or any other mods that may have altered the karma.php file.

But assuming its not because of another mod, you could maybe just upload the karma.php again then try installing KDM. Remember to backup before you do this incase things go wrong.
Title: Re: Karma Description Mod
Post by: ohioreef on May 12, 2006, 08:33:48 PM
I am trying to uninstall the KDM mod. As far as I know, none of my other mods have altered the karma.php file.

Could I do the uninstall and then just upload the old karma.php file?
Title: Re: Karma Description Mod
Post by: Gobo on May 13, 2006, 06:42:51 AM
suggestions for this mod (future releases)

- Add a visualization to the whole 'karma' business so that instead of + and - we see small green and red button

- reputation grouping meaning:
     - a user with 0 reps = no one knows him
     - a user with 50 reps = he is known around here
     - a user with 100 reps = is a familiar face

etc etc

- a reputation log which can be displayed ONLY to the user to whom the reps are given as opposed to everyone seeing it (only displays last 10 rep points recieved)

- no time limit on reps, that REALLY sucks - there should be a max number of reps a person can give and reps cant be given to the same person oevr and over until X no of people have recieved reps

- some sort of "rep power" so tht members with higher rep points have the power to give more rep points to the same user )2 or 3 or 4 depending on their rep power)

- a visual representation of rep power

- ability to change the name of "karma" to something else so that we can choose according to our needs

tats all i have for now

hope in the future we can see these :D

Title: Re: Karma Description Mod
Post by: Chronic667 on May 13, 2006, 03:23:14 PM
Quote from: ohioreef on May 12, 2006, 08:33:48 PM
I am trying to uninstall the KDM mod. As far as I know, none of my other mods have altered the karma.php file.

Could I do the uninstall and then just upload the old karma.php file?

yes, that will work fine.
Title: Re: Karma Description Mod
Post by: ohioreef on May 13, 2006, 03:53:39 PM
Thank you.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 14, 2006, 12:30:18 AM
laxcoo, sorry for my mistake. The latest version of the mod is 1.9.7. Update your mod please. Sorry again.
Title: Re: Karma Description Mod
Post by: laxcoo on May 14, 2006, 05:59:06 AM
HI
thanks you  your help is good  mod 1.9.2 is functional

laxcoo
Title: Re: Karma Description Mod
Post by: Greybrow on May 15, 2006, 08:05:09 AM
besides problem with karma.php, also mod doesn't delete files it uploads (Viewkarma.php, Viewkarma.template.php, DescriptionKarma.template.php)
Title: Re: Karma Description Mod
Post by: ohioreef on May 15, 2006, 09:00:55 AM
So, should I remove those manually?

I did the uninstall and then just reloaded the default karma.php file and everything seems to be fine at this point.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 15, 2006, 07:02:30 PM
You can do what you want. If you will install new KDM version, this files will be uploaded by new ver.
Title: Re: Karma Description Mod
Post by: Hasanudin on May 19, 2006, 08:52:20 AM
I have 1.1RC2


Installations actions for "Karma Description Mod":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/Admin.php Test successful
2. Execute Modification ./Sources/Karma.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Sources/BoardIndex.php Test successful
5. Execute Modification ./Sources/Profile.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Themes/default/Admin.template.php Test successful
8. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/default/Profile.template.php Test successful
10. Execute Modification ./Themes/default/languages/Admin.english.php Test successful
11. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
12. Execute Modification ./Themes/default/languages/Who.english.php Test successful
13. Execute Modification ./Themes/default/languages/Help.english.php Test successful
14. Execute Modification ./Themes/default/languages/index.english.php Test successful
15. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
16. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
17. Execute Modification ./Themes/default/languages/Profile.english.php Test successful
18. Execute Modification ./index.php Test successful
19. Execute Code db_change.php
20. Extract File ./Sources/Viewkarma.php
21. Extract File ./Themes/default/Viewkarma.template.php
22. Extract File ./Themes/default/DescriptionKarma.template.php


but error for:

Fatal error: require() [function.require]: Failed opening required '/xxx/html/forum/Packages/temp/./db_change.php' (include_path='.:/usr/lib/php') in /xxx/html/forum/Sources/Packages.php on line 534


anyone can help me?
Title: Re: Karma Description Mod
Post by: Vinspire on May 19, 2006, 12:39:24 PM
Is there any working demo for this mods that i could have a look at the mods 1st ?
Title: Re: Karma Description Mod
Post by: ankitcs on June 08, 2006, 07:17:40 AM
The mod Works Great.It is showing everything.

Just One Lil Problem.

When I (or any user) click on Applaud or Smit, It gives following error

Session verification failed. Please try logging out and back in again, and then try again.

However, It worlks if I disable the Mod.

Pls. Help.
Title: Re: Karma Description Mod
Post by: SkyFlyer on June 08, 2006, 04:44:46 PM
I liked the mod... but it killed my query limit.
Title: Re: Karma Description Mod
Post by: tapirul on June 08, 2006, 05:54:28 PM
installed the mod (successfully, it says), no errors, howver, no modification in my forum (I looked for Features and otions->karma->enable karma description, is not there)
Try to uninstall, I get "Modification parse error"
???
Title: Re: Karma Description Mod
Post by: marciano on June 13, 2006, 08:22:58 PM
Hello, already I have this mod installed in my forum SMF 1.1RC2 and need that in the index of the forum the top users appear karma+ , that code tendria that to stick and in qeu file??... I am using the theme default of the forum SMF..

resgards
Title: Re: Karma Description Mod
Post by: SleePy on June 16, 2006, 03:20:07 PM
Grek,

I installed fresh since I have been having problems with the mod and it would be an upgrade.

When I went to go give karma I got an error.
I had to change these two lines
FIND:
if (!array_key_exists('Description',$_POST) || strlen($_POST["Description"]) == 0){return;}}
CHANGE:
if (!array_key_exists('Description',$_POST) || strlen($_POST["Description"]) == 0){return;}

and

FIND:
   // JavaScript as a last resort.
// What's this?  I dunno, what are you talking about?  Never seen this before, nope.  No siree.
function BookOfUnknown()

REPLACE
   // JavaScript as a last resort.
}
// What's this?  I dunno, what are you talking about?  Never seen this before, nope.  No siree.
function BookOfUnknown()


Not Sure if its a typo or what ever but I had to change those lines to make the mod work.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on June 16, 2006, 11:57:22 PM
Sleepy, do you resieved any errors without this changes? What kind?
Title: Re: Karma Description Mod
Post by: SleePy on June 17, 2006, 12:41:36 AM
One wouldn't even load the page (the first one) and gave me a $ error on line 299 (or something like that) and checking in my editor that line was ?>
After finding that error because of reading the if statement above was pretty much closed off soon as it opened and I knew it shouldn't because it was the main part of the function it gave me another error so I read through it and found out that it was missing a } to close off and start another function.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on June 18, 2006, 03:51:16 AM
Ok, thank you again $-)
Title: Re: Karma Description Mod
Post by: Isaac on June 18, 2006, 04:59:57 PM
QuoteUnknown column 'lk.Description' in 'field list'
File: /home/gbxemu/public_html/forum/Sources/Viewkarma.php
Line: 71
I'm getting this error when trying to view karma stats.  I tried the fix someone else posted, but it didn't do anything.
Title: Re: Karma Description Mod
Post by: Avinash4 on June 20, 2006, 11:12:37 PM
My Highest Karma list shows users with negative scores at the top. Any idea how to fix this?
Title: Re: Karma Description Mod
Post by: Isaac on June 20, 2006, 11:26:01 PM
I found the fix for my problem.

ALTER TABLE `YOURPREFIX_log_karma`
ADD `Description` TEXT NOT NULL
Title: Re: Karma Description Mod
Post by: steven in houston on July 03, 2006, 02:51:20 PM
i just started a new SMF board 1.0.5 and did the upgrade to 1.0.7.
i put this mod in and it seems to work fine but i get 4 errors in the
log for everytime a page is refreshed.

8: Undefined index: common_stats
File: /home/xxx/public_html/smf/Themes/default/BoardIndex.template.php (eval?)
Line: 354


what is causing this?
thanks
Title: KARMA DECRIPTION MOD 1.9.7
Post by: T@LH@ on July 03, 2006, 06:39:14 PM
KARMA DECRIPTION MOD 1.9.7

Hi there!
I have a problem with my forum page, I wish somebody would be able to help me..
I tried to search for his problem before writing here; but because of the error that occurs whenever I tried to find out this via search engine, I couldn't find any help with this problem.. And I tried to look for this in the whole community topics as much as I can.. But the result was fail.. Consequently, I thought that I should open a topic here.. I tired to obey the rules but in any case, I may be not obeying the whole rules, please skip it over and I apologize for this beforehand.


Firstly, I want to give some details with my forum.

(dipnot-1)Smf 1.1rc2, theme Ig-OH edited.

The (2)mods installed manually are these: Membercolorlink , Boardnotes11rc2 , Streaming_4.2.1b_TR , BarOfExperience12_10

I installed the "Smf Karma Description Mod 1.9.7" manually without any deficiency. But when I (3a)pass the "db_change.php file" (3b)through scanner, an error like this had been occurred:
Error: Database modifications failed!Error: Database modifications failed!

It means the database couldn't be changed, I think.. Then, I tried the "db_change.php file" with setting the "ch mod" (4)up to 777. But I received the same error again. I skipped over this error and went on my way, but at that time, I received (5)the error when I tried to (6)"give Karma". When I tried as a normal user, an error occurred and it had been said that "inform the admin". But when I tried as admin, I received this error:
Unknown column 'Description' in 'field list'
File: /home/saidnurorg/domains/saidnur.org/public_html/forum/Sources/Karma.php
Line: 118

It means an error as an unknown column.

How can I solve these problems and install the mod with proper stability? Can you help me?

Meanwhile, which things in the admin panel must be chosen to work the "Karma Mod". With another saying, to work the Karma Mod, which things on the admin page have to be chosen? I normally close the sp1 type statistics, must they be on? Should I open them, chose them?

When I click the list of users that changed my "Karma" in my profile, this error is shown:
Unknown column 'lk.Description' in 'field list'
File: /home/saidnurorg/domains/saidnur.org/public_html/forum/Sources/Viewkarma.php
Line: 182

When I click the list of users whose Karma's were changed by me, this error is shown:
Unknown column 'lk.Description' in 'field list'
File: /home/saidnurorg/domains/saidnur.org/public_html/forum/Sources/Viewkarma.php
Line: 289

I think all these errors occur due to undefined command. How can I correct all these? I need your help..

Wishing to hear from you soon..
Sincerely..
Good-bye..
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 04, 2006, 07:26:51 PM
Hi, Lemalar. Have you any mysql admin interface? You must add two fields in your database. See db_change.php for complete description.
Title: Re: Karma Description Mod
Post by: T@LH@ on July 05, 2006, 04:38:43 PM
Hi Grek_Kamchat,

our site doesn't have Mysql, at least I don't know whether does or not.. And also does not have "cpanel".. So, How can we use db_change.php file via ftp?

and how can we solve these problems?

Title: Re: Karma Description Mod
Post by: Kindred on July 05, 2006, 09:37:49 PM
Lemalar...

how the heck are you running SMF if you don't have a mySQL database?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 05, 2006, 11:35:57 PM
Quote from: steven in houston on July 03, 2006, 02:51:20 PM
i just started a new SMF board 1.0.5 and did the upgrade to 1.0.7.
i put this mod in and it seems to work fine but i get 4 errors in the
log for everytime a page is refreshed.

8: Undefined index: common_stats
File: /home/xxx/public_html/smf/Themes/default/BoardIndex.template.php (eval?)
Line: 354


what is causing this?
thanks
What theme do you use?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 05, 2006, 11:38:34 PM
Quote from: Kindred on July 05, 2006, 09:37:49 PM
Lemalar...

how the heck are you running SMF if you don't have a mySQL database?
He wanted to say that they haven't any admin panel, i think.

Lemalar, try to use phpMyAdmin. It will help you.
Title: Re: Karma Description Mod
Post by: steven in houston on July 06, 2006, 02:08:48 PM
Quote from: Grek_Kamchatka on July 05, 2006, 11:35:57 PM
What theme do you use?


i see it now.
it is caused by the new theme.

thanks
Title: Re: Karma Description Mod
Post by: jabberdabber on July 13, 2006, 04:18:07 AM
Firstly complements on a great mod, worked really well for a while and now I have a problem when we try to give or deduct points, I use SMF with MKPorta (the CMS)..

At the very top of the page we see this when we try to give out points...

Parse error: parse error, unexpected $end in e:\domains\s\**URL**\user\htdocs\form\Sources\Karma.php on line 1124

And the error we get is:

Unable to load the 'main' template.


We are using deafult template...

To fix a previous problem I did uninstall and then re-install this mod, could that be the problem and what should I try now. Any help much appreciated.

Cheers
Title: Re: Karma Description Mod
Post by: ssoltz on July 21, 2006, 03:21:43 PM
Grek,

This is actually the first third party mod for SMF that I have ever installed (sorely needed for my slightly out-of-control forum). All I can say is that it will be a hard act to follow:

FLAWLESS INSTALL...great features. thank you for the hard work and the fantastic support you have provided in this forum. you should be highly commended. I almost wish I didn't need a little help and can just leave my post like this! Oh well...

Maybe I am missing something here. It seems like an obvious thing to me, but maybe that's just my perspective: Is there any way to make karma applauses and smites administrator approved only? My forum has had some recent feuds between parties and I want to be able to be able to approve karma votes before they actually affect someone's karma. The post minimum needed is great....so is the wait period...but I only want the admins to be able to instantly affect karma. Everyone else should have to wait for approval. Otherwise, on my forum, this feature will be abused...no doubt.

Maybe this has nothing to do with your mod, I am not sure.

But anyway, thank you very, very much! Bravo!
Title: Re: Karma Description Mod
Post by: RoarinRow on July 21, 2006, 04:03:07 PM
That's pretty funny ssoltz.  When I had this mod on my forum, there was no way to control the Karma comments.  In many cases, you didn't want to cause they were so damn funny.

Still waiting for the dust to settle before re-installing.   :)
Title: Re: Karma Description Mod
Post by: ssoltz on July 24, 2006, 01:07:54 PM
Yes, it should be very interesting.

I am just going to let it fly and see what happens...if I have to go into some member's profile and adjust Karma manually...so be it.

So far, everyone is being pretty well-behaved. We'll see how long that lasts.

Take care,
Title: Re: Karma Description Mod
Post by: ArkServer on July 25, 2006, 02:09:35 PM
Parse error: syntax error, unexpected $end in /home/arksvr/public_html/forum/Sources/Karma.php on line 675

line:

</html>';

   obExit(false);
}

}

?>
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 25, 2006, 04:23:21 PM
Quote from: ArkServer on July 25, 2006, 02:09:35 PM
Parse error: syntax error, unexpected $end in /home/arksvr/public_html/forum/Sources/Karma.php on line 675

line:

</html>';

   obExit(false);
}

}

?>
Read this topic again.
Title: Re: Karma Description Mod
Post by: ArkServer on July 25, 2006, 08:33:56 PM
Quote from: Grek_Kamchatka on July 25, 2006, 04:23:21 PM
Quote from: ArkServer on July 25, 2006, 02:09:35 PM
Parse error: syntax error, unexpected $end in /home/arksvr/public_html/forum/Sources/Karma.php on line 675

line:

</html>';

   obExit(false);
}

}

?>
Read this topic again.

Readign 25 pages would take me quite some time, you know on what page it is?
Title: Re: Karma Description Mod
Post by: ssoltz on July 26, 2006, 11:22:00 AM
OK...here's one for you:

For my forum, it is very important for karma givers to remain anonymous, except to admins. currently, I have karma log turned off for users. I would like to use the "view own log only" because I will be penalizing people who reach a certain level of total negative karma OR have a certain amount of smites. since there is no way for users to see how many applauds or smites they have (I am using the total karma method) OR where they received bad karma.

I would like them to be able to learn from their mistakes (we have a handful of grown people behaving like school children on our forum) by seeing where their posts were received badly AND to see how close they are getting to the karma smite limit in addition to the information they already can see concerning total karma (as you may have surmised, the karma log does use the +/- option).

If they could see their OWN karma log only without the "Whom" column, that would be great. I do want this info to display for admins. I may also want to disable the "When" column because these crafty petulants will look to see who was online at the time they received a smite.

Let me know if anyone can help with this.

Thanks,
Title: Re: Karma Description Mod
Post by: PrizeLive.com on July 26, 2006, 02:27:11 PM
ssoltz, this is for you:

You can make all these changes in Viewkarma.template.php

Find:

                        echo'
                                        <td width="14%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=exec', $context['sort_direction'] == 'down' && $context['sort_by'] == 'exec' ? ';asc' : '', '">', $txt['karmawho'], '', $context['sort_by'] == 'exec' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                        <td width="14%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=targ', $context['sort_direction'] == 'down' && $context['sort_by'] == 'targ' ? ';asc' : '', '">', $txt['karmawhos'],'', $context['sort_by'] == 'targ' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                        <td width="10%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=action', $context['sort_direction'] == 'down' && $context['sort_by'] == 'action' ? ';asc' : '', '">', $txt['karmawhat'],'', $context['sort_by'] == 'action' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                        <td width="31%" align="center"><b>', $txt['karmadesc'],'</b></td>
                                        '; if (!empty($modSettings['karmaurl'])) echo '<td width="6%" align="center"><b>', $txt['karmawhere'],'</b></td>'; echo '
                                        <td width="25%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '">', $txt['karmatime'],'', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                            '; if ($user_info['is_admin']) echo ' <td align="center"><b>Delete</b></td>'; echo '
                        </tr>';


Replace with:

if ($user_info['is_admin'])
{
                        echo'
                                        <td width="14%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=exec', $context['sort_direction'] == 'down' && $context['sort_by'] == 'exec' ? ';asc' : '', '">', $txt['karmawho'], '', $context['sort_by'] == 'exec' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                        <td width="14%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=targ', $context['sort_direction'] == 'down' && $context['sort_by'] == 'targ' ? ';asc' : '', '">', $txt['karmawhos'],'', $context['sort_by'] == 'targ' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                        <td width="10%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=action', $context['sort_direction'] == 'down' && $context['sort_by'] == 'action' ? ';asc' : '', '">', $txt['karmawhat'],'', $context['sort_by'] == 'action' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                        <td width="31%" align="center"><b>', $txt['karmadesc'],'</b></td>
                                        '; if (!empty($modSettings['karmaurl'])) echo '<td width="6%" align="center"><b>', $txt['karmawhere'],'</b></td>'; echo '
                                        <td width="25%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '">', $txt['karmatime'],'', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                            '; if ($user_info['is_admin']) echo ' <td align="center"><b>Delete</b></td>';
}
else
{
                        echo'
                                        <td width="14%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=exec', $context['sort_direction'] == 'down' && $context['sort_by'] == 'exec' ? ';asc' : '', '">', $txt['karmawho'], '', $context['sort_by'] == 'exec' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                        <td width="10%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=action', $context['sort_direction'] == 'down' && $context['sort_by'] == 'action' ? ';asc' : '', '">', $txt['karmawhat'],'', $context['sort_by'] == 'action' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                        <td width="31%" align="center"><b>', $txt['karmadesc'],'</b></td>
                                        '; if (!empty($modSettings['karmaurl'])) echo '<td width="6%" align="center"><b>', $txt['karmawhere'],'</b></td>'; echo '
                                        <td width="25%" align="center"><b><a href="' . $scripturl . '?action='.$WhatPage.';start=', $context['start'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '">', $txt['karmatime'],'', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></b></td>
                                            '; if ($user_info['is_admin']) echo ' <td align="center"><b>Delete</b></td>';
}
echo '
                        </tr>';


Find and remove:

        echo '</td>
                                <td width="14%" align="center"><a href="'. $scripturl . '?action=profile;u=' . $member['id_targ'] . '" title="' . $txt[92] . ' ' . $member['target'] . '">' . $member['target'] . '</a>';
                                if (!empty($modSettings['karmakarma']))
                                                echo' <span class="smalltext">(+',$member['targetkarmagood'],'/-',$member['targetkarmabad'],')</span>';


Find and remove:

        echo '</td>
                                <td width="14%" align="center">' , $member['target'] , '';
                                if (!empty($modSettings['karmakarma']))
                                                echo' <span class="smalltext">(+',$member['targetkarmagood'],'/-',$member['targetkarmabad'],')</span>';


This works for me and I'm using version 1.1 RC2.

Let me know if you need any help.

Good luck!
Title: Re: Karma Description Mod
Post by: ssoltz on July 26, 2006, 03:08:50 PM
Awesome!

I'll give it a try and let you know!

Thank you!
Title: Re: Karma Description Mod
Post by: ssoltz on July 26, 2006, 04:11:16 PM
OK, I'm getting the [Karma Stats] button for a Regular user now, but when I try to access the Karma log (as a Regular Member), it says that I do not have adequate permission. I'm a little confused. I changed every membergroup to allow viewing the karma log. I wasn't even aware of the two links in the profile thing...is this where the user would access their own karma log and not with the [Karma Stats] button on the index page? I am not seeing these links even when I have everything checked in the Karma settings in the admin panel.

Also, the second "find and remove" messed up the admin's Karma log. I took that out and Karma log looks normal for admin.

This may just be a settings issue.

To get this last bit to work, do I need to enable "View Karma Log" for each membergroup I wish to have see their own karma log?

Better yet, Surf...can you let me know what settings you are using for karma (in the admin panel) to get your mod above to work?

I would prefer it if the users could just link to their own version (no "Whom" column) from their profile ONLY but this is not a big issue.

Thanks for the help,
Title: Re: Karma Description Mod
Post by: PrizeLive.com on July 26, 2006, 04:24:45 PM
Yeah here are my settings for karma:

Here's the admin side:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg48.imageshack.us%2Fimg48%2F7209%2Fadminha9.png&hash=2ef63202f139e6b00d249f79bae25f77ad684b7d)

And then in the permissions for all members, I have "view karma log" enabled.
Title: Re: Karma Description Mod
Post by: ssoltz on July 26, 2006, 04:45:51 PM
Oops...I think I got it working but I think my confusion was because I don't think that we have the same objective here. Just to be clear:

You are making it so that all of your members have access to the karma description log - the complete one that has all of the forums smites and applauds BUT does not display who is receiving the karma. this is about exactly opposite of what I'm trying to do...which is:

I only want the user to see his own RECEIVED karma (or karma he gave and received...doesn't matter). I also do not want that user to be able to see who gave it to him.

Or are you trying to do a similar thing and I just implemented it wrong? Let me know.

I have a feeling the default settings for "Enable karma links in users profiles" and "Disable whole karma log for users but enable own karma log" are the key settings (which I now have off) but I need to get rid of that "Whom" column (who SENT the karma).

Either way, it helped me get a head start on this and I thank you for your time and assistance!
Title: Re: Karma Description Mod
Post by: ssoltz on July 26, 2006, 04:52:57 PM
OK...so where are these profile karma links supposed to appear?

EDIT:

OK...I figured that part out...I am not using the default template so I had to make the necessary changes to my Profile.template.php

Also, Surf, this miscommunication was my fault...it is the "Who" column I want to turn off...not the "Whom"...those terms always confuse me...I think I can figure it out from here...hopefully...will post my results.

Of course, if I use the two profile links, I actually would want to turn off the "Who" in the karma received link and "Whom" in the karma given. But I really don't care about the given link, especially if this just creates more work. I probably will just disable that link.

Thanks again!
Title: Re: Karma Description Mod
Post by: PrizeLive.com on July 27, 2006, 08:48:21 AM
Haha no problem!

Just let me know if you need anymore help.
Title: Re: Karma Description Mod
Post by: ArkServer on July 27, 2006, 04:24:44 PM
Does anyone here have a phpmyadmin dump for this mod? the package db modifier doesnt work for some reason.

Thanks
Title: Re: Karma Description Mod
Post by: ssoltz on July 28, 2006, 08:38:54 AM
Surf,

Got it working pretty much perfectly. On minor flaw. If I turn on permissions for the membergroup, even if the "Users can view karma log" is off in the admin panel, they will still see the link for [Karma Stats] in their index. Now, they do get an permissions error if they try to actually USE this link. Obviously, if I turn off the permission for "view karma log" for the membergroup, then the profile links get the permission error (no surprise there).

All I did was add a user['is_admin'] to my BoardIndex and that took care of it. All's well for now.

Now, if I need to figure out a way to make it so that posts only have a certain time limit during which they can receive karma. I don't want a user who is pissed off at someone to track a persons posts and give bad karma to every one. That will cause some admin headaches. Also, I would love to be able to turn off the ability to give karma in PMs.

If anyone knows quickly how to do these...great...otherwise, I will figure them out when I have time...these are not huge priorities.

Thank you for this great mod and mods on the mod...and thank you, Surf for the great assistance...it's working great!

Take care,
Title: Re: Karma Description Mod
Post by: MIKESS.COM on August 04, 2006, 08:45:00 PM
SMF Version: SMF 1.1 RC2
Im getting karma error on my forum >

Parse error: syntax error, unexpected $end in /home/pf/public_html/forum/Sources/Karma.php on line 444

anyone please assist me. Thanks
Title: Re: Karma Description Mod
Post by: Parijs on August 14, 2006, 07:09:15 AM
I did have this mod working correctly but I had to recopy my themes folder cause of a problem that occured with page errors.  Then I had to reinstall my mods again and ever since then.....this mod wont show the area in ur profile where u can chose to see who smited u or appluaded u.  I have all the settings correct in the admin panel but it wont show.....can I manually edit something in one of the php files to get this to show?  And if so.....what can I add cause all my members are so upset about this.....they LOVE this mod.

Any help would be greatly appreciated
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on August 14, 2006, 05:55:42 PM
Hi, Parijs. You must open you themes template files and add some changes, which you can see in default template files, maded by my mod.
Title: Re: Karma Description Mod
Post by: Parijs on August 15, 2006, 07:20:52 AM
I am new to this stuff.....could someone post to me exactly what files must be changed and what to change in them?  I would very much appreciate it.  I am using the TP_WoW-DK theme for my SMF 1.1 RC2
Title: Re: Karma Description Mod
Post by: Chronic667 on August 23, 2006, 08:06:06 AM
KDM fails to install on 1.1 RC3 with the Admin.Template.php file.
Title: Re: Karma Description Mod
Post by: ssoltz on August 24, 2006, 02:15:29 PM
Any news on 1.1 RC3 compatibility?

If no one has a hack for it, I will have to wait for a compatible version before I upgrade to RC3, since this mod is such a big feature (and hit!) on my forums now. I am using RC2 and bridge 1.1.5 currently.

Thank you...I love this mod!
Title: Re: Karma Description Mod
Post by: tapirul on August 24, 2006, 06:02:18 PM
yeah, I am waiting for rc3 compatibility, too. It's a great mod.
Title: Re: Karma Description Mod
Post by: edchapman on August 25, 2006, 02:01:36 PM
ok.. this has I sure been answered but after doing many searches I can not find it.

I changed "Karma" to another name. What do I need to change to make Karma Description Mod match?
Title: Re: Karma Description Mod
Post by: Chronic667 on August 25, 2006, 02:17:12 PM
Not sure on my answer here because i'm not really sure of your questions.. but if i understood it correct then just alter the language files.
Title: Re: Karma Description Mod
Post by: edchapman on August 25, 2006, 11:56:35 PM
Thanks, I did find that...

The other thing I would like help on is... how do I remove the "Top 5 smited users" field in the main Karma Description page? We don't use smiting.
Title: Re: Karma Description Mod
Post by: Chronic667 on August 26, 2006, 01:39:56 PM
For that you'd have to do a bit of work on the viewkarma.template.php file.

EDIT:

I just had a quick look at the file i mentioned and it seems straight forward as to commenting out, or deleting lines 145 to 150 (or maybe 144 to 151).
Title: Re: Karma Description Mod
Post by: ssoltz on August 28, 2006, 02:33:18 PM
Any word yet on RC3 compatibility?...I guess I should say...

*bump*
Title: Re: Karma Description Mod
Post by: [MaxX] on September 02, 2006, 01:12:49 PM
I fixed the admin template incompatibility for RC3, looking at the database part now..
Title: Re: Karma Description Mod
Post by: SusanTN on September 02, 2006, 01:57:51 PM
If you need it, I have a fully working version for RC3.
Title: Re: Karma Description Mod
Post by: Loverboy on September 02, 2006, 03:12:16 PM
Quote from: bl968 on September 02, 2006, 01:57:51 PM
If you need it, I have a fully working version for RC3.

could you upload it please ?
Title: Re: Karma Description Mod
Post by: Loverboy on September 03, 2006, 01:42:48 PM
Well thank you, but I am getting the following error when I trie to install it:

The package you tried to upload either is not a valid package or has become corrupted.

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 03, 2006, 07:11:53 PM
Karma Description Mod ver. 1.9.7-2 now available.
Title: Re: Karma Description Mod
Post by: SusanTN on September 03, 2006, 07:43:06 PM
Quote from: Grek_Kamchatka on September 03, 2006, 07:11:53 PM
Karma Description Mod ver. 1.9.7-2 now available.
Any new features or just RC3 support?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 03, 2006, 08:02:39 PM
Quote from: bl968 on September 03, 2006, 07:43:06 PM
Any new features or just RC3 support?

Just RC3 compatible. I don't know what new functions i can do with this mod.
Title: Re: Karma Description Mod
Post by: SusanTN on September 03, 2006, 08:15:27 PM
Off the top of my head PM on Karma. sends a pm to the person letting them know who, what, why, and their new karma total :) Anyone else have any ideas? Since the why requires your mod it would be best if it was added as a feature to it instead of done seperately
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 03, 2006, 10:21:22 PM
I made another notification when karma was changed. It was like a popup window, when you receive a new PM (and there was two buttons 'Yes', 'No' to view own karma log). Is this what you need, or only PM?
Title: Re: Karma Description Mod
Post by: SusanTN on September 03, 2006, 10:50:29 PM
Quote from: Grek_Kamchatka on September 03, 2006, 10:21:22 PM
I made another notification when karma was changed. It was like a popup window, when you receive a new PM (and there was two buttons 'Yes', 'No' to view own karma log). Is this what you need, or only PM?
An option either way would be nice
In Admin
Enable Karma Change Notifications:
( ) Yes

IN Profile....
Karma Change Notification:
( )  PM
( )  Popup
( )  None
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 03, 2006, 11:05:33 PM
Ok. I'll  try.
Title: Re: Karma Description Mod
Post by: SusanTN on September 04, 2006, 12:57:45 AM
Quote from: Grek_Kamchatka on September 03, 2006, 11:05:33 PM
Ok. I'll  try.

Forgot an option above... Added None for notification type
Title: Re: Karma Description Mod
Post by: Loverboy on September 04, 2006, 06:26:06 PM
Quote from: Grek_Kamchatka on September 03, 2006, 07:11:53 PM
Karma Description Mod ver. 1.9.7-2 now available.

Do you have the dutch version please? I installed it and it worked but your language settings have to be english otherwise it will not work.. unless you have the dutch file for me?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 04, 2006, 09:53:00 PM
Sorry, but i don't know dutch.
Title: Re: Karma Description Mod
Post by: Loverboy on September 05, 2006, 05:12:40 AM
Can't I modify the english file into a dutch file? .. I know dutch but i don't know how to modify en what I have to change in the script.
Title: Re: Karma Description Mod
Post by: SusanTN on September 05, 2006, 06:06:45 AM
Quote from: LocoTurk on September 05, 2006, 05:12:40 AM
Can't I modify the english file into a dutch file? .. I know dutch but i don't know how to modify en what I have to change in the script.

I think you simply have to add the strings to the language file for your language. It adds them by default to the english ones..

./Karma_Description_Mod.xml:    <file name="$themedir/languages/Admin.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/ModSettings.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/Who.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/Help.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/index.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/ManagePermissions.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/Errors.english.php">
./Karma_Description_Mod.xml:    <file name="$themedir/languages/Profile.english.php">


Admin.[language].php

After:
$txt['maintain_logs'] = 'Empty out unimportant logs.';

Add:
$txt['maintain_karmalog'] = 'Empty out Karmachange Description log';
$txt['maintain_optimize'] = 'Optimize all tables to improve performance.';
$txt['maintain_version'] = 'Check all files against current versions.';
$txt['maintain_return'] = 'Back to Forum Maintenance';


ModSettings.[language].php
After
$txt['karmaSmiteLabel'] = 'Karma smite label';

add
$txt['karmadescmod'] = 'Enable Karma Description Mod';
$txt['karmamaxmembers'] = 'Members per page in Karma Description log';
$txt['karmalogview'] = 'Use member names as link to their profiles';
$txt['karmapermiss'] = 'Allow users view Karma Description log (See Permissions)';
$txt['karmalinks'] = 'Enable karma links in users profiles';
$txt['karmaisowner'] = 'Disable whole karma log for users but enable own karma log';
$txt['karmakarma'] = 'Display users karma(+/-) in Karma Description Log';
$txt['karmaurl'] = 'Enable "Where" field in Karma Description Log';
$txt['karmaotherstat'] = 'Show other Karma Statistics';
$txt['karmasurv'] = 'Applaud or smite users without explanation';
$txt['karmawhatwrite'] = 'Write this in the log, when explanation is disabled';
$txt['karmacensor'] = 'Censor karma explanation';
$txt['karmatopicstarter'] = 'Users can change only topic starter karma';


Who.[language].php
After
$txt['whoall_.xml'] = 'Viewing an XML feed.';

add

$txt['whoadmin_viewkarma'] = 'Viewing <a href="' . $scripturl . '?action=viewkarma">Karmachange Description Log</a>.';
$txt['whoall_modifykarma'] = 'Changing karma.';


Help.[language].php
Before
$helptxt['karmaMode'] = 'Karma is a feature that shows the popularity of a member. Members, if allowed, can

Add
$helptxt['karmapermiss'] = 'By default this option is switched off and Karma Log can look only admins. If you want to do Karma Log available for other users or moderators, etc, enable this option and give the right that group, which can look Log in "Permissions" section.';
$helptxt['karmalinks'] = 'If you enable this feauture, users will see two links in their profiles (Own or other users). They can see who change their karma and whom they change it. Karma Description Mod must be enabled';
$helptxt['karmakarma'] = 'It\'s display users karma in Karma log opposit the usernames. For example: Username (+12/-8)';
$helptxt['karmaurl'] = 'If you enable this option, you and your users can view where their karma was change';
$helptxt['karmaisowner'] = 'If you enable this option, only profile owner will see two links to his own karma log. By the way, your users will resieve an error if they input an url adress (like http://your_forum.com/index.php?action=ownkarma;u=other_user) by the hand if you don\'t want your users can view other users karma log. Whole karma log will be disabled too. ONLY OWN KARMA LOG.';


index.[language].php
After
$txt['ajax_in_progress'] = 'Loading...';

add
$txt['karmaview'] = 'Karma Modification Log';
$txt['whykarmamod'] = 'Karma Modification';
$txt['Description'] = 'No Description';
$txt['karmamoder'] = 'Why are you modifying this user\'s karma?';
$txt['karmarequare'] = '(Required field)';
$txt['karmawho'] = 'By';
$txt['karmawhos'] = 'To';
$txt['karmawhat'] = '(+/-)';
$txt['karmadesc'] = 'Reason';
$txt['karmatime'] = 'When';
$txt['karmanumb'] = 'Values: ';
$txt['statkarma'] = '[Karma Stats]';
$txt['viewkarma_title'] = 'Viewing Karma Modification Log';
$txt['deletekarma'] = 'Delete';
$txt['clearkarma'] = 'Clear';
$txt['nextver'] = 'In next mod version';
$txt['karma_delete_confirm'] = 'Are you sure you want to delete this record?';
$txt['karma_back'] = '< Back';
$txt['karma_continue'] = 'Continue >';
$txt['karmadescappl'] = ' (Applaud)';
$txt['karmadescsmi'] = ' (Smite)';
$txt['karmawhere'] = 'Where';
$txt['karmawhereurl'] = 'In topic';
$txt['karmawhereurl2'] = 'In PM';
$txt['karma_delete'] = 'Delete';
$txt['sure_about_karma_remove'] = 'Are you sure you want to delete this record?';
$txt['karma_stat'] = 'Karma Stats';
$txt['karma_top_applaud'] = 'Top 5 applauded users';
$txt['karma_top_smite'] = 'Top 5 smited users';
$txt['karma_other_stat'] = 'General Statistics';
$txt['karma_max_appl'] = 'Applauds the most:';
$txt['karma_max_smit'] = 'Smites the most:';
$txt['karma_today'] = 'Karma points today';
$txt['karma_today_plus'] = 'Today "+"';
$txt['karma_today_minus'] = 'Today "-"';


MangagePermissions.[language].php

at the end of the file before the ?>

add

$txt['permissionname_karmalog_view'] = 'View Karma Log';
$txt['permissionhelp_karmalog_view'] = 'Karma Description Log shows all members karma and description of applauding or smiting. This permission will only work if you also have enabled it in \'Features and Options\'. You can access the Karma Description screen by clicking the link in the \'Karma Stat\' section of the board index.';


Errors.[language].php

at the end of the file before the ?>

Add
$txt['cannot_karmalog_view'] = 'Sorry - you don\'t have the proper permissions to view the Karma Description list.';
$txt['viewkarma_error'] = 'User ID must be a number';
$txt['karma_not_topic_starter'] = 'Sorry, he is not topic author.';


Profile.[language].php

at the end of the file before the ?>

add
$txt['who_change_my_karma'] = 'Karma received?';
$txt['whom_i_change_karma'] = 'Karma given?';


Do not edit the part before the = sign only what is in the single quotes after.

You of course have to do your own translations. I have edited some of these from the original text, and removed the comments since I couldn't read them anyway.....
Title: Re: Karma Description Mod
Post by: Loverboy on September 05, 2006, 06:11:20 AM
So I have to add these codes to the language files and translate te words that are inside 'here' into dutch? Like below?

$txt['karma_top_smite'] = 'Top 5 smited users'; BECOMES -->  $txt['karma_top_smite'] = 'Top 5 Karma gebruikers';
$txt['karma_other_stat'] = 'General Statistics'; BECOMES -->  $txt['karma_other_stat'] = 'Algemene Statistieken';
Title: Re: Karma Description Mod
Post by: SusanTN on September 05, 2006, 06:13:40 AM
Quote from: LocoTurk on September 05, 2006, 06:11:20 AM
So I have to add these codes to the language files and translate te words that are inside 'here' into dutch? Like below?

$txt['karma_top_smite'] = 'Top 5 smited users'; BECOMES -->  $txt['karma_top_smite'] = 'Top 5 Karma gebruikers';
$txt['karma_other_stat'] = 'General Statistics'; BECOMES -->  $txt['karma_other_stat'] = 'Algemene Statistieken';

Yep! Once you have done a language you should think about sending a list of the translations to Grek_Kamchatka  so he can add it to future versions of the mod. 
Title: Re: Karma Description Mod
Post by: ssoltz on September 05, 2006, 12:20:20 PM
Err...well I, for one would just like to say "thank you!" to Grek!

I love the mod the way it is, I just needed RC3 compatibility...now I can move forward with my upgrade...

thank you again!!!
Title: Re: Karma Description Mod
Post by: KD on September 05, 2006, 01:28:19 PM
when I install the latest version of your mode on my 1.1 RC3 forum, it says that it installed correctly, but at the top of the page I got this message:

Error: Database modifications failed!Error: Database modifications failed!

any idea?
Title: Re: Karma Description Mod
Post by: SusanTN on September 05, 2006, 03:16:53 PM
Quote from: KD on September 05, 2006, 01:28:19 PM
when I install the latest version of your mode on my 1.1 RC3 forum, it says that it installed correctly, but at the top of the page I got this message:

Error: Database modifications failed!Error: Database modifications failed!

any idea?


3 statements can generate that error. Try running each one in phpmyadmin or whatever you use....
Replace {$db_prefix} with the prefix you use for your SMF database.

ALTER TABLE `{$db_prefix}log_karma`
        ADD `Description` TINYTEXT NOT NULL,
        ADD `link` TEXT NOT NULL


ALTER TABLE `{$db_prefix}log_karma`
        DROP PRIMARY KEY



The last one is a bit harder so if the first two run then it's most certainly the last....


// Turn the array defined above into a string of MySQL data.
$string = '';
foreach ($mod_settings as $k => $v)
        $string .= '
                        (\'' . $k . '\', \'' . $v . '\'),';

// Sorted out the array defined above - now insert the data!
if ($string != '')
        $result = db_query("
                " . ($overwrite_old_settings ? 'REPLACE' : 'INSERT IGNORE') . " INTO {$db_prefix}settings
                        (variable, value)
                VALUES" . substr($string, 0, -1), __FILE__, __LINE__);

// Uh-oh spaghetti-oh!
if ($result === false)
        echo '<b>Error:</b> Database modifications failed!';
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 05, 2006, 04:05:56 PM
Quote from: KD on September 05, 2006, 01:28:19 PM
when I install the latest version of your mode on my 1.1 RC3 forum, it says that it installed correctly, but at the top of the page I got this message:

Error: Database modifications failed!Error: Database modifications failed!

any idea?

Everything ok. It is because of your database already contain KDM fields. (Description and logtime)
Title: Re: Karma Description Mod
Post by: Loverboy on September 05, 2006, 04:47:45 PM
I couldn't make a dutch language file for this Modification :( Could anyone help me please.
Title: Better translation, perhaps?
Post by: citrusmirakel on September 05, 2006, 09:19:28 PM
I love this mod.

My only problem with it, and something I'm trying to change, is the spotty English listed in the summary. "Who change my karma?" should be "Who changed my karma?" and "Whom I change karma?" should probably be something like "Whose karma have I changed?"

I've been looking through the package files, and I can't find the files these descriptions are in. Could somebody please point me to them?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 05, 2006, 09:57:11 PM
Quote from: citrusmirakel on September 05, 2006, 09:19:28 PM
I love this mod.

My only problem with it, and something I'm trying to change, is the spotty English listed in the summary. "Who change my karma?" should be "Who changed my karma?" and "Whom I change karma?" should probably be something like "Whose karma have I changed?"

I've been looking through the package files, and I can't find the files these descriptions are in. Could somebody please point me to them?
Thank you, citrusmirakel. Sorry for my bad english, i'm from Russia $-)

You'll find this strings in Karma_Description_Mod.xml
Title: Re: Karma Description Mod
Post by: KD on September 06, 2006, 09:46:06 AM
ok, well I have a little problem.

the logs are accessible (but empty since I uninstalled the last version to install this one) but when I want to change someone's karma, it gives me this error:

Parse error: parse error, unexpected $ in /home/kddio/public_html/forum/Sources/Karma.php on line 670

and the line 670 in my file is the end of the file, which is simply: 
?>

so I don't know what to do  :(

I tried uninstalling it and reinstalling it, but it doesn't work.
Title: Re: Karma Description Mod
Post by: KD on September 06, 2006, 10:51:13 AM
nevermind

I took the karma.php file from another forum that I manage and it works now
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 06, 2006, 04:34:35 PM
After uninstalling the mod, i advice to upload vanilla karma.php.
Title: Re: Karma Description Mod
Post by: chinclub on September 06, 2006, 05:37:05 PM
This is a great mod. THANKS!!  Will you be adding an update soon with the email or pm function when karma is changed?
Title: Re: Karma Description Mod
Post by: citrusmirakel on September 06, 2006, 06:42:00 PM
QuoteThank you, citrusmirakel. Sorry for my bad english, i'm from Russia $-)

Hey, your English is a lot better than my Russian.

Thanks, got it changed. Incidentally, for anyone who might be curious, the file you're looking for is Themes/default/languages/profile.english.php. The strings $txt['who_change_my_karma'] and $txt['whom_i_change_karma'] (they're at the end) are what you'll want to change.
Title: Re: Karma Description Mod
Post by: Loverboy on September 07, 2006, 06:45:59 AM
Quote from: bl968 on September 05, 2006, 06:13:40 AM
Yep! Once you have done a language you should think about sending a list of the translations to Grek_Kamchatka  so he can add it to future versions of the mod. 

It worked thanks... I would like to upload the files i have changed.. but i can't attach any files here?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 17, 2006, 08:06:26 AM
KDM 2.0 rc1 now available. Please read the releasenotes on download page. http://mods.simplemachines.org/index.php?mod=192

Release notes:
Karma_Description_Mod_ver.2.0_rc1
*Added notification function (Users can choose how they'll be notified when their karma will be changed. [None][Popup Message][Personal Message]. In PM they can see link to own karma log, reason of a change and link to the message where karma was changed.
*There are some bugs in this version that i know. 1st After installing the mod, until you checked 'Enable karma notify' you will resieve some errors in error log. 2nd If you disable KDM, but karma function still be worked you will resieve an error in error log. Please, if you'll find any other bugs PM me, or post it here. Have a nice day.




Edit

1st bug is fixed.
If you want to fix it manually, open Subs.php find code:
if ($modSettings['karmanotifier'] && !$user_info['is_guest'] && (!isset($options['enable_notify'])))in line 3115 and replace it with this code:if (isset($modSettings['karmanotifier']) && !$user_info['is_guest'] && (!isset($options['enable_notify'])))

Then find code:if ($modSettings['karmanotifier'] && !$user_info['is_guest'] && ($options['enable_notify'])==1) in line 3119 and replace it with this code: if (isset($modSettings['karmanotifier']) && !$user_info['is_guest'] && ($options['enable_notify'])==1)




2nd bug in Profile.template.php is fixed
If you go to 'Look and Layout Preferences' in your profile, you will see this comment '//Karma Description Mod (Notifier)'. It must be invisible. To fix this bug, please open Profile.template.php and find this code:
//Karma Description Mod (Notifier)
                                                        ';
                                                                if ($modSettings['karmanotifier'])

replace it with this code:
';
                                                        //Karma Description Mod (Notifier)
                                                                if ($modSettings['karmanotifier'])




3rd bug is fixed
If you disable KDM, but karma function still be worked you will resieve an error in error log - fixed.
Open Karma.php, find this code:

/* They haven't, not before now, anyhow.
           If the key isn't in the array it will return.
           Or if it does exist and it's length is 0 then it will return.
           If Karma Description Mod disable then easy smite or applaud */
if (!empty($modSettings['karmadescmod'])){
if (!array_key_exists('Description',$_POST) || strlen($_POST["Description"]) == 0){return;}}


{ if ( empty($action) || empty($modSettings['karmaWaitTime']))
        { $_POST['Description'] = AddSlashes($_POST['Description']);

and replace it with this code:

/* They haven't, not before now, anyhow.
           If the key isn't in the array it will return.
           Or if it does exist and it's length is 0 then it will return.
           If Karma Description Mod disable then easy smite or applaud */
if (!empty($modSettings['karmadescmod']))
{
     if (!array_key_exists('Description',$_POST) || strlen($_POST["Description"]) == 0){return;}
}
else
{
        $_POST['Description']='';
}
{ if ( empty($action) || empty($modSettings['karmaWaitTime']))
        { $_POST['Description'] = AddSlashes($_POST['Description']);





This bugs is fixed in Karma_Description_Mod_ver.2.0_rc2
Title: Re: Karma Description Mod
Post by: Loverboy on September 17, 2006, 11:04:46 AM
http://rapidshare.de/files/33452133/Karma_desc_Dutch_languagepack.rar.html

I have uploaded the dutch language files for the karma description mod.. Those are my files so there could be other modifications inside them.

Could you adjust them into the new version of Karma Description Mod
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 17, 2006, 06:04:59 PM
Quote from: LocoTurk on September 17, 2006, 11:04:46 AM
I have uploaded the dutch language files for the karma description mod.. Those are my files so there could be other modifications inside them.
It's not full. Please, download a new version of my mod and translate new language files
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 18, 2006, 01:42:10 AM
Karma Description Mod ver.2.0 Release Candidate 2 now available.
Title: Re: Karma Description Mod
Post by: RoarinRow on September 18, 2006, 01:58:08 AM
Quote from: Grek_Kamchatka on September 18, 2006, 01:42:10 AM
Karma Description Mod ver.2.0 Release Candidate 2 now available.

Cool, thanks!  Do you just install right over Karma_Description_Mod_ver.1.9.7-2.zip for RC3 or do you have to uninstall, then re-install new version?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 18, 2006, 02:03:36 AM
Quote from: RoarinRow on September 18, 2006, 01:58:08 AM
Cool, thanks!  Do you just install right over Karma_Description_Mod_ver.1.9.7-2.zip for RC3 or do you have to uninstall, then re-install new version?
Yup, uninstall previous version (1.9.7-2) and install new version (2.0) on vanilla source files. Don't forget to backup, please.
Title: Re: Karma Description Mod
Post by: RoarinRow on September 18, 2006, 02:07:17 AM
Quote from: Grek_Kamchatka on September 18, 2006, 02:03:36 AM
Quote from: RoarinRow on September 18, 2006, 01:58:08 AM
Cool, thanks!  Do you just install right over Karma_Description_Mod_ver.1.9.7-2.zip for RC3 or do you have to uninstall, then re-install new version?
Yup, uninstall previous version (1.9.7-2) and install new version (2.0) on vanilla source files. Don't forget to backup, please.

Thank you!
Title: Re: Karma Description Mod
Post by: ivo2296 on September 24, 2006, 11:58:10 PM
On smf 1.1 RC3 new installtion of the mod i got this error in the log:

http://www.myhost.com/index.php?action=modifykarma;sa=applaud;uid=212;topic=10548.0;m=53984;sesc

8: Undefined index: karmanotifier
File: /home/myhost/public_html/Sources/Karma.php
Line: 433
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 25, 2006, 02:32:34 AM
What version man?! I'm not a telepat
Title: Re: Karma Description Mod
Post by: robbievk on September 25, 2006, 08:31:46 AM
Quote from: ivo2296 on September 24, 2006, 11:58:10 PM
On smf 1.1 RC3 new installtion of the mod i got this error in the log:

http://www.myhost.com/index.php?action=modifykarma;sa=applaud;uid=212;topic=10548.0;m=53984;sesc

8: Undefined index: karmanotifier
File: /home/myhost/public_html/Sources/Karma.php
Line: 433
I got this same problem and i'm using version 2.0...
Title: Re: Karma Description Mod
Post by: ivo2296 on September 25, 2006, 10:56:21 AM
Quote from: Grek_Kamchatka on September 25, 2006, 02:32:34 AM
What version man?! I'm not a telepat


Just downloaded the latest 2.0
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 25, 2006, 06:57:01 PM
2.0 rc2?
Title: Re: Karma Description Mod
Post by: ivo2296 on September 25, 2006, 11:07:32 PM
Quote from: ivo2296 on September 24, 2006, 11:58:10 PM
On smf 1.1 RC3 new installtion of the mod i got this error in the log:

http://www.myhost.com/index.php?action=modifykarma;sa=applaud;uid=212;topic=10548.0;m=53984;sesc

8: Undefined index: karmanotifier
File: /home/myhost/public_html/Sources/Karma.php
Line: 433

Quote from: Grek_Kamchatka on September 25, 2006, 02:32:34 AM
What version man?! I'm not a telepat

Quote from: ivo2296 on September 25, 2006, 10:56:21 AM
Quote from: Grek_Kamchatka on September 25, 2006, 02:32:34 AM
What version man?! I'm not a telepat


Just downloaded the latest 2.0

Quote from: Grek_Kamchatka on September 25, 2006, 06:57:01 PM
2.0 rc2?

smf 1.1 RC3 :)

Thanks
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 25, 2006, 11:22:15 PM
Quote from: ivo2296 on September 25, 2006, 11:07:32 PM
smf 1.1 RC3 :)
Thanks
Version of the mod. 2.0 rc2 ?
Title: Re: Karma Description Mod
Post by: robbievk on September 26, 2006, 09:31:26 AM
Quote from: Grek_Kamchatka on September 25, 2006, 11:22:15 PM
Version of the mod. 2.0 rc2 ?
That is the latest version, so yeah that's the one i got...
Title: Re: Karma Description Mod
Post by: Massyboy on September 27, 2006, 05:56:28 PM
Just installed this successfully (most recent version of SMF and this mod) but get the error:

Unknown column 'lk.Description' in 'field list'
File: /home/content/m/a/s/massyboy/html/clan/smf/Sources/Viewkarma.php
Line: 289

when trying to look at the "Whose karma have I changed" link and the following error:

Unknown column 'lk.Description' in 'field list'
File: /home/content/m/a/s/massyboy/html/clan/smf/Sources/Viewkarma.php
Line: 182

when trying to look at the "Who changed my karma" link

Please help cos I have some person smiting people and wanna weed them out
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 28, 2006, 03:36:03 AM
1. You use older version of viewkarma.php (from older version of the mod)
2. You havent Description field in your database
3. You use other version of the forum and mod then SMF RC3 and KDM 2.0 rc2

It is already fixed in new version.
Title: Re: Karma Description Mod
Post by: Massyboy on September 28, 2006, 04:51:30 AM
I'm using SMF 1.1 RC3 and Karma_Description_Mod_ver.2.0_rc2

I thought these were the latest descriptions
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 30, 2006, 10:43:05 PM
Quote from: Massyboy on September 27, 2006, 05:56:28 PM
Just installed this successfully (most recent version of SMF and this mod) but get the error:

Unknown column 'lk.Description' in 'field list'
File: /home/content/m/a/s/massyboy/html/clan/smf/Sources/Viewkarma.php
Line: 289

when trying to look at the "Whose karma have I changed" link and the following error:

Unknown column 'lk.Description' in 'field list'
File: /home/content/m/a/s/massyboy/html/clan/smf/Sources/Viewkarma.php
Line: 182

when trying to look at the "Who changed my karma" link

Please help cos I have some person smiting people and wanna weed them out
I think you use older version of viewkarma.php file. Please post it here or send me email with it. And look at your database. Have you 'Description' field in _log_karma table.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 30, 2006, 10:46:07 PM

Karma Description Mod 2.0 Release now available

*Fixed error with Undefined index: karmanotifier
*Upgraded karmalog outputing visual style.

I advise you upload new karma.php file and remove older Viewkarma.php and Viewkarma.template.php files
Title: Re: Karma Description Mod
Post by: n1kki6 on October 01, 2006, 02:05:38 PM
I might be missing it, but is their a way to set all of my members karma notification to PM.   Right now it seems it they want to recieve it they need to set it themselves in their preferences and I want to set it for them by default.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 01, 2006, 05:56:58 PM
Quote from: n1kki6 on October 01, 2006, 02:05:38 PM
Right now it seems it they want to recieve it they need to set it themselves in their preferences
Yep, you are right. By default it is disabled. You can open your database (ie by phpMyAdmin) and set 'karmanotifier' variable by default = 2 in _members table.
Title: Re: Karma Description Mod
Post by: Massyboy on October 01, 2006, 11:05:31 PM
Quote from: Grek_Kamchatka on September 30, 2006, 10:43:05 PM

I think you use older version of viewkarma.php file. Please post it here or send me email with it. And look at your database. Have you 'Description' field in _log_karma table.
My database looks like:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bsfclan.com%2Fimages%2Fsql.JPG&hash=3541af547897b2bd8124a8415741397516be2e43)

Do I need to add something and if so, what/where?

Thanks a lot
Title: Re: Karma Description Mod
Post by: HHwarriors on October 01, 2006, 11:35:10 PM
How do i get it to work on other skins ? :(
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 02, 2006, 12:02:42 AM
Quote from: Massyboy on October 01, 2006, 11:05:31 PM
Do I need to add something and if so, what/where?
Thanks a lot
I'm asking for you, have you 'Description' field in your database, but you didn't answer. You haven't this field, so KDM installation was failure. Upload new release and install it again. Advice to upload vanilla source files.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 02, 2006, 12:29:48 AM
Quote from: HHwarriors on October 01, 2006, 11:35:10 PM
How do i get it to work on other skins ? :(
http://www.simplemachines.org/community/index.php?topic=38184.0
Title: Re: Karma Description Mod
Post by: Massyboy on October 02, 2006, 10:14:13 AM
Quote from: Grek_Kamchatka on October 02, 2006, 12:02:42 AM
I'm asking for you, have you 'Description' field in your database, but you didn't answer. You haven't this field, so KDM installation was failure. Upload new release and install it again. Advice to upload vanilla source files.

Sorry, the picture was meant to show you what fields I had.  It doesn't have it there and I have again tried to install the new versio but am having the same problem.  Can I add the field manually?
Title: Re: Karma Description Mod
Post by: spaceman on October 02, 2006, 11:09:12 AM
Quote from: Massyboy on October 02, 2006, 10:14:13 AM
Quote from: Grek_Kamchatka on October 02, 2006, 12:02:42 AM
I'm asking for you, have you 'Description' field in your database, but you didn't answer. You haven't this field, so KDM installation was failure. Upload new release and install it again. Advice to upload vanilla source files.

Sorry, the picture was meant to show you what fields I had.  It doesn't have it there and I have again tried to install the new versio but am having the same problem.  Can I add the field manually?

I've the same problem where 'lk.description' column is not found in 'field list' error whenever Viewkarma.php is loaded. And 'Description' column is not found in 'field list' error whenever Karma.php is loaded.

Might be database problem? As I'm sure I got the columns in my MySql by default.
Title: Re: Karma Description Mod
Post by: HHwarriors on October 02, 2006, 01:18:30 PM
Quote from: Grek_Kamchatka on October 02, 2006, 12:29:48 AM
Quote from: HHwarriors on October 01, 2006, 11:35:10 PM
How do i get it to work on other skins ? :(
http://www.simplemachines.org/community/index.php?topic=38184.0
I tryd but i dident get it. can anyone install it on this skin for me. ? neon http://www.simplemachines.org/community/index.php?topic=99742.0
^^THANX in advance^^ PLZ
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 02, 2006, 06:21:43 PM
Quote from: Massyboy on October 02, 2006, 10:14:13 AM
Sorry, the picture was meant to show you what fields I had.  It doesn't have it there and I have again tried to install the new versio but am having the same problem.  Can I add the field manually?
Open your database in phpMyAdmin and enjoy this query

ALTER TABLE `your_prefix_log_karma`
        ADD `Description` TINYTEXT NOT NULL,
        ADD `link` TEXT NOT NULL

Where 'your_prefix_' is your smf base prefix.

Then this one

ALTER TABLE `your_prefix_log_karma`
        DROP PRIMARY KEY
That's all
Title: Re: Karma Description Mod
Post by: Massyboy on October 02, 2006, 07:07:07 PM
Great thanks.  all is working now-brilliant

However when I try to applaud/smite people I now get:

Parse error: parse error, unexpected $ in /home/content/m/a/s/massyboy/html/clan/smf/Sources/Karma.php on line 1893

*Update*

Ok, I've copied over the karma.php file from a new download of smf and replaced the old one (72kb in size) with the new one (only 8kb in size).  Just curious as to why the file sizes are so different.  Hopefully I won't run into any problems
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 02, 2006, 07:21:59 PM
Oh man, you use older version of Karma Description Mod.
Title: Re: Karma Description Mod
Post by: SleePy on October 02, 2006, 09:49:02 PM
Quote from: Massyboy on October 01, 2006, 11:05:31 PM
Quote from: Grek_Kamchatka on September 30, 2006, 10:43:05 PM

I think you use older version of viewkarma.php file. Please post it here or send me email with it. And look at your database. Have you 'Description' field in _log_karma table.
My database looks like:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bsfclan.com%2Fimages%2Fsql.JPG&hash=3541af547897b2bd8124a8415741397516be2e43)

Do I need to add something and if so, what/where?

Thanks a lot

In Your Image... Why Does it say

"Your SQL query has been executed successfully

ALTER TABLE `smf_log_karma` DROP `Description`"

To me it looks like you deleted the Description field.. Why?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 02, 2006, 10:26:39 PM
Quote from: SleePy on October 02, 2006, 09:49:02 PM
To me it looks like you deleted the Description field.. Why?
SleePy, Wow, what a beautiful attention.

Massyboy, can you answer?
Title: Re: Karma Description Mod
Post by: n1kki6 on October 02, 2006, 11:39:52 PM
Quote from: Grek_Kamchatka on October 01, 2006, 05:56:58 PM
Quote from: n1kki6 on October 01, 2006, 02:05:38 PM
Right now it seems it they want to recieve it they need to set it themselves in their preferences
Yep, you are right. By default it is disabled. You can open your database (ie by phpMyAdmin) and set 'karmanotifier' variable by default = 2 in _members table.

That worked, but make it a pop up, should it be a number 3 for a Personal message?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 02, 2006, 11:51:13 PM
Quote from: n1kki6 on October 02, 2006, 11:39:52 PM
That worked, but make it a pop up, should it be a number 3 for a Personal message?
Nope, try = 1
Title: Re: Karma Description Mod
Post by: n1kki6 on October 02, 2006, 11:57:40 PM
Actually neither worked.  I had mine already site for my profile but logging in as a normal user it didnt do a pop up or pm.  oh well know big deal.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 03, 2006, 01:02:51 AM
Whoops, it's not a _members table. It is a _setting table, i forget it. So it is a dynamical table, and it can't consist default value. You only can edit Profile.template.php lines with Karma Description Mod to set default value = 2
Title: Re: Karma Description Mod
Post by: Massyboy on October 03, 2006, 04:16:34 AM
I attempted to add the Description field manually but didn't know what to set it as (ie text, tinytext etc) soI deleted it again as it didn't work.  the field just wasn't created for some reason.  And I have only been using the latest versions of karma description mod so it most certaintly wasn't an old version.  Only been using the version 2 builds.  all seems to be working now though
Title: Re: Karma Description Mod
Post by: markd on October 04, 2006, 09:08:22 PM
I dont have the notifications turned on, so it seems that the karmanotifier variable is unset, thus filling my error logs with:

8: Undefined index: karmanotifier
File: /var/www/vhosts/mydomain.com/httpdocs/Sources/Karma.php
Line: 175

the error gets logged whenever someone modifies karma. i dont think this should be done by default if the karma notifications are turned off, so did you miss a global variable assignment somewhere in the code?

other than that, the rest works like a champ!

-mark
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 04, 2006, 11:28:14 PM
Quote from: markd on October 04, 2006, 09:08:22 PM
I dont have the notifications turned on, so it seems that the karmanotifier variable is unset, thus filling my error logs with:

8: Undefined index: karmanotifier
File: /var/www/vhosts/mydomain.com/httpdocs/Sources/Karma.php
Line: 175

the error gets logged whenever someone modifies karma. i dont think this should be done by default if the karma notifications are turned off, so did you miss a global variable assignment somewhere in the code?

other than that, the rest works like a champ!

-mark

What version of Karma Description Mod?
Title: Re: Karma Description Mod
Post by: rockinaway on October 07, 2006, 04:57:44 PM
I can't seem to execute this command

ALTER TABLE `smf_log_karma`
        DROP PRIMARY KEY


When I try doing any in SMF it says that it failed, so I went manual and this one doesn't work.. I get this error:

#1091 - Can't DROP 'PRIMARY'; check that column/key exists
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 08, 2006, 04:11:12 AM
Quote from: rockinaway on October 07, 2006, 04:57:44 PM
I can't seem to execute this command

ALTER TABLE `smf_log_karma`
        DROP PRIMARY KEY


When I try doing any in SMF it says that it failed, so I went manual and this one doesn't work.. I get this error:

#1091 - Can't DROP 'PRIMARY'; check that column/key exists
I think it's already dropped. #1091 - Can't DROP 'PRIMARY'; check that column/key exists
Title: Re: Karma Description Mod
Post by: rockinaway on October 08, 2006, 05:24:05 AM
Well if it gave the error that DB hadn't been done when I was installing.... oh well!
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 08, 2006, 05:27:20 PM
Quote from: rockinaway on October 08, 2006, 05:24:05 AM
Well if it gave the error that DB hadn't been done when I was installing.... oh well!
You recieved this error, because your database already contain Description field and dropped primary key. Read this topic again.
Title: Re: Karma Description Mod
Post by: rockinaway on October 09, 2006, 11:44:58 AM
Yes, but it didn't have the last one.

Can you look at this though, it is a bigger problem..

http://www.simplemachines.org/community/index.php?topic=118854.0
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 09, 2006, 04:14:54 PM
Quote from: rockinaway on October 09, 2006, 11:44:58 AM
Yes, but it didn't have the last one.

Can you look at this though, it is a bigger problem..

http://www.simplemachines.org/community/index.php?topic=118854.0
What do you want? I don't understand you. You tried to install or uninstall my mod?
Title: Re: Karma Description Mod
Post by: rockinaway on October 10, 2006, 11:48:57 AM
I installed it the first time, but when I clicked karma it went to a karma error with $end, and then I decided to check code, still same problem. So I removed the code manually, then basic karma worked. So to get the mod working again I added the code manually and I get the new error which is on the page with the two bits of code.
Title: Re: Karma Description Mod
Post by: Ryan on October 11, 2006, 09:35:07 PM
Anyone with smf 1.1 rc3
With the 2.0 version of this mod...

Having apache problems? I mean i havent tested this enough... but it seems my apache keeps restarting...

[Thu May 12 15:22:38 2006] [notice] Parent: child process exited with
status 128 -- Restarting.
[Thu May 12 15:22:38 2006] [notice] Apache/2.2.20 configured -- resuming
normal operations

This happens all the time when the mod is installed but when i uninstall mod i do not recieve the error, and my site runs fine...

I noticed this cos i have alota file downloads, and everyones fikles keep getting reset.

Anyone have similar issue..

ill let you know if i find out more.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 11, 2006, 10:49:17 PM
Quote from: M3THOD on October 11, 2006, 09:35:07 PM
Anyone with smf 1.1 rc3
With the 2.0 version of this mod...

Having apache problems? I mean i havent tested this enough... but it seems my apache keeps restarting...

[Thu May 12 15:22:38 2006] [notice] Parent: child process exited with
status 128 -- Restarting.
[Thu May 12 15:22:38 2006] [notice] Apache/2.2.20 configured -- resuming
normal operations

This happens all the time when the mod is installed but when i uninstall mod i do not recieve the error, and my site runs fine...

I noticed this cos i have alota file downloads, and everyones fikles keep getting reset.

Anyone have similar issue..

ill let you know if i find out more.
No, your web server can't restart from this mod.
Title: Re: Karma Description Mod
Post by: n1kki6 on October 12, 2006, 12:35:33 AM
Quote from: Grek_Kamchatka on October 03, 2006, 01:02:51 AM
Whoops, it's not a _members table. It is a _setting table, i forget it. So it is a dynamical table, and it can't consist default value. You only can edit Profile.template.php lines with Karma Description Mod to set default value = 2

Im a little confused now, so I should change it in profile.template and change something in the DB?  or this can't be done.
Title: Re: Karma Description Mod
Post by: rockinaway on October 12, 2006, 11:38:46 AM
hey I got no help  ??? ???
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 12, 2006, 05:46:50 PM
Quote from: rockinaway on October 12, 2006, 11:38:46 AM
hey I got no help  ??? ???
Can you upload fresh files to your forum? Do it.
Title: Re: Karma Description Mod
Post by: Reynard on October 14, 2006, 08:51:18 AM
I just upgraded to the last update of this mod, but when someone wants to give someone karma, the following error message appears:

QuoteParse error: syntax error, unexpected $end in /hsphere/local/home/reynard/alterego.vault.ign.com/board/Sources/Karma.php on line 577

I checked the karma.php file and the only thing which is on line 577 is: ?>

any suggestions?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 15, 2006, 05:42:19 AM
After uninstalling the mod, i advice you upload new Karma.php couse package manager can't clean normaly this file
I wrote this 1000 times, i can't repeat it on each page. It's a last time i write this.
Title: Re: Karma Description Mod
Post by: rockinaway on October 16, 2006, 12:04:13 PM
Woot it works! You legend!
Title: Re: Karma Description Mod
Post by: houston on October 20, 2006, 04:54:12 PM
I am getting this error when ever a member changes another members karma.

8: Undefined index: current_topic
File: /home/eaglebay/public_html/newforum/Themes/default/PersonalMessage.template.php (eval?)
Line: 303

8: Undefined index: current_topic
File: /home/eaglebay/public_html/newforum/Themes/default/PersonalMessage.template.php (eval?)
Line: 302


This is the code in the PersonalMessage.php lines 303 and 302

<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaApplaudImage'], '" alt="', $modSettings['karmaApplaudLabel'], '" title="', $modSettings['karmaApplaudLabel'], '" border="0" /></a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaSmiteImage'], '" alt="', $modSettings['karmaSmiteLabel'], '" title="', $modSettings['karmaSmiteLabel'], '" border="0" /></a><br />


Any comments

8)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 20, 2006, 10:05:16 PM
Do you have another installed mod? Like karma buttons?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 27, 2006, 01:14:48 AM
New version of Karma Description Mod now available.
*Fixed small defect with error log. Thanks to SleePy
*Added another one function. Now you can restrict to change karma to defined users. For example, you can restrict to change your karma and your users will be noticed about it.

After uninstalling the mod, i advice you upload new Karma.php couse package manager can't clean normaly this file
Title: Re: Karma Description Mod
Post by: rockinaway on October 27, 2006, 04:31:19 AM
Woot! New version!
Title: Re: Karma Description Mod
Post by: Gobo on October 27, 2006, 06:36:46 AM
is there some way to lesen the karma wait time to 5 mins?
Title: Re: Karma Description Mod
Post by: rockinaway on October 27, 2006, 06:37:53 AM
Maybe put decimal?
Title: Re: Karma Description Mod
Post by: Gobo on October 28, 2006, 02:03:14 AM
i've tried putting a decimal....dosent seem to work
Title: Re: Karma Description Mod
Post by: RoarinRow on October 28, 2006, 09:44:52 PM
In regards to the small defect with error log.  Can you tell me what I need to look for and replace so I can do it manually.

I don't want to risk messing up the db.  Plus when I try to un-install I get a failure for karma.php, boardindex.template.php, and index.english.php

Thanks!
Title: Re: Karma Description Mod
Post by: SleePy on October 28, 2006, 09:53:50 PM
That change was mainly to the viewkarma.template.php
It had to do with collecting what action you were on so when you sorted different it would stay on that action..
Uploading viewkarma.template.php should fix it.. Unless Greks new action added to it..

I have upgraded before and never had a problem of this.. The Uninstall shouldn't touch the database and since when you install it should have a check to see if it exists.. and if it does it wont do anything. So you should be safe..
Though if you want to be safe you can go to phpmyadmin and backup smf_log_karma to save it just incase..
Title: Re: Karma Description Mod
Post by: RoarinRow on October 28, 2006, 10:02:12 PM
Quote from: SleePy on October 28, 2006, 09:53:50 PM
That change was mainly to the viewkarma.template.php
It had to do with collecting what action you were on so when you sorted different it would stay on that action..
Uploading viewkarma.template.php should fix it.. Unless Greks new action added to it..

I have upgraded before and never had a problem of this.. The Uninstall shouldn't touch the database and since when you install it should have a check to see if it exists.. and if it does it wont do anything. So you should be safe..
Though if you want to be safe you can go to phpmyadmin and backup smf_log_karma to save it just incase..

ok. I'll wait to see Greks response if he made any changes to the viewkarma.template.php.  If he didn't then I'll backup and upload the new one.

Just hate to touch the other files if I don't have to.  Thank you!
Title: Re: Karma Description Mod
Post by: 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.
Title: Re: Karma Description Mod
Post by: RoarinRow on October 29, 2006, 10:40:29 AM
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!
Title: Re: Karma Description Mod
Post by: Gobo on October 29, 2006, 08:13:04 PM
aahh the new version givin me too many errors

but ill update manually later
thanks
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 29, 2006, 09:04:58 PM
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?
Title: Karma Description Mod
Post by: Gobo on October 29, 2006, 09:13:14 PM
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
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on October 29, 2006, 09:17:08 PM
OK.
Title: Re: Karma Description Mod
Post by: Reynard on November 04, 2006, 11:55:39 PM
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.
Title: Re: Karma Description Mod
Post by: Pedja on November 05, 2006, 10:54:30 AM
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).




Title: Re: Karma Description Mod
Post by: cassie on November 05, 2006, 05:40:27 PM
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.
Title: Re: Karma Description Mod
Post by: cassie on November 06, 2006, 05:05:26 PM
Alright...this dummy fixed it.

Deleted Karma.php and uploaded new copy, etc.

:)
Title: Re: Karma Description Mod
Post by: PopsicleStickChick on November 08, 2006, 10:04:49 AM
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!
Title: Re: Karma Description Mod
Post by: Avinash4 on November 09, 2006, 12:35:54 AM
Since this is SSI, is there any hopes of getting an output as a joomla module?
Title: Re: Karma Description Mod
Post by: littleone on November 09, 2006, 09:24:23 AM
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
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 09, 2006, 06:11:32 PM
remove >>> and <<< from your line.
Title: Re: Karma Description Mod
Post by: littleone on November 09, 2006, 09:15:17 PM
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.
Title: Re: Karma Description Mod
Post by: Piwaille on November 22, 2006, 05:03:32 AM
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.
Title: Re: Karma Description Mod
Post by: littleone on November 29, 2006, 10:40:13 AM
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.

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 29, 2006, 05:40:33 PM
Add "is_read" field in your database at smf_log_karma table with default value = 0.
Title: Re: Karma Description Mod
Post by: littleone on November 29, 2006, 09:15:53 PM
type int?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on November 29, 2006, 09:54:50 PM
Here is a query
ALTER TABLE `{$db_prefix}log_karma`
ADD `is_read` INT NOT NULL

Don't set default value
Title: Re: Karma Description Mod
Post by: creatures on December 06, 2006, 03:49:59 AM
Any news for supporting SMF V 1.1? (final)

I want to use this cool mod on SMF 1.1 also :)
Title: Re: Karma Description Mod
Post by: JustJa on December 08, 2006, 07:12:48 AM
Hi!
I have RC3 and a custom theme.
I don´t see the Karma Log in info center. I changed to the default theme and didn´t see it either!
Also I am missing the option to clear all the old points.
What am I missing here?
:-\
Title: Re: Karma Description Mod
Post by: Soulgirl on December 10, 2006, 05:57:02 PM
Has anyone got this working on Orange Light 4a yet?
Title: Re: Karma Description Mod
Post by: RoarinRow on December 10, 2006, 06:24:12 PM
Anyone try on 1.1 Final yet?   :)
Title: Re: Karma Description Mod
Post by: Gobo on December 10, 2006, 08:38:58 PM
yup i got it working on 1.1 just fine - but i dont remember if i had to cheange the package-info.xml file to change the version numbers inside or not

just open package-info.xml in the mod zip and check to see if it installs for 1.1 and uninstalls for 1.1 or not - if not simply add it and it will work
Title: Re: Karma Description Mod
Post by: RoarinRow on December 10, 2006, 09:11:26 PM
Quote from: akulion on December 10, 2006, 08:38:58 PM
yup i got it working on 1.1 just fine - but i dont remember if i had to cheange the package-info.xml file to change the version numbers inside or not

just open package-info.xml in the mod zip and check to see if it installs for 1.1 and uninstalls for 1.1 or not - if not simply add it and it will work

It worked for me on 1.1 and didn't have to change the package-info.xml file   ;D
Title: Re: Karma Description Mod
Post by: creatures on December 14, 2006, 09:04:46 PM
2.2 V

SMF 1.1 Final

I am getting
Execute Modification - Modification parse error

and no error in "Forum Error Log"

Any ideas  ???
Title: Re: Karma Description Mod
Post by: Soulgirl on December 15, 2006, 11:54:46 AM
What can I change in the script or database to change all members to PM karma notify?
Title: Re: Karma Description Mod
Post by: cassie on December 18, 2006, 09:56:40 AM
I've got it working just fine on 1.1. I'm glad the link titles in the profile were changed. It used to be weird English...said something like "who I change Karma". Now they are "Who changed my Karma" and "Whose Karma have I changed?"

Question: Where are the Karma stats for the entire board now? There used to be a link to those next to the general board stats. Can't find it or if I need to check something under Admin.

Thanks!
Title: Re: Karma Description Mod
Post by: creatures on December 18, 2006, 10:24:31 AM
Quote from: creatures on December 14, 2006, 09:04:46 PM
2.2 V

SMF 1.1 Final

I am getting
Execute Modification - Modification parse error

and no error in "Forum Error Log"

Any ideas  ???

Any suggestions. I tried to install different than kdm and I had not encouranged any errors.
Title: Re: Karma Description Mod
Post by: bgspoonz on December 18, 2006, 03:03:12 PM
Quote from: cassie on December 18, 2006, 09:56:40 AM
I've got it working just fine on 1.1. I'm glad the link titles in the profile were changed. It used to be weird English...said something like "who I change Karma". Now they are "Who changed my Karma" and "Whose Karma have I changed?"

Question: Where are the Karma stats for the entire board now? There used to be a link to those next to the general board stats. Can't find it or if I need to check something under Admin.

Thanks!
that one that used to be on the main board, is still there... (with default theme).
can't help ya any further than that...
Title: Re: Karma Description Mod
Post by: ssoltz on December 18, 2006, 05:07:33 PM
Quote from: cassie on December 18, 2006, 09:56:40 AM
I've got it working just fine on 1.1. I'm glad the link titles in the profile were changed. It used to be weird English...said something like "who I change Karma". Now they are "Who changed my Karma" and "Whose Karma have I changed?"

It may have had something to do with the fact that the author of this mod's native language is not English. Boy, I bet his English is a far cry better than my Russian!

Quote from: cassie on December 18, 2006, 09:56:40 AMQuestion: Where are the Karma stats for the entire board now? There used to be a link to those next to the general board stats. Can't find it or if I need to check something under Admin.

First a stupid question: Are you logged in as an Admin? You must be logged in as an admin to be able to see the "Karma Stats" link. I assume you are talking about this link, which is the link to the karma log, in actuality.

The second, not as stupid question is...Are you using the default theme? If not, you have to make the changes to your theme files manually.

Answer these and then maybe we can get you going in the right direction.

Take care,
Title: Re: Karma Description Mod
Post by: cassie on December 18, 2006, 06:05:01 PM
QuoteBoy, I bet his English is a far cry better than my Russian!
Mine too! I wasn't trying to make fun of anyone either. It just cracked me up sometimes.

QuoteFirst a stupid question: Are you logged in as an Admin?
Yes, I am logged in as an Admin. I'm sure we're talking about the same link--it was right next to the Forum Stats on the bottom. (Now that Forum Stats link is labeled "More Stats".) The Karma stats would let you view all of the karma and descriptions that the members of the board had given each other.

QuoteAre you using the default theme?
Yes, I am. I also use the Ad Management mod and it only works on the default theme.

Thanks!

Title: Re: Karma Description Mod
Post by: cassie on December 18, 2006, 06:48:02 PM
I figured it out.

You have to have "Enable SP1 style statistics..." checked under Theme settings.

Thanks!
Title: Re: Karma Description Mod
Post by: cassie on December 19, 2006, 12:41:02 PM
Okay...I figured out my last issue, but can you help me with this?

When I upgraded to 1.1 I lost the karma log history. It starts over as of the date I upgraded.

I also changed my domain name and I have the backup karma log for the past several months, when I first installed the karma mod.

I tried importing that karma backup a few weeks ago, but since that table already exists in my database, I just get an error that it can't do it because it already exists.

So how do I get every karma given merged back into the database now?

Since I now have existing karma in the database from since the upgrade, I would probably have to merge that with the backup I have. And I don't know where the karma that was there from the time I did the backup to the time I upgraded to 1.1 is. Did that get wiped out when I upgraded?

Lots of questions...
Thanks!
Title: Re: Karma Description Mod
Post by: NEMINI on December 23, 2006, 10:31:40 AM
Is there an easy way to upgrade KDM versions?  If I uninstall my current version (2.0) will I lose all the data?  I'm in the process of upgrading to 1.1.1 and would like to update this mod to 2.2 at the same time.

Thanks for your help and time
Title: Re: Karma Description Mod
Post by: Vysala on December 23, 2006, 05:19:25 PM
Today I downloaded this mod for the first time and installed it. Everything appeared to be working just fine.

Shortly after I noticed the upgrade from 1.1 to 1.1.1 So I did that upgrade.

After that upgrade the karma system stopped working. When changing another persons karma I would get an error, saying there was something wrong with Karma.php.

I wanted to uninstall and reinstall to see if that would work, but when I went to the uninstall screen I received some errors and it told me I shouldn't uninstall. This was the output:

Quote
   Type     Action     Description
1.    Execute Modification    ./Sources/Admin.php    Test successful
2.    Execute Modification    ./Sources/Karma.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Sources/Subs.php    Test successful
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/Profile.php    Test successful
7.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
8.    Execute Modification    ./Themes/default/Admin.template.php    Test failed
9.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
10.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
11.    Execute Modification    ./Themes/default/languages/Admin.english.php    Test successful
12.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
13.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
18.    Execute Modification    ./Themes/default/languages/Profile.english.php    Test successful
19.    Execute Modification    ./index.php    Test failed

So we uploaded an older version of Karma.php and it works now as it did before this install.

The install is still there, because the options are in the admin panel, but they of course don't function anymore because we changed things back.

I want to know where you think I should go from here. Should I just leave it as is and carry on. Or is there a way to fix my situation so I can use the mod, as it's definitely a mod I'd love to use.

Thank you for all your time and advice.
-Kat

Title: Re: Karma Description Mod
Post by: Parijs on December 30, 2006, 08:57:11 PM
I am using smf 1.1.1 and using the wow_dk theme, and I added the following code to the wow_dk/BoardIndex.template.php
';
if (!empty($modSettings['karmadescmod']))/*{echo'   <a href="'.$scripturl.'?action=viewkarma">' . $txt['statkarma'].'</a>',' ';}*/
{  if ($context['show_karmastat'])
                echo '
                        <a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
echo'


Then I opened my themes Modifications.english.php file and added this to the bottom
//Karma Description Mod
$txt['karmaview'] = 'The survey of a change in the reputation of users';
$txt['whykarmamod'] = 'Karma change';
$txt['Description'] = 'No Description';
$txt['karmamoder'] = 'Please, write here for what you change karma for this user';
$txt['karmarequare'] = '(Require field)';
$txt['karmawho'] = 'Who';
$txt['karmawhos'] = 'Whom';
$txt['karmawhat'] = 'What (+/-)';
$txt['karmadesc'] = 'For What';
$txt['karmatime'] = 'When';
$txt['karmanumb'] = 'Values: ';
$txt['statkarma'] = '[Karma Stat]';
$txt['viewkarma_title'] = 'Karmachange description';
$txt['karma_back'] = '< Back';
$txt['karma_continue'] = 'Continue >';
$txt['karmadescappl'] = ' (Applaud)';
$txt['karmadescsmi'] = ' (Smite)';


I added the permissions to the groups, and enable karma log in settings, but the karma description still isnt showing in users profiles.  It just shows the users +1/-0 karma.  The +1/-0 is just an example to show you what I mean when viewing the profile.  I should also mention that the Karma Stats on the main page is working, and I can see who has given what karma and other peoples karma, its just in peoples profiles that its still not showing.

Any help would be greatly appreciated.  I so want to get this mod working correctly.

Title: Re: Karma Description Mod
Post by: eNoyx on January 02, 2007, 01:23:05 PM
Hi, first, thanks for this mod. It's a great tool to manage your users and reward/smite them.

I'm trying to install it, but this error appears when I try to see the Karma log anywhere (from the stats box, from the user's profile...)

/database error/
Unknown column 'lk.Description' in 'field list'
File: <root path to the forums; edited>/Sources/Viewkarma.php
Line: 309


I'm using a different template from default... Installed it manually, therefore. Anyway, I've tried using the default theme, and the error still appears... The line error is variable between 202 and 309, according to the link I click (202 for "Who changed my Karma" and 309 for "Whose Karma have I changed?")

Thanks in advance ^^
Title: Re: Karma Description Mod
Post by: danfaz on January 06, 2007, 10:33:51 PM
Great mod, thanks!
Title: Re: Karma Description Mod
Post by: pheadrus on January 14, 2007, 10:27:37 PM
I have looked all the threts in this post, but found about my problem; so I have made some investigation on Karma.php (because I gotta error when wanna applaud or bad karma). Error was "...unexpected $end syntax..." or something like that. weird problem it was, because i have got the original (SMF 1.1.1) karma.php ve manually  install all statements, and checked twice. 
Finally I have found the problem at the end of karma.php file.
KDM install file force me to change the very end of karma.php like this:

........
obExit(false);
}

}

?>


But it is wrong. So the result is;

obExit(false);
}

}

}

?>


Just added an extra "}" character before "?>"
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 14, 2007, 10:35:12 PM
I told it many times.
Title: Re: Karma Description Mod
Post by: pheadrus on January 15, 2007, 06:36:18 AM
Sorry guy  :-[ but as you see, your mod is one of the tops and your thread here at smf-forum is getting larger and larger, so trying (or searching with smf search function) is a time-killer action. I found the solution myself and wanted to share with others.

You said that you told it many times, but why not changing the package content  ???

PS:I can delete my post if you want or you can delete it; no problem for me
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 15, 2007, 05:53:20 PM
Quote from: pheadrus on January 15, 2007, 06:36:18 AM
Sorry guy  :-[ but as you see, your mod is one of the tops and your thread here at smf-forum is getting larger and larger, so trying (or searching with smf search function) is a time-killer action. I found the solution myself and wanted to share with others.

You said that you told it many times, but why not changing the package content  ???

PS:I can delete my post if you want or you can delete it; no problem for me
Hi, pheadrus. I didn't wish you to offend. Very well that you have repeated this information, but iI can't change a content the mod, because a problem in a modinstaller (forum engine).
Title: Re: Karma Description Mod
Post by: pheadrus on January 16, 2007, 09:44:40 PM
Understood  :-[

Thanx again for this great tool  :) My forum's users love it   ;D
Title: Re: Karma Description Mod
Post by: ThK on January 18, 2007, 05:57:06 PM
Thx for the Mod. After applying the database-patch it seems to work quite well, except that an update clears the karma-log.

As I had to translate it anyway, I packaged the translation into a mod. Maybe, someone finds it usefull.

Cheers, ThK
Title: Re: Karma Description Mod
Post by: chemb0t on January 19, 2007, 01:39:41 PM
Quote from: eNoyx on January 02, 2007, 01:23:05 PM
Hi, first, thanks for this mod. It's a great tool to manage your users and reward/smite them.

I'm trying to install it, but this error appears when I try to see the Karma log anywhere (from the stats box, from the user's profile...)

/database error/
Unknown column 'lk.Description' in 'field list'
File: <root path to the forums; edited>/Sources/Viewkarma.php
Line: 309


Hi there, I am getting the same error except it points to line 91
LIMIT $context[start], $modSettings[karmamaxmembers]", __FILE__, __LINE__);

I heard there was a database-patch? Does anyone know if it would fix this problem?
Thanks in advance! Wonderful mod by the way! 

EDIT: Ah, nevermind! I solved the problem. Apparently the mod does not automatically make the "Description" and "link" fields in SMF_log_Karma so I had to do that manually. Both should be "text" type and no default should be set.
Title: Re: Karma Description Mod
Post by: Svatov on January 20, 2007, 04:56:20 AM
The mod works well, but i have some questions. When i looked into the Karma_Description_Mod.xml  I found this code
<search position="after"><![CDATA[</table>
</td>
</tr>';

// Show the standard "Save Settings" profile button.
]]></search>
<add><![CDATA[
';
//Karma Description Mod (Notification)
if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmanotifier']))
echo '
<tr>
<td colspan="2"><label for="enable_notify">', $txt['enable_notify'], '</label>
<select name="default_options[enable_notify]" id="none_notifier">
<option value="0"', empty($context['member']['options']['enable_notify']) ? ' selected="selected"' : '', '>', $txt['enable_notify_none'], '</option>
<option value="1"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] == 1 ? ' selected="selected"' : '', '>', $txt['enable_notify_popup'], '</option>
<option value="2"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] !=1 ? ' selected="selected"' : '', '>', $txt['enable_notify_pm'], '</option>
</select>
</td>
</tr>';
echo '
]]></add>


But when i checked my  $themedir/Profile.template.php"   for inserted code  i didn't found it ...even like other themes for
<search position="after"><![CDATA[</table>
</td>
</tr>';

// Show the standard "Save Settings" profile button.
]]></search>


Tell me please What does this code make? and why i coudn't find it in  $themedir/Profile.template.php"
<search position="after"><![CDATA[</table>
</td>
</tr>';

// Show the standard "Save Settings" profile button.
]]></search>

But I have
<td><input type="text" name="secretAnswer" size="20" /><span class="smalltext" style="margin-left: 4ex;"><a href="', $scripturl, '?action=helpadmin;help=secret_why_blank" onclick="return reqWin(this.href);">', $txt['secret_why_blank'], '</a></span></td>
</tr>';
}
// Show the standard "Save Settings" profile button.

and i don't know where i should insert adding code.
Title: Re: Karma Description Mod
Post by: eNoyx on January 22, 2007, 11:04:10 AM
Hi everybody ^^ I've made a little improvement for this marvelous mod, but I'm getting a couple of errors in my Error Log for each user that appears in the topic.

I wanted the "Karma: xx" text (in the zone of the avatar and that stuff) to be linked to the user's Karma Log "Who changed my Karma". So, I basically copied the code in Profile.template.php to Display.template.php and made some changes; although I don't know PHP/MySQL at all, I got this to work o.o But the problem is that, as I said before, a couple of errors get registered for each user that replies in a topic. For example, in a topic with 3 replies, 3 pairs of the errors get registered. These errors are:

8: Undefined index: show_karmastat
File: [ ... ]/Themes/default/Display.template.php (main sub template - eval?)
Line: 319

8: Undefined index: owner
File: [ ... ]/Themes/default/Display.template.php (main sub template - eval?)
Line: 317


The code I've made is:

Code (Display.template.php) Select


// Is karma display enabled?  Total or +/-? linked to user's log
      
  if ($modSettings['karmaMode'] == '1')
        {
if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmalinks']))
        {    if ($context['show_karmastat'])
     echo ' ';
                                if (!empty($modSettings['karmaisowner']) && ($context['owner']==1)) echo '
                                        <a href="'. $scripturl . '?action=ownkarma;u=' . $message['member']['id'] . '" title="Mi Log de Karma"><b>', $modSettings['karmaLabel'], '</b></a> ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br /> ';
                                elseif (empty($modSettings['karmaisowner'])) echo'
                                        <a href="'. $scripturl . '?action=ownkarma;u=' . $message['member']['id'] . '" title="Mi Log de Karma"><b>', $modSettings['karmaLabel'], '</b></a> ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br /> ';
                                elseif ($context['user']['is_admin']) echo '
                                        <a href="'. $scripturl . '?action=ownkarma;u=' . $message['member']['id'] . '" title="Mi Log de Karma"><b>', $modSettings['karmaLabel'], '</b></a> ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br /> ';

                                else {  echo ' ', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
                                      }
                                }
         }
                               
        elseif ($modSettings['karmaMode'] == '2')
{

if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmalinks']))
        {    if ($context['show_karmastat'])
     echo ' ';
                                if (!empty($modSettings['karmaisowner']) && ($context['owner']==1)) echo '
                                        <a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '" title="Mi Log de Karma"><b>', $modSettings['karmaLabel'], ' </b></a>: +', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '<br /> ';
                                elseif (empty($modSettings['karmaisowner'])) echo'
                                        <a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '" title="Mi Log de Karma"><b>', $modSettings['karmaLabel'], ' </b></a>: +', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '<br /> ';
                                elseif ($context['user']['is_admin']) echo '
                                        <a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '" title="Mi Log de Karma"><b>', $modSettings['karmaLabel'], ' </b></a>: +', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '<br /> '; 
                                else { echo ' ', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';
                                      }
        }
                                }


By the way, theorically, it only has to link the user's karma log. I mean, a user only sees linkedto his karma in his posts, not other ones'.

I suppose I have to add a few lines to "define the index?"
Title: Re: Karma Description Mod
Post by: PopsicleStickChick on January 22, 2007, 03:42:19 PM
Is there a way to not have banned users show up in the log?  I am referring to the top 5 lists at the bottom of the karma log.  Thanks!
Title: Re: Karma Description Mod
Post by: HPRS Brian on January 23, 2007, 08:23:41 AM
Package Installer Problem: parse error
So I manually installed it, which took about an hour.

Everything worked fine (after I added the } to one of the files) until I tried it out.  When adding a description to an applause, I clicked the "continue" button, it logged the applause, then didn't redirect anywhere.  It just stayed at the "Enter description" screen.  If you enter another description and click continue again, it scolds you, so that works fine.

I tore apart the code, tried forcing it to redirect back out.. even to the forum index, nothing happened.  I even put a die() command in there, and it still didn't work.

I've had it, I give up on this damned mod.  What a great mod it would've been, too...  I'll just wait for a stable release to come out, I guess.  What a friggin shame.  That's a few hours of my life gone I'll never be able to get back.
Title: Re: Karma Description Mod
Post by: chemb0t on January 28, 2007, 07:31:38 AM
Hi there, I seem to have encountered another error.

QuoteDatabase Error
Duplicate entry '57-1' for key 1
File: /homepages/31/d94457059/htdocs/TG/forum/Sources/Karma.php
Line: 429

I know that this was brought up before but no one seems to have found a solution yet. Any ideas? I would greatly appreciate it!

Also the Java Pop-up notification seems to be giving my users "internal server errors" when they choose it from the drop down menu and the error continues to stay as long as they are logged in. I had to comment it out to get things back to normal. Is anyone else getting this problem?

Thanks in advance!
Title: Re: Karma Description Mod
Post by: jdvarner on January 31, 2007, 09:10:18 PM
getting this when i click on

who changed my karma or whose karma have i changed.

An Error Has Occurred!
Unable to load the 'main' template. 


Also get this error when i try to leave karma?

Parse error: parse error, unexpected '}' in /home/content/j/d/v/jdvarner/html/Sources/Karma.php on line 797

what can i do to fix?
Title: Re: Karma Description Mod
Post by: diegolyanky on February 01, 2007, 09:32:52 PM
What about this error ?

Unknown column 'link' in 'field list'
File: /home/diego/public_html/Sources/Karma.php
Line: 391

Any suggestions ?

Best Regards ! ;)
Title: Re: Karma Description Mod
Post by: snork13 on February 01, 2007, 09:52:32 PM
Quote from: diegolyanky on February 01, 2007, 09:32:52 PM
What about this error ?

Unknown column 'link' in 'field list'
File: /home/diego/public_html/Sources/Karma.php
Line: 391

Any suggestions ?

Best Regards ! ;)

check the query, what are lines 391+/-
Title: Re: Karma Description Mod
Post by: diegolyanky on February 01, 2007, 10:14:05 PM
What query  ?


Line 389 -- (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
Line 390 --                        VALUES ($dir, $_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, ". time()." )
Line 391 -- ", __FILE__, __LINE__);                       


I installed trought the MODS manager, and ...  :'(

I love this MOD !! ... I upgraded to 1.1.1 just for use it !! ...

Please Grek ! .. .HELP ME !!!!  :'(
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 01, 2007, 10:57:45 PM
diegolyanky,  i think you haven't а "link" field in your database.
Title: Re: Karma Description Mod
Post by: diegolyanky on February 02, 2007, 06:28:40 AM
Hi Grek ! ... Long time without talking ...

What about Spanish Learning ? ;)

So ?

What can I do ?

Regards !!
Title: Re: Karma Description Mod
Post by: jagatai on February 02, 2007, 06:42:08 AM
I  installed that karma but I have these error(could u help me ,please):

Parse error: syntax error, unexpected '}' in /home/kahkaha/public_html/forum/Sources/Karma.php on line 797(it is error when click on the karma button)

$txt['maintain_karmalog'] = 'Delete the  recording list for explain  of   karma' ;(it is error on the top of the website when language of website is Turkish )

Unknown column 'Description' in 'field list'
File: /home/kahkaha/public_html/forum/Sources/Karma.php
line: 391 (after you write  reason of karma)

Unknown column 'lk.Description' in 'field list'
File: /home/kahkaha/public_html/forum/Sources/Viewkarma.php
line: 202(it is error when I want to see who changed my karma)

Unknown column 'lk.Description' in 'field list'
File: /home/kahkaha/public_html/forum/Sources/Viewkarma.php
line: 309(it is error when I want to see users list which I changed their karma)

SMF: 1.1.1   MOD:2.2


do you have  this  version of mod  to 1.1.1  which doesn't have any problem ?
Title: Re: Karma Description Mod
Post by: look up on February 02, 2007, 10:20:21 AM
the members of my forum really like this mod.

is there a way to change the number of characters entered in the "Reason for changing the karma of this user" field?  currently, it appears that only 62 characters can be entered.
Title: Re: Karma Description Mod
Post by: jagatai on February 02, 2007, 05:36:39 PM
Quote from: jagatai on February 02, 2007, 06:42:08 AM
I  installed that karma but I have these error(could u help me ,please):

Parse error: syntax error, unexpected '}' in /home/kahkaha/public_html/forum/Sources/Karma.php on line 797(it is error when click on the karma button)

$txt['maintain_karmalog'] = 'Delete the  recording list for explain  of   karma' ;(it is error on the top of the website when language of website is Turkish )

Unknown column 'Description' in 'field list'
File: /home/kahkaha/public_html/forum/Sources/Karma.php
line: 391 (after you write  reason of karma)

Unknown column 'lk.Description' in 'field list'
File: /home/kahkaha/public_html/forum/Sources/Viewkarma.php
line: 202(it is error when I want to see who changed my karma)

Unknown column 'lk.Description' in 'field list'
File: /home/kahkaha/public_html/forum/Sources/Viewkarma.php
line: 309(it is error when I want to see users list which I changed their karma)

SMF: 1.1.1   MOD:2.2


do you have  this  version of mod  to 1.1.1  which doesn't have any problem ?


please help me?
Title: Re: Karma Description Mod
Post by: higherauthority on February 03, 2007, 03:44:54 PM
Hi I installed this mod and it works great except now the feature that only allowed 1 karma point per 24 hours does not work.   Members can give unlimited Karma out.   How can I adjust this?
Title: Re: Karma Description Mod
Post by: Loverboy on February 04, 2007, 01:18:21 PM
I tried to install this mod.. It looked like a succes, but then my forum didn't work anymore.

It gives now the following error!!!!!!

Fatal error: Call to undefined function: db_query() in /local/web/websites/6993155865/www/web/forum/Sources/Load.php on line 155


Could someone help please!
Title: Re: Karma Description Mod
Post by: higherauthority on February 04, 2007, 04:44:26 PM
Quote from: Loverboy on February 04, 2007, 01:18:21 PM
I tried to install this mod.. It looked like a succes, but then my forum didn't work anymore.

It gives now the following error!!!!!!

Fatal error: Call to undefined function: db_query() in /local/web/websites/6993155865/www/web/forum/Sources/Load.php on line 155


Could someone help please!

What version you running?
Title: Re: Karma Description Mod
Post by: Loverboy on February 04, 2007, 06:09:46 PM
1.1.1 ..

the mod has deleted the Subs.php file for some reason :S
Title: Re: Karma Description Mod
Post by: Greek on February 06, 2007, 05:57:56 PM
In Forum error log, I accept these errors

Quoteh#tp://www.pare-dose.net/forum/index.php?action=pm
8: Undefined index: current_topic
File: /home/paredose/public_html/forum/Themes/default/PersonalMessage.template.php (eval?)
Line: 302

Quoteh#tp://www.pare-dose.net/forum/index.php?action=pm
8: Undefined index: current_topic
File: /home/paredose/public_html/forum/Themes/default/PersonalMessage.template.php (eval?)
Line: 303

These are the lines
Quote// Is this user allowed to modify this member's karma?      
         if ($message['member']['karma']['allow'])
            echo '
                        <div align="', $karmaButtonAlign, '">
                        
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaApplaudImage'], '" alt="', $modSettings['karmaApplaudLabel'], '" title="', $modSettings['karmaApplaudLabel'], '" border="0" /></a>
                        
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaSmiteImage'], '" alt="', $modSettings['karmaSmiteLabel'], '" title="', $modSettings['karmaSmiteLabel'], '" border="0" /></a><br />
                        </div>';

I have noticed, that when the Karma is changing in personal messages area, then in the notify pm, the link which quides to place, that the Karma was changed, is like this:
Quoteh#tp://www.pare-dose.net/forum/index.php?topic=0.msg16#msg16
This link doesn't show the personal message where the Karma was changed, but the main index (index.php).

I think the error is located in bolded section.

Can anyone help?

P.S. SMF 1.1.1 - KDS  2.2 - and Karma Buttons
Title: Re: Karma Description Mod
Post by: Kays on February 07, 2007, 09:38:00 PM
Hi, great mod however I did run across a problem when trying to block a member from recieving karma.

In the changes to karma.php this needs to be added twice not once.

//This users karma can't be changed
        if (empty($modSettings['karmacantmodify'])) $modSettings['karmacantmodify']='';

             $array_value = explode (',', $modSettings['karmacantmodify']);
             if (in_array(($_REQUEST['uid']), $array_value))
                fatal_lang_error('karma_cant_modify', false);

        //This users can't changed karma to other users
        if (empty($modSettings['karmacantmodify2'])) $modSettings['karmacantmodify2']='';

             $array_value2 = explode (',', $modSettings['karmacantmodify2']);
             if (in_array($ID_MEMBER, $array_value2))
                fatal_lang_error('karma_cant_modify2', false);


The location is the same for both, just above:

// Start off with no change in karma.

Thanks :)
Title: Re: Karma Description Mod
Post by: hntaha on February 10, 2007, 02:07:09 PM
Greetings

After I enable Karma, is there a way I can make who applauded and who spited (for every message) visible for everyone?
Title: Re: Karma Description Mod
Post by: jagatai on February 10, 2007, 02:54:43 PM
Quote from: jagatai on February 02, 2007, 05:36:39 PM
Quote from: jagatai on February 02, 2007, 06:42:08 AM
I  installed that karma but I have these error(could u help me ,please):

Parse error: syntax error, unexpected '}' in /home/kahkaha/public_html/forum/Sources/Karma.php on line 797(it is error when click on the karma button)

$txt['maintain_karmalog'] = 'Delete the  recording list for explain  of   karma' ;(it is error on the top of the website when language of website is Turkish )

Unknown column 'Description' in 'field list'
File: /home/kahkaha/public_html/forum/Sources/Karma.php
line: 391 (after you write  reason of karma)

Unknown column 'lk.Description' in 'field list'
File: /home/kahkaha/public_html/forum/Sources/Viewkarma.php
line: 202(it is error when I want to see who changed my karma)

Unknown column 'lk.Description' in 'field list'
File: /home/kahkaha/public_html/forum/Sources/Viewkarma.php
line: 309(it is error when I want to see users list which I changed their karma)

SMF: 1.1.1   MOD:2.2


do you have  this  version of mod  to 1.1.1  which doesn't have any problem ?


please help me?

ı'm waiting answer
Title: Re: Karma Description Mod
Post by: Pratt on February 10, 2007, 05:39:59 PM
Hi there guys! First of all, i think this is a great mod!

Im Having a problem though, basiccally when a user activates de Karma Notification by PM!
If i modify someones Karma when they choose to be notified with a PM, i get an error that says something:"Error contact your administrator".

In other words, since i cant write/speak english that well:

- User B has 1 Pm in his folder and has +3 Karmas
- User A gives a +1 Karma to User B in a Topic
- User A Gets an "Error, contact admin"
- User B Still gets the +1 User A send him, so he has +4 Karmas
- User B does not recieve any notification
- User B gets a PM, but it does not count! He has 1 PM in his folder, allthough he really has 2

I hope you can understand my problem :)
Title: Re: Karma Description Mod
Post by: jagatai on February 14, 2007, 11:02:51 AM
1.1.2?
Title: Re: Karma Description Mod
Post by: qtime on February 14, 2007, 12:55:29 PM
how to speed up this mod,because the tmp table is a slow query on my forum, any suggestions?
Title: Re: Karma Description Mod
Post by: Chapaev on February 21, 2007, 06:24:10 PM
Quote from: jagatai on February 14, 2007, 11:02:51 AM1.1.2?
I want to know too. :) Is it 1.1.2 compatible?
Title: Re: Karma Description Mod
Post by: GC on February 21, 2007, 08:41:38 PM
Hello I have an error with this mod. Its not fixable by the maker of another mod that makes the error stand out. Whats wrong?

Error:
Database Error: Unknown column 'PM' in 'where clause'
File: /home/12985/public_html/forums/Sources/Subs-Seo4SMF.php
Line: 480


and that area is
if (isset($modSettings['seo4smf_split_char']))
$split_char=$modSettings['seo4smf_split_char'];
    else
$split_char="_";

$request = db_query("SELECT m.subject,b.name
      FROM {$db_prefix}messages as m left join {$db_prefix}boards as b on m.ID_BOARD=b.ID_BOARD where m.ID_TOPIC=".$topic_id." LIMIT 1", __FILE__, __LINE__);
list($subject,$board)=mysql_fetch_row($request);
mysql_free_result($request);


line 480 is
FROM {$db_prefix}messages as m left join {$db_prefix}boards as b on m.ID_BOARD=b.ID_BOARD where


should PM be there somewhere?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 26, 2007, 12:31:40 AM
SEO SMF
Title: Re: Karma Description Mod
Post by: c a g a t a y on March 02, 2007, 01:38:57 PM
I have installed SMF 1.1.2 and Karma Description Mod 2.2
Everything works good in Karma Description mod but;

User ID\'s, whose karma can\'t be changed.
User ID\'s, who can\'t modify karma.

For example in second field I am entering just one user's ID (ie. 1429)

But 1429 still modifies karma

What I want to say; These two fields doesnt work in my SMF

Any idea?
Title: Re: Karma Description Mod
Post by: c a g a t a y on March 02, 2007, 03:18:40 PM
I solved my problem

//This users karma can't be changed
        if (empty($modSettings['karmacantmodify'])) $modSettings['karmacantmodify']='';

             $array_value = explode (',', $modSettings['karmacantmodify']);
             if (in_array(($_REQUEST['uid']), $array_value))
                fatal_lang_error('karma_cant_modify', false);

        //This users can't changed karma to other users
        if (empty($modSettings['karmacantmodify2'])) $modSettings['karmacantmodify2']='';

             $array_value2 = explode (',', $modSettings['karmacantmodify2']);
             if (in_array($ID_MEMBER, $array_value2))
                fatal_lang_error('karma_cant_modify2', false);


The location is the same for both, just above:

// Start off with no change in karma.

I repeated this one

//This users karma can't be changed
        if (empty($modSettings['karmacantmodify'])) $modSettings['karmacantmodify']='';

             $array_value = explode (',', $modSettings['karmacantmodify']);
             if (in_array(($_REQUEST['uid']), $array_value))
                fatal_lang_error('karma_cant_modify', false);

        //This users can't changed karma to other users
        if (empty($modSettings['karmacantmodify2'])) $modSettings['karmacantmodify2']='';

             $array_value2 = explode (',', $modSettings['karmacantmodify2']);
             if (in_array($ID_MEMBER, $array_value2))
                fatal_lang_error('karma_cant_modify2', false);
Title: Re: Karma Description Mod
Post by: c a g a t a y on March 04, 2007, 10:44:31 AM
As a SUPER ADMIN;
I can see Karma Descriptions of all user in thie profile
and Karma Statistics in main SMF page

But my MODERATOR cant see

How can I open their authority?

Any idea?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 04, 2007, 05:26:33 PM
Just give them permission 4 it.
Title: Re: Karma Description Mod
Post by: c a g a t a y on March 04, 2007, 05:32:39 PM
Quote from: Grek_Kamchatka on March 04, 2007, 05:26:33 PM
Just give them permission 4 it.

Dear Kamchatka
What does it mean? I dont understand
Can you explain in a little detail ?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 04, 2007, 05:40:42 PM
Admin panel - permissions - choose moderator group and add "View KarmaDescription log" permission
Title: Re: Karma Description Mod
Post by: verderacer on March 05, 2007, 01:09:06 AM
After uploading and before install of Mod I get 2 test failed with the following error:

1.     Execute Modification     ./Sources/Admin.php     Test successful
2.    Execute Modification    ./Sources/Karma.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/Admin.template.php    Test failed
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
6.    Execute Modification    ./Themes/default/languages/Admin.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
10.    Execute Modification    ./index.php    Test successful
11.    Execute Code    db_change.php    
12.    Extract File    ./Sources/Viewkarma.php    
13.    Extract File    ./Themes/default/Viewkarma.template.php    
14.    Extract File    ./Themes/default/DescriptionKarma.template.php

Running version 1.1.2   Any ideas ???


Title: Re: Karma Description Mod
Post by: c a g a t a y on March 05, 2007, 03:51:12 AM
Dear Kamchatka

Moderators already have "View KarmaDescription log" permission

But cant see Karma Statistics in main SMF page

Any idea?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 05, 2007, 04:53:37 PM
2 cagatay

I don't understand what is the main SMF page. index.php? But karma log in other place... index.php?action=viewkarma and if you enabled "Other karma statistic" your users will see this feature.


4 verderacer

It seems to me, that your Admin.template and Boardindex.template files was already modified by other mod(s) so they are not compatible with my mod.
Title: Re: Karma Description Mod
Post by: c a g a t a y on March 05, 2007, 04:59:50 PM
Quote from: Grek_Kamchatka on March 05, 2007, 04:53:37 PM
I don't understand what is the main SMF page.

I mean the FRONTPAGE of SMF
There is KARMA STATISTICs in the Forum Stats section near to [More Stats]
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 05, 2007, 05:13:51 PM
It's not a KARMA STATISTIC... it's a KARMA LOG. This is a link to this action (index.php?action=viewkarma) So, in admin panel (karma section) check this functions: "enable karma description mod", "allow users to see karma log (see perm.)" That's all.
Title: Re: Karma Description Mod
Post by: CrazyCreator on March 05, 2007, 06:47:58 PM
i have this error when view the karma from a member or myself

Unknown column 'lk.link' in 'field list'
Datei: /var/www/html/web1361/html/riga/Sources/Viewkarma.php
Zeile: 91
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 05, 2007, 07:01:59 PM
Have you a "link" field in your database? (logKarma table)
Title: Re: Karma Description Mod
Post by: verderacer on March 05, 2007, 10:16:15 PM
That is correct. I have the following mods installed:

1.     Advanced Visual Verification     1.1.2
2.    Gender On Registration    1.0
3.    All Topics Unsubscriber 1.1
4.    VisualWarning    1.32

Is there one that I should uninstall that will make this one work ?


Quote from: Grek_Kamchatka on March 05, 2007, 04:53:37 PM
4 verderacer

It seems to me, that your Admin.template and Boardindex.template files was already modified by other mod(s) so they are not compatible with my mod.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 05, 2007, 10:21:29 PM
VisualWarning mod.
Title: Re: Karma Description Mod
Post by: CrazyCreator on March 07, 2007, 03:41:01 PM
i have the field now added ... :) ... perfectly
Title: Re: Karma Description Mod
Post by: Chapaev on March 08, 2007, 01:27:42 PM
I have this error after uploading russian or english version (see attachment).

And I have installed next mods:
1.    Reg Bar (ru-UTF8)    1.0
2.    Merge Double Posts (ru-UTF8)    1.0.6
3.    Registered Links (ru-UTF8)    1.0
4.    Line Numbers Mod    1.01
5.    Users Online Today Mod (ru-UTF8)
6.    Wrap Text Around Image    1.0
7.    YouTube BBC Tag (XHTML Compliant) (ru-UTF8)    1.0
8.    LiveJournal Mod    1.0
9.    MessagePreviewOnHover    1.4
10.    PagesToGo    1.3
11.    View Single PM (ru-UTF8)    1.1
12.    Inline Attachments    1.0.4.2 (ru-UTF8)

I've tried to install other mods and... no errors. Can you help me?
Title: Re: Karma Description Mod
Post by: Chapaev on March 08, 2007, 05:43:23 PM
And the same situation up to the 1.9.4 version of this mode. :-\

From 1.9.5 this error (see above).
Title: Re: Karma Description Mod
Post by: Mamaia Vice on March 11, 2007, 12:30:10 PM
When i try to install the mod, it appears this:
1.     Execute Modification     -     Modification parse error
2.    Execute Code    db_change.php    
3.    Extract File    ./Sources/Viewkarma.php    
4.    Extract File    ./Themes/default/Viewkarma.template.php    
5.    Extract File    ./Themes/default/DescriptionKarma.template.php

I havn't altered the XML file. This thing happens only for this mod. I have the latest version of SMF - 1.1.2
Title: Re: Karma Description Mod
Post by: Chapaev on March 11, 2007, 04:04:36 PM
Mamaia Vice
It's because U use PHP5.2 and size of «Karma_Description_Mod.xml» lager then 28780 bytes. Sounds weird? I think so, but if you cut it to 28780 and no one byte more - all tests will be passed without errors (PHP bug?). But I don't know mod's crafting well and cannot split it into several files.
Title: Re: Karma Description Mod
Post by: Mamaia Vice on March 11, 2007, 04:39:32 PM
10x for the info. I'm gonna split it into smaller files. If you want the mod splitted, PM me and i'm gonna send you.

Bad news: i can't split the file...somebody help me...please?
Title: Re: Karma Description Mod
Post by: Sarke on March 11, 2007, 07:58:41 PM
Could you please clean up the code changes made to Profile.template.php, it's interfering with my mod.  Instead of commenting out the code just remove it.  Any mod that changes this part will not work because you've commented it out.

And please keep the stuff you don't need to change the same.  Specifically, this part (note the tabs):


<td>', $context['member']['registered'], '</td>
</tr><tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>



Thanks.
Title: Re: Karma Description Mod
Post by: look up on March 12, 2007, 07:22:54 PM
Quote from: look up on February 02, 2007, 10:20:21 AM
the members of my forum really like this mod.

is there a way to change the number of characters entered in the "Reason for changing the karma of this user" field?  currently, it appears that only 62 characters can be entered.
Title: Re: Karma Description Mod
Post by: look up on March 12, 2007, 07:23:39 PM
Quote from: look up on February 02, 2007, 10:20:21 AM
the members of my forum really like this mod.

is there a way to change the number of characters entered in the "Reason for changing the karma of this user" field?  currently, it appears that only 62 characters can be entered.
Title: Re: Karma Description Mod
Post by: look up on March 12, 2007, 07:24:05 PM
Quote from: look up on February 02, 2007, 10:20:21 AM
the members of my forum really like this mod.

is there a way to change the number of characters entered in the "Reason for changing the karma of this user" field?  currently, it appears that only 62 characters can be entered.
anyone?
Title: Re: Karma Description Mod
Post by: MoPed on March 15, 2007, 04:05:10 AM
Quote from: Mamaia Vice on March 11, 2007, 12:30:10 PM
When i try to install the mod, it appears this:
1.     Execute Modification     -     Modification parse error
2.    Execute Code    db_change.php    
3.    Extract File    ./Sources/Viewkarma.php    
4.    Extract File    ./Themes/default/Viewkarma.template.php    
5.    Extract File    ./Themes/default/DescriptionKarma.template.php

I havn't altered the XML file. This thing happens only for this mod. I have the latest version of SMF - 1.1.2

I am having the same problem :(

And me and my users would love to have this mod installed, if it does what I think it does.
Title: Re: Karma Description Mod
Post by: dexx on March 15, 2007, 08:28:45 PM
Same error here too   :(
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 15, 2007, 10:38:18 PM
WHAT IS YOUR PHP VERSION???
Title: Re: Karma Description Mod
Post by: dexx on March 16, 2007, 07:45:01 AM
5.2.1
Title: Re: Karma Description Mod
Post by: MoPed on March 17, 2007, 09:31:28 AM
Quote from: Grek_Kamchatka on March 15, 2007, 10:38:18 PM
WHAT IS YOUR PHP VERSION???

How do I se that?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 18, 2007, 07:08:33 PM
dexx

It's because U use PHP5.2 and size of «Karma_Description_Mod.xml» lager then 28780 bytes. Sounds weird? I think so, but if you cut it to 28780 and no one byte more - all tests will be passed without errors (PHP bug?). But I don't know mod's crafting well and cannot split it into several files.
Title: Re: Karma Description Mod
Post by: dexx on March 18, 2007, 08:04:49 PM
Would manually installing it bypass the problem?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 18, 2007, 08:12:42 PM
Quote from: dexx on March 18, 2007, 08:04:49 PM
Would manually installing it bypass the problem?
Yep
Title: Re: Karma Description Mod
Post by: TrueSatan on March 18, 2007, 09:40:54 PM
Grek,

I've split the Karma_Description_Mod.xml file into two and amended the package-info.xml so that it installs both of the new files, repacked it and tried my amended version on a test forum running a completely fresh (and clean of any other mods) SMF v1.1.2 on php 5.2.1...all went well...no errors. If you want an account to try it and check that all is working as it should you'd be welcome to have one...PM me.

I'll add the hacked up mod to this posting so you can play with it yourself...what I did was a very simple fix but it appears to have got round the problem...unless I'm missing something obvious...not exactly a new thing for me.

BTW thanks for all your hard work on this mod...much appreciated!...and I hope that the file will be of use.
Title: Re: Karma Description Mod
Post by: dexx on March 18, 2007, 09:42:17 PM
omg I love you, I was about to try and do it manually...then I saw how massive the file was
Title: Re: Karma Description Mod
Post by: TrueSatan on March 18, 2007, 09:44:53 PM
Quote from: dexx on March 18, 2007, 09:42:17 PM
omg I love you, I was about to try and do it manually...then I saw how massive the file was

Oh how I hope you're female after that comment ROFL!

Anyway it's worked for me but it could certainly do with some testing before we say we're home and dry.
Title: Re: Karma Description Mod
Post by: dexx on March 18, 2007, 09:53:20 PM
Will try it right now...


It works! Good Job!


And its a platonic SMF-brotherly love! No worries!  8)
Title: Re: Karma Description Mod
Post by: TrueSatan on March 18, 2007, 09:57:11 PM
 Have a virtual pint of beer with me then...

If we can have a few more happy testers and...as it should be...if Grek himself is happy with what I've done perhaps we might persuade Grek to post it as a new version with a note saying that it is fine with php 5.2.x Assuming nobody finds some flaw in it obviously...
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 18, 2007, 09:57:46 PM
Quote from: dexx on March 18, 2007, 09:53:20 PM
And its a platonic SMF-brotherly love! No worries!  8)
LOL =)



2 TrueSatan
Thx
Title: Re: Karma Description Mod
Post by: TrueSatan on March 18, 2007, 10:06:37 PM
My pleasure Grek...it's nice to be able to give something back once in a while.
Title: Re: Karma Description Mod
Post by: dexx on March 18, 2007, 10:22:30 PM
Hrm maybe I'm just a newb but I enabled the mod (checkbox and all) but I dont the link to the log on my forum list or admin panel?
Title: Re: Karma Description Mod
Post by: dexx on March 18, 2007, 10:24:01 PM
Uh oh!! Error!

Unknown column 'Description' in 'field list'
File: /home/mrdexx/public_html/networked/smf/Sources/Karma.php
Line: 134

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.2, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.


I got that when trying to change karma. How do I fix this?!
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 18, 2007, 10:29:11 PM
Open db_change.php and manualy do all changes in your database from this file
Title: Re: Karma Description Mod
Post by: dexx on March 18, 2007, 10:32:31 PM
oh jeez this is gonna be scary, never tried to manually alter my DB before.

There's nothing I can do to the file itself and then just uninstall/reinstall the mod to make it work?

Or is there a way to get my database to upgrade to 1.1.2? It hasnt had a problem with any of the others mods :S
Title: Re: Karma Description Mod
Post by: TrueSatan on March 18, 2007, 10:40:53 PM
 It looks as though you're trying to load a karma history when there is no history to load.

As regards your testing you're making one really bad error...don't test on your main forum. Make yourself at least one forum that is just for testing mods on and nothing else...personally I use two...a completely new, clean, fresh install and a copy of my live/production forum. If a new (to me) mod works properly on the clean forum then having tested it quite a bit I'll try it on the copy of my live/production forum and test it thoroughly there too before ever considering adding it to my main/live/production forum.

How did you do the upgrade to SMF 1.1.2? Was it via the upgrade package?

If it was via the upgrade package then having backed up your database and files and having set permissions of all files to 777 I'd try uninstalling the upgrade package and then re-installing it....then setting the file permissions back to what they were.

If you go to your profile do you see additional links in the Karma area saying Who changed my karma     Whose karma have I changed...they take you to the karma log.

Title: Re: Karma Description Mod
Post by: TrueSatan on March 18, 2007, 10:42:43 PM
BTW...failing the above go back to Grek's reply for your next move.
Title: Re: Karma Description Mod
Post by: dexx on March 18, 2007, 10:44:32 PM
Ooo good idea with the dual forums, I'll do that.

I did upgrade via the package, so uninstall and reinstall and my database should upgrade so the mod has no problem? (Just changed all files in the /smf folder to 777 permission?)

My profiles are link with Joomla! community builder and not the regular SMF profile, if that makes a diff.
Title: Re: Karma Description Mod
Post by: TrueSatan on March 18, 2007, 10:47:11 PM
 Put it this way...it might save you having to do manual work on the database and if not it won't do any harm to try it...those mods shouldn't make a difference...fingers crossed for you.
Title: Re: Karma Description Mod
Post by: dexx on March 18, 2007, 10:49:40 PM
Heh well I just tried uninstalling the Karma Mod for now and it worked fine except it wasnt able to unmodify Karma.php it said, and now attempts to change Karma give a main.template error.

Good thing I backed up the site first tho, so I'll just reupload the previous Karma.php from before install. :P
Title: Re: Karma Description Mod
Post by: TrueSatan on March 18, 2007, 10:57:13 PM
 That's odd...wonder if there was an error uninstalling prior to my fiddling with it?

I added the necessary changes to the uninstall in the package so it looks as though there shouldn't have been a problem.

Generally SMF tries to help...it makes a copy of the file it modifies with a tilde (~) after the extension so that it ceases to be a php file...you can often reverse damage by using that copy. Mind you doing it how you've done it is the right way...take a proper file and database backup.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 19, 2007, 12:06:56 AM
A new version now available.
Title: Re: Karma Description Mod
Post by: Sarke on March 19, 2007, 02:14:47 AM
http://www.simplemachines.org/community/index.php?topic=49088.msg1002181#msg1002181
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 19, 2007, 05:40:13 AM
I don't know what the problem. If your mod search this lines after my mod was installed it can find it in 227, 228 and 229 lines. So, if i will remove this code (between /* and */) you will asking me to stay it there, because your mod cand find this code? LoL
Title: Re: Karma Description Mod
Post by: TrueSatan on March 19, 2007, 06:51:33 AM
Grek,

I've been playing around with an idea...dexx reported his uninstall issue and on investigation I saw that the problem is that SMF doesn't (for some odd reason) properly backup the karma.php file. I wondered if we could get around that and the sad fact that many users won't read your many notes about backing up their files prior to installing the mod (yes I know you've told them countless times...I know how you must feel.)  I wondered if we could include a folder in the package that would install with it and if we could make the package move copies of the old versions of the existing files to it as part of the installation process. I chose to call the folder kdm_bak...it would be part of the package.

I tried the idea out but didn't make it work...the folder installed properly but the file in it (karma.php) is o bytes long so obviously the backup failed. Would you have a look at what I did and see if you might be able to see a way round the failure and if the idea would be of use. I have a feeling that it's the package manager at issue and that it can't copy between folders on the server...hope I'm wrong.

Thanks!

<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
        <id>IvanV.PetrovichAkaGrek:KarmaDescriptionMod</id>
          <name>Karma Description Mod</name>
          <version>2.3</version>
          <type>modification</type>
          <install>
                <readme type="inline">Karma Description Mod (ver. 2.3) Don't forget to BACKUP, please.</readme>
                <modification>Karma_Description_Mod_1.xml</modification>
    <modification>Karma_Description_Mod_2.xml</modification>
                <code>db_change.php</code>
                <require-dir name="kdm_bak" destination="$sourcedir" />
                <require-file name="$sourcedir/karma.php" destination="$sourcedir/kdm_bak" />
                <require-file name="Viewkarma.php" destination="$sourcedir" />
                <require-file name="Viewkarma.template.php" destination="$boarddir/Themes/default" />
                <require-file name="DescriptionKarma.template.php" destination="$boarddir/Themes/default" />
        </install>
        <uninstall>
                <readme type="inline">Thank you for testing my mod.</readme>
                <modification reverse="true">Karma_Description_Mod_1.xml</modification>
                <modification reverse="true">Karma_Description_Mod_2.xml</modification>
                <require-file name="$sourcedir/kdm_bak/karma.php" destination="$sourcedir/karma.php" />
</uninstall>
</package-info>
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 19, 2007, 06:59:34 AM
require-file name="$sourcedir/karma.php in your code... it is easy create a file named karma.php with 0 syms it's not backing up this file.
Title: Re: Karma Description Mod
Post by: TrueSatan on March 19, 2007, 07:28:00 AM
 Maybe I'm missing something...I'm trying to take the existing karma.php (8.565Kb in a fresh SMF install) in the sources directory and copy it to the new directory kdm_bak prior to doing the rest of the mod. I tried having a karma.php with 0Kb in the kdm_bak directory but that didn't help....as you say it's not backing up the file. Any ideas?
Title: Re: Karma Description Mod
Post by: Sarke on March 19, 2007, 02:13:02 PM
Quote from: Grek_Kamchatka on March 19, 2007, 05:40:13 AM
I don't know what the problem. If your mod search this lines after my mod was installed it can find it in 227, 228 and 229 lines. So, if i will remove this code (between /* and */) you will asking me to stay it there, because your mod cand find this code? LoL

The problem is that there are now two places where the code is, and so any mod that tries to change that code finds the first one and applies it there, but this area of the code is commented out so even though the install works fine the changes aren't in effect becayse theyve been commented out by your code.

The second thing I mention was that the duplicate code you made alters that code as well by not preserving the correct whitespace.

My point was that your mod doesn't need to make these kinds of changes; it can be installed with fewer changes to the code.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 19, 2007, 06:27:20 PM
Quotefinds the first one and applies it there
Nope, if there will be a second code you search and the third code, your mod will make changes everywhere.

QuoteMy point was that your mod doesn't need to make these kinds of changes; it can be installed with fewer changes to the code.
No again. It is a difficult construction there. I can't put my code to that place, cause there only <tr> <td> tags. Of course i can try to find </td>
                                </tr>';
but this code meets during the all the file profile.template.php so i can't past my code before or after it.
Title: Re: Karma Description Mod
Post by: Sarke on March 19, 2007, 09:03:33 PM
Sorry, you don't seem to understand what I'm saying.  The code in question is also not complex, and there is no reason for your code to change this:


echo '
<tr>
<td><b>', $txt[233], ': </b></td>
<td>', $context['member']['registered'], '</td>
</tr><tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr>';


Just do the following:


<operation>
<search position="replace"><![CDATA[ // If karma enabled show the members karma.
if ($modSettings['karmaMode'] == '1')
echo '
<tr>
<td>
<b>', $modSettings['karmaLabel'], ' </b>
</td><td>
', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '
</td>
</tr>';
elseif ($modSettings['karmaMode'] == '2')
echo '
<tr>
<td>
<b>', $modSettings['karmaLabel'], ' </b>
</td><td>
+', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '
</td>
</tr>';
]]></search>
<add><![CDATA[// If karma enabled show the members karma.
        if ($modSettings['karmaMode'] == '1')
        {        echo '
                                <tr>
                                        <td>
                                                <b>', $modSettings['karmaLabel'], ' </b>
                                        </td><td>
                                                ', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '
                                        </td>
                                </tr>';
        if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmalinks']))
        {    if ($context['show_karmastat'])
     echo '
                                <tr>';
                                if (!empty($modSettings['karmaisowner']) && ($context['owner']==1)) echo '
                                        <td><a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '">'.$txt['who_change_my_karma'].'</a></td>
                                        <td><a href="'. $scripturl . '?action=otherkarma;u=' . $context['member']['id'] . '">'.$txt['whom_i_change_karma'].'</a></td>
                                ';
                                elseif (empty($modSettings['karmaisowner'])) echo'
                                        <td><a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '">'.$txt['who_change_my_karma'].'</a></td>
                                        <td><a href="'. $scripturl . '?action=otherkarma;u=' . $context['member']['id'] . '">'.$txt['whom_i_change_karma'].'</a></td>
                                ';
                                elseif ($context['user']['is_admin']) echo '
                                        <td><a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '">'.$txt['who_change_my_karma'].'</a></td>
                                        <td><a href="'. $scripturl . '?action=otherkarma;u=' . $context['member']['id'] . '">'.$txt['whom_i_change_karma'].'</a></td>
                                </tr>'
                                ;}
         }
                               
        elseif ($modSettings['karmaMode'] == '2')
        {        echo '
                                <tr>
                                        <td>
                                                <b>', $modSettings['karmaLabel'], ' </b>
                                        </td><td>
                                                +', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '
                                        </td>
                                </tr>';
        if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmalinks']))
        {    if ($context['show_karmastat'])
     echo '
                                <tr>';
                                if (!empty($modSettings['karmaisowner']) && ($context['owner']==1)) echo '
                                        <td><a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '">'.$txt['who_change_my_karma'].'</a></td>
                                        <td><a href="'. $scripturl . '?action=otherkarma;u=' . $context['member']['id'] . '">'.$txt['whom_i_change_karma'].'</a></td>
                                ';
                                elseif (empty($modSettings['karmaisowner'])) echo'
                                        <td><a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '">'.$txt['who_change_my_karma'].'</a></td>
                                        <td><a href="'. $scripturl . '?action=otherkarma;u=' . $context['member']['id'] . '">'.$txt['whom_i_change_karma'].'</a></td>
                                ';
                                elseif ($context['user']['is_admin']) echo '
                                        <td><a href="'. $scripturl . '?action=ownkarma;u=' . $context['member']['id'] . '">'.$txt['who_change_my_karma'].'</a></td>
                                        <td><a href="'. $scripturl . '?action=otherkarma;u=' . $context['member']['id'] . '">'.$txt['whom_i_change_karma'].'</a></td>
                                </tr>'
                                ;}
        }]]></add>
</operation>



This way you mod doesn't change what it doesn't need to, and it doesn't leave duplicate code.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 19, 2007, 09:08:06 PM
Ok, i'll think about it.
Title: Re: Karma Description Mod
Post by: tsmalmbe on March 22, 2007, 06:13:30 PM
This seems to work, although a little work to get it installed on a custom theme and other language. Thanks.
Title: Re: Karma Description Mod
Post by: MoPed on March 22, 2007, 09:48:36 PM
When I try to install it, I get thist message :(
And me and my users would love to have this mod.




Installations actions for "Karma Description Mod":
Installing this package will perform the following actions: 
Type Action Description
1. Execute Modification Karma_Description_Mod_1.xml   Modification parse error  
2. Execute Modification -                                            Modification parse error  
3. Execute Modification Karma_Description_Mod_2.xml   Modification parse error  
4. Execute Modification -                                            Modification parse error  
5. Execute Code db_change.php 
6. Extract File ./Sources/Viewkarma.php 
7. Extract File ./Themes/default/Viewkarma.template.php 
8. Extract File ./Themes/default/DescriptionKarma.template.php


And in the error-log I get this message:
http://***.*****.dk/index.php?action=packages;sa=install;package=Karma_Description_Mod_ver1.2.3.zip 
8: Undefined index: package_readme
File: /******/******/*****/Sources/Packages.php
Line: 294  
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 22, 2007, 09:58:56 PM
Quotehttp://***.*****.dk/index.php?action=packages;sa=install;package=Karma_Description_Mod_ver1.2.3.zip
ver1.2.3 ? What is this? I havn't this mod version. 2.3 only.
Title: Re: Karma Description Mod
Post by: tsmalmbe on March 23, 2007, 04:05:24 AM
Any possibility of having a version where you could exclude certain boards (in a comma separated list) from having the karma enabled? I have offtopic-boards where the karma has gone wild (in a not-so-good way).

Thanks for listening.
Title: Re: Karma Description Mod
Post by: MoPed on March 24, 2007, 12:00:00 PM
Quote from: Grek_Kamchatka on March 22, 2007, 09:58:56 PM
Quotehttp://***.*****.dk/index.php?action=packages;sa=install;package=Karma_Description_Mod_ver1.2.3.zip
ver1.2.3 ? What is this? I havn't this mod version. 2.3 only.

It is the version 2.3 downloadet here at SMF I am trying to install..

I don't know why it writes "Karma_Description_Mod_ver1.2.3.zip" in the error-log   :-\
Title: Re: Karma Description Mod
Post by: MoPed on March 24, 2007, 12:02:51 PM
Ohh, I just tried to have a look at the zip-file..

It is called "Karma_Description_Mod_ver[1].2.3.zip" Can that be the reason?

(It is, what is suggested as filename, when downloading the file)
Title: Re: Karma Description Mod
Post by: TrueSatan on March 24, 2007, 12:32:17 PM
Moped...I suggest that you try the download again...the file is called Karma_Description_Mod_ver.2.3.zip as per the download page http://custom.simplemachines.org/mods/index.php?mod=192 (http://custom.simplemachines.org/mods/index.php?mod=192)

It downloads as that...my computer uses that name...it doesn't add a "1" into it.

You may have a bad download.

Do/did you have another version of the mod...do/did you try to download it twice to the same location...either might explain your odd naming of it.

I've used the mod as downloaded above and there was no problem with parse errors or, indeed, any other problem.

Please delete your questionable version and start again with a fresh download of the mod using the name given to it on the download page.
Title: Re: Karma Description Mod
Post by: MoPed on March 24, 2007, 02:49:00 PM
Quote from: TrueSatan on March 24, 2007, 12:32:17 PM
Moped...I suggest that you try the download again...the file is called Karma_Description_Mod_ver.2.3.zip as per the download page http://custom.simplemachines.org/mods/index.php?mod=192 (http://custom.simplemachines.org/mods/index.php?mod=192)

It downloads as that...my computer uses that name...it doesn't add a "1" into it.

You may have a bad download.

Do/did you have another version of the mod...do/did you try to download it twice to the same location...either might explain your odd naming of it.

I've used the mod as downloaded above and there was no problem with parse errors or, indeed, any other problem.

Please delete your questionable version and start again with a fresh download of the mod using the name given to it on the download page.

Strange :-/

That is where I downloadet it form, and it keeps suggesting the name "Karma_Description_Mod_ver[1].2.3.zip" even if I delete my temporary internet-files :-/

First I tried to install the install the on one of the SMF-forums I have in use, there I had tried to install the ver.2.2 getting a similar.

This time I installed it on at totally clean SMF 1.1.2, And I got the error there too.
(But it was with the filename mentioned I tried to install it).

I will now try to make a new clean install of SMF, and try to rename the mod so it get the right name. and I'll try to and it, and see what happens.
Title: Re: Karma Description Mod
Post by: dexx on March 24, 2007, 03:03:12 PM
the new RU files give errors, but the plain one seems fine for me
Title: Re: Karma Description Mod
Post by: TrueSatan on March 24, 2007, 03:34:49 PM
Moped...

Try the file below...it's the same as the one on the download page but having used it myself I know that it's fine.

Title: Re: Karma Description Mod
Post by: dexx on March 24, 2007, 06:58:34 PM
K I got a new forum going on a test site.

After installing the new package, and enabling it, still no link shows up on the forum listing index. And when I go to modify anyone's Karma it says:

Unknown column 'Description' in 'field list'
File: /home/mrdexx/public_html/test/smf/Sources/Karma.php
Line: 134


But no longer says my database is old.

Any ideas? Installing package showed no errors.
Title: Re: Karma Description Mod
Post by: TrueSatan on March 24, 2007, 10:41:39 PM
Dexx,

Firstly sorry you're still having problems...secondly...let's try to sort them out.

Prior to installing the mod did you do the following:

Admin>Packages>Options

Set up your ftp details and save them

Cleanup Permissions>Select "All Files Are Writable">Change File Permissions

If you didn't do that (and you should do it prior to installing any mod...and change the permissions to have less files writable after installation if you so wish) then you might have a file permissions issue.

Can you please make sure that you change permissions to all files are writable now and check that the following have been made writable:

/Sources/Viewkarma.php
/Themes/default/Viewkarma.template.php
DescriptionKarma.template.php
/Sources/ModSettings.php
/Sources/Subs.php
/Sources/BoardIndex.php
/Sources/Profile.php
/Sources/ManagePermissions.php
/Themes/default/Admin.template.php
/Themes/default/BoardIndex.template.php
/Themes/default/Profile.template.php
/Themes/default/languages/Admin.english.php
/Themes/default/languages/ModSettings.english.php
/Themes/default/languages/Who.english.php
/Themes/default/languages/Help.english.php
/Themes/default/languages/index.english.php
/Themes/default/languages/ManagePermissions.english.php
/Themes/default/languages/Errors.english.php
/Themes/default/languages/Profile.english.php
index.php
/Sources/Admin.php
/Sources/Karma.php

If that doesn't fix the problem:

Assuming that you had made them all writable prior to the install you did earlier I would have expected you to have been without problems...as that may not have been the case perhaps it might be wise for you to uninstall the mod...replace the /Sources/karma.php with a fresh copy from the backup you should have taken prior to installing the mod or, failing that, from the SMF installation pack.

Try the installation again...see what happens.

Assuming you still have problems extract copies of all the above files...put them in a single zip file and attach it to a posting here detailsing what the problems still are...I hope that covers all bases.


 
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 25, 2007, 06:11:19 AM
dexx, it is because you haven't Description field in your database.
Title: Re: Karma Description Mod
Post by: dexx on March 25, 2007, 09:28:55 AM
Quote from: Grek_Kamchatka on March 25, 2007, 06:11:19 AM
dexx, it is because you haven't Description field in your database.

I figured the error-free install of the mod meant the mod added the needed fields to the database
Title: Re: Karma Description Mod
Post by: TrueSatan on March 25, 2007, 11:11:23 AM
 Well...let's think about how it can be fixed...and I hope Grek will put me right if I'm wrong on this...

By the looks of it if you ftp the db_change.php from the package to the board directory and navigate to it using your browser that should run the database changes again. I'm not sure if it would be a good move to change line 5:

$overwrite_old_settings = false;

to:

$overwrite_old_settings = true;

Maybe try it without first than make the change if needed.

Let's see what Grek has to say though.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 25, 2007, 05:37:33 PM
Quote from: TrueSatan on March 25, 2007, 11:11:23 AM
By the looks of it if you ftp the db_change.php from the package to the board directory and navigate to it using your browser that should run the database changes again. I'm not sure if it would be a good move to change line 5:
No. No effect would be if you do it

Quote
$overwrite_old_settings = false;

to:

$overwrite_old_settings = true;

Maybe try it without first than make the change if needed.

Let's see what Grek has to say though.
No again. All old karma log will be erased.

Sorry for my english.
Title: Re: Karma Description Mod
Post by: Lemare on March 26, 2007, 07:50:45 AM
Hi. Does this mod have norwegian translated files? Or do I do this my self? If I have to do the translate myself, where will I do this?
Title: Re: Karma Description Mod
Post by: Lemare on March 26, 2007, 02:50:21 PM
The downloading to my forum failed. Guess I will have to do this manually then wont I? I use the Dilber MC theme Use SMF version 1.1.2
Title: Re: Karma Description Mod
Post by: Lemare on March 31, 2007, 04:56:18 PM
I am supposed to find this

<td>', $context['member']['last_login'], '</td>
            </tr>';

So i can add this */ after, but I can only find this

      <li><strong>', $txt['lastLoggedIn'], ': </strong>', $context['member']['last_login'], '</li>';
Have I overlooked the first code somewhere.
Title: Re: Karma Description Mod
Post by: MajorPayne112 on April 01, 2007, 11:33:02 PM
hi i installed version 2.3 and im having probs getting members to view the karma log (index.php?action=viewkarma) now all the settings are right, in Features and Options the option is checked (see pic) and in permissions they have access to it. ive even had a look at the database and its been enabled as karmalog_view (see pic) they are also using the correct group with that access. I havnt modifed any of it manualy.

Any1 got any ideas
Title: Re: Karma Description Mod
Post by: MajorPayne112 on April 01, 2007, 11:39:48 PM
wait im a idiot i had "Disable whole karma log for users but enable own karma log" enabled, notice it when i was looking at the pics.

Sorry for wasting any1s time
Title: Re: Karma Description Mod
Post by: Lemare on April 07, 2007, 04:50:03 PM
Try to install this package to my forum. I get test successful in all of the files. And it works to. But errors occurs when wanting to view profiles. I get syntaxerrors like : Unecspected '*', or '/' or '}' and so on And it does not get any better when I try to modify the Profile.template.php. Which is where I get the messages that the errors are.  Don't get the Karma stats- link on mainpage either, Even though I try modifinge the boardindex.template.php (the boardindex template is the only file I can find in the dilber mc theme which is supposed to be modified, I believe that would be the one to modify to get the karma stats link on mainpage??)
Title: Re: Karma Description Mod
Post by: Lemare on April 08, 2007, 06:08:25 AM
Ok. So I get the description mod to work, but still don't have the [karma stat] on main page. Anyway, I have now translated most of the files into norewegian. But I cant find the file so that I can translate this page:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi35.photobucket.com%2Falbums%2Fd185%2FLillyen%2Fbilde.png%3Ft%3D1176026542&hash=9e89125747b9fe7f16dbbd6b7041d668316a6199) (http://i35.photobucket.com/albums/d185/Lillyen/bilde.png?t=1176027430)

So that when I use norwegian-utf8 in mye fourm I wont have this more or less blank page when trying to view the karma description log.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi35.photobucket.com%2Falbums%2Fd185%2FLillyen%2FBilde2-2.png%3Ft%3D1176027319&hash=aca1290d219f1ad53b7650a0301ee72e89257a66) (http://i35.photobucket.com/albums/d185/Lillyen/Bilde2-2.png?t=1176026828)

Hope someone will help me with this
Title: Re: Karma Description Mod
Post by: Lemare on April 09, 2007, 08:45:40 AM
I keep solving problems and keep bumping into them. All of my other problems with this mod, I have solved. Now I need to make "Where" work with norwegian. I have enabled it in features and options but the "In Topic" link does not show when using the norwegian utf8 language. So how to make it work. The name Where it self I have translated, it is only the In topic link I need to translate. Where do I find it?
Title: Re: Karma Description Mod
Post by: Lemare on April 10, 2007, 08:05:08 AM
Quote from: Lemare on April 09, 2007, 08:45:40 AM
I keep solving problems and keep bumping into them. All of my other problems with this mod, I have solved. Now I need to make "Where" work with norwegian. I have enabled it in features and options but the "In Topic" link does not show when using the norwegian utf8 language. So how to make it work. The name Where it self I have translated, it is only the In topic link I need to translate. Where do I find it?

Help, please :)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on April 10, 2007, 05:20:47 PM
Have you any errors in error log?
Title: Re: Karma Description Mod
Post by: ssoltz on April 10, 2007, 06:26:14 PM
Quick question:

For some reason, as of late, my karma log (smf_log_karma table) keeps getting deleted.

Any reason that this should be happening out of nowhere?

I am using version 2.2, I believe.

Is there a setting I inadvertently changed?

Thanks in advance,
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on April 10, 2007, 06:46:36 PM
It was deleted a table or all data in this table? If last, i think you cleared karma log in admin panel
Title: Re: Karma Description Mod
Post by: Lemare on April 11, 2007, 05:12:08 AM
Quote from: Grek_Kamchatka on April 10, 2007, 05:20:47 PM
Have you any errors in error log?"
Nope. No errors. I believe the only thing I need to do is to translate the "In Topic" link into norewegian so that it will be able to show when using the nowegian language on my forum. But I can't find that word so that I can translate it.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on April 11, 2007, 09:41:57 PM
index.english.php

$txt['karmawhereurl'] = 'In topic';
Title: Re: Karma Description Mod
Post by: ssoltz on April 12, 2007, 08:11:05 AM
Greg,

I have not been deleting the logs in admin. Strangely, it seems to be keeping the last 48 hours or so of karma logs but deleting the data from before that.

I haven't experienced this before...is there a setting for "keep only logs for last X hours or X days" possibly?

Weird...
Title: Re: Karma Description Mod
Post by: Lemare on April 12, 2007, 12:45:48 PM
Quote from: Grek_Kamchatka on April 11, 2007, 09:41:57 PM
index.english.php

$txt['karmawhereurl'] = 'In topic';
Thank you so much.
Title: Re: Karma Description Mod
Post by: ExpatLair on April 13, 2007, 06:43:10 AM
I've looked over and over this thread. I install the package and it says it's installed. When I go to Karma on the Admin, I get nothing but check boxes and no text. And this error:

8: Undefined index: statkarma
File: /home/dutchjac/public_html/expatlair/Themes/default/BoardIndex.template.php (eval?)
Line: 375

Any ideas? I'm running 1.1.2 with no other mods.
Title: Re: Karma Description Mod
Post by: Lemare on April 13, 2007, 07:16:16 AM
Is it possible to make the comment field manage more words, so that one can write longer comments. 
Title: Re: Karma Description Mod
Post by: look up on April 13, 2007, 05:52:16 PM
Quote from: Lemare on April 13, 2007, 07:16:16 AM
Is it possible to make the comment field manage more words, so that one can write longer comments. 
i asked this question a loooong time ago, but never got a response.  i actually found the file in the package that you need to edit, but i don't know how to edit the file on my server.
Title: Re: Karma Description Mod
Post by: Lemare on April 14, 2007, 06:28:15 AM
Quote from: look up on April 13, 2007, 05:52:16 PM
Quote from: Lemare on April 13, 2007, 07:16:16 AM
Is it possible to make the comment field manage more words, so that one can write longer comments. 
i asked this question a loooong time ago, but never got a response.  i actually found the file in the package that you need to edit, but i don't know how to edit the file on my server.
Which file would that be?
Title: Re: Karma Description Mod
Post by: anshar on April 16, 2007, 12:32:36 PM
Quote from: Lemare on April 13, 2007, 07:16:16 AM
Is it possible to make the comment field manage more words, so that one can write longer comments. 

File: DecriptionKarma.template.php

Find

<td align="center"><input type="text" name="Description" size="84" maxlength="62"/></td>

And change to (edit cols and rows for input box size)

<td align="center"><input type="text" name="Description" cols="80" rows="3"/></td>

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on April 16, 2007, 07:15:51 PM
Bad idea =)
Title: Re: Karma Description Mod
Post by: look up on April 16, 2007, 07:47:33 PM
yeah, that's the file.  and it's still zipped on my server.  so that's why i can't figure out how to edit it.


anshar, why would you not just change the number after maxlength?

Title: Re: Karma Description Mod
Post by: Lemare on April 17, 2007, 03:07:08 PM
Quote from: Grek_Kamchatka on April 16, 2007, 07:15:51 PM
Bad idea =)
Why?

Anshar: Thank you
Title: Re: Karma Description Mod
Post by: Sarrene on April 23, 2007, 01:20:45 PM
I may be a total idiot here, but I am unable to find a fix for this. Perhaps there is not one. I have searched and found a few poeple posting having the same problem, however the two fixes I had found did not work.
Here is my problem:

QuoteAn Error Has Occurred!
Unable to load the 'main' template. 

I have uploaded the three files as sugested, and still no go.
I am using a modified theme, and not sure if that is it or not. The one I am using is Bloc's Leviathan (with modified graphics)

I did read and follow all three responces to what could work, but I am at a total losss right now. Any help would be greatly appreciated.

Thank you in advance,
Sarrene'
Title: Re: Karma Description Mod
Post by: JSizzal on April 23, 2007, 04:03:41 PM
How come even after changed the [Appluad] [Smite] to different words they still appear every where else..including  the "lastest changes in karma" page, any way to change it completely
Title: Re: Karma Description Mod
Post by: Tick on April 23, 2007, 06:39:57 PM
I have been getting an error since installing this mod.  I started a topic on it here.  http://www.simplemachines.org/community/index.php?topic=166325.15  and it was recommended that I come here and see if the author of this mod had an answer.  Here is the error I am getting and if you go to the topic I posted above you will see what has been tried before.  Here is the error I get

I get this one when I change karma
http://xxxxxxxxxxxx.com/smf/index.php?action=modifykarma;sa=applaud;uid=345;topic=1374.0;m=6898;sesc
8: Undefined index:  karma_pm_send_changelink
File: /home/content/i/b/e/xxxxxxxxx/html/smf/Sources/Karma.php
Line: 195


Here is this line 195 on  karma .php  third line down.  [pre] $link=='PM' ? $url=$scripturl.'?action=pm' : $url=$scripturl.'?topic='.$link;
     
                if ($modSettings['karma_pm_send_link'])
                    if ($modSettings['karma_pm_send_changelink'])
                        {
                            $karma_pm_body = $txt['karma_pm_body'].$txt['karma_pm_body2'].$_REQUEST['uid'].$txt['karma_pm_send_changelink'].$url;
                        } [/pre]
                                                                           

Title: Re: Karma Description Mod
Post by: Pratt on April 23, 2007, 07:55:32 PM
Hi! Im having problems with the Karma-Notify option, Can someone help me out?
The main problem happens, when someone chooses to be notified by PM when a user changes his Karma..

They dont get any notification, i mean, the (PM)-inbox says it has no new messages, but if they open the Inbox, they see the notifications... i mean it says they dont have any new messages when they actually have messages in the inbox, is there a way to fix this?
Title: Re: Karma Description Mod
Post by: Tick on April 25, 2007, 10:44:42 PM
Quote from: tick on April 23, 2007, 06:39:57 PM
I have been getting an error since installing this mod.  I started a topic on it here.  http://www.simplemachines.org/community/index.php?topic=166325.15  and it was recommended that I come here and see if the author of this mod had an answer.  Here is the error I am getting and if you go to the topic I posted above you will see what has been tried before.  Here is the error I get

I get this one when I change karma
http://xxxxxxxxxxxx.com/smf/index.php?action=modifykarma;sa=applaud;uid=345;topic=1374.0;m=6898;sesc
8: Undefined index:  karma_pm_send_changelink
File: /home/content/i/b/e/xxxxxxxxx/html/smf/Sources/Karma.php
Line: 195


Here is this line 195 on  karma .php  third line down.  [pre] $link=='PM' ? $url=$scripturl.'?action=pm' : $url=$scripturl.'?topic='.$link;
     
                if ($modSettings['karma_pm_send_link'])
                    if ($modSettings['karma_pm_send_changelink'])
                        {
                            $karma_pm_body = $txt['karma_pm_body'].$txt['karma_pm_body2'].$_REQUEST['uid'].$txt['karma_pm_send_changelink'].$url;
                        } [/pre]
                                                                           



Just a bump
Title: Re: Karma Description Mod
Post by: JSizzal on April 26, 2007, 11:37:50 AM
QuoteHow come even after changed the [Appluad] [Smite] to different words they still appear every where else..including  the "lastest changes in karma" page, any way to change it completely

Any Help!!
Title: Re: Karma Description Mod
Post by: anshar on April 28, 2007, 08:37:53 AM
Grek_Kamchatka could you explain why is it a bad idea and what is your idea to do it right?

How to exted the description over 256 chars?
Title: Re: Karma Description Mod
Post by: p-chan on May 02, 2007, 08:33:18 PM
hii..i think this is a great mod ^^
Btw, i have a question (sorry if this sounds stupid)..
I am just wondering where do u get to see the karma change log? =)

Btw, does this mod works with the dilber MC theme? Thanks a lot!!
Title: Re: Karma Description Mod
Post by: Tick on May 02, 2007, 08:47:01 PM
I use it with dilber mc  you just have to make these changes to your board index template.

find
[pre]// Show YaBB SP1 style information.[/pre]

and add befor
[pre]*/
                    if ($settings['show_sp1_info'])
        {
                echo '
                                <tr>
                                        <td class="titlebg" colspan="2">', $txt[645], '</td>
                                </tr>
                                <tr>
                                        <td class="windowbg" width="20" valign="middle" align="center">
                                                <a href="', $scripturl, '?action=stats"><img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" /></a>
                                        </td>
                                        <td class="windowbg2" width="100%">
                                                <span class="middletext">
                                                        ', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '. ', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
                                                        <br /> ' . $txt[659] . ': <b>&quot;' . $context['latest_post']['link'] . '&quot;</b>  ( ' . $context['latest_post']['time'] . ' )<br />
                                                        <a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
                                                        <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                                               
                ';
                     if ((!empty($modSettings['karmadescmod'])) && (empty($modSettings['karmaisowner'])))
                         {  if ($context['show_karmastat'])
                echo '
                                         <a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
                     elseif ((!empty($modSettings['karmadescmod'])) && ($context['user']['is_admin']))
                        { if ($context['show_karmastat'])
      echo '
                        <a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
echo'
                     </span>
                                        </td>
                                </tr>';
        }
[/pre]


and be sure to make a backup of this file before making these edits.  Just in case.  But it works for me

EDIt:  take out the   pre with the brackets around them out
 at the start and finsh.  I dont know why they are there.  I did not put them there


Title: Re: Karma Description Mod
Post by: p-chan on May 03, 2007, 03:26:24 AM
Tick, thanks a lot for ur help! I hope it works for me ^^
Title: Re: Karma Description Mod
Post by: p-chan on May 03, 2007, 05:01:59 AM
hihi..ah..after adding the code, it sort of worked..
but there are two forum stats in the info centre - one with just forum stats and one with forum stats + karma stats..
I was wondering if there's  away to delete the one with just forum stats?
Thanks
Title: Re: Karma Description Mod
Post by: p-chan on May 04, 2007, 02:07:31 AM
It;s okie..i solved the problem already =)
Title: Re: Karma Description Mod
Post by: Tick on May 05, 2007, 12:09:47 AM
Quote from: tick on April 23, 2007, 06:39:57 PM
I have been getting an error since installing this mod.  I started a topic on it here.  http://www.simplemachines.org/community/index.php?topic=166325.15  and it was recommended that I come here and see if the author of this mod had an answer.  Here is the error I am getting and if you go to the topic I posted above you will see what has been tried before.  Here is the error I get

I get this one when I change karma
http://xxxxxxxxxxxx.com/smf/index.php?action=modifykarma;sa=applaud;uid=345;topic=1374.0;m=6898;sesc
8: Undefined index:  karma_pm_send_changelink
File: /home/content/i/b/e/xxxxxxxxx/html/smf/Sources/Karma.php
Line: 195


Here is this line 195 on  karma .php  third line down.  [pre] $link=='PM' ? $url=$scripturl.'?action=pm' : $url=$scripturl.'?topic='.$link;
     
                if ($modSettings['karma_pm_send_link'])
                    if ($modSettings['karma_pm_send_changelink'])
                        {
                            $karma_pm_body = $txt['karma_pm_body'].$txt['karma_pm_body2'].$_REQUEST['uid'].$txt['karma_pm_send_changelink'].$url;
                        } [/pre]
                                                                           




I have also narrowed it down to it only happens when karma is given to users who have karma notification turned on.    Is anyone still supporting this mod.
Title: Re: Karma Description Mod
Post by: Tick on May 06, 2007, 02:21:46 PM
Bump.  Is the author of this mod still supporting this mod.  Or does anyone know this mod well enough to tell me why this error is occurring.   Thanks so much to anybody who can help.
Title: Re: Karma Description Mod
Post by: Tick on May 07, 2007, 08:43:35 PM
Last and final bump.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 07, 2007, 09:02:45 PM
Post here your karma.php file
Title: Re: Karma Description Mod
Post by: Tick on May 07, 2007, 09:24:24 PM
Thanks for the response.  here it is.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 07, 2007, 09:42:04 PM
Ok, i found one small bug in mod. Thanks. Wait a new version - 2.4
To fix this problem with error log, you can check:
1. Send link in personal message to own karma log
2. Send the reason in personal message
3. Send link in personal message to message where karma was changed
in Karma section. Save this settings, applaud this user and then uncheck all this functions. Errol log must be clean after it.
Title: Re: Karma Description Mod
Post by: Tick on May 07, 2007, 09:56:40 PM
The problem is when the ARE checked.  But I cant ask 600 users to uncheck this.  I can clear the errors for know.   Do you have a estimate on when this next version will be out.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 07, 2007, 10:02:27 PM
Quote from: tick on May 07, 2007, 09:56:40 PM
But I cant ask 600 users to uncheck this
Nope, it is in admin panel in karma section.

Quote
I can clear the errors for know.   Do you have a estimate on when this next version will be out.
I don't know. May be in 2 days
Title: Re: Karma Description Mod
Post by: Tick on May 07, 2007, 10:12:58 PM
Ok thanks for your time to answer my questions.  You have made a great mod.
Title: Re: Karma Description Mod
Post by: KGIII on May 11, 2007, 10:41:03 AM
Hmm... I don't have the time to delve into the mod really so, has anyone got a fix for the error:


Unable to load the 'main' template.

Title: Re: Karma Description Mod
Post by: dumbelljunkie on May 16, 2007, 04:12:28 PM
34 pages wow, but I guess this question is new (I hope); is there a way to show how much Karma is given each time ?
Title: Re: Karma Description Mod
Post by: b0x on May 18, 2007, 08:40:29 PM
I had a quick look at the mod and I am thinking about installing it on my forum. I noticed the mod changes one of the DB tables and I was wondering whether those changes will be rolled back when you uninstall the mod.

In other words:
Will uninstalling the mod return your database to its original form?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 19, 2007, 12:23:10 AM
Quote from: Lost1 on May 18, 2007, 08:40:29 PM
In other words:
Will uninstalling the mod return your database to its original form?
Nope
Title: Re: Karma Description Mod
Post by: TrueSatan on May 19, 2007, 07:36:36 AM
 Many mods leave database changes behind if they are uninstalled...it's now accepted officially by SMF that they may do so...not a requirement to remove any/all added databases and settings upon uninstallation.

If the tables and settings a mod leaves behind aren't being used by any other parts of a forum's code then they are a trivial matter and can be safely ignored...if you really wish to do so you can tidy up your database via phpMyadmin (having first made a backup of it.) In general it's not worth the effort of doing anything about them.
Title: Re: Karma Description Mod
Post by: b0x on May 20, 2007, 02:07:06 AM
Thanks for your quick response guys. I enabled karma on my forum the other day and so far it looks like its not going to last. What the prospect of getting a few smites can do to some people. :P

Maybe I'll install this mod and see whether it's easier for people to accept if they can see the reason of the applauds and smites. Anyway, thanks for the quick answers.
Title: Re: Karma Description Mod
Post by: THE BRA1N on May 26, 2007, 03:18:49 PM
To upgrade from 2.2 to 2.3, do I NEED to uninstall 2.2 first?
Title: Re: Karma Description Mod
Post by: drswift on May 27, 2007, 07:50:14 AM
Hey guys quick question: Can I set this so that only admins can view who changed the karma?

I'm looking for a solution to prevent a recent spate of karma attacks on prominent community members. I'm looking for this as an administrative tool - rather than a public feature.
Title: Re: Karma Description Mod
Post by: ~Unkn0wn~ on May 30, 2007, 03:52:26 PM
Any demo now? No registration needed please
Title: Re: Karma Description Mod
Post by: look up on May 31, 2007, 11:54:29 PM
Quote from: drswift on May 27, 2007, 07:50:14 AM
Hey guys quick question: Can I set this so that only admins can view who changed the karma?
that's how it's set up on mine now.  members can see who changed their own karma, and admins can see who changed everyone's karma.
Title: Re: Karma Description Mod
Post by: anakmacan on June 02, 2007, 10:00:40 AM
There were errors (send error, /* error, etc) in my karma.php file in many line. So i uninstall this mod.
Title: Re: Karma Description Mod
Post by: martina on June 04, 2007, 02:36:43 PM
Quote from: KGIII on May 11, 2007, 10:41:03 AM
Hmm... I don't have the time to delve into the mod really so, has anyone got a fix for the error:


Unable to load the 'main' template.



I have this error too is there a solution to it.  We have not long set up our site so if there is please could you explain in easy to understand language  :).
Title: Re: Karma Description Mod
Post by: Vinspire on June 06, 2007, 04:37:16 AM
Stupid question here : How do i see a karma log ?
Title: Re: Karma Description Mod
Post by: TrueSatan on June 06, 2007, 05:12:00 AM
Quote from: Vinspire on June 06, 2007, 04:37:16 AM
Stupid question here : How do i see a karma log ?

It gives me a warm feeling inside to answer a question from somebody who normally answers questions rather than asking them.

Presumably you've gone to ACP>Features and Options>Karma and enabled the mod and put the settings as you want them (and gone through the permissions masks changes as needed)...if so then the log is available via those profiles you've allowed to see it.
Title: Re: Karma Description Mod
Post by: Vinspire on June 06, 2007, 10:00:58 PM
Quote from: TrueSatan on June 06, 2007, 05:12:00 AM
Quote from: Vinspire on June 06, 2007, 04:37:16 AM
Stupid question here : How do i see a karma log ?

It gives me a warm feeling inside to answer a question from somebody who normally answers questions rather than asking them.

Presumably you've gone to ACP>Features and Options>Karma and enabled the mod and put the settings as you want them (and gone through the permissions masks changes as needed)...if so then the log is available via those profiles you've allowed to see it.

Hehehe ... Glad to know that you weren't annoyed with my question and thanks for the answer.

I've gone through everything as you stated and currently i am viewing the karma by putting in http://weburl/index.php?action=viewkarma. Is there any other way for me to view it ?
Title: Re: Karma Description Mod
Post by: Vinspire on June 07, 2007, 01:54:21 AM
Quote from: Vinspire on June 06, 2007, 10:00:58 PM
Quote from: TrueSatan on June 06, 2007, 05:12:00 AM
Quote from: Vinspire on June 06, 2007, 04:37:16 AM
Stupid question here : How do i see a karma log ?

It gives me a warm feeling inside to answer a question from somebody who normally answers questions rather than asking them.

Presumably you've gone to ACP>Features and Options>Karma and enabled the mod and put the settings as you want them (and gone through the permissions masks changes as needed)...if so then the log is available via those profiles you've allowed to see it.

Hehehe ... Glad to know that you weren't annoyed with my question and thanks for the answer.

I've gone through everything as you stated and currently i am viewing the karma by putting in http://weburl/index.php?action=viewkarma. Is there any other way for me to view it ?

I've found the answer to this question after playing through the feature.

Anyway, is it possible for me to censor the name of the person who gave karma to the specific person ?
Title: Re: Karma Description Mod
Post by: TrueSatan on June 07, 2007, 04:36:46 AM
Not that I know of...you're allowing them to see the karma log so unless you were to hack the mod such that the log didn't record those names there's not much to be done about it....maybe Grek might have another idea but I don't see a way around this one.

Glad you got it working BTW...all credit to Grek as it is a very nice mod.
Title: Re: Karma Description Mod
Post by: Vinspire on June 07, 2007, 09:14:07 AM
Quote from: TrueSatan on June 07, 2007, 04:36:46 AM
Not that I know of...you're allowing them to see the karma log so unless you were to hack the mod such that the log didn't record those names there's not much to be done about it....maybe Grek might have another idea but I don't see a way around this one.

Glad you got it working BTW...all credit to Grek as it is a very nice mod.

Yeah. It was an awesome mod. I need to disclose the person who give out the karmas from that person who received the karma to avoid an arguement especially those who received a negative karma.
Title: Re: Karma Description Mod
Post by: TrueSatan on June 07, 2007, 10:35:45 AM
Maybe you could keep the Karma log for staff viewing to combat abuse rather than allowing every member to see it? If a member wanted to know who or why then they could ask a staff member who would then be able to disclose or not as seemed suitable on each occasion.
Title: Re: Karma Description Mod
Post by: Vinspire on June 07, 2007, 12:22:35 PM
Quote from: TrueSatan on June 07, 2007, 10:35:45 AM
Maybe you could keep the Karma log for staff viewing to combat abuse rather than allowing every member to see it? If a member wanted to know who or why then they could ask a staff member who would then be able to disclose or not as seemed suitable on each occasion.

If this is the case, the problem comes when you have a lot of members inquiring for their karma informations. You get what I mean ? :)
Title: Re: Karma Description Mod
Post by: TrueSatan on June 07, 2007, 12:52:29 PM
Absolutely...personally I'd restrict it to abuse queries and make it that if the query is spurious you deduct karma from the person making the request...there are ways you can handle this so that even on an big active forum you wouldn't load the staff with too much work. I do see what you're saying but all the same it's not just about what software you have but also about how you use it.

If you do the above or some other way of penalising unwarranted queries (restrict arcade access for instance...there are lots of things you could do) then there need not be a problem.
Title: Re: Karma Description Mod
Post by: Zoky on June 08, 2007, 04:51:39 PM
This may be a stupid question... but... I cannot find where should users pick should they receive notification of karmachange in PM or popup window?

I've searched profile all the way but no luck finding it...

Thanks in advance...
Title: Re: Karma Description Mod
Post by: TrueSatan on June 08, 2007, 05:38:12 PM
@ Zoky

1) You will need to be using the SMF default theme unless you have installed thre mod into a custom theme.

2) You will need to enable the mod and arrange the settings of it appropriately...ACP>Features and Options>Karma

3) You will need to set the member permissions masks appropriately to your needs.

Given all the above look in the Profile.
Title: Re: Karma Description Mod
Post by: Zoky on June 08, 2007, 05:48:28 PM
1) I am using it
2) http://img504.imageshack.us/img504/8031/slika1ti0.gif
3) I'm an admin, so all permisions should be here, if I'm right...

And I still can't find it  >:(
Title: Re: Karma Description Mod
Post by: TrueSatan on June 08, 2007, 06:04:45 PM
 The image you've shown shows that you haven't allowed users to view the log but as admin if you look at the profile of one of your forum members then you should see there options for you to view "Who changed my karma     Whose karma have I changed" these will let you look at the log.
Title: Re: Karma Description Mod
Post by: Zoky on June 08, 2007, 06:13:16 PM
Ok, but shouldn't there be options for users to choose if they want to be notified if their Karma is changed? Via PM or popup window...
Title: Re: Karma Description Mod
Post by: TrueSatan on June 08, 2007, 07:24:46 PM
No...you, as admin, decide that for them by opting to have PM notification or not (ACP>Features and Options>Karma)
Title: Re: Karma Description Mod
Post by: LuminaRS on June 11, 2007, 04:16:35 PM
I've had the karma mod installed since 1.0.x and upgraded to 1.1.2 when it came out. I did a fresh install of 1.1.2 and all my mods, but when I went to apply the karma mod I got this upon test:

Quote
4.     Execute Modification     ./Themes/default/Admin.template.php     Test failed
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed


These are the mods I currently have installed:
1.     URL Popup     1.0 
2.    Ad Managment    2.3
3.    Create Topic on Report to Moderator    0.2
4.    Rename Topic    1.0
5.    Contact Page    1.0
6.    audiblepm 1    1.0
7.    ShowTopics    1.1
8.    Merge Double Posts    1.0.7
9.    Spam Black List    0.2.1
Title: Re: Karma Description Mod
Post by: TrueSatan on June 11, 2007, 05:23:11 PM
You will find similar queries to your one answered thousands (not an exaggeration) of times on these forums. When you get such fails it simply means that other mods you have installed have already edited the files this mod needs to edit so you will have to do a manual install of it.

Follow the directions given in the following link from SMF Documentation:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

and use this link to help with the details of the edits needed for this mod:

http://server.daniel15.com/smf/package.php (http://server.daniel15.com/smf/package.php)
Title: Re: Karma Description Mod
Post by: THE BRA1N on June 15, 2007, 09:46:09 PM
Has anyone gotten the "who changed my karma" links to appear on the profile page with the Leviathan theme?
Title: Re: Karma Description Mod
Post by: aguavisual on June 23, 2007, 10:25:31 AM
¿Who can I enable default notifiy PM (personal message), for all forum's members?

<td colspan="2"><label for="enable_notify">', $txt['enable_notify'], '</label>
<select name="default_options[enable_notify]" id="none_notifier">
<option value="0"', empty($context['member']['options']['enable_notify']) ? ' selected="selected"' : '', '>', $txt['enable_notify_none'], '</option>
<option value="1"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] == 1 ? ' selected="selected"' : '', '>', $txt['enable_notify_popup'], '</option>
<option value="2"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] !=1 ? ' selected="selected"' : '', '>', $txt['enable_notify_pm'], '</option>
</select>
</td>


Thanks
Title: Re: Karma Description Mod
Post by: KGIII on June 26, 2007, 06:38:50 AM
Are you sure your post has to do with this topic?
Title: Re: Karma Description Mod
Post by: theslam2006 on June 27, 2007, 04:40:32 PM
I know the mod only says for 1.1.2, but I figured I would try it on 1.1.3 anyways. I believe it all works, but two things.

The Karma tab in the admin section is empty, I had to use a screenshot from someone else's board for a guide.

And this is the other problem: http://img184.imageshack.us/img184/8826/karmadescsi3.png

The second one is more important. Im wondering which file I should manually edit (try to) to get that to look right.

Is this even possible? Or is the mod just not going to work no matter what...

Thanks.
Title: Re: Karma Description Mod
Post by: TrueSatan on June 27, 2007, 04:47:01 PM
I'm using it on SMF 1.1.3 SMF default theme and have no problems or issues with it. I suspect that you may be using it in a custom theme and if so then you need to edit the theme files to add the mod to them...see http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
Title: Re: Karma Description Mod
Post by: theslam2006 on June 27, 2007, 07:49:19 PM
Please look at my picture, its the default theme (unless it changed?). Please help...I need that to work. If I have to manually do something, which file puts in that data?

Thanks in advanced.
Title: Re: Karma Description Mod
Post by: TrueSatan on June 27, 2007, 08:21:06 PM
Your screenshot really doesn't tell me anything useful though it does make me wonder if in ACP>Server Settings you have your forum language set to something other than english (english utf8 perhaps)...if so please set it to english and see if that helps. Many mods don't work properly if the language is set to english utf8.

Your questions don't make much sense to me, to be quite frank. Was that screenshot of the ACP for instance? Did your forum work properly prior to adding the mod? Did you try it on a fresh (no mods or themes or edits installed) test forum...if not that would confirm that the mod would work for you on your hosting so it's worth doing?

If it works for you on a test forum you may have some kind of mod conflict on your main forum.

Thus far I've so little information to go on as regards your problems that I can only make these suggestions and let you respond then from your responces see if we can work towards a solution.
Title: Re: Karma Description Mod
Post by: theslam2006 on June 27, 2007, 09:39:26 PM
THanks, after reading your post I learned that I chose to download the wrong one (the utf8 one was the wrong one I am guessing). So I got the regular one, and now everything in the admin panel shows correctly.

But...now im getting a different error when I click applaud or smite:

QuoteUnable to load the 'main' template.

Thats the error. Any idea now?

Thanks.
Title: Re: Karma Description Mod
Post by: TrueSatan on June 27, 2007, 10:03:05 PM
I've not come across it myself (thankfully) but from what I've seen reported before it seems to suggest that either your download of new files was corrupt, or didn't up zip properly or you had an ftp issue when uploading files to your site.

I'd begin by removing the mod, downloading a new copy of it (perhaps via a different browser) and using that...see if the error persists...if it does more drastic measures may be needed...

If you followed (as you should always do) standard SMF advice and backed up both your files and database prior to installing any mod or theme then you could go back to your last good version otherwise you may land up having to replace all your files.

You could do this replacement by first making the backups I mentioned above then deleting all but Settings.php and Settings_bak.php in your forum root then, via ftp, adding a fresh set of files from the SMF 1.1.3 installer minus the two files I just mentioned then adding your mods again. This wouldn't affect your database so no postings etc would be lost.

Download your mods and any themes again prior to adding them. Please remember backup of your database and files is important as it allows you to reverse from problems.
Title: Re: Karma Description Mod
Post by: LunaGirl on June 28, 2007, 12:23:15 AM
I tried to install the mod. Then uninstalled again because I wanted to study it first. Now, the karma option doesn't work in my forum. It says:
Unable to load the 'main' template.

What should I do?
Title: Re: Karma Description Mod
Post by: theslam2006 on June 28, 2007, 01:29:15 AM
^^Wow lol. I wont even say anything.

Ok, well now the message got put across twice whats wrong lol.

@TrueSatan, alright, I will re-download it (try from a different location) and will manually upload it. I will report back if there are any more problems.

Thanks.
Title: Re: Karma Description Mod
Post by: TrueSatan on June 28, 2007, 04:52:49 AM
Well it looks like Grek had best have a look at this if it's a general problem with his mod.

EDIT

Just in case it's a timeout issue on your server perhaps you might try putting the mod edits into karma.php manually (based on a fresh copy of the file...get it from the relevant SMF Forum installation package for your SMF version) then uploading that file to your server.
Title: Re: Karma Description Mod
Post by: TrueSatan on June 28, 2007, 05:20:09 AM
Quote from: LunaGirl on June 28, 2007, 12:23:15 AM
I tried to install the mod. Then uninstalled again because I wanted to study it first. Now, the karma option doesn't work in my forum. It says:
Unable to load the 'main' template.

What should I do?

The mod doesn't restore the old karma.php file on uninstallation...you can either try using karma.php~ (it should be on your server) and replacing the existing karma.php with that (rename the existing one to karma.phpold then rename karma.php~ to karma.php) or upload a fresh copy from an SMF forum installation package appropriate to your SMF version.

Title: Re: Karma Description Mod
Post by: aguavisual on June 28, 2007, 07:21:33 AM
Quote¿Who can I enable default notifiy PM (personal message), for all forum's members?

<td colspan="2"><label for="enable_notify">', $txt['enable_notify'], '</label>
<select name="default_options[enable_notify]" id="none_notifier">
<option value="0"', empty($context['member']['options']['enable_notify']) ? ' selected="selected"' : '', '>', $txt['enable_notify_none'], '</option>
<option value="1"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] == 1 ? ' selected="selected"' : '', '>', $txt['enable_notify_popup'], '</option>
<option value="2"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] !=1 ? ' selected="selected"' : '', '>', $txt['enable_notify_pm'], '</option>
</select>
</td>


Thanks

Quote from: KGIII on June 26, 2007, 06:38:50 AM
Are you sure your post has to do with this topic?

sure! ;)

look an author's post:

http://www.simplemachines.org/community/index.php?topic=49088.msg751970#msg751970

Somebody can help me?
Title: Re: Karma Description Mod
Post by: ssoltz on June 28, 2007, 12:23:58 PM
Quote from: Vinspire on June 07, 2007, 01:54:21 AM
Anyway, is it possible for me to censor the name of the person who gave karma to the specific person ?

Vin,

Not sure if you got this answered. You may have to dig through this topic a bait but there is a solution that worked for me. Basically, it involves modifying the Viewkarma.template.php and creating an if then else to check for if ($user_info['is_admin']) and taking out the inappropriate columns (karmawho). I also made the comments only available for admins. I think you had to do this twice in this file but it was to long ago to remember.

Anyway, it's in this topic somewhere. Look for posts by me (someone else had the solution).

Good luck,
Title: Re: Karma Description Mod
Post by: kill3r on June 28, 2007, 05:02:55 PM
any update for 1.13 or already compatible with the latest smf version. plz help
Title: Re: Karma Description Mod
Post by: Pratt on June 28, 2007, 06:02:42 PM
I had it installed on my SMF 1.1.2 .. Updated the software with 1.1.3 and everything is still working fine... no problems...

Well, there are some errors, but they were there even before 1.1.2 (PM notifiyng not working properly, etc etc etc.).
Title: Re: Karma Description Mod
Post by: mwapnitsky on June 29, 2007, 02:01:11 PM
I installed and enabled the mod, but don't know where to look to see the log.  Any help appreciated.

Thanks.
Title: Re: Karma Description Mod
Post by: RiderRaghav on June 29, 2007, 10:58:45 PM
Will it work with smf  v1.1.3 ..... ???


Thanks in advance ;)
Title: Re: Karma Description Mod
Post by: LunaGirl on June 30, 2007, 02:01:35 AM
Quote from: TrueSatan on June 28, 2007, 05:20:09 AM
Quote from: LunaGirl on June 28, 2007, 12:23:15 AM
I tried to install the mod. Then uninstalled again because I wanted to study it first. Now, the karma option doesn't work in my forum. It says:
Unable to load the 'main' template.

What should I do?

The mod doesn't restore the old karma.php file on uninstallation...you can either try using karma.php~ (it should be on your server) and replacing the existing karma.php with that (rename the existing one to karma.phpold then rename karma.php~ to karma.php) or upload a fresh copy from an SMF forum installation package appropriate to your SMF version.



Thanks.
Title: Re: Karma Description Mod
Post by: TrueSatan on June 30, 2007, 05:13:18 AM
Quote from: mwapnitsky on June 29, 2007, 02:01:11 PM
I installed and enabled the mod, but don't know where to look to see the log.  Any help appreciated.

Thanks.

Providing that in ACP you've enabled the mod, set it appropriately and given access permissions appropriately then members would be able to go to their profiles and see links to the log file....default theme only...custom themes will (as usual) need manual editing.
Title: Re: Karma Description Mod
Post by: ibexy on June 30, 2007, 02:05:11 PM
I installed this mod and its working great. Is there a way to find out all the karma changes that occured within a date range say for example from 1 to 30 june. Any help appreaciated.  ;)
Title: Re: Karma Description Mod
Post by: TrueSatan on June 30, 2007, 02:25:43 PM
If those dates were prior to your installing the mod then they would not be in the log the mod generates so...no. If they were post your installing the mod then providing you enabled the mod and its log and had not cleared the log then...yes.
Title: Re: Karma Description Mod
Post by: ibexy on July 01, 2007, 05:12:31 AM
Thanks. Problem solved. I was looking for a way to bring up the records in a block on TP. Figured it out. Thanks.
Title: Re: Karma Description Mod
Post by: cristansolid on July 02, 2007, 08:16:21 PM
Hello members..

I Spanish..

I a problem...

I installed the mod, the ultimate version and I am a problem...

When I am going to vote karma. It leaves the following error to me:

Parse error: syntax error, unexpected $end in /var/www/w11/foro/Sources/Karma.php on line 821

   
not that to do
Title: Re: Karma Description Mod
Post by: RiderRaghav on July 02, 2007, 09:47:59 PM
I just installed 1.1.3 v and installed this mod on it ....
It worked fine ...

Thanks for it ;)
Title: Re: Karma Description Mod
Post by: Vinspire on July 03, 2007, 05:02:49 AM
I got this error. Any idea what went wrong ?

Error code

Unable to load the 'main' template.
Title: Re: Karma Description Mod
Post by: TrueSatan on July 03, 2007, 05:13:26 AM
I've seen reports of that on a lot of the mod topics...post the upgrade from SMF 1.1.2 to 1.1.3. The problem seems to be a corrupt file each time (though as I can't replicate it I can't be sure)...you may need to upload your theme files again and re edit them to put in all your mods.

I haven't seen other solutions offered so the above is my best shot at it.
Title: Re: Karma Description Mod
Post by: ibexy on July 10, 2007, 07:22:39 PM
I have this mod working perfectly on my forum but I have one problem. I want to monitor when a member achieves 100 karma points. I would like to recieve a pm once this happens. How can I do this someone please?
Title: Re: Karma Description Mod
Post by: saosangmo on July 14, 2007, 02:46:54 PM
Quote from: Vinspire on July 03, 2007, 05:02:49 AM
I got this error. Any idea what went wrong ?

Error code

Unable to load the 'main' template.

I get that message too. And when I go to Forum Error Log Area, I see below message:


2: call_user_func(ModifyKarma) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
Tệp tin: /home/xxx/public_html/yyyy/index.php
Ở dòng: 148


Line 148 is:

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());


plz help me!
Title: Re: Karma Description Mod
Post by: TrueSatan on July 14, 2007, 03:00:51 PM
I answered Vinspire above...unless anyone else can offer a better solution the same suggestion applies to your report too.
Title: Re: Karma Description Mod
Post by: saosangmo on July 14, 2007, 03:43:46 PM
thank TrueSatan
I have re-uploaded the original Karma.php of SMF 1.1.3 and edit it manual. It works well now.
But I must add 2 "}" signs at the end of Karma.php
at the end of my Karma.php is

obExit(false);
}
}
}
?>



Quote
         <search position="end"></search>
         <add><![CDATA[
}
]]></add>
      </operation>
Title: Re: Karma Description Mod
Post by: TrueSatan on July 14, 2007, 06:47:47 PM
Thanks for posting that fix Saosangmo...maybe Grek will get a chance to look at this and be able to offer some explanation or a new version.
Title: Re: Karma Description Mod
Post by: Fool I Ko on July 16, 2007, 12:43:03 PM
I have a problem. When I click applaud it just comes up with a blank screen...
Title: Re: Karma Description Mod
Post by: TrueSatan on July 16, 2007, 03:02:32 PM
@ Fool I Ko

Are you using the SMF default theme...like almost all mods this one only installs into the SMF default theme. If you are using the SMF default theme then please follow the process as though you were doing a manual installation of the mod and make sure that all files and edits are in their proper places.

If you aren't using the SMF default theme you will need to do a manual installation into your custom theme. Please see the link below for details of how to do this:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

You may also find the following link useful for details of what edits etc the mod makes:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Karma Description Mod
Post by: ragots on July 17, 2007, 03:21:29 AM
Hello,

I'm still running 1.1 RC3, and I have no intention to upgrade. Which version of Karma Description Mod should I install ?

what is the difference between those three versions of 2.3 ?

Karma_Description_Mod_ver.2.3.zip
Karma_Description_Mod_ver.2.3_RU.zip
Karma_Description_Mod_ver.2.3_RU_UTF8.zip


Which one should I install ?
Title: Re: Karma Description Mod
Post by: TrueSatan on July 17, 2007, 04:20:02 AM
v 2.3 is the most recent version and it still supports your version of SMF. The three versions you mention are the standard version, the Russian language version and the Russian language utf8 character set version. Your choice would largely depend on your need/use of the Russian language.
Title: Re: Karma Description Mod
Post by: ragots on July 17, 2007, 05:46:07 AM
Thank you for your response.
Is this MOD stable now ?
I mean 38 pages of discussion kinda makes me worry.

Title: Re: Karma Description Mod
Post by: TrueSatan on July 17, 2007, 05:51:21 AM
I use it on a number of installations without problems...the number of pages of discussion aren't a good indicator of problems so don't be put off by that...they often indicate that a mod is popular and has a lot of users with comments to make whereas a mod with very few contented users might have almost no postings relating to it.
Title: Re: Karma Description Mod
Post by: ragots on July 18, 2007, 03:03:46 AM
Ok, I installed it and it's running without a glitch on 1.1 RC3

Title: Re: Karma Description Mod
Post by: joybreezy on July 25, 2007, 10:49:43 AM
I ran into some issues with this mod.. first of all I received the following errors.  Several file not found errors.  And on one of my sites I went ahead and installed it anyway.. although it didnt seem to break anything.  I can not see the selection descriptions in the Karma setup and I do not see where it is allowing me to see karma changes on the site.  Please advise. 

Execute Modification ./Sources/Admin.php Test successful
2. Execute Modification ./Sources/Karma.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Sources/BoardIndex.php Test successful
6. Execute Modification ./Sources/Profile.php Test successful
7. Execute Modification ./Sources/ManagePermissions.php Test successful
8. Execute Modification ./Themes/default/Admin.template.php Test successful
9. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
10. Execute Modification ./Themes/default/Profile.template.php Test successful
11. Execute Modification ./Themes/default/languages/Admin.russian-utf8.php File not found
12. Execute Modification ./Themes/default/languages/ModSettings.russian-utf8.php File not found
13. Execute Modification ./Themes/default/languages/Who.russian-utf8.php File not found
14. Execute Modification ./Themes/default/languages/Help.russian-utf8.php File not found
15. Execute Modification ./Themes/default/languages/index.russian-utf8.php File not found
16. Execute Modification ./Themes/default/languages/ManagePermissions.russian-utf8.php File not found
17. Execute Modification ./Themes/default/languages/Errors.russian-utf8.php File not found
18. Execute Modification ./Themes/default/languages/Profile.russian-utf8.php File not found
19. Execute Modification ./index.php Test successful
20. Execute Code db_change.php 
21. Extract File ./Sources/Viewkarma.php 
22. Extract File ./Themes/default/Viewkarma.template.php 
23. Extract File ./Themes/default/DescriptionKarma.template.php 
Title: Re: Karma Description Mod
Post by: TrueSatan on July 25, 2007, 11:07:58 AM
Firstly the "File not found" items refer only to Russian language files so unless you use Russian in your forums they can safely be ignored.

Secondly please go to ACP>Server Settings and make sure that your forum language is set to english and not english utf8.
Title: Re: Karma Description Mod
Post by: joybreezy on July 25, 2007, 11:23:05 AM
Quote from: TrueSatan on July 25, 2007, 11:07:58 AM
Firstly the "File not found" items refer only to Russian language files so unless you use Russian in your forums they can safely be ignored.

Secondly please go to ACP>Server Settings and make sure that your forum language is set to english and not english utf8.

It is set to English.  The other choice is not on my option list.
Title: Re: Karma Description Mod
Post by: TrueSatan on July 25, 2007, 11:39:16 AM
 Assuming that in ACP>Features and Options>Karma you have enabled the mod then your problem appears to suggest that some of the edits this mod needs to make were not, in fact, made.

Please go through the mod following the process of a manual installation and check that all edits and new files are in place...the following link gives details:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

...you may also find the following helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Karma Description Mod
Post by: joybreezy on July 25, 2007, 11:47:08 AM
Quote from: TrueSatan on July 25, 2007, 11:39:16 AM
Assuming that in ACP>Features and Options>Karma you have enabled the mod then your problem appears to suggest that some of the edits this mod needs to make were not, in fact, made.

Please go through the mod following the process of a manual installation and check that all edits and new files are in place...the following link gives details:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

...you may also find the following helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Thanks for you help!!!!  I may have fixed the problem however seems the only way I can get to it is by going to an actual profile.  It doesnt show up when I click on forum stats and go to more stats.   Any ideas?
Title: Re: Karma Description Mod
Post by: joybreezy on July 25, 2007, 11:52:39 AM
Ran into another issue.. for some reason it won't load the following now when the karma is changed.   Unable to load the 'main' template.  Any ideas as to what may be causing this error?
Title: Re: Karma Description Mod
Post by: joybreezy on July 25, 2007, 12:20:32 PM
Another issue that I have run into... I dont get a box to type the reason for the karma. I think my previous issue is related to one particular site. 
Title: Re: Karma Description Mod
Post by: TrueSatan on July 25, 2007, 12:52:37 PM
Let's pick away at it:

Have you checked the permissions and the setup of the mod? Setup in ACP>Features and Options>Karma and permissions in ACP>Members>Permissions

Your "main template" issue makes me think that you have a messed up theme and may need to reload the theme files (from the SMF installation package in the case of the SMF Default theme) and reapply all your mods to it. It's not as bad a task as it sounds. That is likely to also fix your last issue.
Title: Re: Karma Description Mod
Post by: martina on August 02, 2007, 04:43:47 PM
When I go to acp and karma I can see all the check boxes but not the writing next to them.  Our karma hasn't been working for months so I don't really want to fiddle too much as I am not 100% yet (very new to smf).  Would anyone be able to do me a screen shot of acp, features and options and karma just so I can check the right boxes etc.

Thank you in advance x.
Title: Re: Karma Description Mod
Post by: TrueSatan on August 02, 2007, 06:01:50 PM
Please go to ACP&gt;Server Settings and make sure that your language is set to English and not English utf8 That is likely to fix your problem without a need for screenshots.

If you use a custom theme (any other theme than the SMF Default theme is a custom theme) you will need to manually edit the mod into it.

Please see:


http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Karma Description Mod
Post by: martina on August 03, 2007, 03:21:38 AM
Thanks for that.  I have read them but I can't work it out as I don't understand it.
Title: Re: Karma Description Mod
Post by: TrueSatan on August 03, 2007, 04:10:11 AM
If you really can't understand the editing of your custom theme then I can only suggest that you revert to using only the SMF Default theme.
Title: Re: Karma Description Mod
Post by: martina on August 03, 2007, 04:59:58 AM
I went back to the default theme and still couldn't see the writing next to the boxes so I am not sure why that happened.
Title: Re: Karma Description Mod
Post by: TrueSatan on August 03, 2007, 05:12:40 AM
If your language is set correctly then I would suggest that one or more of the files the mod tries to edit were not edited.

Prior to installing the mod did you, as you always should prior to installing or uninstalling any mod or theme, backup your database, backup your files, go to ACP>Packages>Options>Installation Options make sure that details appropriate to your hosting are set >Cleanup Permissions> "All Files Writeable" then check, via ftp, that they are indeed writeable (set to CHMOD 777 or 775 depending on the particulars of your hosting.)

Were there errors shown during the installation of the mod...if this happens do not proceed with the installation of any mod.

You now need to follow the first link I gave you previously and check to see that the mod has properly edited the files it seeks to edit then do any manual editing needed to put right any omissions...the second link i gave you is likely to help in this process.
Title: Re: Karma Description Mod
Post by: martina on August 03, 2007, 05:32:51 AM
There were no errors showing when I installed it.

I set all files to writeable but am not sure how to check on ftp if they are.

I will have another go later when the children are in bed but think this may be beyond me.
Title: Re: Karma Description Mod
Post by: asdas2 on August 03, 2007, 12:51:15 PM
ok here is the problem ...... 3 weaks ago i uploded this mod ... then i didnt work for me so i just simpy uninstall it .... and after that ... Karma thingy dosent work anymore to anyone ....
when someone click on add karma or suite thingy

we got this messsg


An Error Has Occurred!
Unable to load the 'main' template.









healp please
Title: Re: Karma Description Mod
Post by: TrueSatan on August 03, 2007, 01:06:26 PM
 In the Read Me when you install this mod it says:

QuoteDon't forget to BACKUP

It says this because the Karma.php file in the Source directory has to be changed to much...though it is also standard advice whem installing or uninstalling any mod or theme. Hopefully you will find a copy of the old Karma.php file on your server in the kdm_bak directory in the Source directory but if there is any problem with that you will need to replace the file with one from the SMF installation package and edit it if any other mods you use need to alter the file to work.
Title: Re: Karma Description Mod
Post by: Webrunner on August 20, 2007, 03:54:56 AM
First let me start by saying i love this mod and so do the members of my forums.

But I have a problem together with the SEO4SMF mod.
Both mods are heavily used on our forum. Now seo4smf is creating database errors when non admin users are looking at the karmalog of another user.

Stangely this doesn't happen when administrators look at stats or users look at their own karma stats.

The database error i get is:

Database error: Unknown column 'PM' in 'where clause'
File: /home/path_to/html/forum/Sources/Subs-Seo4SMF.php
Line: 739


I am using smf 1.1.3 and the 0.2.9.8 of seo4smf and the lates version of the karma description mod/
The forum is busy (over 2 million posts, 100000 pageviews a day) so these database errors really are a pain in the ...

Could anyone please help me solve this?
Title: Re: Karma Description Mod
Post by: Webrunner on August 20, 2007, 08:14:59 AM
I noticed that users own karma log isn't working and giving a blank page and database error when a karma was given from a PM.

Title: Re: Karma Description Mod
Post by: Webrunner on August 20, 2007, 08:54:28 AM
Going step by step. 
SEO4SMF chokes on the "PM" value in the karmalog database. A function is called to retrieve an URL for the topic/message the karma was given in. This query errors because it gets a wrong parameter (PM).

I hope to find a solution but since i am not a programmer i need any help i can get!
Title: Re: Karma Description Mod
Post by: ibexy on August 20, 2007, 10:31:14 AM
Am getting this error when I try to access the karma log:

Unknown column 'lk.Description' in 'field list'
File: /home/albert/public_html/naijaspora/forum/Sources/Viewkarma.php
Line: 91

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.3, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: Karma Description Mod
Post by: ibexy on August 20, 2007, 11:00:40 AM
Problem Solved:

Found it on this thread. Just ran the query

ALTER TABLE `YOURPREFIX_log_karma`
ADD `description` TEXT NOT NULL


http://www.simplemachines.org/community/index.php?topic=49088.340 (http://www.simplemachines.org/community/index.php?topic=49088.340)
Title: Re: Karma Description Mod
Post by: Webrunner on August 20, 2007, 11:16:47 AM
Quote from: GC on February 21, 2007, 08:41:38 PM
Hello I have an error with this mod. Its not fixable by the maker of another mod that makes the error stand out. Whats wrong?

Error:
Database Error: Unknown column 'PM' in 'where clause'
File: /home/12985/public_html/forums/Sources/Subs-Seo4SMF.php
Line: 480


and that area is
if (isset($modSettings['seo4smf_split_char']))
$split_char=$modSettings['seo4smf_split_char'];
    else
$split_char="_";

$request = db_query("SELECT m.subject,b.name
      FROM {$db_prefix}messages as m left join {$db_prefix}boards as b on m.ID_BOARD=b.ID_BOARD where m.ID_TOPIC=".$topic_id." LIMIT 1", __FILE__, __LINE__);
list($subject,$board)=mysql_fetch_row($request);
mysql_free_result($request);


line 480 is
FROM {$db_prefix}messages as m left join {$db_prefix}boards as b on m.ID_BOARD=b.ID_BOARD where


should PM be there somewhere?

Seems i am not the only one with this problem :(
Title: Re: Karma Description Mod
Post by: Bigguy on August 20, 2007, 10:45:16 PM
Are permissions and ownership set right on all files.

Quote from: Webrunner on August 20, 2007, 08:14:59 AM
I noticed that users own karma log isn't working and giving a blank page and database error when a karma was given from a PM.


Title: Re: Karma Description Mod
Post by: SneakyWho_am_i on August 20, 2007, 11:03:42 PM
Quote from: Webrunner on August 20, 2007, 11:16:47 AM
Quote from: GC on February 21, 2007, 08:41:38 PM
line 480 is
FROM {$db_prefix}messages as m left join {$db_prefix}boards as b on m.ID_BOARD=b.ID_BOARD where

should PM be there somewhere?

Strange. I have a forum with Seo4SMF and in my Subs file for it, that string is on a completely different line - and I'm running the same version.


NB ALL ALTERATIONS LISTED BELOW ARE IN Subs-Seo4SMF.php UNLESS OTHERWISE NOTED
IFF the permissions are all good, THEN see if this helps.... Find:
    $excluded_actions = array('search2', 'keepalive', 'diradmin', 'seo4smfsitemaps');

Replace:
    $excluded_actions = array('search2', 'modifykarma', 'pm', 'keepalive', 'diradmin', 'seo4smfsitemaps');

It won't be an end-all and cure-all. I'm going to install both mods on a test forum and try to replicate your error. I'm no expert on Seo4SMF and I don't even have the karma description mod installed (yet) but I've had issues with Seo4SMF before so I have a couple of ideas about what might be going wrong. My word is not gospel.

What is in the address bar when the error is displayed? (Oh... Minus the "sesc" bit of course...)

I get an error for this due to SQL syntax (although it's not important, this is just an example url):
http://sneakywhoami.com/testdrivesmf/index.php?action=modifykarma;sa=applaud;uid=2;f=inbox;start=0;;pm=1

Ok. I installed Seo4SMF 2.9.9 with Karma Description Mod ver.2.3 on SMF 1.1.2 patched to 1.1.3
I now have both mods installed AND I can modify Karma BUT it's not asking me for a description...

I did this:
Quote
IFF the permissions are all good, THEN see if this helps.... Find in Subs-Seo4SMF.php:
    $excluded_actions = array('search2', 'keepalive', 'diradmin', 'seo4smfsitemaps');

Replace:
    $excluded_actions = array('search2', 'modifykarma', 'pm', 'keepalive', 'diradmin', 'seo4smfsitemaps');

Which produced an error because the Seo4SMF signs array is dodgey...

So I changed the line beginning with
    $signs = array("Re :", "Re:", "re:", "re :","~", "`", "!", "@", "#", "%body%quot;, "%", "^", "&", "*", "(", ")", "_", "+", "|", "\\", "=", "-", "{", "}", "[", "]", ":", "\"", ";", "'", "<", ">", "?", ",", ".", "/","°","º","","©","®","",

in Subs-Seo4SMF.php to read:
    $signs = array("Re :", "Re:", "re:", "re :","~", "`", "!", "@", "#", "%body%quot;, "%", "^", "&", "*", "(", ")", "_", "+", "|", "\\", "=", "-", "{", "}", "[", "]", ":", "\"", ";", "'", "<", ">", "?", ",", ".", "/","°","º","","©","®","","","","æ","","","","±","·","b,","¯");

And then I encountered a further error elsewhere and turned off some option (I don't know what it does!!!! Did I disable the Karma mod by doing it!?) in Karma.php:

I found (in Karma.php):
        // Users can change karma to only topic starter if you check this function
        if (!empty($modSettings['karmatopicstarter']))


And replaced with:
        // Users can change karma to only topic starter if you check this function
        if (empty($modSettings['karmatopicstarter']))



Why I don't know what it does? Well... The Karma Description Mod installed fine on the default template in English, but no descriptions if the checkbox functions appear in the admin panel. So i see a row of checkboxes without labels and have to guess at what they do for some reason.
The mod installed without errors so it's beyond me.

I'm not sure what effect my changes will have on your particular forum - your mileage may vary.
But it does allow me to have both mods installed AND modify karma. Which is a start, at least.
Title: Re: Karma Description Mod
Post by: Webrunner on August 21, 2007, 03:52:39 AM
First you have to activate the comments, or they won't show up.

I know now where the problem is but i can's solve it.
The karma desc mod can show a link where the karma was given (what topic/post). This link is build up from a field from the karmalog table where the topic and message ID are saved of the message where you klik the "applaud" or "smite" link.
The problem arises when people give a karma from a Personal Message. Then the link value that is saved is "PM". This makes SEO4SMF choke when it tries to create the URL.

As a workaround i removed the ability to give karma in a Personal Message and removed all the records with "PM" in the link field.
This works now and the database errors don't appear anymore.

However this is not a real solution.
Hope this helps a bit.
Title: Re: Karma Description Mod
Post by: Webrunner on August 21, 2007, 03:53:17 AM
And... thanks for your help! ;)
Title: Re: Karma Description Mod
Post by: ragots on August 24, 2007, 04:30:25 PM
How do I reset all karmas to zéro ?

I installed this Mod. It's working fine. But now members would like me to reset all karma to zéro. Is there a way to do that ? I'm not too good at phpmyadmin, so please explain thoroughly.

Thank you for any help

Title: Re: Karma Description Mod
Post by: qtime on August 25, 2007, 02:17:48 AM
Quote from: ragots on August 24, 2007, 04:30:25 PM
How do I reset all karmas to zéro ?

I installed this Mod. It's working fine. But now members would like me to reset all karma to zéro. Is there a way to do that ? I'm not too good at phpmyadmin, so please explain thoroughly.

Thank you for any help


go to the profile and click: Forum Profile Information
scroll down and here  you see Karma
Title: Re: reset karma to 0 for all members
Post by: ragots on August 25, 2007, 05:20:12 AM
How to reset karma to all members to 0 for a new beginning


Thank you. I did it. I think it may help others wanting to reset karma for all members to 0.



You log to your phpmyadmin and you select your database:



First you go to phpmyadmin, you clck on SQL:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpeter.north.free.fr%2Ffilechute%2Fsql-smf-members.jpg&hash=b09a82b1affcdd78c7e19e71eea81ab3e0af5413)





I the field you see, erase whatever you see there and type this:

QuoteUPDATE smf_members SET karmaGood = '0', karmaBad = '0';


here it is:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpeter.north.free.fr%2Ffilechute%2Fsql-smf-members2.jpg&hash=9101a098e2348f2bcefbeaad2208b9f093c3e754)






And you click go:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpeter.north.free.fr%2Ffilechute%2Fsql-smf-members3.jpg&hash=c73a3e031b0cbb2b86c82f3406abf92ae0298521)









That's it.
Title: Re: Karma Description Mod
Post by: qtime on August 25, 2007, 06:33:36 AM
oh sorry, I did not read it correctly.
Title: Re: Karma Description Mod
Post by: burningboardroom on August 28, 2007, 09:15:36 AM
Can someone please explain how to use this with 1.1.3?  I've downloaded it and it says it was successful, but the mod is not showing up.
Title: Re: Karma Description Mod
Post by: slackerpunk on August 28, 2007, 10:31:04 AM
Quote from: burningboardroom on August 28, 2007, 09:15:36 AM
Can someone please explain how to use this with 1.1.3?  I've downloaded it and it says it was successful, but the mod is not showing up.

check the user profile it should show up or you have to set it up first under Admin check Karma to enable the mod
Title: Re: Karma Description Mod
Post by: ragots on August 30, 2007, 02:10:49 AM
The IN TOPIC link opens a new page, I'd like it not to open a new page. How do I do that ?

Which file do I change that to _target="_parent"  ?
Title: Re: Karma Description Mod
Post by: ragots on August 30, 2007, 02:20:56 AM
Never mind. I found where. I looked in viewkarma.template.php and I changed all the target=_blank to target=_parent
Title: Re: Karma Description Mod
Post by: Dem0n on September 04, 2007, 03:10:19 AM
I get the following error :

Warning: Unterminated comment starting line 328 in .../Themes/simplywhite/BoardIndex.template.php on line 328

Parse error: parse error, unexpected $ in .../Themes/simplywhite/BoardIndex.template.php on line 328

319: echo '
320: (<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
321: }
322: echo '
323: </span>
324: </td>
325: </tr>';
326: }
327:

328:

329: <br /><br />
330: <br />
331: <br /><br />
332: <br />


I tried removing the comment tag, and it just created another error. Any advice?
Title: Re: Karma Description Mod
Post by: TrueSatan on September 04, 2007, 04:23:24 AM
If you switch to the SMF Default theme does the mod work properly? If it does then please review the edits you have made to make it work in your custom theme.
Title: Re: Karma Description Mod
Post by: Dem0n on September 04, 2007, 01:24:13 PM
Quote from: TrueSatan on September 04, 2007, 04:23:24 AM
If you switch to the SMF Default theme does the mod work properly? If it does then please review the edits you have made to make it work in your custom theme.

I have made the edits on all themes, but this theme is giving me that specific error.
Title: Re: Karma Description Mod
Post by: TrueSatan on September 04, 2007, 03:24:05 PM
Please query the theme developer on the topic for that theme.
Title: Re: Karma Description Mod
Post by: Dem0n on September 04, 2007, 05:48:49 PM
Quote from: TrueSatan on September 04, 2007, 03:24:05 PM
Please query the theme developer on the topic for that theme.

Well if it is the MOD that is causing these issues with the boardindex file, shouldn't I query the mod author/mod topic for support? I would think so. :)
Title: Re: Karma Description Mod
Post by: TrueSatan on September 04, 2007, 08:11:38 PM
You have chosen to use a theme that is causing problems that don't exist with other themes...the mod is only required to work with the SMF default theme in any case (this is true for all mods) and therefore if you want help in sorting out why that particular theme won't work when others will you'd best ask the theme developer...
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on September 09, 2007, 12:05:27 AM
i accidentally installed the russian version...then uninstalled it...and now i get this message when trying to applaud and smite "Unable to load the 'main' template."
i installed the right one and it still says it

this mightent have happened if i knew which file i was supposed to download

how do i fix it please?
Title: Re: Karma Description Mod
Post by: TrueSatan on September 09, 2007, 05:01:34 AM
 Firstly did you pay any attention to the text shown on installation where it says "Don't forget to BACKUP, please."...it's there for a reason!

You appear to have so mangled your karma.php file in your source directory that you may be best uninstalling the mod, renaming your current karma.php to karma.phpold, copying the karma.php from the karma_bak directory to the source directory and seeing if that cures the problem...it may not.

If that doesn't work you may need to get a fresh copy of the karma.php file from the SMF installation package (download it if you don't already have it) and copy that to your source directory...if things then work properly do the backup this time, backup both your files and your database and install the mod again.

You should always backup files and database before installing or uninstalling any mods or themes.

If you use other mods that edited the karma.php file and you have to replace it with a fresh copy then the edits these mods made will have been lost and so you'll need to do them again manually.
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on September 09, 2007, 01:17:58 PM
Quote from: TrueSatan on September 09, 2007, 05:01:34 AM
Firstly did you pay any attention to the text shown on installation where it says "Don't forget to BACKUP, please."...it's there for a reason!
i did back it up. theres been alot of posts since then though, so im not too hot on restoring.
ill see what happens
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on September 09, 2007, 01:36:00 PM
okay its fixed
thankyou :D

Title: Re: Karma Description Mod
Post by: Jade Elizabeth on September 09, 2007, 02:41:37 PM
okay....how do i view the log?
Title: Re: Karma Description Mod
Post by: TrueSatan on September 09, 2007, 03:25:35 PM
 Please note in my previous reply I advised that you not only back up your database but your files as well...your reply suggests that you ignored that advice.

Please look at the settings in your ACP...such matters as viewing the log will be obvious enough if you set it in such a way as to generate a log and then experiment with the mod....you would be best to test new, to you, mods in a test forum before deploying them to a live/production forum.

Title: Re: Karma Description Mod
Post by: Jade Elizabeth on September 09, 2007, 03:47:18 PM
i did, i backed everything up.
and ran maintenance checks etc

im good now ;)
Title: Re: Karma Description Mod
Post by: bassbass on September 10, 2007, 01:23:46 AM
It installed okay, i am using default theme in 1.1.3 version.  i tried to uninstall and got this error,

     "Execute Modification ./Sources/Karma.php Test failed"

I have the following Mods installed,

Mod Name Version 
1. SMF Staff Page 1.5.1   [ Uninstall ] [ List Files ] [ Delete ] 
2. Ad Managment 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
3. Bookmarks 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
4. SMF Gallery Lite 1.8   [ Uninstall ] [ List Files ] [ Delete ] 
5. SMF Links 1.6.5   [ Uninstall ] [ List Files ] [ Delete ] 
6. Enhanced Quick Reply Box 2.0 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
7. Karma Applaud Only 1.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
8. Invite 1.14   [ Uninstall ] [ List Files ] [ Delete ] 
9. EmailFlash 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
10. Advanced Visual Verification 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
11. Enhanced Calendar 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
12. Order News 1.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
13. Popup PM Message - Uses The Same Window 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
14. Karma Description Mod 2.3   [ Uninstall ] [ List Files ] [ Delete ] 


what can i do to fix this?  thank in advance.
Title: Re: Karma Description Mod
Post by: TrueSatan on September 10, 2007, 05:41:15 AM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Karma Description Mod
Post by: bassbass on September 10, 2007, 01:35:25 PM
Thanks TrueSatan. now that i have been playing with for awhile i kinda like it, the only reason i thought of uninstalling it is because i couldn't automatically uninstall it, i thought maybe it will conflict with other mods.   I looked at the infoamation you suggested, and to uninstall it manullay look like byond my ability.   the only file that the tast faild was,

"Execute Modification ./Sources/Karma.php Test failed"

is there something i can change in the code of Karma.php to make it pass the test? here is current code,

<?php
/**********************************************************************************
* Karma.php                                                                       *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file contains one humble function, which applauds or smites a user.

void ModifyKarma()
- gives or takes karma from a user.
- redirects back to the referrer afterward, whether by javascript or
  the passed parameters.
- requires the karma_edit permission, and that the user isn't a guest.
- depends on the karmaMode, karmaWaitTime, and karmaTimeRestrictAdmins
  settings.
- is accessed via ?action=modifykarma.
*/

function ModKarm()
{
        global 
$modSettings$db_prefix$txt$ID_MEMBER$user_info$topic$options$scripturl;

        
// If the mod is disabled, show an error.
        
if (empty($modSettings['karmaMode']))
                
fatal_lang_error('smf63');

        
// If you're a guest or can't do this, blow you off...
        
is_not_guest();
        
isAllowedTo('karma_edit');

        
checkSession('get');

        
// If you don't have enough posts, tough luck.
        // !!! Should this be dropped in favor of post group permissions?  Should this apply to the member you are smiting/applauding?
        
if ($user_info['posts'] < $modSettings['karmaMinPosts'])
                
fatal_error($txt['smf60'] . $modSettings['karmaMinPosts'] . '.');

        
// And you can't modify your own, punk! (use the profile if you need to.)
        
if (empty($_REQUEST['uid']) || (int) $_REQUEST['uid'] == $ID_MEMBER)
                
fatal_lang_error('smf61'false);

        
// The user ID _must_ be a number, no matter what.
        
$_REQUEST['uid'] = (int) $_REQUEST['uid'];

        
// Applauding or smiting?
        
$dir $_REQUEST['sa'] != 'applaud' ? -1;

        
// Users can change karma to only topic starter if you check this function
        
if (!empty($modSettings['karmatopicstarter']))
        {
        
$request db_query("
                        SELECT ID_MEMBER_STARTED
                        FROM 
{$db_prefix}topics
                        WHERE ID_TOPIC = 
$_REQUEST[topic]
                        LIMIT 1"
__FILE____LINE__);
        
$row mysql_fetch_row($request);
                
mysql_free_result($request);
        if (
$_REQUEST['uid'] != $row[0] && $user_info['is_admin']!=1)
              
fatal_lang_error('karma_not_topic_starter'false);
        }

        
//This users karma can't be changed
        
if (empty($modSettings['karmacantmodify'])) $modSettings['karmacantmodify']='';

             
$array_value explode (','$modSettings['karmacantmodify']);
             if (
in_array(($_REQUEST['uid']), $array_value))
                
fatal_lang_error('karma_cant_modify'false);

        
//This users can't changed karma to other users
        
if (empty($modSettings['karmacantmodify2'])) $modSettings['karmacantmodify2']='';

             
$array_value2 explode (','$modSettings['karmacantmodify2']);
             if (
in_array($ID_MEMBER$array_value2))
                
fatal_lang_error('karma_cant_modify2'false);

  // Start off with no change in karma.
        
$action 0;

        (!isset(
$modSettings['karmawhatwrite'])) ? $Description='' $Description=$modSettings['karmawhatwrite'];


          
// Not an administrator... or one who is restricted as well.
        
if (!empty($modSettings['karmaTimeRestrictAdmins']) || !allowedTo('moderate_forum'))
        {
                
// Find out if this user has done this recently...
                
$request db_query("
                        SELECT action
                        FROM 
{$db_prefix}log_karma
                        WHERE ID_TARGET = 
$_REQUEST[uid]
                                AND ID_EXECUTOR = 
$ID_MEMBER
                        LIMIT 1"
__FILE____LINE__);
                if (
mysql_num_rows($request) > 0)
                        list (
$action) = mysql_fetch_row($request);
                
mysql_free_result($request);
        }

        
// They haven't, not before now, anyhow.
        
if (empty($action) || empty($modSettings['karmaWaitTime']))
        {
                
//Prepare link
                    
if (isset ($_REQUEST['topic'])) {
                         
$link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         
$link AddSlashes($link);
                         }
                elseif (isset(
$_REQUEST['f'])) {
                         
$link 'PM';
                         }

                
// Put it in the log.
                
db_query("
                        INSERT INTO 
{$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES (
$dir$_REQUEST[uid], '$Description', '$link', $ID_MEMBER, "time()." )
                        "
__FILE____LINE__);

                
// Change by one.
                
updateMemberData($_REQUEST['uid'], array($dir == 'karmaGood' 'karmaBad' => '+'));
        }
        else
        {       
$request db_query("
                                        SELECT logTime
                                        FROM 
{$db_prefix}log_karma
                                        WHERE ID_TARGET=
$_REQUEST[uid]
                                        AND ID_EXECUTOR=
$ID_MEMBER
                                        ORDER BY logTime DESC
                                        LIMIT 1
                                        "
__FILE____LINE__);
                
$row mysql_fetch_assoc($request);
                
mysql_free_result($request);

                
$restricttime time() - $row['logTime'];
                
$timelog = (int) ($modSettings['karmaWaitTime'] * 3600);

                
// If you are gonna try to repeat.... don't allow it.
                
if ($restricttime $timelog)
                        
fatal_error($txt['smf62'] . ' ' $modSettings['karmaWaitTime'] . ' ' $txt[578] . '.'false);

                
//Prepare link
                    
if (isset ($_REQUEST['topic'])) {
                         
$link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         
$link AddSlashes($link);
                         }
                elseif (isset(
$_REQUEST['f'])) {
                         
$link 'PM';
                         }

                
// You decided to go back on your previous choice?
                
db_query("
                        INSERT INTO 
{$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES (
$dir$_REQUEST[uid], '$Description', '$link', $ID_MEMBER, "time()." )
                        "
__FILE____LINE__);

                
// It was recently changed the OTHER way... so... reverse it!
                
if ($dir == 1)
                        
updateMemberData($_REQUEST['uid'], array('karmaGood' => '+'));
                else
                        
updateMemberData($_REQUEST['uid'], array('karmaBad' => '+'));
        }

$request db_query("
SELECT value
FROM 
{$db_prefix}themes
WHERE variable='enable_notify'
AND ID_MEMBER=
$_REQUEST[uid]
"
__FILE____LINE__);
$row mysql_fetch_row($request);
mysql_free_result($request);

if (isset($modSettings['karmanotifier']) && !$user_info['is_guest'] && ($row['0'])==2)
        
{
        
$link=='PM' $url=$scripturl.'?action=pm' $url=$scripturl.'?topic='.$link;
     
if ($modSettings['karma_pm_send_link'])
if ($modSettings['karma_pm_send_changelink'])
{
$karma_pm_body $txt['karma_pm_body'].$txt['karma_pm_body2'].$_REQUEST['uid'].$txt['karma_pm_send_changelink'].$url;
}
else
{
$karma_pm_body $txt['karma_pm_body'].$txt['karma_pm_body2'].$_REQUEST['uid'];
}
else
$karma_pm_body $txt['karma_pm_body'];

db_query("
INSERT INTO 
{$db_prefix}personal_messages
(ID_MEMBER_FROM, deletedBySender, fromName, subject, body, msgtime)
VALUES (SUBSTRING('
$modSettings[karmaidmember]',1,255), '1', 'Admin', SUBSTRING('$txt[karma_pm_subject]', 1, 255), SUBSTRING('$karma_pm_body', 1, 65534), " time() . ")
"
__FILE____LINE__);

$ID_PM db_insert_id();
$ID_PM2 $_REQUEST['uid'];

db_query("
INSERT INTO 
{$db_prefix}pm_recipients
(ID_PM, ID_MEMBER)
VALUES (
$ID_PM$ID_PM2)"__FILE____LINE__);

db_query("
UPDATE 
{$db_prefix}log_karma
SET is_read=1
WHERE is_read=0
AND ID_TARGET=
$_REQUEST[uid]
"
__FILE____LINE__);

updateMemberData($_REQUEST['uid'], array('instantMessages' => '+''unreadMessages' => '+'));

}

        
// Figure out where to go back to.... the topic?
        
if (isset($topic))
                
redirectexit('topic=' $topic '.' $_REQUEST['start'] . '#msg' $_REQUEST['m']);
        
// Hrm... maybe a personal message?
        
elseif (isset($_REQUEST['f']))
                
redirectexit('action=pm;f=' $_REQUEST['f'] . ';start=' $_REQUEST['start'] . (isset($_REQUEST['l']) ? ';l=' $_REQUEST['l'] : '') . (isset($_REQUEST['pm']) ? '#' $_REQUEST['pm'] : ''));

          else
        {
                echo 
'
<html>
        <head>
                <title>...</title>
                <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                        history.go(-1);
                // ]'
,']></script>
        </head>
        <body>&laquo;</body>
</html>'
;

                
obExit(false);
        }
}


// Modify a user's karma.
function ModifyKarma()
{
global $modSettings$db_prefix$txt$ID_MEMBER$user_info$topic$scripturl;

// If the mod is disabled, show an error.
if (empty($modSettings['karmaMode']))
fatal_lang_error('smf63');

        if (!empty($modSettings['karmasurv']))
                
ModKarm();
// If you're a guest or can't do this, blow you off...
is_not_guest();
isAllowedTo('karma_edit');

checkSession('get');

// If you don't have enough posts, tough luck.
// !!! Should this be dropped in favor of post group permissions?  Should this apply to the member you are smiting/applauding?
if ($user_info['posts'] < $modSettings['karmaMinPosts'])
fatal_error($txt['smf60'] . $modSettings['karmaMinPosts'] . '.');

// And you can't modify your own, punk! (use the profile if you need to.)
if (empty($_REQUEST['uid']) || (int) $_REQUEST['uid'] == $ID_MEMBER)
fatal_lang_error('smf61'false);

// The user ID _must_ be a number, no matter what.

if($_REQUEST['sa'] == 'smite')
fatal_error('Sorry, that is an invalid operation!'false);
$_REQUEST['uid'] = (int) $_REQUEST['uid'];

// Applauding or smiting?
$dir $_REQUEST['sa'] != 'applaud' ? -1;
        
// Users can change karma to only topic starter if you check this function
        
if (!empty($modSettings['karmatopicstarter']))
        {
        
$request db_query("
                        SELECT ID_MEMBER_STARTED
                        FROM 
{$db_prefix}topics
                        WHERE ID_TOPIC = 
$_REQUEST[topic]
                        LIMIT 1"
__FILE____LINE__);
        
$row mysql_fetch_row($request);
                
mysql_free_result($request);
        if (
$_REQUEST['uid'] != $row[0] && $user_info['is_admin']!=1)
              
fatal_lang_error('karma_not_topic_starter'false);
        }


//Loading Template of Description
if (!empty($modSettings['karmadescmod'])){
        
loadTemplate('DescriptionKarma');}

        
//Prepare some variables
        
$context['page_title'] = $txt['viewkarma_title'];
        
$context['linktree'][] = array(
            
'url' => $scripturl '?action=modifykarma',
            
'name' => $txt['viewkarma_title'] );

        
//This users karma can't be changed
        
if (empty($modSettings['karmacantmodify'])) $modSettings['karmacantmodify']='';

             
$array_value explode (','$modSettings['karmacantmodify']);
             if (
in_array(($_REQUEST['uid']), $array_value))
                
fatal_lang_error('karma_cant_modify'false);

        
//This users can't changed karma to other users
        
if (empty($modSettings['karmacantmodify2'])) $modSettings['karmacantmodify2']='';

             
$array_value2 explode (','$modSettings['karmacantmodify2']);
             if (
in_array($ID_MEMBER$array_value2))
                
fatal_lang_error('karma_cant_modify2'false);

// Start off with no change in karma.
$action 0;

// Not an administrator... or one who is restricted as well.
if (!empty($modSettings['karmaTimeRestrictAdmins']) || !allowedTo('moderate_forum'))
{
// Find out if this user has done this recently...
$request db_query("
SELECT action
FROM 
{$db_prefix}log_karma
WHERE ID_TARGET = 
$_REQUEST[uid]
AND ID_EXECUTOR = 
$ID_MEMBER
LIMIT 1"
__FILE____LINE__);
if (mysql_num_rows($request) > 0)
list ($action) = mysql_fetch_row($request);
mysql_free_result($request);
}

// They haven't, not before now, anyhow.

/*
if (empty($action) || empty($modSettings['karmaWaitTime']))
{
// Put it in the log.
db_query("
REPLACE INTO {$db_prefix}log_karma
(action, ID_TARGET, ID_EXECUTOR, logTime)
VALUES ($dir, $_REQUEST[uid], $ID_MEMBER, " . time() . ')', __FILE__, __LINE__);

// Change by one.
updateMemberData($_REQUEST['uid'], array($dir == 1 ? 'karmaGood' : 'karmaBad' => '+'));
}
else
{
// If you are gonna try to repeat.... don't allow it.
if ($action == $dir)
fatal_error($txt['smf62'] . ' ' . $modSettings['karmaWaitTime'] . ' ' . $txt[578] . '.', false);

// You decided to go back on your previous choice?
db_query("
UPDATE {$db_prefix}log_karma
SET action = $dir, logTime = " . time() . "
WHERE ID_TARGET = $_REQUEST[uid]
AND ID_EXECUTOR = $ID_MEMBER
LIMIT 1", __FILE__, __LINE__);


*/
/* They haven't, not before now, anyhow.
           If the key isn't in the array it will return.
           Or if it does exist and it's length is 0 then it will return.
           If Karma Description Mod disable then easy smite or applaud */
if (!empty($modSettings['karmadescmod']))
{
     if (!
array_key_exists('Description',$_POST) || strlen($_POST["Description"]) == 0){return;}
}
else
{
        
$_POST['Description']='';
}
{ if (empty(
$action) || empty($modSettings['karmaWaitTime']))
        { 
$_POST['Description'] = AddSlashes($_POST['Description']);
          if (!empty(
$modSettings['karmacensor']))
          
censorText($_POST['Description']);
      
//Prepare link
    if (isset ($_REQUEST['topic'])) {
                         
$link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         
$link AddSlashes($link);
                         }
                elseif (isset(
$_REQUEST['f'])) {
                         
$link 'PM';
                         }

// Put it in the log.
                
db_query("
                        INSERT INTO 
{$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES (
$dir$_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, "time()." )
                        "
__FILE____LINE__);
// Change by one.
updateMemberData($_REQUEST['uid'], array($dir == 'karmaGood' 'karmaBad' => '+'));
}
else
{
$request db_query("
SELECT logTime
FROM 
{$db_prefix}log_karma
WHERE ID_TARGET=
$_REQUEST[uid]
AND ID_EXECUTOR=
$ID_MEMBER
ORDER BY logTime DESC
LIMIT 1
"
__FILE____LINE__);
$row mysql_fetch_assoc($request);
mysql_free_result($request);

$restricttime time() - $row['logTime'];
$timelog = (int) ($modSettings['karmaWaitTime'] * 3600);

// If you are gonna try to repeat.... don't allow it.
if ($restricttime $timelog)
fatal_error($txt['smf62'] . ' ' $modSettings['karmaWaitTime'] . ' ' $txt[578] . '.'false);

//Prepare link
    if (isset ($_REQUEST['topic'])) {
                         
$link = ($_REQUEST['topic']).'.msg'.($_REQUEST['m']).'#'.'msg'.($_REQUEST['m']);
                         
$link AddSlashes($link);
                         }
                elseif (isset(
$_REQUEST['f'])) {
                         
$link 'PM';
                         }

// You decided to go back on your previous choice?
db_query("
INSERT INTO 
{$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES (
$dir$_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, "time()." )
                        "
__FILE____LINE__);

// It was recently changed the OTHER way... so... reverse it!
if ($dir == 1)
updateMemberData($_REQUEST['uid'], array('karmaGood' => '+'));
else
updateMemberData($_REQUEST['uid'], array('karmaBad' => '+'));
}
}

$request db_query("
SELECT value
FROM 
{$db_prefix}themes
WHERE variable='enable_notify'
AND ID_MEMBER=
$_REQUEST[uid]
"
__FILE____LINE__);
$row mysql_fetch_row($request);
mysql_free_result($request);

if (isset($modSettings['karmanotifier']) && !$user_info['is_guest'] && ($row['0'])==2)
        
{
$link=='PM' $url=$scripturl.'?action=pm' $url=$scripturl.'?topic='.$link;


if ($modSettings['karma_pm_send_link'])
if ($modSettings['karma_pm_send_desc'])
{
$karma_pm_body_with $txt['karma_pm_body'].$txt['karma_pm_body2'].$_REQUEST['uid'].$txt['karma_pm_send_desc2'].$_POST['Description'].$txt['karma_pm_send_changelink'].$url;
}
else
{
$karma_pm_body_with $txt['karma_pm_body'].$txt['karma_pm_body2'].$_REQUEST['uid'].$txt['karma_pm_send_changelink'].$url;
}
else
if ($modSettings['karma_pm_send_desc'])
{
$karma_pm_body_with $txt['karma_pm_body'].$txt['karma_pm_send_desc2'].$_POST['Description'].$txt['karma_pm_send_changelink'].$url;
}
else
{
$karma_pm_body_with $txt['karma_pm_body'].$txt['karma_pm_send_changelink'].$url;
}

if ($modSettings['karma_pm_send_link'])
if ($modSettings['karma_pm_send_desc'])
{
$karma_pm_body_without $txt['karma_pm_body'].$txt['karma_pm_body2'].$_REQUEST['uid'].$txt['karma_pm_send_desc2'].$_POST['Description'];
}
else
{
$karma_pm_body_without $txt['karma_pm_body'].$txt['karma_pm_body2'].$_REQUEST['uid'];
}
else
if ($modSettings['karma_pm_send_desc'])
{
$karma_pm_body_without $txt['karma_pm_body'].$txt['karma_pm_send_desc2'].$_POST['Description'];
}
else
{
$karma_pm_body_without $txt['karma_pm_body'];
}

$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;

db_query("
INSERT INTO 
{$db_prefix}personal_messages
(ID_MEMBER_FROM, deletedBySender, fromName, subject, body, msgtime)
VALUES (SUBSTRING('
$modSettings[karmaidmember]',1,255), '1', 'Admin', SUBSTRING('$txt[karma_pm_subject]', 1, 255), SUBSTRING('$karma_pm_body', 1, 65534), " time() . ")
"
__FILE____LINE__);

$ID_PM db_insert_id();
$ID_PM2 $_REQUEST['uid'];

db_query("
INSERT INTO 
{$db_prefix}pm_recipients
(ID_PM, ID_MEMBER)
VALUES (
$ID_PM$ID_PM2)"__FILE____LINE__);

db_query("
UPDATE 
{$db_prefix}log_karma
SET is_read=1
WHERE is_read=0
AND ID_TARGET=
$_REQUEST[uid]
"
__FILE____LINE__);

updateMemberData($_REQUEST['uid'], array('instantMessages' => '+''unreadMessages' => '+'));

}
// Figure out where to go back to.... the topic?
if (isset($topic))
redirectexit('topic=' $topic '.' $_REQUEST['start'] . '#msg' $_REQUEST['m']);
// Hrm... maybe a personal message?
elseif (isset($_REQUEST['f']))
redirectexit('action=pm;f=' $_REQUEST['f'] . ';start=' $_REQUEST['start'] . (isset($_REQUEST['l']) ? ';l=' $_REQUEST['l'] : '') . (isset($_REQUEST['pm']) ? '#' $_REQUEST['pm'] : ''));
// JavaScript as a last resort.
/*

else
{
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>...</title>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
history.go(-1);
// ]]></script>
</head>
<body>&laquo;</body>
</html>';

obExit(false);
}
}

*/
// What's this?  I dunno, what are you talking about?  Never seen this before, nope.  No siree.
function BookOfUnknown()
{
global $context;

if (strpos($_GET['action'], 'mozilla') !== false && !$context['browser']['is_gecko'])
redirectexit('http://www.getfirefox.com/');
elseif (strpos($_GET['action'], 'mozilla') !== false)
redirectexit('about:mozilla');

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>The Book of Unknown, '
, @$_GET['verse'] == '2:18' '2:18' '4:16''</title>
<style type="text/css">
em
{
font-size: 1.3em;
line-height: 0;
}
</style>
</head>
<body style="background-color: #444455; color: white; font-style: italic; font-family: serif;">
<div style="margin-top: 12%; font-size: 1.1em; line-height: 1.4; text-align: center;">'
;
if (@$_GET['verse'] == '2:18')
echo '
Woe, it was that his name wasn\'t <em>known</em>, that he came in mystery, and was recognized by none.&nbsp;And it became to be in those days <em>something</em>.&nbsp; Something not yet <em id="unknown" name="[Unknown]">unknown</em> to mankind.&nbsp; And thus what was to be known the <em>secret project</em> began into its existence.&nbsp; Henceforth the opposition was only <em>weary</em> and <em>fearful</em>, for now their match was at arms against them.'
;
else
echo '
And it came to pass that the <em>unbelievers</em> dwindled in number and saw rise of many <em>proselytizers</em>, and the opposition found fear in the face of the <em>x</em> and the <em>j</em> while those who stood with the <em>something</em> grew stronger and came together.&nbsp; Still, this was only the <em>beginning</em>, and what lay in the future was <em id="unknown" name="[Unknown]">unknown</em> to all, even those on the right side.'
;
echo '
</div>
<div style="margin-top: 2ex; font-size: 2em; text-align: right;">'
;
if (@$_GET['verse'] == '2:18')
echo '
from <span style="font-family: Georgia, serif;"><strong><a href="http://www.unknownbrackets.com/about:unknown" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 2:18</span>'
;
else
echo '
from <span style="font-family: Georgia, serif;"><strong><a href="http://www.unknownbrackets.com/about:unknown" style="color: white; text-decoration: none; cursor: text;">The Book of Unknown</a></strong>, 4:16</span>'
;
echo '
</div>
</body>
</html>'
;

obExit(false);
}

}

?>
Title: Re: Karma Description Mod
Post by: TrueSatan on September 10, 2007, 02:12:00 PM
You really do need to learn how to do manual installations so I can't urge you strongly enough to study the links I gave you and to get your skills up to a level where you can do that.

This mod does its best to help you by making a backup file of the Karma.php that, if all went well, you should be able to use to overwrite the altered one so as to do a manual uninstall...those links I gave would have shown you that it was created and thus that reversing the process would have you overwrite the current file with the backup...ideally you would rename the current file to, say, Karma.phpold prior to copying in the backup file to replace it. The links would have shown you that the backup file is stored in Source directory in a directory called kdm_bak.

It really isn't that difficult but you do have to read through the process and pick up on what is happening.
Title: Re: Karma Description Mod
Post by: bassbass on September 10, 2007, 02:21:16 PM
Thanks, i'll give it a shot
Title: Re: Karma Description Mod
Post by: tambay_lang on September 11, 2007, 04:13:45 AM
How do I back up the Karma.php? where do I go? and what do I click?

Sorry.. Im really new to this.

anyone please. I'd like to try this mod.
Title: Re: Karma Description Mod
Post by: TrueSatan on September 11, 2007, 04:54:28 AM
Karma.php is backed up automatically by the mod when you install it but the standard SMF advice applies too...always back up all your forum files and your database prior to installing or uninstalling any mod or theme.

You backup your forum files by using ftp and copying them to your local machine.
Title: Re: Karma Description Mod
Post by: tambay_lang on September 11, 2007, 10:56:58 PM
thnks TS, anyone tried this mod with SoftDark theme by turklord? That's the theme we're using.
Title: Re: Karma Description Mod
Post by: BelleLeDonna on September 19, 2007, 05:09:23 PM
using SMF version 1.1.3

I've just installed this mod (ver 2.3) ... it first appeared all went well, however, when I go into the karma page in the ACP, there are new checkboxes, but the description for each line is blank.

please advise
Thanks ~ Belle



Title: Re: Karma Description Mod
Post by: Chip103 on September 19, 2007, 06:06:22 PM
The same thing happened to me!
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 19, 2007, 07:03:15 PM
What is default language of your forum??
Title: Re: Karma Description Mod
Post by: Chip103 on September 19, 2007, 07:25:20 PM
English,I already checked to see if it was English UKT Or whatever.

:)
Title: Re: Karma Description Mod
Post by: TrueSatan on September 19, 2007, 08:16:02 PM
The mod, like almost all mods, only installs into the SMF Default theme so if you are using any other theme you will need to manually install into it.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Karma Description Mod
Post by: BelleLeDonna on September 19, 2007, 09:10:16 PM
Thank you for your replies ~

My forum is English - and the new option checkboxes show up, but not the descriptions preceding the checkboxes. (see attachment)

It's doing ^that^ in both the default theme as well as in the the one other theme I've installed and use for my forum default theme. (I haven't yet gone thru with the modparser to manually install it to the forum theme I've installed)

I found and read the topics you pointed to prior to any downloads .. but I'll re-read them to see if I missed any important steps.

I used the package installer thru the ACP, but I'll go thru the different steps with the modparser to see if it did everything in the default theme that it was supposed to have done.

I've attached a screenshot to show what it is doing. I used the screenshot from the mod page to read what each checkbox was supposed to be for to see if I could get any results even though the descriptions weren't showing up.


also, where would I be able to find what is supposed to be the output of this mod .. the karma log results?

Thanks for your assistance
~ Belle
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 19, 2007, 09:22:15 PM
Show your error log please
Title: Re: Karma Description Mod
Post by: BelleLeDonna on September 19, 2007, 10:44:25 PM
that's the problem .. I'm not getting an error. at least not one that I've seen.

by the way, I did try to give karma to someone and got the page that (I'm assuming) is where you'd put the explanation, but the label/description was missing from there as well...entered an explanation - clicked on the unlabeled button there and the karma went thru as it's supposed to.

so the mod is working, sort of.

I've just gotten back from dinner, so I'll start going thru the modparser to see where the language codes are first and check back here in a bit.

I really appreciate your helping me with this.
~ Belle
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 19, 2007, 11:54:12 PM
Do next steps:
Open listed here files and add codes at the end of each file.

At the end of Admin.english.php add this
$txt['maintain_karmalog'] = 'Empty out Karmachange Description log';

Errors.english.php

$txt['cannot_karmalog_view'] = 'Sorry - you don\'t have the proper permissions to view the Karma Description list.';
$txt['viewkarma_error'] = 'User ID must be a number';
$txt['karma_not_topic_starter'] = 'Sorry, he is not topic author.';
$txt['karma_cant_modify'] = 'Sorry, you can\'t modify karma to this user.';
$txt['karma_cant_modify2'] = 'Sorry, you can\'t modify karma to other users.';



Help.english.php

$helptxt['karmapermiss'] = 'By default this option is switched off and Karma Log can look only admins. If you want to do Karma Log available for other users or moderators, etc, enable this option and give the right that group, which can look Log in "Permissions" section.';
$helptxt['karmaotherstat'] = 'Show other karma statistics like Max applauded users or Max smited users and so on in whole karma log.';
$helptxt['karmalinks'] = 'If you enable this feauture, users will see two links in their profiles (Own or other users). They can see who change their karma and whom they change it. Karma Description Mod must be enabled';
$helptxt['karmakarma'] = 'It\'s display users karma in Karma log opposit the usernames. For example: Username (+12/-8)';
$helptxt['karmaurl'] = 'If you enable this option, you and your users can view where their karma was change.';
$helptxt['karmaisowner'] = 'If you enable this option, only profile owner will see two links to his own karma log. By the way, your users will resieve an error if they input an url adress (like http://your_forum.com/index.php?action=ownkarma;u=other_user) by the hand if you don\'t want your users can view other users karma log. Whole karma log will be disabled too. ONLY OWN KARMA LOG.';
$helptxt['karmanotifier'] = 'If you enable this function, your users will see another one field in their profiles in \'Look and Layuot Preferences\' section. It give an opportunity to notify users when their karma will be changed by two way notify: Popup Message and Personal Message.';
$helptxt['karmaidmember'] = 'If your users enabled Karma Notify function and choose Personal Message notify, they will recieve a Peronal Message from this member id. For example, if you have ID_MEMBER=1 they will recieve PM from you and so on. If you set member id = 0 your users will recieve a message from Admin Guest.';
$helptxt['karma_pm_send_link'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see a link to their own karma log.';
$helptxt['karma_pm_send_desc'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see the reason of karma change.';
$helptxt['karma_pm_send_changelink'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see a link to message where their karma was changed.';
$helptxt['karmacantmodify'] = 'Comma separated, without any spaces.';
$helptxt['karmacantmodify2'] = 'Comma separated, without any spaces.';


index.english.php

//Karma Description Mod
$txt['karmaview'] = 'Karma Change Log';
$txt['whykarmamod'] = 'Karma change';
$txt['Description'] = 'No Description';
$txt['karmamoder'] = 'Reason for changing the karma of this user';
$txt['karmarequare'] = '(Required field)';
$txt['karmawho'] = 'Who';
$txt['karmawhos'] = 'Whom';
$txt['karmawhat'] = 'What (+/-)';
$txt['karmadesc'] = 'For What';
$txt['karmatime'] = 'When';
$txt['karmanumb'] = 'Values: ';
$txt['statkarma'] = '[Karma Stats]';
$txt['viewkarma_title'] = 'Karma Change Description';
$txt['deletekarma'] = 'Delete';
$txt['clearkarma'] = 'Clear';
$txt['karma_delete_confirm'] = 'Are you sure you want to delete this record?';
$txt['karma_back'] = '< Back';
$txt['karma_continue'] = 'Continue >';
$txt['karmadescappl'] = ' (Applaud)';
$txt['karmadescsmi'] = ' (Smite)';
$txt['karmawhere'] = 'Where';
$txt['karmawhereurl'] = 'In topic';
$txt['karmawhereurl2'] = 'In PM';
$txt['karma_delete'] = 'Delete';
$txt['sure_about_karma_remove'] = 'Are you sure you want to delete this record?';
$txt['karma_stat'] = 'Karma Statistic';
$txt['karma_top_applaud'] = 'Top 5 applauded users';
$txt['karma_top_smite'] = 'Top 5 smited users';
$txt['karma_other_stat'] = 'General Statistics';
$txt['karma_max_appl'] = 'User MAX applauding other users';
$txt['karma_max_smit'] = 'User MAX smiting other users';
$txt['karma_today'] = 'Karma points today';
$txt['karma_today_plus'] = 'Today "+"';
$txt['karma_today_minus'] = 'Today "-"';
$txt['karma_notifier'] = 'Your karma was changed on ';
$txt['karma_notifier2'] = ' points. Do you want to see the karma description log?';
$txt['karma_pm_subject'] = 'Karma Notification';
$txt['karma_pm_body'] = 'Dear user. Your karma was changed. ';
$txt['karma_pm_body2'] = 'You can see the log if follow this link:\\n'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Send the reason in personal message';
$txt['karma_pm_send_desc2'] = '\\n\\nThe reason of changing was: ';
$txt['karma_pm_send_changelink'] = '\\n\\nYour karma was changed on this message:\\n';



ManagePermissions.english.php

$txt['permissionname_karmalog_view'] = 'View Karma Log';
$txt['permissionhelp_karmalog_view'] = 'Karma Description Log shows all members karma and description of applauding or smiting. This permission will only work if you also have enabled it in \'Features and Options\'. You can access the Karma Description screen by clicking the link in the \'Karma Stat\' section of the board index.';



ModSetting.english.php

$txt['karmadescmod'] = 'Enable Karma Description Mod';
$txt['karmamaxmembers'] = 'Members per page in Karma Description log';
$txt['karmalogview'] = 'Use member names as link to their profiles';
$txt['karmapermiss'] = 'Allow users view Karma Description log (See Permissions)';
$txt['karmalinks'] = 'Enable karma links in users profiles';
$txt['karmaisowner'] = 'Disable whole karma log for users but enable own karma log';
$txt['karmakarma'] = 'Display users karma(+/-) in Karma Description Log';
$txt['karmaurl'] = 'Enable "Where" field in Karma Description Log';
$txt['karmaotherstat'] = 'Show other Karma Statistics';
$txt['karmasurv'] = 'Applaud or smite users without explanation';
$txt['karmawhatwrite'] = 'Write this in the log, when explanation is disabled';
$txt['karmacensor'] = 'Censor karma explanation';
$txt['karmatopicstarter'] = 'Users can change only topic\'s author karma';
$txt['karmanotifier'] = 'Enable karma notification';
$txt['karmaidmember'] = 'Send PM from this Member ID (1 by default)';
$txt['karma_pm_send_changelink'] = 'Send link in personal message to message where karma was changed';
$txt['karma_pm_send_link'] = 'Send link in personal message to own karma log';
$txt['karmacantmodify'] = 'User ID\'s, whose karma can\'t be changed. <div class="smalltext">Comma separated, without spaces. For example: 1,13,27</div>';
$txt['karmacantmodify2'] = 'User ID\'s, who can\'t modify karma. <div class="smalltext">For example: 2,412,88</div>';



Profile.english.php

$txt['who_change_my_karma'] = 'Who changed my karma';
$txt['whom_i_change_karma'] = 'Whose karma have I changed';
$txt['enable_notify'] = 'Notify me when my karma will be changed';
$txt['enable_notify_none'] = 'don\'t notify';
$txt['enable_notify_popup'] = 'Popup window';
$txt['enable_notify_pm'] = 'Personal Message';



Who.english.php

$txt['whoadmin_viewkarma'] = 'Viewing <a href="' . $scripturl . '?action=viewkarma">Karmachange Description log</a>.';
$txt['whoall_modifykarma'] = 'Changing karma.';

Title: Re: Karma Description Mod
Post by: BelleLeDonna on September 20, 2007, 12:12:52 AM
ok ..

I did all ^that^ .. does it matter that I don't have the word 'english' in some of those files?
for example, I have Admin.php - but NOT Admin.english.php
I have help.php - but NOT help.english.php, etc (as you have it in the above post).
I put those codes into the files that most closely resembled what you've posted


after doing that^ the karma part in ACP is still showing blank as before and now I am receiving this error at the top of each page:

Notice: Undefined index: lang_character_set in /home/bellel2/public_html/forums/Sources/Load.php on line 179

does that help narrow things down? and/or am I missing a language file altogether?

thanks ~ Belle

edited to add that the one theme I have installed is no longer working, I just get the above error on the page
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 20, 2007, 12:16:55 AM
no, no, no... this is a source files with engine as far as i say you need other files - with language strings. They are placed in /Themes/default/languages
Delete all changes that you maded
Title: Re: Karma Description Mod
Post by: BelleLeDonna on September 20, 2007, 12:44:26 AM
oops, sorry .. I don't know what I was thinking *blush*
I deleted my mistakes and went into the /default/languages folder and made the changes you posted.

I do NOT have a file index.english.php in there.

is that what is causing problems? where do I get it from?

huggs ~ Belle
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 20, 2007, 12:50:35 AM
it's impossible...
but if you haven't any installed mods, try to upload all your forums files again


oh girls..... =)
Title: Re: Karma Description Mod
Post by: BelleLeDonna on September 20, 2007, 01:27:04 AM
you're right, I was wrong... the index.english.php file was toward the bottom of the file list (because of lower case)

so now I feel like a total idiot LOL... however the changes still didn't work.

I've checked and double checked to be sure I cepy/pasted everything correctly.

before installing this mod, I did attempt to install the paypal donation mod - using the installer with the forum ACP - it's not working for me either (donation button/link not showing in menu bar and the donation area in the ACP isn't there as it should be). Getting that mod to work was to be my next task to tackle .... but my members were heckling me to do the karma options first.  ;D

I'm sorry to be such a pain.
huggs ~ Belle
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 20, 2007, 01:34:54 AM
I think you use another theme then default...... what did you have in /Themes directory?
                                                                                                                                  I must go. See you tomorrow
Title: Re: Karma Description Mod
Post by: BelleLeDonna on September 20, 2007, 02:00:43 AM
in my themes directory I have babylon, classic, default and bright forest (the one theme I have installed and use as my forum default - the karma page shows the same way in that theme though as it does using the default theme, descriptions blanked out like in the acreenshot), there is also a file index.php in that directory

I have triple checked and the changes you indicated above were definately made to the default theme files. changes do not reflect in the default theme on the forum.

please let me know if you think of anything else ...
Thank you for working with me tonight, I am grateful to you for your assistance.

huggs ~ Belle
Title: Re: Karma Description Mod
Post by: BelleLeDonna on September 20, 2007, 03:16:45 AM
I got it to work!!
I kept checking/double checking/triple and quadruple checking ... then I noticed there were english-utf8.php files in that directory too... ???
so I added one of the changes from above to one of the pages and lo and behold! it worked!!
so, I applied all ^those^ changes to the english-utf8.php and everything is working just as it's supposed to. :) it works with the bright forest theme as well, so I'm reeeally happy.

thank you again for your continued assistance tonight - I apologize for my girly goofs :D
This mod is just what I was needing and my members are going to be thrilled (I'll probably get a bunch of applauds from them for getting this applied to the forums) LOL

now I'm off to see if I can get the paypal donations mod to work using the same theory....

goodnight ~ Belle
Title: Re: Karma Description Mod
Post by: TrueSatan on September 20, 2007, 05:33:06 AM
You might be best to go to ACP>Server Settings and switch your forum to English and not English utf8...this would save you having to do anythign to the English utf8 files. To make sure your members don't select English utf8 and override the forum default setting go to ACP>Features and Options>Basic Features and uncheck "Enable user-selectable language support" then save (bottom of the page.)
Title: Re: Karma Description Mod
Post by: BelleLeDonna on September 20, 2007, 06:15:09 AM
I've done that now TrueSatan ... thanks :)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 20, 2007, 07:37:01 PM
TrueSatan, big thanks for your assistance.

BelleLeDonna good lack
Title: Re: Karma Description Mod
Post by: TrueSatan on September 20, 2007, 09:09:32 PM
My pleasure...support is often hard work and as I suspect that English isn't your native language I'm even more willing to help where I can.
Title: Re: Karma Description Mod
Post by: tambay_lang on September 21, 2007, 05:29:28 AM
just installed it and it is functioning "i suppose" coz I see the setting and members can give + / - karma..

But wehere and how do I get to see the karma log?

Sorry.. Im really not good at this.
Title: Re: Karma Description Mod
Post by: TrueSatan on September 21, 2007, 06:00:20 AM
Firstly please go to ACP>Features and Options>Karma and set the mod up enabling it and the log for it etc then go to ACP Permissions and set up the permissions for the mod.

The Karma Log (if enabled and if you allow it to be seen) is accessed via members profiles...click the "Who Changed My Karma" or "Whose Karma Have I Changed" links.
Title: Re: Karma Description Mod
Post by: bellringr on September 21, 2007, 10:28:38 PM
I am having the same problems as Belle with blank descriptions in the Karma settings.  I have 1.1.3 and no other mods installed, using Default theme.

I made sure language was set to English and went through and updated all of the files listed by Grek but everything is still blank.  Is there anything else I need to do to get these to show up?  When I click on someone's karma, it is still just adding a number rather than bringing up a description page. 

Thanks for your help! :)
Title: Re: Karma Description Mod
Post by: TrueSatan on September 22, 2007, 04:42:44 AM
 Firstly go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.

If that doesn't clear the problem then, unfortunately, I think you'd be best to go through the edits the mod makes and ensure that all were actually made. If you hadn't done the above CHMOD work it's possible that some of the files the mod seeks to edit couldn't be edited and thus that the installation wasn't complete. You will need to manually add edits if they aren't in place. I'd also unpack the mod package on your local machine and re-upload the files the mod seeks to add making sure that the new versions have CHMOD 777 or 775 depending on you hosting.

The following links may help:

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)


Title: Re: Karma Description Mod
Post by: Apllicmz on September 23, 2007, 02:58:59 AM
this mod she work automatic..
when members send 5 post she give Karma !?
when can exemplo
Title: Re: Karma Description Mod
Post by: TrueSatan on September 23, 2007, 05:58:16 AM
 You need to set the mod up in your ACP for it to work...see ACP>Features and Options>Karma and ACP>Permissions>Permissions by Membergroup.

The mod doesn't give extra Karma for numbers of posts but members can be made not to be able to alter the Karma of other members until they have made a certain number of posts (5 is the default.) If you want to be able to reward people for posting the Shop mod might be more suited to the task though it doesn't do exactly what you have requested.
Title: Re: Karma Description Mod
Post by: Apllicmz on September 24, 2007, 12:11:35 AM
thank you i will try ...
Title: Re: Karma Description Mod
Post by: tambay_lang on September 24, 2007, 04:24:21 AM
Quote from: TrueSatan on September 21, 2007, 06:00:20 AM
Firstly please go to ACP>Features and Options>Karma and set the mod up enabling it and the log for it etc then go to ACP Permissions and set up the permissions for the mod.

The Karma Log (if enabled and if you allow it to be seen) is accessed via members profiles...click the "Who Changed My Karma" or "Whose Karma Have I Changed" links.

thanks. But I want the Karma log to be visible only to Administrator (in case, its me). I have installed and enabled it in my test site, but I dont know where I, as Administrator can see the log.

Another thing, I enabled the notification but when I give karma to my other test account which is not set to admin account I dont receive any notifications.

im using smf 1.1.3 and the latest ver of TP.

here's a screen shot
Title: Re: Karma Description Mod
Post by: TrueSatan on September 24, 2007, 04:54:52 AM
If you have set the Karma mod up, as I said, in ACP>Features and Options>Karma restricting it as appropriate then the ACP>Permissions>Permissions by Membergroup for Administrator you will see the links for it in your profile but no other member will have them in their profile...click on the profile links, as previously stated, to see the log.

Your problem, if it persists, isn't with TP it's more likely that you haven't edited the mod into that custom theme you are using.
Title: Re: Karma Description Mod
Post by: tambay_lang on September 24, 2007, 06:03:15 AM
TrueSatan ,

thanks, I got to see it now.. It is also available under forum stats (see attachment). Great mod.

My only concern now is that after installing and enabling it, it kinda slowed down our forum. We're experiencing 5-10 seconds delay in page loading. Is there any fix for this? I have to ask my members if they are willing to sacrifice the speed of forum page loading in favor of this great mod. Although having this mod without slowing effect would have been idealy great.

Thanks again.
Title: Re: Karma Description Mod
Post by: TrueSatan on September 24, 2007, 07:28:07 AM
No...not available under forum stats (that would slow your forum even more BTW)...there's not a lot you can do about speed issues save for the maintenance options in the ACP...get the database in as good a state as you can and it will run faster (not necessarily a lot faster but faster all the same)...speed is always going to suffer if you add extra features particularly on slow hosts...unfortunately it looks like you have a choice to make.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 24, 2007, 06:09:41 PM
QuoteAnother thing, I enabled the notification but when I give karma to my other test account which is not set to admin account I dont receive any notifications.
Did you enable it(notification method) in your other user's profile?
Title: Re: Karma Description Mod
Post by: tambay_lang on September 24, 2007, 09:08:04 PM
Quote from: Grek_Kamchatka on September 24, 2007, 06:09:41 PM
QuoteAnother thing, I enabled the notification but when I give karma to my other test account which is not set to admin account I dont receive any notifications.
Did you enable it(notification method) in your other user's profile?

I did not. Thanks will try it.
Title: Re: Karma Description Mod
Post by: bassbass on September 25, 2007, 10:38:04 PM
Is there a way to increase the "Top 5 applauded users" list in the statistics?  it only displays top 5 and there is no where that i can see to change it.  any ideas?  thanks,
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 25, 2007, 11:04:58 PM
Quote from: bassbass on September 25, 2007, 10:38:04 PM
Is there a way to increase the "Top 5 applauded users" list in the statistics?  it only displays top 5 and there is no where that i can see to change it.  any ideas?  thanks,
Open Viewkarma.php find //Top 5 max applauded users. and //Top 5 smited users. SQL queries. It is 425 and 452 line. Replace LIMIT 5 with LIMIT 10 4example. or LIMIT n where n - is your number. Understand?
Title: Re: Karma Description Mod
Post by: bassbass on September 25, 2007, 11:58:02 PM
Great, thanks for the quick response.  it worked for the list but the "Top 5 max applauded" and the "Top 5 smited users" didn't change, i did changed it to "Top 10 max applauded users" and "Top 10 smited users"

here is the link, http://www.gtc-music1.com/forum/index.php?action=viewkarma

Thanks Again,
Title: Re: Karma Description Mod
Post by: coendeurloo on September 28, 2007, 08:58:58 AM
Is there a way to let the users only see their own received and given karma, and how would I set it? I can only see the option to let everyone see everyone's karma in their profiles, right?
Title: Re: Karma Description Mod
Post by: bassbass on September 28, 2007, 10:49:13 AM
Yes i think you can.  Admin>Features and Options>Karma then select the following,


1. Allow users view Karma Description log (See Permissions)  NO

2. Enable karma links in users profiles   YES
Title: Re: Karma Description Mod
Post by: iQEM on September 28, 2007, 02:15:25 PM
why i've got this messages

Parse error: syntax error, unexpected '*' in /home/iqem/public_html/Sources/Karma.php on line 947

after install this mod, what's wrong with it...?  ???
Title: Re: Karma Description Mod
Post by: TrueSatan on September 28, 2007, 02:30:47 PM
It's likely that there was some other change to the file made by another mod as this mod is widely used and not known to have such a problem as you report. If you would, please, post a copy of your Karma.php file then either Grek or I may be able to see what has happened (add it as an attachment to a post.)
Title: Re: Karma Description Mod
Post by: iQEM on September 28, 2007, 02:45:32 PM
here they are, check attachment...please help...  :'(
Title: Re: Karma Description Mod
Post by: TrueSatan on September 28, 2007, 05:24:02 PM
You appear to have installed the mod more than once...the file you posted has multiple installs of it. You need to go through the process of a manual installation removing the duplicated code from all the files the mod affects...the following links give details of the manual install process.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Karma Description Mod
Post by: brainfreez on September 28, 2007, 07:12:06 PM
I installed the karma description mod and there was an error on de-installation on the karma.php.

Now its gone, and when I try to change karma I get an error message 'Unable to load the 'main' template.'

I have the karmalog mod installed in its place so it might be connected to that, but I doubt it.

How can I restore things back to normal?

Apologies if this has been said but I cant read all 43 pages.
Title: Re: Karma Description Mod
Post by: RammerRW on September 28, 2007, 08:07:10 PM
I have SMF 1.1.4 installed on my site...when i try and install this mod, it displays an error saying "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."  If i do a manual install, would it screw up my forum at all?  Is there an easier way to install it without manually installing it, since auto-installing doesn't seem to want to work?
Title: Re: Karma Description Mod
Post by: TrueSatan on September 28, 2007, 08:20:16 PM
The first thing to say is that standard SMF advice applies...you should backup your files and database before installing any mod or theme so that you don't get in the sort of position you mention! The readme of the mod (shown when you installed it) even tells you
QuoteKarma Description Mod (ver. 2.3) Don't forget to BACKUP, please.
...so as to reinforce this point.

If you have followed this advice then simply restore from your backup.

As you saw an error on uninstallation you should have stopped at that point and done a manual uninstall if you didn't have the backup available.

Given that you now say you have installed a different Karma related mod and unless you have done the backup you were advised to do you may need to go through a manual uninstall of the mod checking to see that none of it is left behind.

The most likely scenario is that only the Karma.php file is affected so, as a shortcut, you can try renaming the existing file to Karma.phpold and editing a fresh Karma.php file taken from the SMF install package to add the other Karma mod you want to have into it then upload the edited file to your forum. This is likely to solve the problem but not certain to do so...if it doesn't work then manual unistall is your way out of it unless you have the backup you were advised to make. Sometimes if a file is showing an error the rest of the files that would be edited by the Package Manager after that failed file won't be edited at all so you may still need to do all the process of a manual uninstall.

As you can see the advice to make a backup is given for good reasons.
Title: Re: Karma Description Mod
Post by: TrueSatan on September 28, 2007, 08:26:48 PM
@ RammerRW

You should note the advice to do a backup first...see the last reply I made to another member.

I've just tried an install of the mod into a test forum running SMF 1.1.4 with no problems at all...please try to download the mod from the mods page using a different browser and see if that solves your problem...it may have been a browser glitch.
Title: Re: Karma Description Mod
Post by: RammerRW on September 28, 2007, 08:49:28 PM
Quote from: TrueSatan on September 28, 2007, 08:26:48 PM
@ RammerRW

You should note the advice to do a backup first...see the last reply I made to another member.

I've just tried an install of the mod into a test forum running SMF 1.1.4 with no problems at all...please try to download the mod from the mods page using a different browser and see if that solves your problem...it may have been a browser glitch.

I backed up my database a couple times (including the table structure).

I just tried using Firefox 2.0 and Internet Explorer 6, and they both give me the same error.  Does the fact that i am clicking the "[Download]" link in the package manager have anything to do with this?

Also, the server my site is on uses PHP version 5.2.3.  Does this also affect anything?
Title: Re: Karma Description Mod
Post by: RammerRW on September 29, 2007, 12:10:05 AM
So, would you know what's wrong?  Am i doing something stupid that is causing this?  I would like to bring my forum out of maintenance mode soon \:
Title: Re: Karma Description Mod
Post by: TrueSatan on September 29, 2007, 04:44:38 AM
Firstly you don't seem to be understanding that we aren't just asking that you back up your database but that you also back up your forum files...if you then change the files via a mod or theme you can revert to the backup should anything go wrong...just backing up the database will only let you restore the database.

The site I tested the mod on using SMF 1.1.4 also happens to run on php 5.2.x so that isn't an issue.

I would try the download of the mod again from this site post a reboot of your computer...as I said I went through the whole process and couldn't replicate your issue.

I've seen some similar reports in a rather random spread over other mods so I suspect it might be a server glitch on the SMF hosting here but can't be sure of that (obviously.)

Simply in order to try to help I'll add the mod as an attachment to this post...if mods here choose to delete the attachment they can do so.

As you ask about using the "download" system to upload the mod to your site I'll add that that's fine but you should do the following before adding any mods.

Assuming you want an English only forum: You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.
Title: Re: Karma Description Mod
Post by: iQEM on September 29, 2007, 02:36:24 PM
Quote from: TrueSatan on September 28, 2007, 05:24:02 PM
You appear to have installed the mod more than once...the file you posted has multiple installs of it. You need to go through the process of a manual installation removing the duplicated code from all the files the mod affects...the following links give details of the manual install process.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)


sorry but i dont get it...can you make it more simple or just tell me me which one of the codes that had been wrong ?! thx before... ;)
Title: Re: Karma Description Mod
Post by: RammerRW on September 29, 2007, 03:18:25 PM
Ah, well, i backed up my entire site a small while ago, so i have a back-up of my forum's files, too.

I tried setting everything to writable, which was successful.  I set the language to English (not utf-8) and disabled  the option to pick your own language.  I then tried re-downloading the mod via the package manager, and it didn't work.  I even just now set up another SMF forum (updated to 1.1.4) via Fantastico and it still said it was corrupt or not compatible with this version of SMF.

I don't quite understand what you are saying here: "I would try the download of the mod again from this site post a reboot of your computer...as I said I went through the whole process and couldn't replicate your issue."  What do you mean, "post a reboot of your computer?"
Title: Re: Karma Description Mod
Post by: TrueSatan on September 29, 2007, 05:29:40 PM
@ iQEM

Your Karma.php file shows the code the mod seeks to add not added just once but twice and hence the file is both huge and doesn't work properly...you need to use the links I gave you to see what code is added to each file the mod edits and to make sure it is there but there only once...if it is there twice you need to remove one instance. It's a long job with a mod like this but the links I gave do show what you need to do (particularly the Package Parser will show you the mod edits in an easy to understand way.) There's no way round doing the long, and rather tedious, task of putting the files right one by one though, as you must realise, if you'd have made the backup the mod advised you to make the editing wouldn't be needed.

It is unlikely that only one file, or one edit, is affected so you need to go through them all. Take it slowly and you'll get there if you follow carefully what is shown by the Package Parser as it will give you the details of what to look for.

@ RammerRW

Fantastico often gives problems when used to install SMF...it often sets the forum to English utf8 for a start.

By "post a reboot of your computer" I meant do it again after rebooting your computer so that any cache of the download would be completely cleared and thus you would be sure of getting a fresh download.

Did you use the copy of the file I provided? If you use your CPanel File Manager, or other ftp method, then also try uploading the copy I provided into your packages directory then use the ACP>Packages>Browse Packages to install the mod. If you do it this way is should install without issues.
Title: Re: Karma Description Mod
Post by: RammerRW on September 29, 2007, 06:11:14 PM
Ah!  I wasn't aware one would install packages in this manner.  It said the test on Admin.php failed, but i think that's because i manually made the modifications for the mod before this.  Thanks! (:
Title: Re: Karma Description Mod
Post by: TrueSatan on September 29, 2007, 06:53:27 PM
My pleasure...it's not the easiest way to add a mod but if other methods fail it can get you out of problems.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on September 30, 2007, 04:48:30 PM
TrueSatan, you genius. Thanks for advise again
Title: Re: Karma Description Mod
Post by: asdas2 on October 01, 2007, 12:32:24 AM
a lil quest abt this mod...

do user get to see in their profile that who give them karma points....

?????????????????

like VB
Title: Re: Karma Description Mod
Post by: ShawnX on October 01, 2007, 06:20:29 PM
Looks like this mod has been around for a while, but I just found it.  Just wanted to say thanks!

Quote from: asdas2 on October 01, 2007, 12:32:24 AM
do user get to see in their profile that who give them karma points....

If you check "Enable karma links in users profiles" it should.   But for some reason it isn't working on one of my forums.  :-\
Title: Re: Karma Description Mod
Post by: asdas2 on October 02, 2007, 12:34:30 AM
is it working for anyone else ?
Title: Re: Karma Description Mod
Post by: TrueSatan on October 02, 2007, 09:18:27 AM
You also need to go through the permissions by membergroup to allow users to "view Karma log". I have it on my forums and it works faultlessly.
Title: Re: Karma Description Mod
Post by: KaLpSiz on October 03, 2007, 05:07:38 AM
thanks all
Title: Re: Karma Description Mod
Post by: vipmoney on October 03, 2007, 03:14:05 PM
Hi Guys,

I'm trying to install this mod (2.3) with no success so far...
I'm Using SMF 1.1.4

When I install, all files are saying success, but actually the mod doenst work, and when I check the files they are not updated with the modifications.
I've changed CHMOD to 777 for all files using ftp, tryied again, and nothing, the files are not updated.

Followed some of the tips given in previous posts, like changing to english and not enabling users to change language, etc, etc... and nothing. Tryied to upload manually the file into the servers package folder... and nothing.

Any idea that might help ?

Any idea ?
Title: Re: Karma Description Mod
Post by: TrueSatan on October 03, 2007, 08:19:15 PM
Firstly you would be best off if you used the SMF inbuilt system to change the CHMOD rather than using FTP...it's a lot easier.

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.

Presumably you are using the SMF Default theme...this mod, like almost all mods, only installs into the SMF Default theme...to use it in a custom theme you must edit it into the theme files manually.

Are you able to install other mods without problems and do they work? If not then please report back and we/I will try to work with you to fix the problem.

If all else fails (and other mods install properly for you) you will need to do a manual installation of the mod:

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)


Title: Re: Karma Description Mod
Post by: vipmoney on October 04, 2007, 07:24:36 PM
I've done a complete manual install and its working.... not sure what happened at this board, since i tried at other boards and it worked with no trouble (all with the same characteristics).

thanks for the help
Title: Re: Karma Description Mod
Post by: TrueSatan on October 04, 2007, 09:13:09 PM
My pleasure...glad it worked out well in the end.
Title: Re: Karma Description Mod
Post by: danielgc on October 10, 2007, 04:08:19 PM
In case you install this mod on smf 1.1.4 and then you uninstall it and then you have "Field 'Description' doesn't have a default value " errors, use phpmyadmin to delete the fields: description, is_read and link of the table named smf_log_karma.

It never worked for me :(
Title: Re: Karma Description Mod
Post by: King Steph1 on October 16, 2007, 11:05:31 AM
Is there a way to make the description appear on posts instead?
kind of like this? (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi195.photobucket.com%2Falbums%2Fz226%2FKing_Steph1%2Fexample.gif&hash=f12bd82cdca66efb400bb4a322a0c019037bcb93)
Title: Re: Karma Description Mod
Post by: King Steph1 on October 19, 2007, 02:47:09 AM
Bump
Title: Re: Karma Description Mod
Post by: sixu on October 19, 2007, 07:00:53 PM
Hey, wonder if you can help, I installed this mod without any problems at all but for some reason the links in the mini-profile are'nt showing up. By that the "Applaud" "smite" links below peoples avatars.

I have checked profile.template and Display Template, and all the codes appear to be all present:

for example:

if ($modSettings['karmaMode'] == '1')
        {        echo '
                                <tr>
                                        <td>
                                                <b>', $modSettings['karmaLabel'], ' </b>
                                        </td><td>
                                                ', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '
                                        </td>
                                </tr>';

I'm pretty certain the above is what is displayed in mini profile, so i'm a bit puzzled. :s
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on October 20, 2007, 02:56:03 PM
can we have an addon with this
so when it goes to the explanation a user can choose 1-10 points to award with/take away from the user?
or what ever the admin specifies?
Title: Re: Karma Description Mod
Post by: sixu on October 20, 2007, 03:53:38 PM
hey again, oddly enough the links to give someone bad/good karma appear in their miniprofile in the PM centre bt not in the forums. Can you point me into right direction here. Please?
Title: Re: Karma Description Mod
Post by: bassbass on November 03, 2007, 11:14:05 PM
Hi Folks, i need some serious help!  to make the story short, i messed up my databse and some one here helped greatly and got everything back except the karma feature.  here is what i get when klicking on karmas or the karma stats,

Database Error
Unknown column 'lk.Description' in 'field list'
File: /home/gtcmusic/public_html/forum/Sources/Viewkarma.php
Line: 91 

and here is a link to my forum,

http://www.gtc-music1.com/forum/index.php

you can also log in as a member,

UN: test
PW: test

Thanks in advance
Title: Re: Karma Description Mod
Post by: TrueSatan on November 05, 2007, 04:14:28 AM
@ Sixu

Firstly are you using a custom theme...any theme other than the SMF default theme is a custom theme? If so you will need to manually edit this mod into your theme files. If you are using the default theme then check your language and cleanup permissions settings as per previous postings to this topic and if they are correct then manually check each of your files that the mod edits to ensure that the mod has been edited into them...fix as needed.
Title: Re: Karma Description Mod
Post by: bassbass on November 06, 2007, 11:27:16 AM
Never mind regarding the above post needing help.  i got it fixed!
Title: Re: Karma Description Mod
Post by: cd_BE on November 06, 2007, 05:23:48 PM
So I tried to install this mod. But I got this error message

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

And under that:

1.     Execute Modification     Karma_Description_Mod_1.xml     Modification parse error
2.    Execute Modification    -                                                Modification parse error
3.    Execute Modification    Karma_Description_Mod_2.xml    Modification parse error
4.    Execute Modification    -                                                Modification parse error
5.     Execute Code     db_change.php     
6.    Extract File    ./Sources/Viewkarma.php    
7.    Extract File    ./Themes/default/Viewkarma.template.php    
8.    Extract File    ./Themes/default/DescriptionKarma.template.php    

If I want to install it anyway I got this:

Fatal error: require() [function.require]: Failed opening required '/mounted-storage/home71b/sub004/sc41252-UBXY/www/Packages/temp/./db_change.php' (include_path='.:/usr/local/lib/php/') in /mounted-storage/home71b/sub004/sc41252-UBXY/www/Sources/Packages.php on line 552

How should I fix this?
I read the manual installation post of TrueSatan and tried to find how I should do it with packageparser but I don't understand a word of it.
Title: Re: Karma Description Mod
Post by: kylem on November 28, 2007, 08:54:44 PM
Alright, from what I can tell, I have everything set up right, but I cannot view the log.  There is no link in the stats section or in the profiles.  It's set that everyone can view it.  I've attached a screen shot of the settings page.

Where in the profiles is there supposed to be a link?

Any help appreciated, thanks
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on November 28, 2007, 09:30:38 PM
on the index theres a link next to the view stats link....in the profile its in the upper half, right before the date registered and last active info :)
Title: Re: Karma Description Mod
Post by: TrueSatan on November 28, 2007, 10:00:41 PM
That looks distinctly like a custom theme and like almost all other mods this mod will need to be manually installed into your custom theme...BTW anything but the SMF default theme is a custom theme:

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)

Title: Re: Karma Description Mod
Post by: kylem on November 29, 2007, 12:19:44 PM
Thanks for the info, I was under the impression that any theme that came with smf was a default theme.
Title: Re: Karma Description Mod
Post by: zackpack on December 12, 2007, 06:27:19 PM
i have this error when i click "karma stats" i get this..

Database Error : Unknown column 'lk.Description' in 'field list'
File: /home/mhd-01/www.clubdelpoker.it/htdocs/forum/Sources/Viewkarma.php

i use latest version of smf and default theme..
what i have to do!?
Title: Re: Karma Description Mod
Post by: TrueSatan on December 12, 2007, 08:11:06 PM
In ACP>Features and Options>Karma have you enabled the Karma? The "lk" refers to Log Karma which is a database area set up in the initial forum install and not by this mod which makes me think that it is a basic forum error not a mod error...try making sure the karma is enabled and then make sure some member(s) get some karma points do something gets into the log and see if the error persists.
Title: Re: Karma Description Mod
Post by: zackpack on December 13, 2007, 04:43:48 AM
Quote from: TrueSatan on December 12, 2007, 08:11:06 PM
In ACP>Features and Options>Karma have you enabled the Karma? The "lk" refers to Log Karma which is a database area set up in the initial forum install and not by this mod which makes me think that it is a basic forum error not a mod error...try making sure the karma is enabled and then make sure some member(s) get some karma points do something gets into the log and see if the error persists.

nothing....
Title: Re: Karma Description Mod
Post by: TrueSatan on December 13, 2007, 06:43:15 AM
I would suggest that you uninstall this mod (remembering that you were advised to make backups of your files during the install), paying particular attention to Karma.php which you may need to replace from backup, and see if the problem still persists...if it does then this mod is clearly not to blame for it.
Title: Re: Karma Description Mod
Post by: bassbass on December 13, 2007, 11:38:25 AM
Quote from: zackpack on December 12, 2007, 06:27:19 PM
i have this error when i click "karma stats" i get this..

Database Error : Unknown column 'lk.Description' in 'field list'
File: /home/mhd-01/www.clubdelpoker.it/htdocs/forum/Sources/Viewkarma.php

i use latest version of smf and default theme..
what i have to do!?

sounds like you have the same problem i had, i agree with TrueSatan, try to install the mod manually
Title: Re: Karma Description Mod
Post by: seymoor on December 22, 2007, 01:12:43 PM
where am i supposed to give an explanation?
Its enabled but when i click on the karma+ or- near the poster profile it just gives 1 to it but nowhere to give an explanation.
where is it supposed to be?

alright, solved:)

"Applaud or smite users without explanation" i thought this makes "explanation" optional, so I can make a karmachange without an explanation...
Title: Re: Karma Description Mod
Post by: satkerson on December 22, 2007, 04:02:15 PM
Hello, is there a way to get this working for 1.1.4 which has been out awhile? I had a request from my community to offer descriptions for karma and I found this plugin. Any chance of getting this working for 1.1.4 soon?

Thank you in advance!
Title: Re: Karma Description Mod
Post by: TrueSatan on December 22, 2007, 07:19:11 PM
It already works for SMF 1.1.4. Please just install it as per usual.
Title: Re: Karma Description Mod
Post by: NuhNuh on December 27, 2007, 05:47:13 AM
Question about the karma statics,
Is there a way to get staff not on the karma statics top 5?
Title: Re: Karma Description Mod
Post by: ISRalien on December 29, 2007, 07:12:41 AM
Hi there, I'm a web developer, I can help in the development of the new version for smf 2.0. Can you tell me have you began any work on it?
Thanks.
Title: Re: Karma Description Mod
Post by: Sheamus on December 30, 2007, 12:40:05 PM
OK, I've installed this and everything seems okay. I can access all the options in Features and Options > Karma, and when I applaud or smite a user the page pops up that asks me to give an explanation (as checked), but there's no option to view the Karma stats page *anywhere*. All the right boxes are checked in the options.

I assume it's meant to be next to the normal stats button on the main page but mine is not visible.

I am using a different theme and I assume this is the problem? If so, how do I go about fixing this?

SMF Version: 1.1.4.

Thanks,
Sheamus
Title: Re: Karma Description Mod
Post by: seymoor on December 30, 2007, 12:45:18 PM
You have to have the permission to view it, it can be modified in the permissions page.

altought i cant make it work for other than the admin right now, but it worked before;)
Title: Re: Karma Description Mod
Post by: Sheamus on December 30, 2007, 12:48:26 PM
Quote from: seymoor on December 30, 2007, 12:45:18 PM
You have to have the permission to view it, it can be modified in the permissions page.

altought i cant make it work for other than the admin right now, but it worked before;)

Cheers; however, I thought admin was permissioned to be able to see everything by default? You can't even adjust an admin's permissions, can you? It seems to be always set to ALL on my SMF, with no option to edit.
Title: Re: Karma Description Mod
Post by: Sheamus on December 30, 2007, 12:50:03 PM
OK... I just permissioned it so my moderators can 'see' it, but it's still not showing up on my main page, so I'm assuming it is a theme issue.

I'm right about where the karma stats link is, yeah - next to the standard More Stats option?
Title: Re: Karma Description Mod
Post by: Sheamus on December 30, 2007, 12:53:42 PM
I've figured out a way to manually view the karma log by adjusting the URL but as said there's no option to look at this in the forum itself. So... my problem remains the same. :)
Title: Re: Karma Description Mod
Post by: seymoor on December 30, 2007, 01:44:04 PM
If it's a theme issue then switching to the default theme to see if it's there or not should tell you the truth.

You are right about the position of karma stat's button it should be next to the [more stat]

btw I'm having the same problem here but as mentioned before, it was working earlier, so I just "choosed" to not permit to see the stats for users from my "free will" lol
Title: Re: Karma Description Mod
Post by: TrueSatan on December 30, 2007, 02:30:12 PM
seymoor is quite right in saying that if the mod works properly in the SMF default theme then getting it to work in a custom theme is merely a theme issue...as we can't know every theme we can only give general advice on installing into custom themes and it may be best to query the peculiarities on a particular custom theme with the developer of that theme.

Seymoor...your own problem of a part of the mod now not working when it did work before is unlikely to be a problem in the mod itself...more likely you have made some other change to your forum that has affected the mod...maybe another mod has been added or an edit to the files has been made.
Title: Re: Karma Description Mod
Post by: endiZ on December 30, 2007, 04:59:27 PM
I have successfully installed this mod in the default skin. Great work, thanks.

Any tips on how to manually add it to other themes? Thanks guys!
Title: Re: Karma Description Mod
Post by: seymoor on December 30, 2007, 06:20:49 PM
Yes... that's why I said that it was working before.
And as I don't know how to solve it, it will be better for the forum if I start to work on the content, leaving those countless modifications for another time.
Title: Re: Karma Description Mod
Post by: TrueSatan on December 30, 2007, 08:12:30 PM
Quote from: endiZ on December 30, 2007, 04:59:27 PM
I have successfully installed this mod in the default skin. Great work, thanks.

Any tips on how to manually add it to other themes? Thanks guys!

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Karma Description Mod
Post by: Sheamus on January 03, 2008, 06:46:02 AM
Okay, I've sorted this now, thanks to that parser. Cheers!
Title: Re: Karma Description Mod
Post by: NuhNuh on January 05, 2008, 09:27:33 AM
Quote from: NuhNuh on December 27, 2007, 05:47:13 AM
Question about the karma statics,
Is there a way to get staff not on the karma statics top 5?
Anyone?
Title: Re: Karma Description Mod
Post by: Kimmie on January 13, 2008, 04:11:25 AM
ok I just installed this mod and I have to say it works GREAT!!! I use smf 1.1.4, Tiny Portal, and I have several other mods. No problems with installation, and I didnt have to modify anything to make it work with the theme I use (Blue Ace/TP).


(having it so staff doesnt show up on the stats list would actually be cool.) :)

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 14, 2008, 06:17:36 AM
Thq Kimmie
Title: Re: Karma Description Mod
Post by: †MavN† on January 14, 2008, 09:22:53 AM
Grek_Kamchatka
пофикси проблему с XSS  а то люди так и используют бажную версию.
посмотри может данный фикс и поможет в этом деле
http://www.simplemachines.ru/index.php?action=dlattach;topic=353.0;attach=1520
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on January 14, 2008, 10:07:56 AM
Quote from: Kimmie on January 13, 2008, 04:11:25 AM
ok I just installed this mod and I have to say it works GREAT!!! I use smf 1.1.4, Tiny Portal, and I have several other mods. No problems with installation, and I didnt have to modify anything to make it work with the theme I use (Blue Ace/TP).


(having it so staff doesnt show up on the stats list would actually be cool.) :)



True! I manually delete all smites and applauds my staff do anyway :)
Title: Re: Karma Description Mod
Post by: look up on January 17, 2008, 04:11:41 PM
how do you increase the # of characters you can enter in the karma description.  i believe the default it 68 characters?
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on January 19, 2008, 09:04:22 AM
Hi, this is a great mod! :)

But, I'd like to use it with DefaultMC -theme, and in Finnish.
I don't care if the functionality itself stays in English, just as long as I could get it to work in a board that's in Finnish.

Would that be possible, and if then how?
Thank's in advance for everyone willing to share their knowledge. :D

EDIT: Just to clear this a bit, it does work ok with DefaultMC, but not in finnish on Default or DefaultMC. :)
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on January 19, 2008, 03:10:50 PM
Nevermind, I got it figured out with the help of this site: http://www.smfhacks.com/packageparser/package.php
*happy*
Title: Re: Karma Description Mod
Post by: cassie on January 21, 2008, 10:18:27 AM
Love this mod! Been using it for a long time.

However, recently I started having a problem with the "In Topic" feature, where users can click that link and see where they were given karma.

When you click it , it just goes to the main page of the forum.

I have pretty URLs installed as well (and a few other mods) but I wonder if the pretty urls is causing the problem. When you look in the address bar after clicking the topic link, you see the pretty url for the topic but it looks like it's adding the post number twice.

Do you know about any conflict with pretty URLs? I'll ask on that board as well after getting an answer here. Maybe a reinstall of pretty URLs would fix it. Hmmmm.....
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on January 21, 2008, 11:06:27 AM
is there a way to disable regular users from viewing who smited them? perhaps changing the name to "censored" and taking away the profile link?
Title: Re: Karma Description Mod
Post by: cassie on January 21, 2008, 12:26:18 PM
Another question...I'm running version 2.2 of Karma Desc now. To upgrade to 2.3, do I need to remove the old version? Is there anything else I need to do to make sure all goes well?

Haven't upgraded lately so can't remember.  :)
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on January 21, 2008, 12:27:07 PM
Quote from: cassie on January 21, 2008, 12:26:18 PM
Another question...I'm running version 2.2 of Karma Desc now. To upgrade to 2.3, do I need to remove the old version? Is there anything else I need to do to make sure all goes well?

Haven't upgraded lately so can't remember.  :)

Yeah, if theres no upgrade file you have to uninstall :(
Title: Re: Karma Description Mod
Post by: cassie on January 21, 2008, 02:24:36 PM
I think before when I installed a new version, I had to do something with the karma.php file. Delete the current one and copy into my database the current one of the current SMF version. Is that still the case?

Can someone give me step by step so I don't mess this up? My members love karma and get testy if there are any problems :)
Title: Re: Karma Description Mod
Post by: TrueSatan on January 21, 2008, 09:14:44 PM
During installation the mod makes it very clear that you should backup your files, this is because with such a big edit to the karma files things can go awry on uninstall. You may need to either go back to that backup of Karma.php or replace the file (post uninstall of the old version of the mod) with a fresh file from the SMF installation package, manual editing to take into account any other mods you may have that may have affected the file.

Your posting appears to confuse database and files.

Once you have done the above a normal installation of the new version (with appropriate backup done as the mod advises) should be a simple matter.
Title: Re: Karma Description Mod
Post by: cassie on January 22, 2008, 10:34:14 AM
Nope, I'm not confused about databases and files.

Just found the info I had saved in my personal messages.

Previously, I had to delete the Karma.php FILE which is in the "Sources" folder in the directory where you have the forum installed.

Then I had to get the current version of SMF and copy that version of Karma.php into my forum directory.

Since I'm not sure if I have to go through that again to install the latest version and the mod developer hasn't responded, I'll leave well enough alone for now.

Title: Re: Karma Description Mod
Post by: bassbass on January 22, 2008, 06:49:58 PM
what about installing a complete fresh copy of the SMF and all the updated mods, then import your database files.  this was the easiest way for me, and it was quick.  if you have mods like Gallery, then you need to import these files as well, also the attachments if you want to keep the attachments in place.  what database are you talking about, the heart and sole of you forum the one you setup using cPanel and phpmyadmin, or is there another database in this mod i don't know about?
Title: Re: Karma Description Mod
Post by: TrueSatan on January 22, 2008, 11:16:35 PM
Cassie, the mod developer's native language isn't English and so, with his kind permission, I assist him in giving some of the English support for his mod...that he does so much to help in a language that is, to him, foreign is quite a feat.

bassbass suggestion will work perfectly well as will the advice I've already given you.
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on January 22, 2008, 11:18:46 PM
Quote from: Alundra on January 21, 2008, 11:06:27 AM
is there a way to disable regular users from viewing who smited them? perhaps changing the name to "censored" and taking away the profile link?

can you do this for me please truesatan?
Title: Re: Karma Description Mod
Post by: look up on January 23, 2008, 09:11:18 AM
is it possible to disable the admin's ability to read karma comments?
i feel they are kind of like PMs and should be kept private.
Title: Re: Karma Description Mod
Post by: gk-dante on January 23, 2008, 12:08:33 PM
I've installed the mod in my smf  1.1.4 and the config panel is looking this way:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg220.imageshack.us%2Fimg220%2F8207%2Fkarmabugsmallhl8.jpg&hash=a95b44776141598d66107eadf810903b08ee4ff9)

Title: Re: Karma Description Mod
Post by: TrueSatan on January 23, 2008, 06:46:01 PM
@ Alundra

Probably it's best to do it the easy way and go to ACP>Permissions and remove permission for them to view the Karma log rather than adding even more to what already is a huge modification to karma.php

@ look up

This isn't something I'd advise as if it is done admins won't be able to monitor the karma system for abuse...by default admins always have all options available to them. BTW an admin with server access could interrogate the database even if the code was changed.

@ gk-dante

The mod will have to be translated into your language for it to work for you...the blank parts show that text strings for your language are not available in it. You would need to translate Admin.english.php, ModSettings.english.php, Who.english.php, Help.english.php, index.english.php, ManagePermissions.english.php, Errors.english.php, and Profile.english.php and if you use a custom theme you will need to manually install the mod into it.
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on January 23, 2008, 06:50:44 PM
Quote from: TrueSatan on January 23, 2008, 06:46:01 PM
@ Alundra

Probably it's best to do it the easy way and go to ACP>Permissions and remove permission for them to view the Karma log rather than adding even more to what already is a huge modification to karma.php

but i want them to be able to see who applauded them and why, and why they were smited. perhaps it would be easier to make it so only admin can see the who part?
Title: Re: Karma Description Mod
Post by: TrueSatan on January 23, 2008, 07:20:39 PM
I'll have to let Grek take a look and see if he is willing to make the changes for you...I don't want to get into recoding his mod without his permission and I'm rather under the cosh regarding time pressures...
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on January 23, 2008, 08:14:45 PM
Quote from: TrueSatan on January 23, 2008, 07:20:39 PM
I'll have to let Grek take a look and see if he is willing to make the changes for you...I don't want to get into recoding his mod without his permission and I'm rather under the cosh regarding time pressures...

Thank you! I appreciate it a lot :D
Title: Re: Karma Description Mod
Post by: look up on January 23, 2008, 09:14:39 PM
Quote from: TrueSatan on January 23, 2008, 06:46:01 PM
@ look up

This isn't something I'd advise as if it is done admins won't be able to monitor the karma system for abuse...by default admins always have all options available to them. BTW an admin with server access could interrogate the database even if the code was changed.
i understand, however i am not worried about user's abusing the karma system.
so, is there a way it can be done?  my user's don't know i can see the comments and i don't want the temptation there to read them.
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on January 23, 2008, 09:30:19 PM
Then you shouldn't have downloaded the log?
Title: Re: Karma Description Mod
Post by: look up on January 23, 2008, 09:32:19 PM
i didn't download anything.  there's a link in their profile.

hm...i guess i could go into the code and erase the links from the profile somehow.  i wouldn't even know where to start doing that though.
Title: Re: Karma Description Mod
Post by: TrueSatan on January 23, 2008, 09:44:01 PM
If you want to remove the links from users profiles then simply use ACP>Features and Options>Karma and uncheck "Enable karma links in users profiles" This would stop users viewing the log on their own profiles too but so would simply removing the link code as you suggest doing.

I would suggest that an admin who might fall to such temptation would also fall to the temptation of reversing any code change we give you to make so the change becomes rather pointless.
Title: Re: Karma Description Mod
Post by: look up on January 23, 2008, 10:13:39 PM
good grief.
does this mean you're not going to help me with the code or offer any further assistance otherwise?
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on January 23, 2008, 11:57:33 PM
Quote from: look up on January 23, 2008, 10:13:39 PM
good grief.
does this mean you're not going to help me with the code or offer any further assistance otherwise?

That stops what you wanted.
Send the file and I'll do it :P
Title: Re: Karma Description Mod
Post by: TrueSatan on January 24, 2008, 08:07:32 AM
I meant that while I'll give you all the support I can on the general running of the mod, particularly in an unmodified form, that none of us can guarantee to make you the custom changes you request. Often such changes are left to the mod developer to consider and no mod developer is required to make them.
Title: Re: Karma Description Mod
Post by: DWillis on January 25, 2008, 05:33:14 PM
I am building a website using smf 1.1.4 and I am having the following problem with the karma option.  When I select give or smite I get the following error.


Code:

An Error Has Occurred!
Unable to load the 'main' template.


I am not sure what the problem is.  I have tried uninstalling the karma description mod to see if that would make a difference, but it seems not to.  I found that the karma uninstall and then simply overwriting the karma.php file with the original brought it back to original state.  The I tried reinstalling the karma description mod again and see what happens.  So...

Weird...  I install the Karma Description Mod version 2.3 RU and it gives me a few errors.  But then when I click on the karma buttons is doesn't take me to the 'add description page' to enter a reason...  when I go into the features area in the admin panel and look at the karma options, there's a bunch of blank check boxes with no information near them.

Anyone know what the issue is will this?
Title: Re: Karma Description Mod
Post by: TrueSatan on January 25, 2008, 09:29:08 PM
The "ru" in the mod name should alert you that you have selected a Russian language version of the mod and by installing it into a forum that is not set to use Russian language you will get blank check boxes etc...

You appear to have introduced an issue into the main template that isn't there in a clean install and that is affecting this mod...your error log might give pointers to the exact area of the problem.
Title: Re: Karma Description Mod
Post by: Zoky on January 27, 2008, 05:21:37 AM
Hey guys, i updated my forum to 1.1.4 yesterday and installed this mod, translated everything to my language etc... and everything works but popup notification. When pm notification is selected everything is ok, but popup doesn't work.

Any ideas?

Thanks in advance.

ps. one more thing, i just wanted to see if it will deinstall with no problems, and there was a problem with karma.php, i did not perform deinstall, just wanted to see if everything will be ok.
Title: Re: Karma Description Mod
Post by: DWillis on January 27, 2008, 11:55:17 AM
Quote from: TrueSatan on January 25, 2008, 09:29:08 PM
The "ru" in the mod name should alert you that you have selected a Russian language version of the mod and by installing it into a forum that is not set to use Russian language you will get blank check boxes etc...

You appear to have introduced an issue into the main template that isn't there in a clean install and that is affecting this mod...your error log might give pointers to the exact area of the problem.
Ok, Thanks Tru.  I'll check that out and report back.
Title: Re: Karma Description Mod
Post by: DWillis on January 27, 2008, 12:02:06 PM
woot.  Ok, the description mod works alright now.  I didn't realize the RU was the russian version and now all seems to be ok.

Now to figure out how to make a block in tiny portal to display the most recent karmas.  Thanks!
Title: Re: Karma Description Mod
Post by: TrueSatan on January 27, 2008, 01:09:16 PM
@ Zoky

The mod clearly stated during installation that you should take backup of your database and files and you have now seen why this is so stated...we know unintalling from Karma.php can be a problem thus the backup would allow you to replace the current file. If you didn't make the backup then replacing it with a fresh copy from the SMF installation package and manually editing that to add in any other mods or edits you use is your best option.

Please see if the popup works properly when you use the SMF default theme and English (not English utf8) as the language...if it works properly there then there must be a problem with the edits you have made.
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on January 27, 2008, 01:56:28 PM
I'd double check all the code is there, cause I recently lost some because I overwrote a file by accident, and now its back and all is well :D
Title: Re: Karma Description Mod
Post by: Zoky on January 28, 2008, 06:48:47 PM
@ TrueSatan

This is only mod which modifies Karma.php, so i've just replaced it with original one and it all went fine.

Still, after reinstalling this mod, if users choose to recieve notifications about karma change by popup, there is no popup. They can only be notified by pm.

Popup for everything else works fine (pm notification, etc.)

Maybe there is a problem with karma.php, i don't know which part of code is responsible for sending karma change notification popup, maybe i can manually fix it?
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on January 28, 2008, 06:58:28 PM
Quote from: Zoky on January 28, 2008, 06:48:47 PM
@ TrueSatan

This is only mod which modifies Karma.php, so i've just replaced it with original one and it all went fine.

Still, after reinstalling this mod, if users choose to recieve notifications about karma change by popup, there is no popup. They can only be notified by pm.

Popup for everything else works fine (pm notification, etc.)

Maybe there is a problem with karma.php, i don't know which part of code is responsible for sending karma change notification popup, maybe i can manually fix it?

My websites popup works fine, Maybe you should double check your codes?
Title: Re: Karma Description Mod
Post by: TrueSatan on January 28, 2008, 08:56:21 PM
Yes, my checking shows the same as Alundra reports so it would also be likely, if all the code the mod affects is properly in place in your forum, that you have a clash with another mod or manual edits you may have made. I don't think that yours is an error that's been reported previously in relation to this mod but if he has time perhaps Grek (mod developer) might be able to offer some advice on it as he may have seen error reports that aren't listed here.
Title: Re: Karma Description Mod
Post by: LadyC on January 30, 2008, 01:44:02 PM
ok, someone please forgive me for this.... there are 48 pages to go through, and i'm having a tough time finding the answer to my question.

where is the log???

i have even got it set to show stats, but in the forum stats area, there is no link to them.

oh wait, i think i may have just thought of the answer.... i bet it only put that on the default theme.

i think i need to feel stupid.

Title: Re: Karma Description Mod
Post by: bassbass on January 30, 2008, 02:08:56 PM
it should show in the Forum Stats!  just scroll down and click the More Stats in the Forum Stats section.
Title: Re: Karma Description Mod
Post by: Kimmie on February 11, 2008, 02:53:17 PM
Is there a way to change the text that is in the pm that gets sent to the member who's karma has been changed?

This is what it currently sends:

QuoteDear user. Your karma was changed. You can see the log if follow this link:
"link"

The reason of changing was: the reason

Is there a way to have it so that it says Dear (and then the actual members name) and not the word "user, and is there a way to change the text? I want change the way its worded because the english isnt very good on it. (no offense to the mod creator)  ;)
Title: Re: Karma Description Mod
Post by: Skylined on February 12, 2008, 05:34:20 PM
My forum's in spanish and I don't see the text to set it up.
When I change it to english everything's fine.

Is there any way that I could fix this?
Title: Re: Karma Description Mod
Post by: TrueSatan on February 12, 2008, 07:47:36 PM
Like most mods this mod needs translating to work with languages other than those for which it was designed (in this case English and Russian) no translation is currently available for Spanish though should you wish to translate the text strings you are at liberty to do so.
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on February 13, 2008, 11:44:50 AM
Quote from: bassbass on January 30, 2008, 02:08:56 PM
it should show in the Forum Stats!  just scroll down and click the More Stats in the Forum Stats section.

You click "karma stats" ;)
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on February 13, 2008, 11:48:27 AM
Quote from: Kimmie on February 11, 2008, 02:53:17 PM
Is there a way to change the text that is in the pm that gets sent to the member who's karma has been changed?

This is what it currently sends:

QuoteDear user. Your karma was changed. You can see the log if follow this link:
"link"

The reason of changing was: the reason

Is there a way to have it so that it says Dear (and then the actual members name) and not the word "user, and is there a way to change the text? I want change the way its worded because the english isnt very good on it. (no offense to the mod creator)  ;)

Take a look at the txt strings for it, and play around with them untill it looks good, I might when I get home if my puter is stable.
There should be a by user option in the profile to be notified by popup, pm, or not at all for karma changes..I think there may be the option to set a default in the reset options for the themes section, but I'm not sure (and I'm at school so I have no access to check).

Your string says "dear user?"
Mine always put my username in there...At least thats how I remember it before I switched to pop up ;)
Title: Re: Karma Description Mod
Post by: Nibogo on February 16, 2008, 06:04:23 PM
this works with smf 1.1.4?
Title: Re: Karma Description Mod
Post by: †MavN† on February 17, 2008, 05:20:50 AM
XSS posible. Fix attached.
Title: Re: Karma Description Mod
Post by: Webstar on March 03, 2008, 03:50:50 AM
does it works with 1.1.4?
Title: Re: Karma Description Mod
Post by: †MavN† on March 03, 2008, 05:41:46 AM
Quote from: Webstar on March 03, 2008, 03:50:50 AM
does it works with 1.1.4?
Yes it's working
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on March 03, 2008, 02:13:25 PM
Quote from: †MavN† on February 17, 2008, 05:20:50 AM
XSS posible. Fix attached.


What's this fix for?
Title: Re: Karma Description Mod
Post by: Kimmie on March 03, 2008, 06:16:00 PM
Quote from: Webstar on March 03, 2008, 03:50:50 AM
does it works with 1.1.4?

Yes thats what I have and it works great.
Title: Re: Karma Description Mod
Post by: imgreat on March 04, 2008, 03:07:42 PM
Is there a way to have the input of an explanation be optional? Rather than having to fill that field to continue.

This mod is otherwise perfect for me and my users, great work!
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on March 05, 2008, 01:53:02 AM
Quote from: imgreat on March 04, 2008, 03:07:42 PM
Is there a way to have the input of an explanation be optional? Rather than having to fill that field to continue.

This mod is otherwise perfect for me and my users, great work!

Admin -> Features -> Karma -> ( Here you can find a check box for that. )
Title: Re: Karma Description Mod
Post by: imgreat on March 05, 2008, 05:41:49 AM
Quote from: LexArma on March 05, 2008, 01:53:02 AM
Quote from: imgreat on March 04, 2008, 03:07:42 PM
Is there a way to have the input of an explanation be optional? Rather than having to fill that field to continue.

This mod is otherwise perfect for me and my users, great work!

Admin -> Features -> Karma -> ( Here you can find a check box for that. )

Really? I have been trying them. Which one makes that field optional?

The "Applaud or smite users without explanation" was my instinct, but that removes the ability to put in an explanation altogether, rather than giving the option to choose.

Also, is there a way you can not show the username of the person who gave karma on the log?
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on March 05, 2008, 05:48:05 AM
Quote from: imgreat on March 05, 2008, 05:41:49 AM
Quote from: LexArma on March 05, 2008, 01:53:02 AM
Quote from: imgreat on March 04, 2008, 03:07:42 PM
Is there a way to have the input of an explanation be optional? Rather than having to fill that field to continue.

This mod is otherwise perfect for me and my users, great work!

Admin -> Features -> Karma -> ( Here you can find a check box for that. )

Really? I have been trying them. Which one makes that field optional?

The "Applaud or smite users without explanation" was my instinct, but that removes the ability to put in an explanation altogether, rather than giving the option to choose.

Also, is there a way you can not show the username of the person who gave karma on the log?
OK... Sorry, I haven't tested that - but just assumed it made it optional. :(
Title: Re: Karma Description Mod
Post by: conectado on March 05, 2008, 11:47:35 PM
Hello everyone,

Could you please teach me how to translate this mod . I'll be glad to do it to Spanish...

Another thing... Is there any possibility to use this mod with other themes (not default)???

Thank you all.
Title: Re: Karma Description Mod
Post by: imgreat on March 06, 2008, 06:17:00 AM
Conectado, this mod works perfectly fine for me on all my custom themes so far :)
Title: Re: Karma Description Mod
Post by: conectado on March 06, 2008, 11:49:14 AM
But you have created your own themes???

Because i'm using Dilbercolor theme and i can't see the Karma Stats button...

The only solution thats came to my mind is to choose default theme for me (administrator).
That way the other users will see the forum with the Dilber theme (normally).

Is there anyone who has installed Dilbercolor theme and this mod??
Title: Re: Karma Description Mod
Post by: conectado on March 08, 2008, 12:29:04 PM
Hi everyone, i made the translation for this mod to Spanish. I don't know how to do it directly in the files of the zip, so i identified the strings using a package parser (thanks Alundra) and made the translation.

Could you please (someone) put this strings (translated) in the mod.

Here is the strings in a .txt file

Thank you all
Title: Re: Karma Description Mod
Post by: JoshieDaMan on March 14, 2008, 02:32:26 PM
Is there a way of change it to longer description words? Because I only see 10 character of letters to type out I believe, I am wondering how to change it to like 40 characters for descriptions.
Title: Re: Karma Description Mod
Post by: JoshieDaMan on March 17, 2008, 09:02:23 AM
Bump. I'd like to know what to look for to make the description longer for user to type. Because there are limited of amount characters to type in the description field. I'd like it to have little extra of description character letters to type out. Just point me out for the option to change the number amounts of limitation letters to type in.
Title: Re: Karma Description Mod
Post by: LaVioRtH_cL on March 23, 2008, 04:29:14 AM
Hello,

It's shows me top 5 members with best and worst karma on karma stats in karma logs page. How can i improve that to top 10 members?
Title: Re: Karma Description Mod
Post by: Pratt on March 23, 2008, 11:04:40 AM
Hi! Just wanted to drop by and ask if someone is developing a 2.0 compatible version of this mod.
Title: Re: Karma Description Mod
Post by: steve in houston on March 27, 2008, 03:25:31 PM
i am also looking forward to a 2.0 release.

this is probably the most used and popular mod on my site.
thanks
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on March 27, 2008, 04:52:02 PM
I have asked the author :) When he responds we will know :D.
Title: Re: Karma Description Mod
Post by: Alpay on March 31, 2008, 11:51:07 AM
Quote from: steve in houston on March 27, 2008, 03:25:31 PM
i am also looking forward to a 2.0 release.

this is probably the most used and popular mod on my site.
thanks

up... =)

Quote from: Alundra on March 27, 2008, 04:52:02 PM
I have asked the author :) When he responds we will know :D.

Thanks..
Title: Re: Karma Description Mod
Post by: Islander_IBG on April 07, 2008, 12:01:09 PM
hi

how to ass "Karma stats" in my custom theme.....?

http://xxxx/index.php?action=viewkarma


^^^ i cant see this in my custom theme......
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on April 07, 2008, 12:07:50 PM
Your have to do that manually, so if you want to,

http://sleepycode.com/PackageParser/index.php
^ put the mod through that and do what it says to install it onto your theme :D
Title: Re: Karma Description Mod
Post by: slay3rg1 on April 13, 2008, 09:12:59 AM
Hello there i'm Using SMF 2 Beta 3 and i have some problems with this pack

#  Karma_Description_Mod_ver.2.3.zip
# (17KB)
# [2460]

I Uploaded To My Forum But When I Try To Install It I Got This Problems:

Execute Modification     ./Sources/Admin.php     Test failed
      1.    Replace    ./Sources/Admin.php    Test failed
      2.    Add After    ./Sources/Admin.php    Test failed

*    2.    Execute Modification    ./Sources/Karma.php    Test failed
      1.    Add Before    ./Sources/Karma.php    Test successful
      2.    Replace    ./Sources/Karma.php    Test failed
      3.    Add After    ./Sources/Karma.php    Test successful
      4.    Replace    ./Sources/Karma.php    Test failed
      5.    Add After    ./Sources/Karma.php    Test successful
      6.    Add Before    ./Sources/Karma.php    Test successful
      7.    Replace    ./Sources/Karma.php    Test failed
      8.    Replace    ./Sources/Karma.php    Test failed

      9.    Add Before    ./Sources/Karma.php    Test successful
      10.    Add After    ./Sources/Karma.php    Test successful
      11.    Add Before    ./Sources/Karma.php    Test successful
      12.    Add Before    ./Sources/Karma.php    Test successful
      13.    Add Before    ./Sources/Karma.php    Test successful
   3.    Execute Modification    ./Sources/ModSettings.php    File not found
*    4.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test failed
      2.    Add Before    ./Sources/Subs.php    Test failed

*    5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
      1.    Add After    ./Sources/BoardIndex.php    Test successful
*    6.    Execute Modification    ./Sources/Profile.php    Test failed
      1.    Add After    ./Sources/Profile.php    Test successful
      2.    Add Before    ./Sources/Profile.php    Test failed
      3.    Add Before    ./Sources/Profile.php    Test failed
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test failed

      1.    Add After    ./Sources/ManagePermissions.php    Test successful
      2.    Add After    ./Sources/ManagePermissions.php    Test failed
*    8.    Execute Modification    ./Themes/default/Admin.template.php    Test failed
      1.    Add After    ./Themes/default/Admin.template.php    Test failed
*    9.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/default/BoardIndex.template.php    Test failed

      2.    Add Before    ./Themes/default/BoardIndex.template.php    Test successful
*    10.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
      1.    Add Before    ./Themes/default/Profile.template.php    Test successful
      2.    Add After    ./Themes/default/Profile.template.php    Test successful
      3.    Add Before    ./Themes/default/Profile.template.php    Test failed
*    11.    Execute Modification    ./Themes/default/languages/Admin.english.php    Test failed
      1.    Add After    ./Themes/default/languages/Admin.english.php    Test failed
   12.    Execute Modification   
./Themes/default/languages/ModSettings.english.php    File not found
*    13.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful

      1.    Add After    ./Themes/default/languages/Who.english.php    Test successful
*    14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Help.english.php    Test successful
*    15.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/index.english.php    Test successful
*    16.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/ManagePermissions.english.php    Test successful
*    17.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Errors.english.php    Test successful
*    18.    Execute Modification    ./Themes/default/languages/Profile.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Profile.english.php    Test successful
*    19.    Execute Modification    ./index.php    Test successful



Any Idea ??
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on April 13, 2008, 05:52:28 PM

This mod is not compatible with 2.0.

Quote from: Alpay on March 31, 2008, 11:51:07 AM
Quote from: steve in houston on March 27, 2008, 03:25:31 PM
i am also looking forward to a 2.0 release.

this is probably the most used and popular mod on my site.
thanks

up... =)

Quote from: Alundra on March 27, 2008, 04:52:02 PM
I have asked the author :) When he responds we will know :D.

Thanks..
Title: Re: Karma Description Mod
Post by: Alpay on April 14, 2008, 06:39:33 AM
Quote from: Alundra on April 13, 2008, 05:52:28 PM
This mod is not compatible with 2.0.

however he want :-X
Title: Re: Karma Description Mod
Post by: thatguy on April 18, 2008, 11:47:16 AM
I have SMF version 1.4 and am using the Karma Description Mod. I have it set up so that certain users can't be smited. However, this is still being done to users who have been marked as un smite able. What setting am I missing here?

Thanks
Title: Re: Karma Description Mod
Post by: Mrs_Robota on April 22, 2008, 10:20:03 PM
this mod is compatible with smf 1.1. 4?
please help me I really need it (y si es en español mejor)
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on April 22, 2008, 10:24:22 PM
Quote from: Mrs_Robota on April 22, 2008, 10:20:03 PM
this mod is compatible with smf 1.1. 4?
please help me I really need it (y si es en español mejor)

Yes it is

Quote from: thatguy on April 18, 2008, 11:47:16 AM
I have SMF version 1.4 and am using the Karma Description Mod. I have it set up so that certain users can't be smited. However, this is still being done to users who have been marked as un smite able. What setting am I missing here?

Thanks

It must be a bug :(. It shouldnt do that.
Title: Re: Karma Description Mod
Post by: Mrs_Robota on April 22, 2008, 11:12:15 PM
Quote from: conectado on March 06, 2008, 11:49:14 AM
But you have created your own themes???

Because i'm using Dilbercolor theme and i can't see the Karma Stats button...

The only solution thats came to my mind is to choose default theme for me (administrator).
That way the other users will see the forum with the Dilber theme (normally).

Is there anyone who has installed Dilbercolor theme and this mod??

I also have this theme and i just installed, work only with english language, with spanish or another language, there are not text, don't know how to modify that
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on April 23, 2008, 03:17:39 AM
Quote from: Mrs_Robota on April 22, 2008, 11:12:15 PM
Quote from: conectado on March 06, 2008, 11:49:14 AM
But you have created your own themes???

Because i'm using Dilbercolor theme and i can't see the Karma Stats button...

The only solution thats came to my mind is to choose default theme for me (administrator).
That way the other users will see the forum with the Dilber theme (normally).

Is there anyone who has installed Dilbercolor theme and this mod??

I also have this theme and i just installed, work only with english language, with spanish or another language, there are not text, don't know how to modify that

By using a package parser you can see what changes were made to *.english.php files. All you need to do, is manually make the same changes to *.yourlanguage.php -files as well. :)

http://www.smfhacks.com/smf-package-parser.html
Title: Re: Karma Description Mod
Post by: thatguy on April 24, 2008, 11:23:47 AM
Quote from: Alundra on April 22, 2008, 10:24:22 PM
Quote from: Mrs_Robota on April 22, 2008, 10:20:03 PM
this mod is compatible with smf 1.1. 4?
please help me I really need it (y si es en español mejor)

Yes it is

Quote from: thatguy on April 18, 2008, 11:47:16 AM
I have SMF version 1.4 and am using the Karma Description Mod. I have it set up so that certain users can't be smited. However, this is still being done to users who have been marked as un smite able. What setting am I missing here?

Thanks

It must be a bug :(. It shouldnt do that.

Yup, because someone just did it again this morning.
Title: Re: Karma Description Mod
Post by: Pratt on April 24, 2008, 01:35:42 PM
Hi, no word on a 2.0 compatible version? :(

I guess I'll have to code my own "stripped-down" version of this mod, I only need the descriptions and installing the advanced reputation mod, is just a little to much for what i need :(
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on April 24, 2008, 06:11:46 PM
Oh please share that with me!!
I want it too :D. If you need any help, I am available...I don't know PHP though :P. I'm good with wording and graphics ;).
Title: Re: Karma Description Mod
Post by: Justyne on April 28, 2008, 09:34:43 AM
Quote from: Pratt on April 24, 2008, 01:35:42 PM
Hi, no word on a 2.0 compatible version? :(

I guess I'll have to code my own "stripped-down" version of this mod, I only need the descriptions and installing the advanced reputation mod, is just a little to much for what i need :(

I tried to port it and didn't get anywhere with it, being too daft to translate the old db functions into new ones. You are welcome though to my attempt and see if you can fix it.
Title: Re: Karma Description Mod
Post by: ukcord_viper on April 28, 2008, 12:55:49 PM
OK chaps I tried to install this and it did not work. I am on 1.1.4 and I used the default theme.

Obviously when it did the check it tried to install the russian files which I reckoned I didn't need so I let if go ahead and do it's thing.

it seemed to work and when I looked under Karama I had all the tick boxes but none of the text to describe what each tick box does......

Any suggestions. I have uninstalled the mod and await guidance. Which version should I install??

Thanks in anticipation
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on April 28, 2008, 01:27:28 PM
You are missing the language specific strings. What language is your forum using?

English, English utf-8 - some else?
Title: Re: Karma Description Mod
Post by: ukcord_viper on April 28, 2008, 01:59:40 PM
Sorry everyone...I was having a funny five mins.....Installed the right package and it's working wonderfully.....

How silly do I feel.... :-[
Title: Re: Karma Description Mod
Post by: samtemp on May 17, 2008, 04:16:51 AM
Hi,
I had SMF 1.1.5 with the Karma Auto Mod installed.
I installed This Karma Description mod as well and ran into the common problem with 'Main'
So I uninstalled it and things seemed back to normal until I checked in my admin's karma settings page.
Despite the fact that the Karma Description Mod is uninstalled and deleted from my server, I still have all of the Karma Descriptions settings options in my admin page!

How do I remove this? Or has this already messed things up to the point that I should do a fresh install of SMF and start over?

Thanks in advance!
Title: Re: Karma Description Mod
Post by: xrunner on May 17, 2008, 08:03:31 AM
Using this mod, I had a member give karma to another member, but the topic link in the log points to the main forum page - not to a specific post or PM.

How do you think this member managed to give karma like that, with this mod installed? P.S. he is a known troublemaker, so somehow he managed to do this.
Title: Re: Karma Description Mod
Post by: tweaker on May 18, 2008, 03:06:45 PM
Quote from: xrunner on May 17, 2008, 08:03:31 AM
Using this mod, I had a member give karma to another member, but the topic link in the log points to the main forum page - not to a specific post or PM.

How do you think this member managed to give karma like that, with this mod installed? P.S. he is a known troublemaker, so somehow he managed to do this.

I have used this mod with three different hosting services.  Results varied.  In one case the mod worked flawlessly.  In another the mod did not include the referring message about half the time.  In the third case this problem was only seen with certain members. 

In the second case I eventually fixed the problem by uninstalling the mod completely and reinstalling it. 

In the third case something very strange happened.  My forum was almost a year old when all of the karma scores were reset to 0.  People became so upset that their precious karma was lost that members actually left my forum.  I had no idea people cared so much.
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on May 18, 2008, 03:17:13 PM
They do care so much, if you have an old db backup you can put the scores back :). My forum HEAVILY depends on karma, and the Advanced Rep system ended up ruining our scored, I had to import the old scores, everyone was upset.
I used this mod and it was flawless, I suspect something else was interfering with it.
Title: Re: Karma Description Mod
Post by: tweaker on May 18, 2008, 03:38:34 PM
Quote from: Alundra on May 18, 2008, 03:17:13 PM
They do care so much, if you have an old db backup you can put the scores back :). My forum HEAVILY depends on karma, and the Advanced Rep system ended up ruining our scored, I had to import the old scores, everyone was upset.
I used this mod and it was flawless, I suspect something else was interfering with it.

That it works flawlessly on one of the forums causes me to suspect that it could be a problem with the hosting company.  The buggy forum has a tendency to go down alot sometimes for hours. 

I'm new to this Admin thing.  My brother is a fanatic right-wing activist and I'm embarrased to even mention the kinds of forums that he has recently put me in charge of.  Is it typical for a forum to go down so often?  I know it happens multiple times in a week sometimes for a few minutes at a time sometimes for hours.  I looked but did not find good information comparing various hosting services' uptime.  When the forum goes down the right-wingers start acting paranoid. 
Title: Re: Karma Description Mod
Post by: cassie on May 19, 2008, 06:06:51 PM
I just installed the Ultimate Profile mod. I don't see the links for "Who change my Karma" etc, that were in the profile summary. Members can't check their Karma comments now. The Karma log is still fine and Karma works fine, just this little detail.

Is there a way I can make this work? If I have to code it in myself I will. Want them to be able to access Karma from the Ultimate Profile layout.

Thanks! :)
Title: Re: Karma Description Mod
Post by: Kindred on May 20, 2008, 12:29:32 PM
the UP mod replaces the profile section (if I recall correctly). This means that ANY mod that you have affecting the profile will likely have to be manually applied over the UP mod, in the new template....
Title: Re: Karma Description Mod
Post by: cassie on May 20, 2008, 12:58:15 PM
Kindred,

Yes, from the reply I received on the UP mod board, this is the case.

I'm trying to apply the code changes for the Profile.template.php file that are specified for the Karma description mod, to the UltimateProfile.template.php.

I can do the first find/replace of code for the Karma mod, but the second find is

                    </table>  </td>  </tr>'; // Show the standard "Save Settings" profile button.

Can't find that series of code in UltimateProfile.template.php

So close, yet so far....

I tried to uninstall UP, uninstall Karma mod, then reinstall UP, then Karma mod, but I cannot uninstall Karma mod without getting two errors.

Can someone help me with this? I know there are others who like the UP and also have Karma description mod installed. Would love to get this perfected. 

Thank you!  :)

Title: Re: Karma Description Mod
Post by: Lady Bug on May 21, 2008, 11:22:18 PM
Hi.  I'm new this forum thing, so please be patient.  I have a question about mods.  If the mod is compatible with my version of SMF, which is 1.1.5, is it necessary to modify the mod before installing? 

I attempted to install two mods, one was for embedding youtube and the other was a karma description mod.  The last error went something like this.

1. Execute Modification Karma_Description_Mod_1.xml Modification parse error
2. Execute Modification - Modification parse error
3. Execute Modification Karma_Description_Mod_2.xml Modification parse error
4. Execute Modification - Modification parse error

I screamed when I saw that!  I was given the option not to continue with the install, so I aborted.  I then later went back and read the instructions for how to modify the mod, but it seemed like a lot of work.  Is there a more automatic way of doing it?
Title: Re: Karma Description Mod
Post by: Musicmad on May 23, 2008, 04:44:09 PM
Says "unable to load main template" when i try and rep someone.
Title: Re: Karma Description Mod
Post by: _Anthony_ on May 23, 2008, 11:13:29 PM
Very nice I used it till i upgraded to smf 2 beta
Title: Re: Karma Description Mod
Post by: venex on May 25, 2008, 04:07:37 AM
I need help. I installed it and when I try to change the setting it says everything in another language and I can't translate it because I don't understand that language...
I see something like: "ID ïîëüçîâàòåëåé, êîòîðûå íå ìîãóò èçìåíÿòü êàðìó. Íàïðèìåð: 2,412,88"

My forum is in spanish, but, as you see, I can understand english. I want that MOD in english so I can translate it in spanish. Who can help me?!?! :(

edit: I also noticed another error just now... when I try to give someone a + or - it says: "unable to load main template", as musicmad said...
Title: Re: Karma Description Mod
Post by: Twysted on May 25, 2008, 07:20:31 AM
i am having a problem with the install of this mod, when i install it and goto admin area i get this error

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/acidclic/public_html/scambux.com/Sources/Admin.php on line 416

i am using 1.1.5 and this is the first mod i have installed.
Title: Re: Karma Description Mod
Post by: Twysted on May 25, 2008, 07:31:58 AM
nevermind i fixed it, there is a code error in the install
Title: Re: Karma Description Mod
Post by: Twysted on May 25, 2008, 08:03:07 AM
Quote from: venex on May 25, 2008, 04:07:37 AM
I need help. I installed it and when I try to change the setting it says everything in another language and I can't translate it because I don't understand that language...
I see something like: "ID ïîëüçîâàòåëåé, êîòîðûå íå ìîãóò èçìåíÿòü êàðìó. Íàïðèìåð: 2,412,88"

My forum is in spanish, but, as you see, I can understand english. I want that MOD in english so I can translate it in spanish. Who can help me?!?! :(

edit: I also noticed another error just now... when I try to give someone a + or - it says: "unable to load main template", as musicmad said...


from Russian to English:

<file name="$themedir/languages/Admin.english.php">
<operation>
<search position="before"><![CDATA[
$txt['maintain_logs'] = 'Empty out unimportant logs.';
]]></search>
<add><![CDATA[
$txt['maintain_karmalog'] = 'Empty out Karmachange Description log';
]]></add>
</operation>
</file>
<file name="$themedir/languages/ModSettings.english.php">
<operation>
<search position="before"><![CDATA[
$txt['karmaSmiteLabel'] = 'Karma smite label';
]]></search>
<add><![CDATA[
$txt['karmadescmod'] = 'Enable Karma Description Mod';
$txt['karmamaxmembers'] = 'Members per page in Karma Description log';
$txt['karmalogview'] = 'Use member names as link to their profiles';
$txt['karmapermiss'] = 'Allow users view Karma Description log (See Permissions)';
$txt['karmalinks'] = 'Enable karma links in users profiles';
$txt['karmaisowner'] = 'Disable whole karma log for users but enable own karma log';
$txt['karmakarma'] = 'Display users karma(+/-) in Karma Description Log';
$txt['karmaurl'] = 'Enable "Where" field in Karma Description Log';
$txt['karmaotherstat'] = 'Show other Karma Statistics';
$txt['karmasurv'] = 'Applaud or smite users without explanation';
$txt['karmawhatwrite'] = 'Write this in the log, when explanation is disabled';
$txt['karmacensor'] = 'Censor karma explanation';
$txt['karmatopicstarter'] = 'Users can change only topic\'s author karma';
$txt['karmanotifier'] = 'Enable karma notification';
$txt['karmaidmember'] = 'Send PM from this Member ID (1 by default)';
$txt['karma_pm_send_changelink'] = 'Send link in personal message to message where karma was changed';
$txt['karma_pm_send_link'] = 'Send link in personal message to own karma log';
$txt['karmacantmodify'] = 'User ID\'s, whose karma can\'t be changed. <div class="smalltext">Comma separated, without spaces. For example: 1,13,27</div>';
$txt['karmacantmodify2'] = 'User ID\'s, who can\'t modify karma. <div class="smalltext">For example: 2,412,88</div>';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Who.english.php">
<operation>
<search position="before"><![CDATA[
$txt['whoall_.xml'] = 'Viewing an XML feed.';
]]></search>
<add><![CDATA[
$txt['whoadmin_viewkarma'] = 'Viewing <a href="' . $scripturl . '?action=viewkarma">Karmachange Description log</a>.';
$txt['whoall_modifykarma'] = 'Changing karma.';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Help.english.php">
<operation>
<search position="after"><![CDATA[$helptxt['karmaMode'] = 'Karma is a feature that shows the popularity of a member. Members, if allowed, can
]]></search>
<add><![CDATA[$helptxt['karmapermiss'] = 'By default this option is switched off and Karma Log can look only admins. If you want to do Karma Log available for other users or moderators, etc, enable this option and give the right that group, which can look Log in "Permissions" section.';
$helptxt['karmaotherstat'] = 'Show other karma statistics like Max applauded users or Max smited users and so on in whole karma log.';
$helptxt['karmalinks'] = 'If you enable this feauture, users will see two links in their profiles (Own or other users). They can see who change their karma and whom they change it. Karma Description Mod must be enabled';
$helptxt['karmakarma'] = 'It\'s display users karma in Karma log opposit the usernames. For example: Username (+12/-8)';
$helptxt['karmaurl'] = 'If you enable this option, you and your users can view where their karma was change.';
$helptxt['karmaisowner'] = 'If you enable this option, only profile owner will see two links to his own karma log. By the way, your users will resieve an error if they input an url adress (like http://your_forum.com/index.php?action=ownkarma;u=other_user) by the hand if you don\'t want your users can view other users karma log. Whole karma log will be disabled too. ONLY OWN KARMA LOG.';
$helptxt['karmanotifier'] = 'If you enable this function, your users will see another one field in their profiles in \'Look and Layuot Preferences\' section. It give an opportunity to notify users when their karma will be changed by two way notify: Popup Message and Personal Message.';
$helptxt['karmaidmember'] = 'If your users enabled Karma Notify function and choose Personal Message notify, they will recieve a Peronal Message from this member id. For example, if you have ID_MEMBER=1 they will recieve PM from you and so on. If you set member id = 0 your users will recieve a message from Admin Guest.';
$helptxt['karma_pm_send_link'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see a link to their own karma log.';
$helptxt['karma_pm_send_desc'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see the reason of karma change.';
$helptxt['karma_pm_send_changelink'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see a link to message where their karma was changed.';
$helptxt['karmacantmodify'] = 'Comma separated, without any spaces.';
$helptxt['karmacantmodify2'] = 'Comma separated, without any spaces.';

]]></add>
</operation>
</file>
<file name="$themedir/languages/index.english.php">
<operation>
<search position="end"></search>
<add><![CDATA[
//Karma Description Mod
$txt['karmaview'] = 'Karma Change Log';
$txt['whykarmamod'] = 'Karma change';
$txt['Description'] = 'No Description';
$txt['karmamoder'] = 'Reason for changing the karma of this user';
$txt['karmarequare'] = '(Required field)';
$txt['karmawho'] = 'Who';
$txt['karmawhos'] = 'Whom';
$txt['karmawhat'] = 'What (+/-)';
$txt['karmadesc'] = 'For What';
$txt['karmatime'] = 'When';
$txt['karmanumb'] = 'Values: ';
$txt['statkarma'] = '[Karma Stats]';
$txt['viewkarma_title'] = 'Karma Change Description';
$txt['deletekarma'] = 'Delete';
$txt['clearkarma'] = 'Clear';
$txt['karma_delete_confirm'] = 'Are you sure you want to delete this record?';
$txt['karma_back'] = '< Back';
$txt['karma_continue'] = 'Continue >';
$txt['karmadescappl'] = ' (Applaud)';
$txt['karmadescsmi'] = ' (Smite)';
$txt['karmawhere'] = 'Where';
$txt['karmawhereurl'] = 'In topic';
$txt['karmawhereurl2'] = 'In PM';
$txt['karma_delete'] = 'Delete';
$txt['sure_about_karma_remove'] = 'Are you sure you want to delete this record?';
$txt['karma_stat'] = 'Karma Statistic';
$txt['karma_top_applaud'] = 'Top 5 applauded users';
$txt['karma_top_smite'] = 'Top 5 smited users';
$txt['karma_other_stat'] = 'General Statistics';
$txt['karma_max_appl'] = 'User MAX applauding other users';
$txt['karma_max_smit'] = 'User MAX smiting other users';
$txt['karma_today'] = 'Karma points today';
$txt['karma_today_plus'] = 'Today "+"';
$txt['karma_today_minus'] = 'Today "-"';
$txt['karma_notifier'] = 'Your karma was changed on ';
$txt['karma_notifier2'] = ' points. Do you want to see the karma description log?';
$txt['karma_pm_subject'] = 'Karma Notification';
$txt['karma_pm_body'] = 'Dear user. Your karma was changed. ';
$txt['karma_pm_body2'] = 'You can see the log if follow this link:\\n'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Send the reason in personal message';
$txt['karma_pm_send_desc2'] = '\\n\\nThe reason of changing was: ';
$txt['karma_pm_send_changelink'] = '\\n\\nYour karma was changed on this message:\\n';
]]></add>
</operation>
</file>
<file name="$themedir/languages/ManagePermissions.english.php">
<operation>
<search position="end"></search>
<add><![CDATA[
$txt['permissionname_karmalog_view'] = 'View Karma Log';
$txt['permissionhelp_karmalog_view'] = 'Karma Description Log shows all members karma and description of applauding or smiting. This permission will only work if you also have enabled it in \'Features and Options\'. You can access the Karma Description screen by clicking the link in the \'Karma Stat\' section of the board index.';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Errors.english.php">
<operation>
<search position="end"></search>
<add><![CDATA[
$txt['cannot_karmalog_view'] = 'Sorry - you don\'t have the proper permissions to view the Karma Description list.';
$txt['viewkarma_error'] = 'User ID must be a number';
$txt['karma_not_topic_starter'] = 'Sorry, he is not topic author.';
$txt['karma_cant_modify'] = 'Sorry, you can\'t modify karma to this user.';
$txt['karma_cant_modify2'] = 'Sorry, you can\'t modify karma to other users.';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Profile.english.php">
<operation>
<search position="end"></search>
<add><![CDATA[
$txt['who_change_my_karma'] = 'Who changed my karma';
$txt['whom_i_change_karma'] = 'Whose karma have I changed';
$txt['enable_notify'] = 'Notify me when my karma will be changed';
$txt['enable_notify_none'] = 'don\'t notify';
$txt['enable_notify_popup'] = 'Popup window';
$txt['enable_notify_pm'] = 'Personal Message';
]]></add>
</operation>
</file>
<file name="$boarddir/index.php">
<operation>
<search position="before"><![CDATA['modifykarma' => array('Karma.php', 'ModifyKarma'),
]]></search>
<add><![CDATA[
'viewkarma' => array('Viewkarma.php', 'ViewKarma'),
'ownkarma' => array('Viewkarma.php', 'OwnKarma'),
'otherkarma' => array('Viewkarma.php', 'OtherKarma'),
]]></add>
</operation>
</file>
Title: Re: Karma Description Mod
Post by: mantodeus on May 25, 2008, 03:48:55 PM
Hey guys is this mod compatible with SMF 1.1.4 ?

Regards
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on May 25, 2008, 03:58:46 PM
Check the mod page, if it says it is compatible with 1.1.4 then it is.
Title: Re: Karma Description Mod
Post by: mantodeus on May 25, 2008, 04:55:15 PM
I checked but it isn't...I really want to install it on my 1.1.4 and try everything but without success.I read the manual for 1.1.4 and did everything step by step and no change :(
Title: Re: Karma Description Mod
Post by: madaisy on May 27, 2008, 01:46:22 PM
When will you release a version compatible with 1.1.5 ?
Title: Re: Karma Description Mod
Post by: xrunner on May 27, 2008, 02:26:08 PM
Quote from: madaisy on May 27, 2008, 01:46:22 PM
When will you release a version compatible with 1.1.5 ?

It is compatible - I am using it right now with 1.1.5.
Title: Re: Karma Description Mod
Post by: Twysted on May 28, 2008, 08:33:55 AM
Quote from: madaisy on May 27, 2008, 01:46:22 PM
When will you release a version compatible with 1.1.5 ?
so am i
Title: Re: Karma Description Mod
Post by: madaisy on May 29, 2008, 10:03:06 AM
I have a trouble: when I click on a applaud or smite it goes like this:

Unable to load main template


what can i do?! please help!

Quote from: Musicmad on May 23, 2008, 04:44:09 PM
Says "unable to load main template" when i try and rep someone.
same for me
Title: Re: Karma Description Mod
Post by: c a g a t a y on May 31, 2008, 03:39:39 PM
I need help


I am using SMF 1.1.5 and want to manually install Karma_Description_Mod ver.2.2

While changing karma.php manually there is

<operation>
<search position="replace"><![CDATA[// Delete any older items from the log. (karmaWaitTime is by hour.)
db_query("
DELETE FROM {$db_prefix}log_karma
WHERE " . time() . " - logTime > " . (int) ($modSettings['karmaWaitTime'] * 3600), __FILE__, __LINE__);
]]></search>


1. No section (or codes) like this in karma.php

2. May I skip this field in manuel installation?

What can I do?

Any idea?

Regards
Title: Re: Karma Description Mod
Post by: c a g a t a y on May 31, 2008, 04:59:54 PM
Using 1.1.5 and DilberMC Thema

I wonder, which version of Karma Description Mode suitable?

Regards
Title: Re: Karma Description Mod
Post by: greyknight17 on May 31, 2008, 09:11:49 PM
Go to the Karma Description mod download page again. On the right hand side you will see an option for manual installation. Click on the drop down box and select 1.1.5 and it should give you the instructions for it. I think the latest 2.3 version of the mod will work.

Are you sure it's not listed? Since this is a new Karma.php file that you just uploaded (from your other topic) it should work.
Title: Re: Karma Description Mod
Post by: phiberoptique on June 02, 2008, 03:57:43 AM
is this mod only for the default template? if it is how can i use it for another template? thanks
Title: Re: Karma Description Mod
Post by: c a g a t a y on June 02, 2008, 04:02:58 AM
Not only for default theme it works also many modified themes
I was using it with my DilberMC thema until I had upgraded my SMF to 1.1.5
Now I am trying to install Karma Description Mode manually to my 1.1.5 with the help of GreyKnight

Regards
Title: Re: Karma Description Mod
Post by: phiberoptique on June 02, 2008, 04:10:30 AM
ah nice to hear that thanks cagatay
Title: Re: Karma Description Mod
Post by: c a g a t a y on June 02, 2008, 08:49:09 AM
Hi all

as I said I am using SMF 1.1.5

Today I go to the Karma Description mod download page. On the right hand side found lates version (ie. 2.3) and opened manual installation for 1.1.5.

Not more than one hour I had installed this mod manuelly. No Error now in SMF forum (it is working)

But nothing occurs while giving a KARMA to any user. Karma increases automatically for every click

My admin page Karma settings looks like this

Any idea?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg527.imageshack.us%2Fimg527%2F2374%2Fkarmaws3.jpg&hash=2141c3aabdc309282866d8d553256557ae85af9f)
Title: Re: Karma Description Mod
Post by: mantodeus on June 02, 2008, 03:48:44 PM
Hey guys can you help me with 1.1.4 ?
If someone have edited files for 1.1.4 version I will be very thankful if he/she send them to me :)

Regards
Title: Re: Karma Description Mod
Post by: karlbenson on June 19, 2008, 06:44:21 PM
To all the users with this mod installed.

V2.3.1 security fixed version provided by SMF Customization Team.
ANYONE using any earlier version of this mod are recommended to use this version as soon as possible due to a discovered vulnerability.
Title: Re: Karma Description Mod
Post by: Lady Bug on June 20, 2008, 06:55:44 AM
Quote from: karlbenson on June 19, 2008, 06:44:21 PM
To all the users with this mod installed.

V2.3.1 security fixed version provided by SMF Customization Team.
ANYONE using any earlier version of this mod are recommended to use this version as soon as possible due to a discovered vulnerability.

I am currently using this mod.  Does it pose a security threat to my forum?
Title: Re: Karma Description Mod
Post by: karlbenson on June 20, 2008, 11:59:34 AM
Unless your using version v2.3.1. YES.
All previous versions are subject to a vulnerability.

Either uninstall it permanently or use v2.3.1
Don't continue to use anything less than v2.3.1
Title: Re: Karma Description Mod
Post by: boredtoday on June 21, 2008, 02:07:08 PM
installed it manually to my 1.1.5 smf bridged to mambo, and it's working wonderfully so far!

thanks!!!
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on June 26, 2008, 01:56:48 AM
Thank you for this mod :)  ;)

Czech translation key sections:
./Themes/default/languages/index.czech.php

//Karma Description Mod
$txt['karmaview'] = 'Výpis změn karmy';
$txt['whykarmamod'] = 'Změna karmy';
$txt['Description'] = 'Bez popisu';
$txt['karmamoder'] = 'Důvod pro změnu karmy tohoto uživatele';
$txt['karmarequare'] = '(Povinné)';
$txt['karmawho'] = 'Kdo';
$txt['karmawhos'] = 'Komu';
$txt['karmawhat'] = 'Co (+/-)';
$txt['karmadesc'] = 'Za co';
$txt['karmatime'] = 'Kdy';
$txt['karmanumb'] = 'Položky: ';
$txt['statkarma'] = '[Karma status]';
$txt['viewkarma_title'] = 'Popis změny karmy';
$txt['deletekarma'] = 'Smazat';
$txt['clearkarma'] = 'Vyčistit';
$txt['karma_delete_confirm'] = 'Jste si jisti, že chcete smazat tento záznam?';
$txt['karma_back'] = '< Zpět';
$txt['karma_continue'] = 'Pokračovat >';
$txt['karmadescappl'] = ' (Applaud)';
$txt['karmadescsmi'] = ' (Smite)';
$txt['karmawhere'] = 'Kde';
$txt['karmawhereurl'] = 'V tématu';
$txt['karmawhereurl2'] = 'V SZ';
$txt['karma_delete'] = 'Smazat';
$txt['sure_about_karma_remove'] = 'Jste si jisti, že chcete smazat tento záznam?';
$txt['karma_stat'] = 'Statistika';
$txt['karma_top_applaud'] = 'Top 5 kladně ohodnocených';
$txt['karma_top_smite'] = 'Top 5 záporně ohodnocených';
$txt['karma_other_stat'] = 'Hlavní statistika';
$txt['karma_max_appl'] = 'Nejčastěji kladně hodnotící uživatel';
$txt['karma_max_smit'] = 'Nejčastěji záporně hodnotící uživatel';
$txt['karma_today'] = 'Stav karmy dnes';
$txt['karma_today_plus'] = 'Dnes "+"';
$txt['karma_today_minus'] = 'Dnes "-"';
$txt['karma_notifier'] = 'Vaše karma byla změněna na ';
$txt['karma_notifier2'] = ' bodů. Chcete si prohlédnout LOG karmy?';
$txt['karma_pm_subject'] = 'Oznámení karmy';
$txt['karma_pm_body'] = 'Vážený uživateli. Vaše karma byla změněna. ';
$txt['karma_pm_body2'] = 'Pro více informací pokračujte na násleující odkaz:\\n'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Poslat důvod v soukromé zprávě';
$txt['karma_pm_send_desc2'] = '\\n\\nDůvod pro změnu byl: ';
$txt['karma_pm_send_changelink'] = '\\n\\nVaše karma byla změněna s následující zprávou:\\n';

Title: Re: Karma Description Mod
Post by: jepot5 on June 29, 2008, 10:41:26 AM
nice mod
$txt['who_change_my_karma'] = 'Who changed my karma'; $txt['whom_i_change_karma'] = 'Whose karma have I changed';

is there anyway i can change this code so i can show an image, use color, or something like that
Title: Re: Totally bummed
Post by: digit on June 29, 2008, 06:26:52 PM
Hi everyone - after 2 hours of MANUALLY installing this - I found out I am unable to run db_change.php successfully.  If I call it directly, http://www.mysite.com/db_change.php .... I get a blank screen, but the fields Description, link, and is_read are not created. 

Sooooo - unfortunately, I think,  I tried running all those (ALTER) commands manually - I hope I didn't mess things up dropping the primary key!

All the templates and languages look good...  but when I try to add a reason for the karma, I get..

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 37122, 'test', '165998.msg1207957#msg1207957', 2, 1214778083 )' at line 3
File: /users/Sources/Karma.php
Line: 407

Can someone please tell me how to run db_change.php manually??? (I have attached it)  I find it odd that SSI.php is required TWICE in the file.

Thanks!

p.s., I have also included the file "smf_log_karma.gif" -  a quick glance at my smf_log_karma table. (after manually running those ALTER commands in db_change.php)

EDIT: further testing revealed I am getting this error.... You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 37122, 'test', '165998.msg1207957#msg1207957', 2, 1214778083 )' at line 3
File: /users/Sources/Karma.php
Line: 407

Even with the Karma mod disabled.  :-(      I suspect it has to do with the database....

hmmm..  here is line 407 in Karma.php....


      // Put it in the log.
                db_query("
                        INSERT INTO {$db_prefix}log_karma
                                (action, ID_TARGET, Description, link, ID_EXECUTOR, logTime)
                        VALUES ($dir, $_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, ". time()." )
  LINE 407 -->                      ", __FILE__, __LINE__);
Title: Re: Karma Description Mod
Post by: digit on July 07, 2008, 07:33:12 AM
I still can't get this to work... when trying to add a comment, I am getting the error....

8: Undefined variable: dir
File: /users/Sources/Karma.php
Line: 406

This is line 406....

VALUES ($dir, $_REQUEST[uid], '$_POST[Description]', '$link', $ID_MEMBER, ". time()." )


what is that variable $dir?

Title: Re: Karma Description Mod
Post by: Mrs_Robota on July 22, 2008, 12:31:15 AM
this mod can work for smf 1.1.5??
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on July 22, 2008, 09:30:42 AM
Quote from: Mrs_Robota on July 22, 2008, 12:31:15 AM
this mod can work for smf 1.1.5??

Yes :)
Title: Re: Karma Description Mod
Post by: Mrs_Robota on July 22, 2008, 11:10:57 PM
Quote from: MaxiPes on July 22, 2008, 09:30:42 AM
Quote from: Mrs_Robota on July 22, 2008, 12:31:15 AM
this mod can work for smf 1.1.5??

Yes :)

how?? with me it doesn't work anymore since i updated my version of 1.1.4 to 1.1.5 :(
Title: Re: Karma Description Mod - PM and Email Notification
Post by: BWS on July 24, 2008, 03:34:37 PM
The mod works great on my 1.1.5 install of SMF, but there is only one minor detail that I noticed.

If you have your preferences set to receive an email each time you get a PM and have your notification for this mod set to PM, then an email is not sent to the user. The PM notifying that karma has been changed works great, but an email is not sent to the user whose karma is being modified.

Any advice?
Title: Re: Karma Description Mod
Post by: ArkServer on August 06, 2008, 04:40:20 PM
Quote from: Mrs_Robota on July 22, 2008, 12:31:15 AM
this mod can work for smf 1.1.5??

yes, although i haven't figured out how to do the email/pm sending it seems that it doesnt work on mine.

www.engineeringserver.com/forum if anyone wants to try out. Everything else works and users can write in the karma description.
Title: Re: Karma Description Mod
Post by: jepot5 on August 13, 2008, 05:08:38 PM
how to make putting karma description optional? so you can choose to leave the description field blank if you wish
Title: Re: Karma Description Mod
Post by: Prosoi on August 15, 2008, 08:40:02 PM
Thank you for great mod!

Can it work with SMF 2.0 (beta 3.1 or 4)?
Title: Re: Karma Description Mod
Post by: master2oo8 on August 18, 2008, 08:18:26 PM
No, it not work with 2.0.
Can somebody make a tutorial how can it be done that it runs under 2.0?

Damn, delevoper isnt activ anymore:
Last Active:     March 22, 2008, 04:18:53 AM

Can somebody else write this mod compatible into 2.0? I have already 2.0 at me (local) ready, i need only a karma description mod, but old entries should not get deleted, heeeeelp
Title: Re: Karma Description Mod
Post by: c a g a t a y on August 28, 2008, 04:38:53 PM
http://mysite.com/forum/index.php?action=viewkarma

If soma moderator of my site wants to enter this addres they always get this Error

Sorry An Error Occured!
Sorry You Dont Have An Access To View Karma Logs



Just Superadmin (I mean me) can see Karma Logs?

How can I open to moderators?

Regards

My SMF Version: 1.1.5
Theme: DilberMC
Title: Re: Karma Description Mod
Post by: rickways on August 30, 2008, 07:32:42 PM
Hello (sorry for english, i'm french)

I'd like to know if a french traduction exists ?

Or if it's possible, which text must put and where to allow the mod worked ?

Thanks
Title: Re: Karma Description Mod
Post by: hijinx on September 05, 2008, 12:57:14 AM
Hi everyone,

Is anyone working on an updated version for 2.0? I'd love to have this feature back on my boards. My users really miss it too :(

I don't like the Advanced Reputation System alternative mod at all. This one is perfect!

Thanks.
Title: Re: Karma Description Mod
Post by: c a g a t a y on September 05, 2008, 07:07:39 AM
Quote from: c a g a t a y on August 28, 2008, 04:38:53 PM
http://mysite.com/forum/index.php?action=viewkarma

If soma moderator of my site wants to enter this addres they always get this Error

Sorry An Error Occured!
Sorry You Dont Have An Access To View Karma Logs



Just Superadmin (I mean me) can see Karma Logs?

How can I open to moderators?

Regards

My SMF Version: 1.1.5
Theme: DilberMC


More than ONE WEEK...No one reply
No one interested wih this topic
It is shame for KARMA DESCRIPTION MODE
Title: Re: Karma Description Mod
Post by: AurielStone on September 08, 2008, 05:14:04 AM
I am running 1.1.6 and I'm having a hell of a time getting this mod to work.

It installs without a hitch, but when I go to the Karma page, all of the descriptions of various controls to the left of the checkboxes are blank. Likewise, on the Forum Maintenance page, there is a line where the link to view the Karma Log should be, but it's also blank and nothing happens when the blank is clicked on.

This happened to anyone else? Any ideas?

Thanks!
Title: Re: Karma Description Mod
Post by: evgenydeep on September 10, 2008, 02:16:54 PM
AurielStone, set you forum language to English, then back to the karma settings, and you'll see "truth" ;-)
Title: Re: Karma Description Mod
Post by: callteg4 on September 10, 2008, 03:40:07 PM
I have karma stats on my forum and when i go into my stats panel it is mega wide and it does not fit on the page I tried to rob my bank in the shop and got -100 bad karma so this is what is making it do it,Is there any settings where i can get the blue stats bar smaller so it will fit in the page thanks all callteg4
Title: Re: Karma Description Mod
Post by: evgenydeep on September 12, 2008, 10:21:45 AM
I updated this Karma Description mod, to update Russian Language files also.
I not changed any of COPYRIGHTS, just filenames.

On my forum previously I used "Reputation" instead of "Karma", so, I changed this in all texts also.
I tested both versions on my 2 forums.

So, English+Russsian "KARMA" mod:
Karma_Description_Mod_ver.2.3.1_en_ru_by_EvgenyDEEP.zip

So, English+Russsian "REPUTATION" mod:
Karma_Description_Mod_ver.2.3.1_reputation_en_ru_by_EvgenyDEEP.zip
Title: Re: Karma Description Mod
Post by: master2oo8 on September 19, 2008, 09:22:20 AM
Quote from: c a g a t a y on September 05, 2008, 07:07:39 AM
Quote from: c a g a t a y on August 28, 2008, 04:38:53 PM
http://mysite.com/forum/index.php?action=viewkarma

If soma moderator of my site wants to enter this addres they always get this Error

Sorry An Error Occured!
Sorry You Dont Have An Access To View Karma Logs



Just Superadmin (I mean me) can see Karma Logs?

How can I open to moderators?

Regards

My SMF Version: 1.1.5
Theme: DilberMC


More than ONE WEEK...No one reply
No one interested wih this topic
It is shame for KARMA DESCRIPTION MODE
You have to set premissions at the membergroup ;)
Find View Karmadescription Log or something
Title: Re: Karma Description Mod
Post by: qtime on September 20, 2008, 04:14:12 PM
Can someone tell me the changes between 2.3 and 2.3.1 I like to change it manually.
Title: Re: Karma Description Mod
Post by: AurielStone on September 22, 2008, 10:47:00 PM
Quote from: evgenydeep on September 10, 2008, 02:16:54 PM
AurielStone, set you forum language to English, then back to the karma settings, and you'll see "truth" ;-)

It turns out that the original admin of the board had set the default language to English-utf8. I adjusted the mod's second .xml file to point at the correct language files, and it went in without a hitch. Everything showed up just fine on the board itself.

Then I tried to applaud someone to test it and got:

"An Error Has Occurred!
Unable to load the 'main' template."

*headdesk*
Title: Re: Karma Description Mod
Post by: CrimsonSun99 on September 28, 2008, 04:40:19 PM
Yeah, will there be an update for SMF 2 Beta 4?
Title: Re: Karma Description Mod
Post by: Pratt on September 28, 2008, 11:10:44 PM
Quote from: CrimsonSun99 on September 28, 2008, 04:40:19 PM
Yeah, will there be an update for SMF 2 Beta 4?
It would be nice to know if someone is updating this mod for beta4 :(
Title: Re: Karma Description Mod
Post by: CrimsonSun99 on September 29, 2008, 01:09:28 PM
Quote from: Pratt on September 28, 2008, 11:10:44 PM
Quote from: CrimsonSun99 on September 28, 2008, 04:40:19 PM
Yeah, will there be an update for SMF 2 Beta 4?
It would be nice to know if someone is updating this mod for beta4 :(

Has the developer stopped working on this mod?
Title: Re: Karma Description Mod
Post by: Pratt on September 29, 2008, 10:49:15 PM
Quote from: CrimsonSun99 on September 29, 2008, 01:09:28 PM
Quote from: Pratt on September 28, 2008, 11:10:44 PM
Quote from: CrimsonSun99 on September 28, 2008, 04:40:19 PM
Yeah, will there be an update for SMF 2 Beta 4?
It would be nice to know if someone is updating this mod for beta4 :(

Has the developer stopped working on this mod?

You can see in his profile (http://www.simplemachines.org/community/index.php?action=profile;u=6867) that the last login was in March 22 - 2008 :(
Title: Re: Karma Description Mod
Post by: master2oo8 on October 02, 2008, 05:47:47 PM
Can somebody else make this mod compatible to smf 2.0? :)
Title: Re: Karma Description Mod
Post by: jepot5 on October 03, 2008, 10:15:58 AM
How to make it so you can leave it blank if you want? So the javascript doesn't popup that you need to put a comment?
Title: Re: Karma Description Mod
Post by: Krandall on October 07, 2008, 03:45:00 PM
Quote from: evgenydeep on September 10, 2008, 02:16:54 PM
AurielStone, set you forum language to English, then back to the karma settings, and you'll see "truth" ;-)

I'm having this same issue. I only have "english" installed on my forum.
When I go into the karma options it all appears blank as well as when I applaud someone there's a text box but the submit button is blank as well...

can be seen @ www.raptorsource.com
Title: Re: Karma Description Mod
Post by: jepot5 on October 07, 2008, 11:04:32 PM
Quote from: jepot5 on October 03, 2008, 10:15:58 AM
How to make it so you can leave it blank if you want? So the javascript doesn't popup that you need to put a comment?
Please help
Title: Re: Karma Description Mod
Post by: rarach on October 09, 2008, 10:18:56 AM
I apologize if this has already been brought up, but sifting through 50 some pages is a large task.. :)

I have installed this mod, and it works great on a theme that I have been tweaking for myself, but the view karma log link in the info center does not show up in the default theme. What can I do to fix this?
Title: Re: Karma Description Mod
Post by: Krandall on October 13, 2008, 07:26:18 PM
Quote from: Krandall on October 07, 2008, 03:45:00 PM
Quote from: evgenydeep on September 10, 2008, 02:16:54 PM
AurielStone, set you forum language to English, then back to the karma settings, and you'll see "truth" ;-)

I'm having this same issue. I only have "english" installed on my forum.
When I go into the karma options it all appears blank as well as when I applaud someone there's a text box but the submit button is blank as well...

can be seen @ www.raptorsource.com

Well... thanks but no thanks.. I got it figured out. Seems it was a corrupt index.english.php file. in the Theme Languages section.
Title: Re: Karma Description Mod
Post by: jepot5 on October 18, 2008, 11:35:31 PM
Quote from: jepot5 on October 07, 2008, 11:04:32 PM
Quote from: jepot5 on October 03, 2008, 10:15:58 AM
How to make it so you can leave it blank if you want? So the javascript doesn't popup that you need to put a comment?
Please help
Help me pls.
Title: Re: Karma Description Mod
Post by: Iviiik on November 02, 2008, 09:20:32 AM
i cant see text in karma options  :'(

i have czech language

but i want install again, but, i have error

QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Admin.php    Test successful
2.    Execute Modification    ./Sources/Karma.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Sources/Subs.php    Test failed
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/Profile.php    Test successful
7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
8.    Execute Modification    ./Themes/default/Admin.template.php    Test successful
9.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
10.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
11.    Execute Modification    ./Themes/default/languages/Admin.english.php    Test successful
12.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
13.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
18.    Execute Modification    ./Themes/default/languages/Profile.english.php    Test successful
19.    Execute Modification    ./index.php    Test successful
20.    Execute Code    db_change.php    
21.    Extract File    ./Sources/Viewkarma.php    
22.    Extract File    ./Themes/default/Viewkarma.template.php    
23.    Extract File    ./Themes/default/DescriptionKarma.template.php



Title: Re: Karma Description Mod
Post by: MaXiForum.cz on November 04, 2008, 11:37:31 AM
Evolva máš špatně nastaven jazyk.
Zítra se ti na to podívám. Dnes jsem dělal na svém ;)
Title: Re: Karma Description Mod
Post by: Iviiik on November 04, 2008, 01:32:02 PM
Quote from: MaxiPes on November 04, 2008, 11:37:31 AM
Evolva máš špatně nastaven jazyk.
Zítra se ti na to podívám. Dnes jsem dělal na svém ;)


jj, už sem na to přišla :) sem akorat sem nenapsala že vyřešeno :) ted mi nejde jen to youtube :)
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on November 05, 2008, 04:14:45 AM
Vidím. A já se těšil. To je oprava na minutu :D
Jdu se na to podívat :)
PS: to že nutíš lidi k registraci moc velkou návštěvnost nepřinese :(

EDIT: Youtube nainstalováno ;)
Title: Re: Karma Description Mod
Post by: khamseen on November 05, 2008, 08:42:25 PM
I was going to try manually installing this on SMF 2.0 Beta 4 as it does give instructions for that, however one of the files it wants to modify doesn't exist. :( modsettings.php
Title: Re: Karma Description Mod
Post by: Pratt on November 06, 2008, 12:08:59 AM
Quote from: khamseen on November 05, 2008, 08:42:25 PM
I was going to try manually installing this on SMF 2.0 Beta 4 as it does give instructions for that, however one of the files it wants to modify doesn't exist. :( modsettings.php

This mod does not work with 2.0 beta :(
Is someone taking over this mod and porting it to 2.0 ?
Title: Re: Karma Description Mod
Post by: khamseen on November 06, 2008, 01:52:52 AM
I realise it's not intended for 2.0 Beta 4 however normally when you try to parse the manual install instructions it tells you that it's there are no manual install instructions for that version... However it came back with some which is misleading.

I really wish they would, I love the mod and we have it on our 1.1.6 boards just now. But we plan to eventually make the switch to 2.0 Beta  (after a month using a test server to play with and make sure we know how we want it all set up and with what mods installed before use by the public), so we are going to lose our Karma system. :(
Title: Re: Karma Description Mod
Post by: Krandall on November 10, 2008, 12:32:44 PM
Quote from: evolva on November 02, 2008, 09:20:32 AM
i cant see text in karma options  :'(

i have czech language

but i want install again, but, i have error

QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Admin.php    Test successful
2.    Execute Modification    ./Sources/Karma.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Sources/Subs.php    Test failed
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/Profile.php    Test successful
7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
8.    Execute Modification    ./Themes/default/Admin.template.php    Test successful
9.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
10.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
11.    Execute Modification    ./Themes/default/languages/Admin.english.php    Test successful
12.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
13.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
18.    Execute Modification    ./Themes/default/languages/Profile.english.php    Test successful
19.    Execute Modification    ./index.php    Test successful
20.    Execute Code    db_change.php    
21.    Extract File    ./Sources/Viewkarma.php    
22.    Extract File    ./Themes/default/Viewkarma.template.php    
23.    Extract File    ./Themes/default/DescriptionKarma.template.php

Exactly what I see... :(
Title: Re: Karma Description Mod
Post by: Krandall on November 22, 2008, 04:48:08 AM
I figured it out.

You'll have to do a manual install, I believe the part you're missing is here:

./Themes/default/languages/ModSettings.english.php


Find:

$txt['karmaSmiteLabel'] = 'Karma smite label';


Add After:

$txt['karmadescmod'] = 'Enable Karma Description Mod';
$txt['karmamaxmembers'] = 'Members per page in Karma Description log';
$txt['karmalogview'] = 'Use member names as link to their profiles';
$txt['karmapermiss'] = 'Allow users view Karma Description log (See Permissions)';
$txt['karmalinks'] = 'Enable karma links in users profiles';
$txt['karmaisowner'] = 'Disable whole karma log for users but enable own karma log';
$txt['karmakarma'] = 'Display users karma(+/-) in Karma Description Log';
$txt['karmaurl'] = 'Enable "Where" field in Karma Description Log';
$txt['karmaotherstat'] = 'Show other Karma Statistics';
$txt['karmasurv'] = 'Applaud or smite users without explanation';
$txt['karmawhatwrite'] = 'Write this in the log, when explanation is disabled';
$txt['karmacensor'] = 'Censor karma explanation';
$txt['karmatopicstarter'] = 'Users can change only topic\'s author karma';
$txt['karmanotifier'] = 'Enable karma notification';
$txt['karmaidmember'] = 'Send PM from this Member ID (1 by default)';
$txt['karma_pm_send_changelink'] = 'Send link in personal message to message where karma was changed';
$txt['karma_pm_send_link'] = 'Send link in personal message to own karma log';
$txt['karmacantmodify'] = 'User ID\'s, whose karma can\'t be changed. <div class="smalltext">Comma separated, without spaces. For example: 1,13,27</div>';
$txt['karmacantmodify2'] = 'User ID\'s, who can\'t modify karma. <div class="smalltext">For example: 2,412,88</div>';
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on December 03, 2008, 06:52:53 AM
Hi people)) I'm back)
Title: Re: Karma Description Mod
Post by: khamseen on December 03, 2008, 09:37:58 AM
Welcome back, does that mean you may update the mod for SMF 2.0 Beta 4?? *Is hopeful*
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on December 04, 2008, 12:08:31 AM
Yepp))
Title: Re: Karma Description Mod
Post by: master2oo8 on December 04, 2008, 08:16:03 AM
juhu :)
i have looked everyday in this thread and hoped, that somebody have a update for smf 2.0 :D
Title: Re: Karma Description Mod
Post by: khamseen on December 04, 2008, 09:45:50 AM
That's awesome news, can't wait to see it. Nothing has quite compared to this mod, it's definitely the best karma mod I've tried.
Title: Re: Karma Description Mod
Post by: Ben K on December 06, 2008, 08:22:19 PM
Are there Russian support for this mod?
Title: Re: Karma Description Mod
Post by: status on December 07, 2008, 07:26:50 PM
Russian-UTF8 version, original by "EvgenyDEEP". Works correct with SMF 1.1.7.


Русская версия в кодировке UTF-8, корректно работает на 1.1.7. Название "Карма" изменено на "Репутация", Вы можете вручную поменять его перед установкой.
Title: Re: Karma Description Mod
Post by: master2oo8 on December 07, 2008, 08:28:07 PM
@Grek_Kamchatka
Do you have news?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on December 07, 2008, 08:39:31 PM
Nope, at this time i study the new version of a forum where many changes are made. After that I'll begin updating a KDM. Thq for your interesting
Title: Re: Karma Description Mod
Post by: hijinx on December 10, 2008, 07:50:58 PM
that is really great news, Grek_Kamchatka!

I'm excited for the new version. my forum is severly lacking without it. i loved the old version.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on December 11, 2008, 01:21:00 AM
If anybody know an AJAX technology, please PM me.
Title: Re: Karma Description Mod
Post by: cosminnnn on December 14, 2008, 05:34:30 AM
Hey, i have a little problem. I want my moderators to see the karma log info.
But only the admin can see it. I have looked into the permissions but ther's nothing related to this... Can somone tell me what i have to do? step by step... Thanks.  :)
Title: Re: Karma Description Mod
Post by: swampy on December 14, 2008, 08:21:57 AM
Quote from: Grek_Kamchatka on December 07, 2008, 08:39:31 PM
Nope, at this time i study the new version of a forum where many changes are made. After that I'll begin updating a KDM. Thq for your interesting

any progress on a new update for KDM?
Title: Re: Karma Description Mod
Post by: cosminnnn on December 15, 2008, 09:32:14 AM
no answer?  :-[
Title: Re: Karma Description Mod
Post by: master2oo8 on December 15, 2008, 11:08:08 AM
You cant set that.
Title: Re: Karma Description Mod
Post by: Darthemis on December 15, 2008, 03:36:55 PM
c'mon don't be impatient...
Title: Re: Karma Description Mod
Post by: master2oo8 on January 03, 2009, 01:17:57 AM
any news?
Title: Re: Karma Description Mod
Post by: vladok on January 03, 2009, 12:39:23 PM
New Year...  :)))

****

Грек, плизззз :) Очень ждем под 2ку. Усе русскоязычное и не только коммюнити.
Title: Re: Karma Description Mod
Post by: Sabre™ on January 06, 2009, 06:55:58 PM
What a cool mod!
Cant believe I havent stumbled on this before.

Thank You :)
Title: Re: Karma Description Mod
Post by: swampy on January 06, 2009, 07:00:36 PM
Quote from: Sabre™ on January 06, 2009, 06:55:58 PM
What a cool mod!
Cant believe I havent stumbled on this before.

Thank You :)

It is AWESOME!!!  We just need it updated for SMF 2 Beta 4

The person that wrote it is a genius!
Title: Re: Karma Description Mod
Post by: master2oo8 on January 08, 2009, 12:57:00 AM
Quote from: swampy on January 06, 2009, 07:00:36 PM
Quote from: Sabre™ on January 06, 2009, 06:55:58 PM
What a cool mod!
Cant believe I havent stumbled on this before.

Thank You :)
The person that wrote it is a genius!
Yes ;)
But he would be a mega-genius if he could make a SMF 2.0 Update :D
Title: Re: Karma Description Mod
Post by: truei1 on January 08, 2009, 12:20:49 PM
 I posted this on the wrong board, SMF 1.x Support. I am new to this so please be gentle. ;D


    Karma Mod Caused Big Problem!!!
« on: Yesterday at 04:53:07 PM » Quote Modify Remove 

--------------------------------------------------------------------------------
Here is how our problem began. A clean download of 1.1.7 was made and everything worked. We downloaded a Karma Description Mod and the permissions box was blank. The boxes to check were there but no text to read beside the boxes.

We uninstalled the Mod and deleted it. Now no one can applaud or smite, unless as Admin we go into the profile and do it manually. We tried reinstalling the Mod hoping it would put back whatever it took, but no cookie!

This is what it shows when a member tried to use the karma:

An Error Has Occurred!
Unable to load the 'main' template.


These are the errors that are showing in our forum error log: the x's replace the user number.
   

Unable to load the 'main' template.


 
2: call_user_func(ModifyKarma) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
File: /home/truei1/public_html/forum/index.php
Line: 140
   

8: Undefined index: whom_i_change_karma
File: /home/truei1/public_html/forum/Themes/default/languages/Who.english-utf8.php (summary sub template - eval?)
Line: 216
   


8: Undefined index: who_change_my_karma
File: /home/truei1/public_html/forum/Themes/default/languages/Who.english-utf8.php (summary sub template - eval?)
Line: 215

These are what Mods we have installed;

1. TinyPortal 0.983     
2. SMF Gallery Lite 1.9.4   
3. Remove SMF Logo 1.2   
4. Karma Description Mod 2.3.1  (We left this installed for now) 

From here, how do we fix it so that our members can give karma?
What can we do to be able to use the karma mod because we want to be able to give reason for the karma?
If anyone has suggestions, please let me know!! Thanks for everything!
Title: Re: Karma Description Mod
Post by: truei1 on January 10, 2009, 03:00:56 PM
bump  :D
Title: Re: Karma Description Mod
Post by: master2oo8 on January 12, 2009, 09:29:26 AM
i gave hope already off
Title: Re: Karma Description Mod
Post by: khamseen on January 12, 2009, 09:15:30 PM
Quote from: master2oo8 on January 12, 2009, 09:29:26 AM
i gave hope already off

It's only been a month, he's still learning the coding of SMF 2.0 and it's been Christmas time and New Year. Give the guy a break already.
Title: Re: Karma Description Mod
Post by: swampy on January 12, 2009, 09:26:33 PM
Quote from: khamseen on January 12, 2009, 09:15:30 PM
Quote from: master2oo8 on January 12, 2009, 09:29:26 AM
i gave hope already off

It's only been a month, he's still learning the coding of SMF 2.0 and it's been Christmas time and New Year. Give the guy a break already.

Definitely.  All good things are worth waiting for.
Title: Re: Karma Description Mod
Post by: Sabre™ on January 14, 2009, 10:25:50 AM
Quote from: master2oo8 on January 12, 2009, 09:29:26 AM
i gave hope already off

pmsl
Title: Re: Karma Description Mod
Post by: master2oo8 on January 14, 2009, 11:46:15 AM
ok :)

@sabre, what means pmsl?
Title: Re: Karma Description Mod
Post by: khamseen on January 14, 2009, 11:50:38 AM
Quote from: master2oo8 on January 14, 2009, 11:46:15 AM
ok :)

@sabre, what means pmsl?

Well the MSL part is "My Self Laughing" you can figure out what the P stands for yourself :P
Title: Re: Karma Description Mod
Post by: swampy on January 14, 2009, 02:50:03 PM
Hey folks, it is a pain in the ass checking out meaningless posts, so how about keeping it on track and if you don't have something constructive to say just hush up.
Title: Re: Karma Description Mod
Post by: Sabre™ on January 14, 2009, 10:28:16 PM
As opposed to that meaningless post, and this?

Quote from: swampy on January 12, 2009, 09:26:33 PM
Definitely.  All good things are worth waiting for.

How is that on track or any different?
I see you not showing any statement to support the mod, or help another user in that statement.
Like our comments.
Now and then you have a few posts that sway off in reply, show me one support thread that doesn't!
So please, practice what you preach or just ignore it like we all do at times.
I guarantee you'll still be alive tomorrow. :)

Thanks
Title: Re: Karma Description Mod
Post by: truei1 on January 15, 2009, 02:12:07 PM
Quote from: Sabre™ on January 14, 2009, 10:28:16 PM
As opposed to that meaningless post, and this?

Quote from: swampy on January 12, 2009, 09:26:33 PM
Definitely.  All good things are worth waiting for.

How is that on track or any different?
I see you not showing any statement to support the mod, or help another user in that statement.
Like our comments.
Now and then you have a few posts that sway off in reply, show me one support thread that doesn't!
So please, practice what you preach or just ignore it like we all do at times.
I guarantee you'll still be alive tomorrow. :)

Thanks


Because when you guys do that my legitimate request for help gets lost and overlooked as this one may have since I posted it and even bumped it once already. I am still waiting for help.
      Thanks!

             Re: Karma Description Mod
    « Reply #1084 on: January 08, 2009, 12:20:49 PM »
Title: Re: Karma Description Mod
Post by: khamseen on January 15, 2009, 02:37:13 PM
Quote from: truei1 on January 15, 2009, 02:12:07 PM
Because when you guys do that my legitimate request for help gets lost and overlooked as this one may have since I posted it and even bumped it once already. I am still waiting for help.
      Thanks!

Our comments were directed at the annoying people who keep posting saying "any progress" or "I've given up" "bump" etc etc. You're not the only one who keeps having to come check the thread via email notification when there aren't any valid new posts :P
Title: Re: Karma Description Mod
Post by: Sabre™ on January 16, 2009, 11:33:21 PM
Quote from: truei1 on January 15, 2009, 02:12:07 PMBecause when you guys do that my legitimate request for help gets lost and overlooked

Oh of course!!
It cannot be because noone knows the solution!!
It MUST be because of the 2 or more lines posted!!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.getsmile.com%2Femoticons%2Fenergizer-smileys-51935%2Fitching.gif&hash=cc9a0baf380114861434430159a1c66ed1cf1c4b)

What have you done to correct your issue?
Have you reinstalled your site from an old backup?
Have you made any backups?
Have you then reinstalled the mod?
Have you tried disabling the other mods and then running that mod alone, and THEN enable the other mods one at a time to see if there are any conflicts?
etc etc etc...

What have you done?
If none of the above have been attempted, then start with the first, and reinstall from an old backup.
If you dont have one, then mark that as a lesson learnt, and start making backups a regular practice.
Now go to your  Packages  folder, and look in the  backup  folder, there you will see something along the lines of  Before Karma Description Mod.
Download that file, then reupload it to the root of your forum.
The root is where your sources, packages and theme folders etc are.

Unless someone knows how to fix your problem, then I'd suggest doing the above.

Good luck
Title: Re: Karma Description Mod
Post by: truei1 on January 17, 2009, 02:22:24 AM
Let me tell how much your kindness to someone who just got into this about a month ago, has touched my heart Sabre.

There hadn't been a back up made yet as the site was brand new. When we messed it up we asked for help. If we had known what to do we wouldn't have needed to ask.

Thank you for your suggestions and I would really like to follow them, if it were possible to do so.

However I think we have found someone to help us fix it.  As newbies to all of this we need all the luck we can get.

Thank you.
Title: Re: Karma Description Mod
Post by: Sabre™ on January 17, 2009, 02:54:39 AM
Well mate, we all start somewhere, we all require assistance, and if time and knowledge permits, we all usually receive assistance.

Guidlines
1.) You should always make backups of your project!!
2.) Refer to number one.

Many people back their boards up once a day.  I do it once a week, and whenever a major edit has been made.

If you run into future issues, try to use the above suggestions as a guide, as they are part of what you would be asked.
Never rely on luck when using software, rely on your willingness to absorb knowledge, and your number 1 friend................ Mr backup lol ;)

What I have stated above about your backup in your packages folder, may prove handy one day, so try to learn how to do that.
Your reply was firm and handled with class, I for one respect that, so if your friend cannot sort this out for you, I will be more than welcomed to offer you the extra assistance.

Good luck :)
Title: Re: Karma Description Mod
Post by: truei1 on January 22, 2009, 09:54:53 PM
Update, 

All Our problems have been fixed and the MOD works like a charm!

Sabre, thank you for you kind offer. I would have taken you up on it too, but HR got it sorted out along with a lot of other problems we had. There were a bunch too!  :P

Oh and we make two backups of the site. So no matter what happens we at least have ALL of our files backed up.  ;D Thanks mate!

Title: Re: Karma Description Mod
Post by: Jessikard on January 24, 2009, 07:44:14 PM
hello...
i installed this mod to use it as a trader-system - it should work fine
so we testet this mod and now i want to clear the applauds and smites that were given

where can i do that ? maybe in the karma_log with phpmyadmin - but if it´s true HOW ?

help please Jessi

------------------------------------
running at smf 1.1.7
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 26, 2009, 01:23:52 AM
Hi all!
Remains to a few time and new release of KDM (for SMF 2.0) will be present.


KDM 2.3.1=============94%=>KDM 2.4
Title: Re: Karma Description Mod
Post by: Darthemis on January 26, 2009, 04:20:33 AM
Cool! :)

Thank u :D
Title: Re: Karma Description Mod
Post by: swampy on January 26, 2009, 06:08:37 AM
Very AWESOME!

Thank you
Title: Re: Karma Description Mod
Post by: khamseen on January 26, 2009, 12:01:05 PM
Awesome, thank you for the update ;D
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 27, 2009, 12:25:17 AM
KDM 2.3.1===============100%>KDM 2.4

Karma Description Mod ver. 2.4 RELEASED!!!
Title: Re: Karma Description Mod
Post by: swampy on January 27, 2009, 05:40:31 AM
You're the Man!

Thank you!
Title: Re: Karma Description Mod
Post by: Darthemis on January 27, 2009, 10:47:01 AM
Hello Grek!
First of all... thank u very much for your work.

I have just installed it into a beta forum I have and I obtain the next error:

Parse error: syntax error, unexpected '*' in /home/.juice/atenea/academiaatenea.org/foroparapruebas/Sources/Karma.php on line 383


Than u again!!
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 27, 2009, 04:44:11 PM
It's not enough information for me. Under what conditions there is an error? Show your karma.php here. Fresh install?

Inf. for all. Please, if you have any problem make a correct description of an error. Specify a condition at which there is an error. KDM mod and the forum version. File listing in which you have an error
Title: Re: Karma Description Mod
Post by: vladok on January 28, 2009, 05:49:19 AM
KDM 2.4
SMF 2.0 betta 3.1

   
Error installing. When installing the test runs without errors, then does not show the button "to continue the installation."
Tried to install from the Opera, Mozilla, Internet Explorer.
Error repeated.

When you install other mods, everything is OK. See attachment.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 28, 2009, 05:10:52 PM
It is because of smf version incompatible i think. Or, may be, you haven't proper ftp information to Upload some files (Viekarma.php, Viewkarma.template.php and Descriptionkarma.template.php)

Скорее всего второе, так как у тебя на скрииншоте появился линк "Необходимая информация FTP" Я думаю она там неспроста. Просто укажи верные данные от фтп аккаунта и у тебя появится кнопка установки. Удачи!
Title: Re: Karma Description Mod
Post by: hijinx on January 28, 2009, 10:53:06 PM
i got this error:

QuoteDuplicate column name 'description'
File: /home/hijinx2/public_html/pix/Packages/temp/db_change.php
Line: 8

when i tried to install. now it's saying the mod has not been applied, but i'm getting this error when anyone tries to change karma:

QuoteParse error: syntax error, unexpected '*' in /home/hijinx2/public_html/pix/Sources/Karma.php on line 282
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 28, 2009, 11:16:14 PM
Oh, God...
Any questions without description of SMF forum version, KDM version and listing of error files will be ignored...
Title: Re: Karma Description Mod
Post by: vladok on January 29, 2009, 01:58:42 AM
2Grek_Kamchatka
Введены верные - соединение тестируется -"связь установлена".
Просто захлопывается нижняя  панелька с "продолжить" а лог ошибок выдает

Применить фильтр: Показать сообщения об ошибках этого адреса(URL)  http://хххх.ххх/forum/index.php?action=admin;area=packages;sa=install;package=Karma_Description_Mod_ver.2.4_ru.zip
Применить фильтр: Показать ошибки только с теми сообщениями
2: fclose(): supplied argument is not a valid stream resource
Применить фильтр: Отображать ошибки только этого файла
Файл: /home/xxxxx/хххх.ххх/forum/Sources/Subs-Package.php
Строка: 2439


Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 29, 2009, 02:05:21 AM
vladok, попробуй на локальной машине поставить форум и прикрутить к нему мод. И еще как вариант остается несовместимость версий) Я на более ранних версиях форума не тестировал мод
Title: Re: Karma Description Mod
Post by: vladok on January 29, 2009, 02:13:01 AM
Ок, попробую под денвером установить на чистую 3.1.
Да, ты прав -версия старовата :)
Остается или ставить ручками... или поднимать версию симплмашинки...
По любому -спасибо за мод!
Title: Re: Karma Description Mod
Post by: hijinx on January 29, 2009, 04:13:57 AM
Quote from: Grek_Kamchatka on January 28, 2009, 11:16:14 PM
Oh, God...
Any questions without description of SMF forum version, KDM version and listing of error files will be ignored...

KDM 2.4
SMF 2.0 beta 4

i'm not sure what you mean by listing of error files. the description above was all i got. prior to that error, the test said everythign was successful.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 29, 2009, 07:24:59 AM
Ok, thq. I think it's because of you had upgrade your smf forum from previeus version (1.1.7 example) with installed KDM, couse you already have a "Description" field in your database... So, open your database in phpmyadmin or navicat and delete this fields in $your_prefix_log_karma table: description, link and is_read. Then add a primary key to table, and upload a fresh karma.php to /Source directory. Note: all your karma action will be erased! (You can export it to other new table and then add to new $_log_karma) And now install the mod. Enjoy!
Title: Re: Karma Description Mod
Post by: khamseen on January 29, 2009, 09:54:57 AM
Got the new version installed without any real hiccups so very happy. Awesome job on upgrading it for SMF 2 Beta 4 ;D
Title: Re: Karma Description Mod
Post by: hijinx on January 30, 2009, 04:15:03 AM
Quote from: Grek_Kamchatka on January 29, 2009, 07:24:59 AM
Ok, thq. I think it's because of you had upgrade your smf forum from previeus version (1.1.7 example) with installed KDM, couse you already have a "Description" field in your database... So, open your database in phpmyadmin or navicat and delete this fields in $your_prefix_log_karma table: description, link and is_read. Then add a primary key to table, and upload a fresh karma.php to /Source directory. Note: all your karma action will be erased! (You can export it to other new table and then add to new $_log_karma) And now install the mod. Enjoy!

Thanks so much! this got it working!!!

However, now i'm having this problem...

When one tried to view any member's profile, they get this: (see attatchment)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 30, 2009, 05:44:30 AM
Can you attach your profile.template.php here? (I mean file, not listing now)
Title: Re: Karma Description Mod
Post by: Darthemis on January 30, 2009, 06:19:02 AM
Quote from: Grek_Kamchatka on January 29, 2009, 07:24:59 AM
Then add a primary key to table,
Sorry grek but... what do you mean by that?
Title: Re: Karma Description Mod
Post by: swampy on January 30, 2009, 08:33:03 AM
I am operating SMF 2.0 Beta 4 with Karma Description Mod 2.4 with Portal Management ExtensionPortaMx v0.952


I haven't seen this mentioned yet, so maybe it is specific to my site.

'Users Online' has moved to the top of the Forum Page.  Has anyone else experienced this problem after installing KDM
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 30, 2009, 05:33:55 PM
Hi swampy, nice 2 c you.
You must install this mod manualy, because of PortaMx. KDM was written only for default theme.

Darthemis, by default smf_log_karma table has a PRIMARY KEY on id_target and id_executor field, and after installing the KDM this primary key was dropped (it's right). So, now you must create this PRIMARY KEY again. 4Example, you can use this SQL query:

ALTER TABLE `smf_log_karma` ADD PRIMARY KEY ( `id_target` , `id_executor` ) ;

(This code actually for MySQL) And now, you can install karma decription mod again.
Title: Re: Karma Description Mod
Post by: swampy on January 30, 2009, 05:40:05 PM
Thanks!

I sort of like it at the top, I may decide to learn to live with it

Probably not though.

All the best to you!!!
Title: Re: Karma Description Mod
Post by: Darthemis on January 30, 2009, 06:16:06 PM
Amazing Grek, thank you very much :)
Title: Re: Karma Description Mod
Post by: hijinx on January 30, 2009, 07:13:29 PM
Quote from: Grek_Kamchatka on January 30, 2009, 05:44:30 AM
Can you attach your profile.template.php here? (I mean file, not listing now)

here you go
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 31, 2009, 12:35:34 AM
Quote from: hijinx on January 30, 2009, 07:13:29 PM
here you go
Ok, i understand. It wasn't been a fresh file and older uninstall system dont worked correctly. Open your profile.template.php and delete all data from line 225 to line 744 inclusive.
Title: Re: Karma Description Mod
Post by: peta-sucks.com on January 31, 2009, 12:44:37 AM
I uploaded it and stopped before the actual install because it gives me a big fat red warning label at the install now prompt.

The one I downloaded was listed as being the current version for SMF 2.0 Beta 4. which is what we are using.
Title: Re: Karma Description Mod
Post by: hijinx on January 31, 2009, 11:38:00 PM
Quote from: Grek_Kamchatka on January 31, 2009, 12:35:34 AM
Quote from: hijinx on January 30, 2009, 07:13:29 PM
here you go
Ok, i understand. It wasn't been a fresh file and older uninstall system dont worked correctly. Open your profile.template.php and delete all data from line 225 to line 744 inclusive.

thanks so much! all working now.
Title: Re: Karma Description Mod
Post by: Faded Glory on February 02, 2009, 08:52:52 PM
My partners and I downloaded the mod onto 1.1.7 and mangled it.  :-[  LOL

We had to hire help to get it working, but it was worth every penny!  ;D

Our members love being able to see who gave them karma and why.  8)

Thanks for a great Mod.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 03, 2009, 12:10:51 AM
You can use KDM 2.3.1 for your smf 1.1.7 =)
Title: Re: Karma Description Mod
Post by: Faded Glory on February 03, 2009, 12:58:31 AM
Quote from: Grek_Kamchatka on February 03, 2009, 12:10:51 AM
You can use KDM 2.3.1 for your smf 1.1.7 =)

That is the one we used and mangled.   :D
Title: Re: Karma Description Mod
Post by: Maya-chan on February 03, 2009, 02:36:27 AM
I reinstalled this mod after a forum update, but it looks like all the logs are lost... I have a backup from before the update, is there a way to restore Karma Description log?

Thanks
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 03, 2009, 05:28:41 AM
Quote from: Maya-chan on February 03, 2009, 02:36:27 AM
I reinstalled this mod after a forum update, but it looks like all the logs are lost... I have a backup from before the update, is there a way to restore Karma Description log?

Thanks
You have a backup of your database or your forum source files? It's important, cause all karma actions is stored in database. If you have a database backup, just restore $smf_log_karma table from backup file to your new db. Enjoy.
Title: Re: Karma Description Mod
Post by: Paragaya on February 03, 2009, 05:29:50 AM
Thanks :)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 03, 2009, 05:35:01 AM
Faded Glory, how can i guess your problem with KDM without any description?!?
Title: Re: Karma Description Mod
Post by: Maya-chan on February 03, 2009, 05:53:28 AM
Quote from: Grek_Kamchatka on February 03, 2009, 05:28:41 AM
Quote from: Maya-chan on February 03, 2009, 02:36:27 AM
I reinstalled this mod after a forum update, but it looks like all the logs are lost... I have a backup from before the update, is there a way to restore Karma Description log?

Thanks
You have a backup of your database or your forum source files? It's important, cause all karma actions is stored in database. If you have a database backup, just restore $smf_log_karma table from backup file to your new db. Enjoy.

I'll have to ask some friends for some help, since I have no idea how to do it (I'm not a PhpMyAdmin expert at all :D)

Thanks for your reply :)
Title: Re: Karma Description Mod
Post by: Faded Glory on February 03, 2009, 01:03:23 PM
Quote from: Grek_Kamchatka on February 03, 2009, 05:35:01 AM
Faded Glory, how can i guess your problem with KDM without any description?!?

After installing the mod, it was a blank next to the tick boxes. We tried using a shot of what is supposed to be in there and tick off the right boxes, but no go. I then uninstalled the Mod and started getting errors out the wazoo. From that point on no one could give karma except for Admins going into the user's profile and adding it manually. We tried to reinstall hoping to fix or replace what got changed, but it did not work.

My partner posted a SOS on here as truei1,(  Re: Karma Description Mod
« Reply #1084 on: January 08, 2009, 11:20:49 AM » Quote )  but didn't get an answer. So I got involved and looked up some help. If you look back to that reply number it has more detail.

HR was able to get it sorted out for us and it works great. Still can't see the text, but the right boxes are ticked and all is good. 

We will wait a while for now before upgrading to the 2.0. and just enjoy what we have. Thanks for the interest  Grek_Kamchatka and the great Mod.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 03, 2009, 04:55:23 PM
Hello, Faded Glory! How about this:
QuoteUpdate, 

All Our problems have been fixed and the MOD works like a charm!

KDM was written only for Default theme and only for english or russian SMF forum language. So, if you use another one, french 4example, or german - you can't see the lang strings. Change the forum language to english and you will see that.
Title: Re: Karma Description Mod
Post by: Faded Glory on February 03, 2009, 05:09:00 PM
Quote from: Grek_Kamchatka on February 03, 2009, 04:55:23 PM
Hello, Faded Glory! How about this:
QuoteUpdate, 

All Our problems have been fixed and the MOD works like a charm!

KDM was written only for Default theme and only for english or russian SMF forum language. So, if you use another one, french 4example, or german - you can't see the lang strings. Change the forum language to english and you will see that.

Our Forum is set to English. So I have no idea why the text isn't showing. I do know that we weren't the only ones that had a problem, but as I said, it is working the way it is now and not throwing errors. So it is all good. 
Title: Re: Karma Description Mod
Post by: NEMINI on February 06, 2009, 05:55:34 PM
getting the following error then trying install the latest version on 2b4.

Duplicate column name 'description'
File: /Packages/temp/db_change.php
Line: 8

Could it be because I've used this mod in 1.1.x and the tables are still in the database?  If so shouldn't the installed be doing an if not exist check?
Title: Re: Karma Description Mod
Post by: swampy on February 06, 2009, 06:07:11 PM
Are we going to see a release of KDM for SMF RC1?
Title: Re: Karma Description Mod
Post by: khamseen on February 06, 2009, 09:45:57 PM
Quote from: NEMINI on February 06, 2009, 05:55:34 PM
getting the following error then trying install the latest version on 2b4.

Duplicate column name 'description'
File: /Packages/temp/db_change.php
Line: 8

Could it be because I've used this mod in 1.1.x and the tables are still in the database?  If so shouldn't the installed be doing an if not exist check?

That's exactly the problem, you need to open your database in phpmyadmin and delete the fields "description", "link" and "is_read" in $your_prefix_log_karma table.
Title: Re: Karma Description Mod
Post by: NEMINI on February 06, 2009, 11:36:21 PM
Quote from: khamseen on February 06, 2009, 09:45:57 PM


That's exactly the problem, you need to open your database in phpmyadmin and delete the fields "description", "link" and "is_read" in $your_prefix_log_karma table.

I shouldn't have to lose data to reinstall a mod.  I know how to work around it, but it should be fixed.
Title: Re: Karma Description Mod
Post by: khamseen on February 07, 2009, 12:06:44 PM
Yes I know that, and he's already aware of it as it was mentioned 3 pages back. I was simply trying to help you out, no need to be so snappy.
Title: Re: Karma Description Mod
Post by: ms_ukyankee on February 09, 2009, 09:09:21 AM
Great mod, nice work, thank you!

I have a feature request, an admin setting similar to the existing restriction of users from using Karma field, but instead to restrict boards (by number) that Karma cannot be used on. We have a couple of boards that typically run heated topics (politics) and I'd prefer to disable the karma actions on these boards entirely. I'm sure I can modify it do this on my own site but it might be a useful feature for others. :)
Title: Re: Karma Description Mod
Post by: R.Bourne on February 09, 2009, 10:28:32 AM
Registered and first post here .... ONLY to tell the author what kind of coding is this?!!!!!!!!!! Example, according to your mod page, we can install version 2.4 on 1.0 RC1 too??? You drunk or something that every version of your code works with EVERY SMF out there?!!!!!
Title: Re: Karma Description Mod
Post by: ms_ukyankee on February 09, 2009, 11:01:46 AM
Someone who apparently does not understand the SMF package system. Yes, a package can work on multiple SMF versions provided the author has included the code for the changes to make to each separate version. What a lot of work he's done, wouldn't you agree?

::)
Title: Re: Karma Description Mod
Post by: Mai Pen Rai on February 09, 2009, 11:26:26 AM
Will this mod be available for RC1 and Advanced Reputation Mod?
Title: Re: Karma Description Mod
Post by: R.Bourne on February 09, 2009, 02:15:52 PM
Quote from: leah on February 09, 2009, 11:01:46 AM
Someone who apparently does not understand the SMF package system. Yes, a package can work on multiple SMF versions provided the author has included the code for the changes to make to each separate version. What a lot of work he's done, wouldn't you agree?

::)

He has NOT included any!

The previous version had uninstall issue. The latest one, proudly, is being announced that the uninstall BUG has been fixed! Neither works on 1.18 though!

STOP posting nonsense comments re who knows what or doesn't!
Title: Re: Karma Description Mod
Post by: swampy on February 09, 2009, 03:39:05 PM
Just as a polite comment, I must say that if you have other mods installed and you are not installing on a clean smf the conflict could very easily lay with one of the other mods installed.  It is a frequent occurrence that we all deal with.  Try uninstalling your other mods and making sure you have a clean smf then try installing

Just my thought on the matter.

ps..  I know we all want this mod and it is very popular with site users, but to expect the author of this mod to update it for every interim release is unreasonable.  It is nice to get the interim releases but at days end we should realize waiting for smf to go final is the best way if you are looking for a safe sound sure thing.
Title: Re: Karma Description Mod
Post by: R.Bourne on February 09, 2009, 04:14:11 PM
Quote from: swampy on February 09, 2009, 03:39:05 PM
Just as a polite comment, I must say that if you have other mods installed and you are not installing on a clean smf the conflict could very easily lay with one of the other mods installed.  It is a frequent occurrence that we all deal with.  Try uninstalling your other mods and making sure you have a clean smf then try installing

Just my thought on the matter.

ps..  I know we all want this mod and it is very popular with site users, but to expect the author of this mod to update it for every interim release is unreasonable.  It is nice to get the interim releases but at days end we should realize waiting for smf to go final is the best way if you are looking for a safe sound sure thing.


Thanks for your polite comment.

It's not about what mods I have or not. Yes, I know there are mods out there which screw up each other! But, if a mod is looking for a few files that do not exist on any 1.xx versions of SMF, then what gives!

Just because I share my codes for free out there, it doesn't mean I should not feel responsible. Yes, users cannot sue me, but they do have every rights to be concerned.

At this point, I am certain the latest version of this mod does NOT work with 1.xx series.

That's all.
Title: Re: Karma Description Mod
Post by: swampy on February 09, 2009, 04:34:50 PM
I don't see where the author of this mod has published anything for 1.8 or smf2 RC1

http://custom.simplemachines.org/mods/index.php?mod=192
Title: Re: Karma Description Mod
Post by: R.Bourne on February 09, 2009, 07:01:56 PM
Quote from: swampy on February 09, 2009, 04:34:50 PM
I don't see where the author of this mod has published anything for 1.8 or smf2 RC1

http://custom.simplemachines.org/mods/index.php?mod=192

1) Select ---> "Karma_Description_Mod_ver.2.4.zip"

2) Scroll down to ---> Manual Install Instructions for SMF for 1.1.8

3) Click "Submit"
Title: Re: Karma Description Mod
Post by: swampy on February 09, 2009, 07:09:11 PM
Not sure how the manual install instructions come about, but regardless of mod I seldom find any of them to be suitable.

If I were you I would just wait for the author to release his next version, it is always the best bet.
Title: Re: Karma Description Mod
Post by: R.Bourne on February 09, 2009, 07:38:17 PM
Quote from: swampy on February 09, 2009, 07:09:11 PM
Not sure how the manual install instructions come about, but regardless of mod I seldom find any of them to be suitable.

If I were you I would just wait for the author to release his next version, it is always the best bet.

Neither do I ;)

However, I have a better suggestion. I will wait (no other choice anyway!) until SMF goes gold and then ---> http://custom.simplemachines.org/mods/index.php?mod=1129

I mean, look at it. The guy says loud and clear and in BOLD ---> SMF 2.0 RC1 ONLY! That means, even someone like me who apparently does not understand the SMF package system, understands what it means!

Anyway, thank you for your comments and ... sorry everyone as it was not my intention to offend anyone .... including the developer.
Title: Re: Karma Description Mod
Post by: khamseen on February 09, 2009, 07:50:48 PM
The file parsing system doesn't always get set correctly to restrict it to the versions it will install on. The only real evidence as to what versions it will install on is the part where it says "Compatible With", if it's not listed there then the author doesn't intend it to be used with other versions, no matter what the manual install parse says.

Also, just a word to the wise, that "Advanced Reputation Mod" isn't a scratch on this one, we actually switched to that when we first upgraded to SMF 2.0 Beta 4 as it was the only one compatible and our Karma usage died in a week. When this mod was updated I reverted back to it and our Karma usage has once again went soaring.
Title: Re: Karma Description Mod
Post by: R.Bourne on February 09, 2009, 09:19:17 PM
Thanks so much for clarification regarding "Advanced Reputation Mod". I guess now I'd need to do my homework to see which one would fit better in our environment.
Title: Re: Karma Description Mod
Post by: khamseen on February 09, 2009, 09:29:23 PM
You're very welcome. Always happy to offer "help" where I can.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 13, 2009, 01:14:16 AM
Karma Description Mod 2.5 was released.
http://custom.simplemachines.org/mods/index.php?mod=192
Title: Re: Karma Description Mod
Post by: swampy on February 13, 2009, 06:24:52 AM
Thank you Grek!

Well Done! ;D
Title: Re: Karma Description Mod
Post by: [elenor] on February 13, 2009, 11:00:34 AM
Thank you Grek!
Title: Re: Karma Description Mod
Post by: Kimmie on February 15, 2009, 09:56:04 AM
Version 2.3 --- is this one compatible with 1.1.8 yet? I already know how to change the package-xml file so that it will install/uninstall but are there any other changes needed to make it compatible with 1.1.8 other than that? The mod page says that this mod in general is now only compatible with 2.0 RC1 - whch is incorrect because I am currently using 2.3 on 1.1.5 so I just need to know of any other changes because I am moving to 1.1.8 tomorrow.

Thanks :)
Title: Re: Karma Description Mod
Post by: Bergler on February 15, 2009, 03:46:36 PM
Help, I intsalled this mod and now I am getting this error when anyone tries to view a forum topic, 1.1.8

QuoteFatal error: Call to undefined function: is_limitedbykarma() in /nfs/c03/h03/mnt/52866/domains/bcfishingreports.com/html/forum/Sources/Display.php on line 915

Thanks in advance!

Rick

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 15, 2009, 06:19:08 PM
QuoteFatal error: Call to undefined function: is_limitedbykarma() in /nfs/c03/h03/mnt/52866/domains/bcfishingreports.com/html/forum/Sources/Display.php on line 915
Hi, it's not my mod. There is now function named "is_limitedbykarma" in Karma Description Mod
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 15, 2009, 06:22:27 PM
Quote from: Kimmie on February 15, 2009, 09:56:04 AM
Version 2.3 --- is this one compatible with 1.1.8 yet?
Yepp, kdm 2.3.1 compatible with 1.1.8
Title: Re: Karma Description Mod
Post by: Bergler on February 15, 2009, 06:23:03 PM
I installed it then I got that error? Do you know how I can fix it???
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 15, 2009, 08:00:59 PM
Quote from: Bergler on February 15, 2009, 06:23:03 PM
I installed it then I got that error? Do you know how I can fix it???
I don't know. Are you shore it is because of KDM? What another mods you have installed?
Title: Re: Karma Description Mod
Post by: R.Bourne on February 16, 2009, 08:09:39 AM
Quote from: Bergler on February 15, 2009, 03:46:36 PM
Help, I intsalled this mod and now I am getting this error when anyone tries to view a forum topic, 1.1.8

QuoteFatal error: Call to undefined function: is_limitedbykarma() in /nfs/c03/h03/mnt/52866/domains/bcfishingreports.com/html/forum/Sources/Display.php on line 915

Thanks in advance!

Rick

I'm getting the same exact error message. In my case, it's on line 917!

As part of trouble shooting, I uninstalled each and every single MOD that I ever had! No luck!

What puzzles me is how it installs (ver. 2.31 on SMF 1.18) without any error message or warning but once your forum gets screwed and you wanna uninstall it, then all hell breaks loose!I would put a warning that do not install this MOD if you have any kind of MOD installed or .... uninstalled!

Greg buddy, thanks for all your hard work though.
Title: Re: Karma Description Mod
Post by: ms_ukyankee on February 16, 2009, 09:39:46 AM
This function looks like it might be part of the Limit Karma Mod (http://custom.simplemachines.org/mods/index.php?mod=1308)

'limitkarma' => is_LimitedByKarma($message['ID_MSG'], 'm'),

When I was researching the Karma mods I seem to recall in the topic that the Limit Karma mod author noted that mod was not compatible with this one, KDM.
Title: Re: Karma Description Mod
Post by: R.Bourne on February 16, 2009, 10:20:43 AM
Quote from: leah on February 16, 2009, 09:39:46 AM
This function looks like it might be part of the Limit Karma Mod (http://custom.simplemachines.org/mods/index.php?mod=1308)

'limitkarma' => is_LimitedByKarma($message['ID_MSG'], 'm'),

When I was researching the Karma mods I seem to recall in the topic that the Limit Karma mod author noted that mod was not compatible with this one, KDM.

YES, that's the one! I was just going to update my post which saw yours! Thank you.

NOW, I can live without KDM but certainly NOT without Limit Karma! In my book, Limit Karma is more critical.

But on the side note, I wonder why we love open source so much! If these 2 folks worked for a commercial company, they would be forced to get their codes to play nicely!   ;)

There are probably thousands different MODS around here but less than 20 KARMA related. What would it take for either developers to do a little research before releasing their codes? AHA .... compiled ... let's ship it  ::)
Title: Re: Karma Description Mod
Post by: ms_ukyankee on February 16, 2009, 11:03:20 AM
QuoteI wonder why we love open source so much!

We have low budgets. :)

QuoteIf these 2 folks worked for a commercial company, they would be forced to get their codes to play nicely!

And we'd be forced to pay for it. :) I think you're being rather harsh on mod developers who've spent hours and hours working on mod code, and possibly time that they could have spent earning money doing something else with their time.

If two mods are incompatible, it means that they both alter the same blocks of code. Once one changes the block, then the other can no longer find the matching code to change. If every mod author had to read through all the thousands of mods to make them compatible with everything that could edit your Display.php file, nothing would get done at all.

It might not be difficult to get them working together if you edit manually and/or know a little php or are willing to learn. Share your fix and give a little something back to SMF. That's what open source is about.

Package choice is a matter of carefully reading the descriptions and support threads to work out what features mean the most to you and limit the mods you use accordingly. :)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 16, 2009, 05:07:21 PM
Golden words, leah =)
Title: Re: Karma Description Mod
Post by: R.Bourne on February 16, 2009, 08:07:16 PM
Quote from: leah on February 16, 2009, 11:03:20 AM
QuoteI wonder why we love open source so much!

We have low budgets. :)

QuoteIf these 2 folks worked for a commercial company, they would be forced to get their codes to play nicely!

And we'd be forced to pay for it. :) I think you're being rather harsh on mod developers who've spent hours and hours working on mod code, and possibly time that they could have spent earning money doing something else with their time.

If two mods are incompatible, it means that they both alter the same blocks of code. Once one changes the block, then the other can no longer find the matching code to change. If every mod author had to read through all the thousands of mods to make them compatible with everything that could edit your Display.php file, nothing would get done at all.

It might not be difficult to get them working together if you edit manually and/or know a little php or are willing to learn. Share your fix and give a little something back to SMF. That's what open source is about.

Package choice is a matter of carefully reading the descriptions and support threads to work out what features mean the most to you and limit the mods you use accordingly. :)

Yes, Golden words, leah! Indeed!

Low budgets???!!!! HA! But, UNLIMITED RESOURCES worldwide! And, ONLY if / when the developer asks for assistance.

For heaven sake, read between the lines, leah. As I said ---> less than 20 KARMA related MODS do not require RE/viewing millions lines of codes!

I have already made up my mind, based on my clients' responses, this particular MOD would not be beneficial. However, at this time, my contribution is:

1) WARN others be careful not to screw up their systems

2) HELP the developer to understand he is responsible for his codes even though there is no one to fire him!

I am not harsh. It's just there is not enough time to be wasted.
Title: Re: Karma Description Mod
Post by: Bergler on February 16, 2009, 09:51:42 PM
Quote from: Bergler on February 15, 2009, 03:46:36 PM
Help, I intsalled this mod and now I am getting this error when anyone tries to view a forum topic, 1.1.8

QuoteFatal error: Call to undefined function: is_limitedbykarma() in /nfs/c03/h03/mnt/52866/domains/bcfishingreports.com/html/forum/Sources/Display.php on line 915

Thanks in advance!

Rick



Yes it fixed but..........when you give negative or positive karma, after you give the reason and press continue you get this error,

QuoteAn Error Has Occurred!
Sorry, you have reached your maximum for adding karma to this Post/PM. 

it will still leave karma even though you get this message?? Any ideas??
Title: Re: Karma Description Mod
Post by: ~Killer~ on February 17, 2009, 06:00:43 AM
Strange, this mod doesn't work, all it does is move the Info Center to the top of the forum...
Title: Re: Karma Description Mod
Post by: BellGab.com on February 17, 2009, 06:03:29 AM
i hope this hasn't been addressed yet, and if so, sorry.

when i install this mod, my "users online" area on the site index ends up being located immediately above the first category (the arena).  this happens whether the mod is actually enabled or not.

any ideas?  i've been looking for a mod that would remove anonymity from the karma system for a long time, and i'd love to be able to use this.

cheers.
Title: Re: Karma Description Mod
Post by: BellGab.com on February 17, 2009, 06:04:21 AM
Quote from: ~Killer~ on February 17, 2009, 06:00:43 AM
Strange, this mod doesn't work, all it does is move the Info Center to the top of the forum...
haha, you posted this AS i was posting mine.
Title: Re: Karma Description Mod
Post by: ~Killer~ on February 17, 2009, 06:40:43 AM
Lol, yep ^_^
I really want this mod aswell, same reasons, just like some of the major forums *cough*yugiohcardmaker.net*cough* Even though that uses MyBB...
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 17, 2009, 04:39:30 PM
Can you post here a screenshot with your trouble?
Title: Re: Karma Description Mod
Post by: Bergler on February 17, 2009, 07:30:09 PM
Quote from: Grek_Kamchatka on February 17, 2009, 04:39:30 PM
Can you post here a screenshot with your trouble?

Here is is,
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 18, 2009, 01:52:48 AM
Bergler, i said it for GeorgeNoorySucks.com and Killer on 59 page.

By the way, your error is not a KDM error.
Title: Re: Karma Description Mod
Post by: Bergler on February 18, 2009, 02:00:20 PM
Quote from: Grek_Kamchatka on February 18, 2009, 01:52:48 AM
Bergler, i said it for GeorgeNoorySucks.com and Killer on 59 page.

By the way, your error is not a KDM error.

OK fair enough!! Maybe a little insight would be nice?? I added this KDM to my forum with no errors showing before install and it messed up my forum and thanks to HR he got working again!! Could it be the KDM does not work with Limit Karma?? Do I need to get rid of limit karma for it work or is something else???
Title: Re: Karma Description Mod
Post by: Faded Glory on February 19, 2009, 12:41:39 AM
Quote from: Bergler on February 18, 2009, 02:00:20 PM
Quote from: Grek_Kamchatka on February 18, 2009, 01:52:48 AM
Bergler, i said it for GeorgeNoorySucks.com and Killer on 59 page.

By the way, your error is not a KDM error.

OK fair enough!! Maybe a little insight would be nice?? I added this KDM to my forum with no errors showing before install and it messed up my forum and thanks to HR he got working again!! Could it be the KDM does not work with Limit Karma?? Do I need to get rid of limit karma for it work or is something else???

Go back and read « Reply #1170 , The KDM doesn't work with the Limit Karma Mod.   ;D
Title: Re: Karma Description Mod
Post by: BellGab.com on February 19, 2009, 02:52:48 AM
Quote from: Grek_Kamchatka on February 17, 2009, 04:39:30 PM
Can you post here a screenshot with your trouble?
here you go.
Title: Re: Karma Description Mod
Post by: Jessikard on February 20, 2009, 03:06:13 PM
we have a problem (using smf 1.1.8 and TP)

i activated the option for sending a PM when the karma was changed
but no user get a pm
does anybody know about this how to solve ?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 21, 2009, 06:01:03 PM
Jessikard, this option must be activated in user profiles.
Title: Re: Karma Description Mod
Post by: Jessikard on February 22, 2009, 03:02:06 AM
 ::) and where ?
in ACP -> basic settings -> karma options are activated
in the permissions karma is activated
in the profiles i can´t see anything to activate

help please
Title: Re: Karma Description Mod
Post by: Joe N on March 07, 2009, 08:22:48 AM
Is this out for smf 1.1.8

Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on March 07, 2009, 08:25:59 AM
Quote from: WBA Dude on March 07, 2009, 08:22:48 AM
Is this out for smf 1.1.8


It works for 1.1.8 :) I have it installed.
Title: Re: Karma Description Mod
Post by: Joe N on March 07, 2009, 08:39:07 AM
Quote from: LexArma on March 07, 2009, 08:25:59 AM
Quote from: WBA Dude on March 07, 2009, 08:22:48 AM
Is this out for smf 1.1.8


It works for 1.1.8 :) I have it installed.

Thanks

I just wanted it safe!

Installed fine. No errors
Title: Re: Karma Description Mod
Post by: Jessikard on March 08, 2009, 12:39:06 PM
 :( we have the problem, that no pms were send if karma was changed

the necessary options are marked

help plz
Title: Re: Karma Description Mod
Post by: ms_ukyankee on March 08, 2009, 04:04:17 PM
I don't use that feature, but I'm guessing it might be something to be enabled in users' personal profile Notifications?
Title: Re: Karma Description Mod
Post by: hvyhitter on March 10, 2009, 10:48:34 PM
doesnt work for me.. i am running vanilla RC1 SMF.

I install the mod. no errors. I turn it on in the admin control panel.. everything looks fine..

when you click the postive or the negative it goes to a white screen..

and THEN.. if I try to uninstall it.. it PERMANENTLY breaks the database with added fields and some changes.

you get this error which I fixed myself.

http://www.simplemachines.org/community/index.php?topic=298369.msg1970441#msg1970441

Grek, let me know anything I can do to help. I am wondering why it didnt work. The only mods I have is the AEVA one and the ajax chat..

should be unrelated.

any clues let me know.. I WANT your mod.. my users love it.. but.. doesnt work on RC1
Title: Re: Karma Description Mod
Post by: vahan on March 17, 2009, 12:07:26 PM
I have installed KDM in my forum (SMF 1.1.8 ), but when I "applaud" to someone, I receive the following error: "Unable to load the 'main' template. "
I have tried to uninstall KDM, but I got the following error:
"2.     Execute Modification     ./Sources/Karma.php     Test failed".

So, if any one had such a problem, what you will advise to me or what can I do in this case?
Title: Re: Karma Description Mod
Post by: BellGab.com on March 18, 2009, 01:13:48 PM
Quote from: vahan on March 17, 2009, 12:07:26 PM
So, if any one had such a problem, what you will advise to me or what can I do in this case?
based on what i've experienced with this mod and what i've read others have experienced, i'd suggest you wait until the developer has had some time to make the code a bit more mature.  this mod is not ready for use.
Title: Re: Karma Description Mod
Post by: vahan on March 19, 2009, 01:22:21 PM
Then how I can remove KDM from my forum or you advise to leave it the same way without uninstalling?
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on March 19, 2009, 01:25:56 PM
Quote from: GeorgeNoorySucks.com on March 18, 2009, 01:13:48 PM
Quote from: vahan on March 17, 2009, 12:07:26 PM
So, if any one had such a problem, what you will advise to me or what can I do in this case?
based on what i've experienced with this mod and what i've read others have experienced, i'd suggest you wait until the developer has had some time to make the code a bit more mature.  this mod is not ready for use.
This mod is very much ready for use, and works perfectly. :) I've been using this through many SMF updates ;)
Title: Re: Karma Description Mod
Post by: Jessikard on March 19, 2009, 03:12:26 PM
Quote from: Jessikard on March 08, 2009, 12:39:06 PM
:( we have the problem, that no pms were send if karma was changed

the necessary options are marked

help plz

no way to solve my problem ?
Title: Re: Karma Description Mod
Post by: BellGab.com on March 19, 2009, 10:11:55 PM
Quote
This mod is very much ready for use, and works perfectly. :) I've been using this through many SMF updates ;)
that might have been the case for you, and if so, that's great because the mod in principle is a great idea and i would love to use it.  however, the fact that it works perfectly for you appears to have been dumb luck.  my problems existed using the latest version of the mod on a fresh RC1 install.

i think it needs more development.  just an opinion.
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on March 20, 2009, 01:49:24 AM
Quote from: GeorgeNoorySucks.com on March 19, 2009, 10:11:55 PM
Quote
This mod is very much ready for use, and works perfectly. :) I've been using this through many SMF updates ;)
that might have been the case for you, and if so, that's great because the mod in principle is a great idea and i would love to use it.  however, the fact that it works perfectly for you appears to have been dumb luck.  my problems existed using the latest version of the mod on a fresh RC1 install.

i think it needs more development.  just an opinion.
OK, I have to admit I have no experience trying to use this with 2.0 (And maybe I should have mentioned it right in the beginning) - Only several 1.1 versions, so there might be some problems I am unaware of. But for 1.1 versions this has been easy to install even with other modifications, and I found it pretty simple to incorporate in custom themes as well...
Title: Re: Karma Description Mod
Post by: BellGab.com on March 20, 2009, 05:08:26 PM
Quote from: LexArma on March 20, 2009, 01:49:24 AM
Quote from: GeorgeNoorySucks.com on March 19, 2009, 10:11:55 PM
Quote
This mod is very much ready for use, and works perfectly. :) I've been using this through many SMF updates ;)
that might have been the case for you, and if so, that's great because the mod in principle is a great idea and i would love to use it.  however, the fact that it works perfectly for you appears to have been dumb luck.  my problems existed using the latest version of the mod on a fresh RC1 install.

i think it needs more development.  just an opinion.
OK, I have to admit I have no experience trying to use this with 2.0 (And maybe I should have mentioned it right in the beginning) - Only several 1.1 versions, so there might be some problems I am unaware of. But for 1.1 versions this has been easy to install even with other modifications, and I found it pretty simple to incorporate in custom themes as well...
and i forgot to mention that perhaps the 1.x experience is different than that of 2.x
Title: Re: Karma Description Mod
Post by: c a g a t a y on March 24, 2009, 09:15:38 AM
Hi all

all moderators of my site could not see below link
they say it gives "you dont have a permission to see this page" error

.....forum/index.php?action=viewkarma

any idea?

Regards
Title: Re: Karma Description Mod
Post by: char39 on March 24, 2009, 09:56:41 AM
I really like this mod, however there is one feature I am looking for and don't know if this has.  Do members get credits for every time they post or start a topic?
Title: Re: Karma Description Mod
Post by: BellGab.com on March 24, 2009, 01:05:16 PM
Quote from: tangerine on March 24, 2009, 09:56:41 AM
I really like this mod, however there is one feature I am looking for and don't know if this has.  Do members get credits for every time they post or start a topic?
i know there is a mod out there that does do this.  perhaps you can install it in addition to this.
Title: Re: Karma Description Mod
Post by: pheadrus on April 02, 2009, 09:43:35 AM
I have used all KDM versions succesfully untill now  :( As i have upgareded my forum to SMF 2.0 RC1 and converted all my database to UTF-8; I thought that it is time to install KDM version 2.5 . I installed it without any error, but as my members click on the applaud or smite button on messageindex, it will end up at blank page and karma does not changes.
I need urgent help, please... 
Title: Re: Karma Description Mod
Post by: SFF Forum on April 04, 2009, 01:43:58 PM
Thanks for your good job.

Can you add this:

user who want to change other's karma must send a message to admin with karma

require field,so that he can require admin to change other's karma

My forum:SMF1.1.8
Title: Re: Karma Description Mod
Post by: sawz on April 11, 2009, 11:54:39 AM
there are supposed to be links in the profile to view karma comments but my links aren't showing. the code is there, the comments can be viewed if you know the url, but the links aren't showing in profiles. permissions are set correctly but i fear something else is interfering with these links being shown.

anyone have a solution or encountered this?
Title: Re: Karma Description Mod
Post by: char39 on April 12, 2009, 12:35:18 PM
Quote from: sawz on April 11, 2009, 11:54:39 AM
there are supposed to be links in the profile to view karma comments but my links aren't showing. the code is there, the comments can be viewed if you know the url, but the links aren't showing in profiles. permissions are set correctly but i fear something else is interfering with these links being shown.

anyone have a solution or encountered this?

I am having the same problem.
Title: Re: Karma Description Mod
Post by: char39 on April 20, 2009, 08:51:28 AM
I wouldn't suggest using this mod.  No support offered for it. 

I did send a pm and saw by profile, author has been on.   It is a shame, looks like a good mod.

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on April 23, 2009, 10:30:19 PM
No support offered for YOU man, not for other...
Title: Re: Karma Description Mod
Post by: sawz on April 24, 2009, 06:53:12 AM
Quote from: Grek_Kamchatka on April 23, 2009, 10:30:19 PM
No support offered for YOU man, not other...
no support offered for who?

who are you talking about?
Title: Re: Karma Description Mod
Post by: kat on April 24, 2009, 09:59:32 AM
Can we keep this friendly, please?

Thankyou.
Title: Re: Karma Description Mod
Post by: Joe N on April 25, 2009, 03:29:09 AM
Is this with smf 1x?
Title: Re: Karma Description Mod
Post by: ms_ukyankee on April 25, 2009, 06:00:42 AM
Quote from: sawz on April 11, 2009, 11:54:39 AM
there are supposed to be links in the profile to view karma comments but my links aren't showing. the code is there, the comments can be viewed if you know the url, but the links aren't showing in profiles. permissions are set correctly but i fear something else is interfering with these links being shown.

anyone have a solution or encountered this?

If you're using a custom theme, you need to add the code to the profile template manually.
Title: Re: Karma Description Mod
Post by: sawz on April 25, 2009, 10:28:49 AM
Quote from: leah on April 25, 2009, 06:00:42 AM
If you're using a custom theme, you need to add the code to the profile template manually.

yes, i am aware of that. however, this custom theme relies heavily on the default theme, so editing is not the issue. something is causing a conflict and we will figure it out with or without assistance.
Title: Re: Karma Description Mod
Post by: Joe N on April 26, 2009, 04:17:59 AM
Hi

I installed the mod. No errors. Except one thing, when I get to this bit - (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi396.photobucket.com%2Falbums%2Fpp45%2FWBADude%2Fsmf%2Fforsmfforum-karmadescriptionmod.jpg&hash=0598b97c6a589557798d6cf081777138c9d7ea29)

It says 1 by default. When I put that and tested it on another account. The notification didn't come. How do I get it to sent it to the admin? My account on the forum is the first account made

Joe
Title: Re: Karma Description Mod
Post by: Joe N on April 28, 2009, 10:51:25 AM
bump
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on April 28, 2009, 10:56:11 AM
Quote from: Joe N on April 26, 2009, 04:17:59 AM
Hi

I installed the mod. No errors. Except one thing, when I get to this bit - (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi396.photobucket.com%2Falbums%2Fpp45%2FWBADude%2Fsmf%2Fforsmfforum-karmadescriptionmod.jpg&hash=0598b97c6a589557798d6cf081777138c9d7ea29)

It says 1 by default. When I put that and tested it on another account. The notification didn't come. How do I get it to sent it to the admin? My account on the forum is the first account made

Joe

Quote from: From the Help of this mod
If you enable this function, your users will see another one field in their profiles in 'Look and Layuot Preferences' section. It give an opportunity to notify users when their karma will be changed by two way notify: Popup Message and Personal Message.

;)
Title: Re: Karma Description Mod
Post by: Joe N on April 28, 2009, 11:51:30 AM
Thanks
It works  ;)
Now I need to add notify by pm to all my members. lol
Title: Re: Karma Description Mod
Post by: Keith Tysinger on April 30, 2009, 03:52:24 AM
In your modification file:

echo'                     </span>
                                        </td>
                                </tr>

The above is not needed and breaks the xhtml validation.

Very nice mod the little error notwithstanding.
Title: Re: Karma Description Mod
Post by: vladok on May 01, 2009, 03:01:39 AM
Грек, а можно доработать хак, установив к примеру, что администратор может менять репутацию +5 /-5, модератор + 3/-3 ?
***
Grek, but you can refine hack option, setting for instance, that an administrator can change the reputation of +5 / -5, moderator + 3/-3 ?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 01, 2009, 05:14:45 AM
ММ, не совсем понял о чем речь.
Title: Re: Karma Description Mod
Post by: vladok on May 01, 2009, 06:04:32 AM
Ок.
Попробую описать фишку.

У нас есть админы, и модеры -для простоты картины. Супера - пусть с этой точки зрения будут как модеры.

Мы прописываем к примеру - если админ повышает карму юзеру, то приплюсовывается не +1 а +5 или к примеру +10. Если модер повышает карму, то приплюсовывается не +1 а + 3 или там +5.
Ну и если отнимает - то же самое но - вычитается.
Ну а обычные юзеры - как обычно.

Так сказать, в рамках поощрения юзеров административно модераторским составом.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on May 03, 2009, 01:51:51 AM
А, ясно. Это можно сделать, но в основной  состав мода я это включать не буду, так как не всем это нужно, да и не всем понравится. Я просто отпишу тебе как это сделать вручную.
Title: Re: Karma Description Mod
Post by: vladok on May 04, 2009, 09:01:42 AM
Ок :)
Title: Re: Karma Description Mod
Post by: vladok on May 04, 2009, 02:59:30 PM
Вдогонку: нашел баг.
После установки мода для RC1 исчезает выбор показывать функции быстрого модерирования (профиль / внешний вид форума )  "значками".

Ячейками -остается, значками -вырубает

Происходит это оттого, что мод при установке секциеи //Karma Description Mod (Notification)  в /Profile.template.php пишется "внутри" выборки опций,  а не после окончания выборки.

Другими словами:

Было после установки мода:

<td colspan="2"><label for="display_quick_mod">', $txt['display_quick_mod'], '</label>
<select name="default_options[display_quick_mod]" id="display_quick_mod">
<option value="0"', empty($context['member']['options']['display_quick_mod']) ? ' selected="selected"' : '', '>', $txt['display_quick_mod_none'], '</option>
<option value="1"', !empty($context['member']['options']['display_quick_mod']) && $context['member']['options']['display_quick_mod'] == 1 ? ' selected="selected"' : '', '>', $txt['display_quick_mod_check'], '</option>

';
//Karma Description Mod (Notification)
if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmanotifier']))
echo '
<tr>
<td colspan="2"><label for="enable_notify">', $txt['enable_notify'], '</label>
<select name="default_options[enable_notify]" id="none_notifier">
<option value="0"', empty($context['member']['options']['enable_notify']) ? ' selected="selected"' : '', '>', $txt['enable_notify_none'], '</option>
<option value="1"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] == 1 ? ' selected="selected"' : '', '>', $txt['enable_notify_popup'], '</option>
<option value="2"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] !=1 ? ' selected="selected"' : '', '>', $txt['enable_notify_pm'], '</option>
</select>
</td>
</tr>
<option value="2"', !empty($context['member']['options']['display_quick_mod']) && $context['member']['options']['display_quick_mod'] != 1 ? ' selected="selected"' : '', '>', $txt['display_quick_mod_image'], '</option>
</select>
</td>
</tr>
</table>
</td>
</tr>';


Надо изменить на что то вроде  <td colspan="2"><label for="display_quick_mod">', $txt['display_quick_mod'], '</label>
<select name="default_options[display_quick_mod]" id="display_quick_mod">
<option value="0"', empty($context['member']['options']['display_quick_mod']) ? ' selected="selected"' : '', '>', $txt['display_quick_mod_none'], '</option>
<option value="1"', !empty($context['member']['options']['display_quick_mod']) && $context['member']['options']['display_quick_mod'] == 1 ? ' selected="selected"' : '', '>', $txt['display_quick_mod_check'], '</option>
<option value="2"', !empty($context['member']['options']['display_quick_mod']) && $context['member']['options']['display_quick_mod'] != 1 ? ' selected="selected"' : '', '>', $txt['display_quick_mod_image'], '</option>
</select>
</td>
</tr>';
//Karma Description Mod (Notification)
if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmanotifier']))
echo '
<tr>
<td colspan="2"><label for="enable_notify">', $txt['enable_notify'], '</label>
<select name="default_options[enable_notify]" id="none_notifier">
<option value="0"', empty($context['member']['options']['enable_notify']) ? ' selected="selected"' : '', '>', $txt['enable_notify_none'], '</option>
<option value="1"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] == 1 ? ' selected="selected"' : '', '>', $txt['enable_notify_popup'], '</option>
<option value="2"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] !=1 ? ' selected="selected"' : '', '>', $txt['enable_notify_pm'], '</option>
</select>
</td>
</tr>
</table>
</td>
</tr>';
Title: Karma Description Mod can't send PM [SMF1.1.8]
Post by: SFF Forum on May 16, 2009, 05:57:00 PM
Hello,

i installed Karma_Description_Mod_ver[1].2.3.1 in my forum,but the

Send link in personal message to own karma log   
Send the reason in personal message   
Send link in personal message to message where karma was changed


didn't work,user couldn't recieve PM,why?

Need help,thanks
Title: Re: Karma Description Mod can't send PM [SMF1.1.8]
Post by: Joe N on May 17, 2009, 05:33:14 AM
Quote from: bosser on May 16, 2009, 05:57:00 PM
Hello,

i installed Karma_Description_Mod_ver[1].2.3.1 in my forum,but the

Send link in personal message to own karma log   
Send the reason in personal message   
Send link in personal message to message where karma was changed


didn't work,user couldn't recieve PM,why?

Need help,thanks

What smf version?

If you go to profile > Look and layout Preferences and at the bottom, it says, Notify me when my karma will be changed, change it to either pm or popup.

If you go to admin, where it says Send PM from this Member ID (1 by default), put 1

Joe
Title: Re: Karma Description Mod
Post by: c a g a t a y on May 18, 2009, 06:34:26 AM
Hi all

all moderators of my site could not see below link
they say it gives "you dont have a permission to see this page" error

.....forum/index.php?action=viewkarma

any idea?

Regards
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on May 18, 2009, 06:41:22 AM
The error says it all. They haven't got the permission to view it.
Have you checked the permissions and the mod settings?
Title: Re: Karma Description Mod
Post by: c a g a t a y on May 18, 2009, 06:50:39 AM
Here is my Karma Settings

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg119.imageshack.us%2Fimg119%2F2654%2Fkarmawr1.jpg&hash=fe0b1fef6184c66d32fbd19264260f929eb9e8d1)

And also in Admin CP >> Permissions alreade given view karma log permission to all moderators
Title: Re: Karma Description Mod
Post by: charlottezweb on May 21, 2009, 05:59:53 PM
This has stopped working after the 1.1.9 upgrade.  Is there a fix available?

I have a user running 2.3.1 on a 1.1.9 forum.
Title: Re: Karma Description Mod
Post by: c a g a t a y on May 22, 2009, 05:18:39 AM
I am using Karma Description Mod ver.2.2 (with SMF 1.1.8 )

How can I upgrade it to Karma_Description_Mod_ver.2.3.1 ?

Uninstall 2.2 and then install 2.3.1 ?? Will I lose any description data ?
Title: Re: Karma Description Mod
Post by: everwake on June 06, 2009, 07:48:54 AM
hello!

i have instaled this mod in my forum (btw great mod!!)

and i have 1 problem now!

after the installation the "online users" tab now is in the top of my forum index! and not in the bottom inside the "info center"

how can i fix this?

smf version : 2.0 RC1-1


thanks
Title: Re: Karma Description Mod
Post by: universalsameera on June 28, 2009, 03:27:38 PM
I wasted whole 2 days trying to get this mod to work so please help guys. There is obviously nothing wrong with mod but I can't get it to work.

All my tests were successful in the package manager and when I click install there is an error in the /temp/change database comes up.

If anyof you are kind of enough to upload your working karma.php file or some other files of this I'll be so greatful. It doesn't matter if it is only karma.php.So then I can look at it and work out the manual instruction thing. I just need an example to grasp this manual instruction thing. Thankyou so much for anyone who is going to help me(which no one has so far for me). Thank you!!

Title: Re: Karma Description Mod
Post by: universalsameera on June 29, 2009, 02:14:43 AM
Ha Ha got it to work  ;) I created a virtual server in my pc then installed the mod and then replaced the files. I'll tell you how I did it because I know what is like to stay there and not get any help.

Yes got it to work. I'll write this post on behalf of everyone who would like to do this.

My smf version- 1.18
Karam descriprion mod - 2.31

1. Download and install wampserver
http://www.wampserver.com/en/download.php
2. Download the smf forum version you like and then place it it in the folder c/wamp/www/
3. Then type in your internet browser http://localhost/the name of the folder you placed inside www/install.php
4. Choose root for username and no password is required
5. Install and try your mods.Good Luck ;)
Title: Re: Karma Description Mod
Post by: charlottezweb on June 29, 2009, 09:33:17 AM
It works with that version (1.1.8) but not with the most recent I believe.

Also, you need to upgrade -- that version has some security issues:

http://www.simplemachines.org/community/index.php?topic=311899.0
Title: Re: Karma Description Mod
Post by: elfugazi on June 30, 2009, 10:19:30 PM
Quote from: Grek_Kamchatka on September 17, 2005, 11:47:13 PM
In Admin panel->Features and Options-> check "Enable Karma Description Mod"
Then on main page you will see [Karma Stat] label near the [More Stats]

http://yourdomain/forum/index.php?action=viewkarma

hey guys... i cant see "Karma Change Description" in my forum, because i didn't saw any link to that page?
i have Karma_Description_Mod_ver.2.3.1

PLEASE HELP!!! TEACH ME ADD MANUALLY THANKS!!
Title: Re: Karma Description Mod
Post by: elfugazi on June 30, 2009, 10:49:44 PM
:(
when i'm trying give a +1 always appear: Unable to load the 'main' template.

PLEASE HELP!
Title: Re: Karma Description Mod
Post by: elfugazi on June 30, 2009, 10:59:50 PM
PLEASE HELP!!!

I UNISTALLED KARMA MOD AND AFTER I CAN'T GIVE +1 TO USERS!!!

An Error Has Occurred!
Unable to load the 'main' template.


HELP ME!!
Title: Re: Karma Description Mod
Post by: kswebs on July 02, 2009, 07:09:49 AM
I was having the same problem today after i accidentally uninstall karma mod.. And i solved this problem..  :D do this.. uninstall karma mod then upload the original Karma.php from a fresh smf package.. then install the karma mod again.. this will solve ur problem..  ;)
Title: Re: Karma Description Mod
Post by: elfugazi on July 02, 2009, 08:27:10 PM
thank you so much bro.. its working again :)
Title: Re: Karma Description Mod
Post by: [Core] on July 02, 2009, 09:33:41 PM
Thanks, great mod
Title: Re: Karma Description Mod
Post by: hvyhitter on July 09, 2009, 04:51:00 PM
Quote from: pheadrus on April 02, 2009, 09:43:35 AM
I have used all KDM versions succesfully untill now  :( As i have upgareded my forum to SMF 2.0 RC1 and converted all my database to UTF-8; I thought that it is time to install KDM version 2.5 . I installed it without any error, but as my members click on the applaud or smite button on messageindex, it will end up at blank page and karma does not changes.
I need urgent help, please... 

interesting i have this SAME problem.. I am going to read more of the thread.. i am running RC1-1 now.. same issue.

Title: Re: Karma Description Mod
Post by: hvyhitter on July 10, 2009, 11:34:00 AM
Took a fresh copy of SMF 2.0 RC1-1 installed this mod. Got he IS_read error.

tried to uninstall the mod and got a error in the karma file it couldnt undo.

Too bad.. this is my FAVORITE mod of all the SMF mods and no one else seems to do this kind of mod.

Title: Re: Karma Description Mod
Post by: zanyuki on July 16, 2009, 10:34:23 AM
Hi,

Can we have support for RC1.2?

Thanks and you're doing great!
Title: Re: Karma Description Mod
Post by: Ben K on July 23, 2009, 10:24:18 PM
I just found a bug in this mod.
If install & that uninstall the mod, it dosen't delete all it's code from Karma.php.
So you can't install it again unless you put original Karma.php.
Title: Re: Karma Description Mod
Post by: Ben K on August 05, 2009, 07:46:08 AM
Is any one going to fix it ?  :'(
Title: Re: Karma Description Mod
Post by: Ben K on August 05, 2009, 11:26:07 AM
One more bug, if install & then uninstall mod, it forgate's to delete links to it from Profile page, so if you do it 2-3 times, you can see 2-3 the same links  :(
Title: Re: Karma Description Mod
Post by: ac19189 on September 10, 2009, 06:36:28 PM
Ok while i cant get this to work on 1.1.10 the one setting I did want worked great I want to be able to view who gave who karma is there anyway I could just get that setting by itself...?
Title: Re: Karma Description Mod
Post by: Yahmez on September 16, 2009, 07:07:14 PM
Quote from: everwake on June 06, 2009, 07:48:54 AM
hello!

i have instaled this mod in my forum (btw great mod!!)

and i have 1 problem now!

after the installation the "online users" tab now is in the top of my forum index! and not in the bottom inside the "info center"

how can i fix this?

smf version : 2.0 RC1-1


thanks

I had the same issue on the default template in 2.0 RC1-2.
You can make the users online section return to its normal location by editing .../Themes/default/BoardIndex.template.php

Find:

';
if ((!empty($modSettings['karmadescmod'])) && (empty($modSettings['karmaisowner'])))
{  if ($context['show_karmastat'])
                echo '
                          <a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
elseif ((!empty($modSettings['karmadescmod'])) && ($context['user']['is_admin']))
{ if ($context['show_karmastat'])
echo '
<a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
echo' </span>
                                        </td>
                                </tr>
                    </div>

                </div>

            </div>';

    }

Replace with:

                            if ((!empty($modSettings['karmadescmod'])) && (empty($modSettings['karmaisowner'])))
                                 {  if ($context['show_karmastat'])
                echo '
                                              <a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
                            elseif ((!empty($modSettings['karmadescmod'])) && ($context['user']['is_admin']))
                                { if ($context['show_karmastat'])
        echo '
                                <a href="', $scripturl, '?action=viewkarma">'. $txt['statkarma'].'</a>',' ';
}
         echo'

                    </div>

                </div>

            </div>';
    }
Or just remove the </span> the </td>& the</tr>
Title: Re: Karma Description Mod
Post by: shirasnetwork on September 23, 2009, 03:00:26 PM
Excellent mod. Thanks a lot.

One question. Is it possible that an Admin can enable notification by PM for all members, instead of asking every member to do it on their own by going to their profiles.
Title: Re: Karma Description Mod
Post by: talosgr on October 26, 2009, 02:44:20 PM
hello i use smf 1.1.10 i try to instal the mode i download all avaible mode the only mode how i get lower error is 2.3.1
if some one know what i must to do to install the mode at 1.1.10 tnx
p.s is not impossible to install it i see mode is already at mxc and i see his version is 1.1.10 tnx
1.  Execute Modification  ./Sources/Admin.php  Test successful
2. Execute Modification ./Sources/Karma.php Test failed
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Sources/BoardIndex.php Test successful
6. Execute Modification ./Sources/Profile.php Test successful
7. Execute Modification ./Sources/ManagePermissions.php Test successful
8. Execute Modification ./Themes/default/Admin.template.php Test successful
9. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
10. Execute Modification ./Themes/default/Profile.template.php Test successful
11. Execute Modification ./Themes/default/languages/Admin.english.php Test successful
12. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
13. Execute Modification ./Themes/default/languages/Who.english.php Test successful
14. Execute Modification ./Themes/default/languages/Help.english.php Test successful
15. Execute Modification ./Themes/default/languages/index.english.php Test successful
16. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
17. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
18. Execute Modification ./Themes/default/languages/Profile.english.php Test successful
19. Execute Modification ./index.php Test successful
20. Execute Code db_change.php
21. Extract File ./Sources/Viewkarma.php
22. Extract File ./Themes/default/Viewkarma.template.php
23. Extract File ./Themes/default/DescriptionKarma.template.php
Title: Re: Karma Description Mod
Post by: Iviiik on October 30, 2009, 09:04:45 AM
i have problem with popup and personal message :(

when i get karma, popup come, but when i click on "yes" i want see, who change my karma, redirect me on index, no karma log :(

and personal message is


QuoteVážený uživateli. Vaše karma byla změněna. Pro více informací pokračujte na násleující odkaz:\nhttp://space4all.cz/index.php?action=ownkarma;u=1\n\nDůvod pro změnu byl: asdfadf\n\nVaše karma byla změněna s následující zprávou:\nhttp://space4all.cz/index.php?topic=16.msg18#msg18

help :( and sorry for my english :)
Title: Re: Karma Description Mod
Post by: MrCreatoR on November 07, 2009, 05:29:39 AM
Quote from: shirasnetwork on September 23, 2009, 03:00:26 PM
One question. Is it possible that an Admin can enable notification by PM for all members, instead of asking every member to do it on their own by going to their profiles.
I think you can enable this for them "by force" :) (from the current theme settings).

Grek_Kamchatka
Hi,
I have one small feature request (or it's a question?) - Is it would be possible to set default value for the description field, so the user will not have to write description every time, for example there always will be "Thanls you!" text, and user will just need to hit the Continue button. Or, just add an option to skip the description, and if it skipped add the line with "The description was disabled for this item".
Title: Re: Karma Description Mod
Post by: Iviiik on November 10, 2009, 05:49:24 AM
i have problem with install packages :(
i have SMF2.0 RC2

QuoteTabulka 'space4all.log_karma' neexistuje
File: /var/www/space4all.cz/beta/Packages/temp/db_change.php
Line: 18

I dont understand, why table space4all, because i have table beta_ no space4all
Title: Re: Karma Description Mod
Post by: Iviiik on November 12, 2009, 01:49:26 PM
nobody know? :'(
Title: Re: Karma Description Mod
Post by: timmytimmy on November 15, 2009, 11:00:51 AM
i am getting many requests from users who want a link on the top menu that says "MY KARMA" and it will take them to their own karma log.  is this possible?  if so, how?

i am running 1.1.10 with the default (core) theme.

EDIT: i know http://www.domain.com/forum/index.php?action=ownkarma;u=1 would bring up my page but that's specific to me.  is there any way i could modify that link so that it would change the user ID number to whoever it is who clicked it?
Title: Re: Karma Description Mod
Post by: MrCreatoR on November 15, 2009, 03:43:07 PM
Quote from: greg04 on November 15, 2009, 11:00:51 AMis there any way i could modify that link so that it would change the user ID number to whoever it is who clicked it?
Something like that perhaps:
echo "<a href=" . $script_url . "?action=ownkarma;u=" . $user_info['id'] . ">My Karma</a>";
Title: Re: Karma Description Mod
Post by: endiZ on November 18, 2009, 01:25:45 PM
Great mod, been using it forever! I miss it in SMF 2.0 RC2 =(
Title: Re: Karma Description Mod
Post by: nurg on November 20, 2009, 02:35:10 AM
Hello

It is possible to adapt it for RC2 Congratulations on the mod

Regards
Title: Re: Karma Description Mod
Post by: bork on November 23, 2009, 07:53:35 PM

Another request for a RC2 version that works with Curve - can't upgrade without this mod, my users love it!

Title: Re: Karma Description Mod
Post by: William L on November 26, 2009, 10:47:31 AM
How to set limit user can send karma to anoter user only 1 for 24 hour....
???
Sorry my english not good >,<
Title: Re: Karma Description Mod
Post by: bork on November 29, 2009, 01:49:49 PM

I'm not sure the author of this mod is around any more; he hasn't been online since May.

I'll try to get it working in Curve, but I'm not very good at this sort of thing.
Title: Re: Karma Description Mod
Post by: perplexed on November 30, 2009, 08:54:44 AM
maybe someone should PM him, he may be busy offline.  I love this mod and have used it for years now.  Don't want to do without it, it's very useful.
Title: Re: Karma Description Mod
Post by: snork13 on November 30, 2009, 09:17:38 AM
Quote from: quiteperplexed on November 30, 2009, 08:54:44 AM
maybe someone should PM him, he may be busy offline.  I love this mod and have used it for years now.  Don't want to do without it, it's very useful.

I don't think that will work, he was last active on May 25, 2009. It can't be that hard to update for rc2.
Title: Re: Karma Description Mod
Post by: nurg on November 30, 2009, 09:53:06 AM
Hi,
Lo e provado en RC2 y solo falla un archivo alguien puede activarlo es un mod que vale la pena creo que deveria salir instalado co smf disculpen mi ingles

Lo and tried it on RC2 and only fault one can activate a file is a mod that I think is worth co deveria installed smf out excuse my English
Title: Re: Karma Description Mod
Post by: shady586 on December 03, 2009, 09:25:13 PM
Can someone help me out with this?  I'm currently using SMF 2.0 RC 1.2 and I installed this mod.  It said everything was successful and I enabled the mod in the Karma settings and set the permissions for all the member groups.

Everyone sees the "Who Changed My Karma" links in their profile, however, when you click on the Applaud and Smite links next to a users name in a thread it leads to a blank page and won't work.

What's wrong????!  I checked all of the files to see if the coding is correct and everything matches the manual install instructions.

*** EDIT ***

Nevermind!  I read this post from an early page and it fixed the problem.

Quote from: kswebs on July 02, 2009, 07:09:49 AM
I was having the same problem today after i accidentally uninstall karma mod.. And i solved this problem..  :D do this.. uninstall karma mod then upload the original Karma.php from a fresh smf package.. then install the karma mod again.. this will solve ur problem..  ;)

I attempted to install KarmaLog before this and that's what messed things up.  I Uninstalled Karma Description Mod...replaced the Karma.php in the /Sources folder with a fresh one from the SMF 2.0 RC 1.2 install and then re-installed Karma Description Mod and all is well!!!!  THANKS
Title: Re: Karma Description Mod
Post by: highlawn on December 04, 2009, 01:45:52 PM
Hi everyone,

I've just installed this mod on a 1.1.10 version. The mod version was 2.3.1

On the Manage Permissions page There are the following options in the top left of the page:
View Forum Statistics
View The Member List

I then have a blank line - but with a checkbox - followed by

View Who's online.

I'm sure that this option is one from this mod - does anyone know what it should be and where it is generated?

Also - is there any button or link to see the View Karma Log? I can't seem to find one and I have to type it in the URL.

Many Thanks
Title: Re: Karma Description Mod
Post by: highlawn on December 04, 2009, 02:45:33 PM
OK - resolved the first one. The $txt['permissionhelp_karmalog_view']  value in ManagePermissions.english did not have double escaped primes (apostrophes) in it.

The mod said $txt['permissionhelp_karmalog_view'] = 'Karma Description Log shows all members karma and description of applauding or smiting. This permission will only work if you also have enabled it in \'Features and Options\'. You can access the Karma Description screen by clicking the link in the \'Karma Stat\' section of the board index.';


It should be

$txt['permissionhelp_karmalog_view'] = 'Karma Description Log shows all members karma and description of applauding or smiting. This permission will only work if you also have enabled it in \\\'Features and Options\\\'. You can access the Karma Description screen by clicking the link in the \\\'Karma Stat\\\' section of the board index.';

Still hunting the other one!!
Title: Re: Karma Description Mod
Post by: highlawn on December 04, 2009, 03:34:11 PM
Sorted the other - my own stupidity. Needed to set permissions
Title: Re: Karma Description Mod
Post by: infyquest on December 13, 2009, 04:07:00 PM
I am working on the mod for RC2, if I am done with the changes.
I will post it here
Title: Re: Karma Description Mod
Post by: endiZ on December 15, 2009, 04:49:48 PM
Great, I can't wait!
Title: Re: Karma Description Mod
Post by: gm112 on December 16, 2009, 03:53:37 AM
I'll take this down if I'm not authorized to post my own changes, but here..! I managed to get this running on RC2 ;P.
Title: Re: Karma Description Mod
Post by: infyquest on December 16, 2009, 04:26:28 AM
you might be able to install but there is a bug in it.
u will notice it when u give karma.
i got a fixed version of it. currently working making the look of statistics to look like the ones in curve
Title: Re: Karma Description Mod
Post by: HE on December 18, 2009, 02:56:23 PM
Hello

I try to install ver 2.6 posted by: gm112 for in smf 2.0 rc 2, but the problem is this: Test Failed in Add After and Add Before, for the Profile.Template.

Before to install, I stoped the karma option.

What can I do?

Thanks
Title: Re: Karma Description Mod
Post by: nurg on December 24, 2009, 02:33:29 PM
Hello

I have this problem to install the mod for RC2

herror in data base

Table 'miforo_.bbs_log_karma' doesn't exist
Archivo: /var/www/vhosts/cambiarcromos.com/httpdocs/Packages/temp/db_change.php
Línea: 18
Title: Re: Karma Description Mod
Post by: gm112 on December 24, 2009, 08:28:21 PM
Quote from: nurg on December 24, 2009, 02:33:29 PM
Hello

I have this problem to install the mod for RC2

herror in data base

Table 'miforo_.bbs_log_karma' doesn't exist
Archivo: /var/www/vhosts/cambiarcromos.com/httpdocs/Packages/temp/db_change.php
Línea: 18
My bad! I ran into a problem when installing this mod. I had tou pdate the SQL entries to include my forums prefix. If it errors for you still, let me know, and I'll help you out.
Title: Re: Karma Description Mod
Post by: infyquest on December 24, 2009, 09:02:25 PM
u need to convert it into curve.
whose is it?
Title: Re: Karma Description Mod
Post by: nurg on December 25, 2009, 02:39:10 AM
Hello

I have this problem to install the mod for RC2

herror in data base
Table 'cambiarcromos_.log_karma' doesn't exist
Archivo: /var/www/vhosts/cambiarcromos.com/httpdocs/Packages/temp/Karma_Description_Mod_ver.2.6/db_change.php

Please Help

Regards
Title: Re: Karma Description Mod
Post by: gm112 on December 25, 2009, 03:21:41 AM
Quote from: nurg on December 25, 2009, 02:39:10 AM
Hello

I have this problem to install the mod for RC2

herror in data base
Table 'cambiarcromos_.log_karma' doesn't exist
Archivo: /var/www/vhosts/cambiarcromos.com/httpdocs/Packages/temp/Karma_Description_Mod_ver.2.6/db_change.php

Please Help

Regards
What is the DB prefix for your forums?
You're gonna want to open db_change and stick that in before the SQL entries, lol..
Title: Re: Karma Description Mod
Post by: nurg on December 25, 2009, 03:46:36 AM
Hello

$db_prefix = 'smf_';

Regards
Title: Re: Karma Description Mod
Post by: gm112 on December 25, 2009, 08:23:19 AM
Quote from: nurg on December 25, 2009, 03:46:36 AM
Hello

$db_prefix = 'smf_';

Regards
There.
Title: Re: Karma Description Mod
Post by: svoy on December 29, 2009, 12:55:11 AM
Та же проблема ((( Кто нибудь может подсказать как решить?

Table 'plesen.smf_log_karma' doesn't exist
Файл: Z:\home\localhost\www\plesen\Packages\temp\Karma_Description_Mod_ver.2.6\db_change.php
Строка: 18
Title: Re: Karma Description Mod
Post by: Dharshan on December 30, 2009, 01:53:10 AM
NIce mod... thanks for creating it! will there be any chance of getting a SMF2 RC2 compatible version of this soon..
Title: Re: Karma Description Mod
Post by: Dharshan on December 30, 2009, 02:01:33 AM
hi GM112,
tried your 2.6 package on my SMF2 RC2

it gave me this error

Table 'dharshan_forumsmf.log_karma' doesn't exist
File: /home/dharshan/public_html/forum/Packages/temp/Karma_Description_Mod_ver.2.6/db_change.php
Line: 18
Title: Re: Karma Description Mod
Post by: haito on December 30, 2009, 02:36:40 AM
is it possible for 1.1.x ?
Title: Re: Karma Description Mod
Post by: Dharshan on December 30, 2009, 03:06:37 AM
Quote from: haito on December 30, 2009, 02:36:40 AM
is it possible for 1.1.x ?

of course...just download the package from the mod site..
we r trying to get this work on SMF 2 RC2
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on December 30, 2009, 06:09:36 AM
Yes Karma_Description_Mod_ver.2.5 make on RC2 and 1.1.x :)
Title: Re: Karma Description Mod
Post by: nurg on December 30, 2009, 06:30:13 AM
Hi

Not is correct  Karma_Description_Mod_ver.2.6.zip  RC2

Regards
Title: Re: Karma Description Mod
Post by: gm112 on January 02, 2010, 06:59:43 PM
Quote from: Dharshan on December 30, 2009, 02:01:33 AM
hi GM112,
tried your 2.6 package on my SMF2 RC2

it gave me this error

Table 'dharshan_forumsmf.log_karma' doesn't exist
File: /home/dharshan/public_html/forum/Packages/temp/Karma_Description_Mod_ver.2.6/db_change.php
Line: 18

For whatever reason, SMF isn't including the forum prefix when it used to in RC1. The fix is, go into db_change and replace "smf_" with what your DB prefix is. And, that, should fix your issues ^^.

EDIT: Woops, silly me.
Change db_change.php to
Code (php) Select

<?php
//Karma Description Mod

if(file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
else if(!
defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php and SSI.php files.');

if((
SMF == 'SSI') && !$user_info['is_admin'])
die('Admin priveleges required.');

db_extend('packages');

$one = array('name' => 'description''type' => 'text''null' => false);
$two = array('name' => 'link''type' => 'text''null' => false);
$three = array('name' => 'is_read''type' => 'smallint''size' => 1'null' => false);

$smcFunc['db_add_column']("{db_prefix}log_karma"$one);
$smcFunc['db_add_column']("{db_prefix}log_karma"$two);
$smcFunc['db_add_column']("{db_prefix}log_karma"$three);


$smcFunc['db_remove_index']("{db_prefix}log_karma"'primary');

$smcFunc['db_insert']('ignore',
'{db_prefix}settings',
array('variable' => 'string''value' => 'string'),
array(
array('karmamaxmembers''10'),
array('karmawhatwrite''Explanation was disabled'),
array('karmaidmember''1'),
),
array('variable')
);

?>


That "should" fix the issues you guys are having. (At least this time, it recognized the prefix for me >_<)..
Title: Re: Karma Description Mod
Post by: Dharshan on January 03, 2010, 02:53:15 AM
hi gm112,

thanks for the update...
but at the installation process it does give a lot of "test fails"...
will try this on my localhost....

cheers!
Title: Re: Karma Description Mod
Post by: muddywatergrant on January 05, 2010, 01:03:25 PM
thanks
Title: Re: Karma Description Mod
Post by: gm112 on January 06, 2010, 01:51:19 AM
Quote from: Dharshan on January 03, 2010, 02:53:15 AM
hi gm112,

thanks for the update...
but at the installation process it does give a lot of "test fails"...
will try this on my localhost....

cheers!
What version of SMF are you trying on? I modified it exclusively for RC2..
Title: Re: Karma Description Mod
Post by: Dharshan on January 06, 2010, 11:16:49 PM
SMF 2 RC2 to be exact...
default core theme..

have a bunch of other mods installed as well
Title: Re: Karma Description Mod
Post by: gm112 on January 07, 2010, 12:14:26 AM
Quote from: Dharshan on January 06, 2010, 11:16:49 PM
SMF 2 RC2 to be exact...
default core theme..

have a bunch of other mods installed as well
Interesting.. I've tested this on a vanilla install of SMF2 RC2, and it worked fine. Is it failing on the template files or some core files? (running this on a forum with various other mods as well, and it seems to be working just fine)
Title: Re: Karma Description Mod
Post by: Dharshan on January 07, 2010, 06:38:54 AM
gimme your latest installation module...
then i'll be able to retry
Title: Re: Karma Description Mod
Post by: Fisch.666 on January 07, 2010, 03:50:23 PM
Hi gm112.

First thanks for the update of this mod, installed without a problem on SMF 2.0 RC2.

But i get a lot of this errors:


8: Undefined index: karma_delete
File: /Themes/default/Viewkarma.template.php
line:  110

8: Undefined index: karmanumb
File: /Themes/default/Viewkarma.template.php
line:  105

8: Undefined index: karmatime
File: /Themes/default/Viewkarma.template.php
line:  32

8: Undefined index: karmadesc
File: /Themes/default/Viewkarma.template.php
line:  30

8: Undefined index: karmawhat
File: /Themes/default/Viewkarma.template.php
line:  29

8: Undefined index: karmawhos
File: /Themes/default/Viewkarma.template.php
line:  28

8: Undefined index: karmawho
File: /Themes/default/Viewkarma.template.php
line:  27

8: Undefined index: karmaview
File: /Themes/default/Viewkarma.template.php
line:  23

8: Undefined index: sure_about_karma_remove
File: /Themes/default/Viewkarma.template.php
line:  20

8: Undefined index: viewkarma_title
File: /Sources/Viewkarma.php
line:  189

8: Undefined index: viewkarma_title
File: /Sources/Viewkarma.php
line:  186

8: Undefined index: statkarma
File: /Themes/default/BoardIndex.template.php
line:  381


in my errorlog. Any hints how i can fix this? Thanks in advance for a reply.
Title: Re: Karma Description Mod
Post by: gm112 on January 07, 2010, 05:34:51 PM
Quote from: Fisch.666 on January 07, 2010, 03:50:23 PM
Hi gm112.

First thanks for the update of this mod, installed without a problem on SMF 2.0 RC2.

But i get a lot of this errors:


8: Undefined index: karma_delete
File: /Themes/default/Viewkarma.template.php
line:  110

8: Undefined index: karmanumb
File: /Themes/default/Viewkarma.template.php
line:  105

8: Undefined index: karmatime
File: /Themes/default/Viewkarma.template.php
line:  32

8: Undefined index: karmadesc
File: /Themes/default/Viewkarma.template.php
line:  30

8: Undefined index: karmawhat
File: /Themes/default/Viewkarma.template.php
line:  29

8: Undefined index: karmawhos
File: /Themes/default/Viewkarma.template.php
line:  28

8: Undefined index: karmawho
File: /Themes/default/Viewkarma.template.php
line:  27

8: Undefined index: karmaview
File: /Themes/default/Viewkarma.template.php
line:  23

8: Undefined index: sure_about_karma_remove
File: /Themes/default/Viewkarma.template.php
line:  20

8: Undefined index: viewkarma_title
File: /Sources/Viewkarma.php
line:  189

8: Undefined index: viewkarma_title
File: /Sources/Viewkarma.php
line:  186

8: Undefined index: statkarma
File: /Themes/default/BoardIndex.template.php
line:  381


in my errorlog. Any hints how i can fix this? Thanks in advance for a reply.
Woah. That's not right.. Can you turn off template eval and send me the errors? It looks like the database changes didn't roll out as it was supposed to.

Quote from: Dharshan on January 07, 2010, 06:38:54 AM
gimme your latest installation module...
then i'll be able to retry
Attached with the {db_prefix} included in the DB install.
Title: Re: Karma Description Mod
Post by: Fisch.666 on January 07, 2010, 06:19:51 PM
Hi!

Thanks for your reply.

I had this problem because i have a german-utf8 language pack installed and the german languagefiles wasn't edited by the installer.
After adding the edits by hand it works without errors now.  :)
Title: Re: Karma Description Mod
Post by: gm112 on January 07, 2010, 10:06:18 PM
Quote from: Fisch.666 on January 07, 2010, 06:19:51 PM
Hi!

Thanks for your reply.

I had this problem because i have a german-utf8 language pack installed and the german languagefiles wasn't edited by the installer.
After adding the edits by hand it works without errors now.  :)
I see. ^^

Glad you resolved it!
Title: Re: Karma Description Mod
Post by: bork on January 09, 2010, 07:31:38 AM

Many thanks gm112  for updating this mod - I'd give you +ve karma if I was able to on here :)
Title: Re: Karma Description Mod
Post by: Dharshan on January 10, 2010, 03:58:56 AM
hi  gm112,
your 2.6 version works well..... no errors and it installed perfect!

any ways i have a SS for errors i had with previous installation
Title: Re: Karma Description Mod
Post by: gm112 on January 10, 2010, 12:47:28 PM
Quote from: Dharshan on January 10, 2010, 03:58:56 AM
hi  gm112,
your 2.6 version works well..... no errors and it installed perfect!

any ways i have a SS for errors i had with previous installation
Oh, damn >_<.. Sucks you were receiving those errors, but I'm glad it resolved eventually! : D I wonder what the error was on the profile template. I bet it was something silly which was easy to fix, no?
Quote from: bork on January 09, 2010, 07:31:38 AM

Many thanks gm112  for updating this mod - I'd give you +ve karma if I was able to on here :)
All I did was update the installer script to RC2 ;P.
Title: Re: Karma Description Mod
Post by: Dharshan on January 11, 2010, 07:08:22 AM
hi gm112,
it's just a simple thing in your side LOL....but for me it was a lot more bigger...Thanks a lot for making it work!

cheers!
Title: Re: Karma Description Mod
Post by: maiker on January 13, 2010, 05:53:30 AM
In my case the mod destroys the BoardIndex.template.php at this line:

<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '</p>';

I fixed it by removing the inserted stuff.

Now it works fine! Cool mod!
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 14, 2010, 09:59:44 PM
Karma Description Mod was updated

Release notes:
Karma_Description_Mod_ver.2.6.1
*This bugs was fixed:
   - Fixed bug with reinstalling KDM (There was an error with "}" at the end of Karma.php after reinstalling kdm)
   - Fixed bug with notifications, when karma was changed (Users settings in their profiles was absent)
   - Fixed bug with redirecting when karma was changed in PM
   - Small fix in Viewkarma template for Administratos. "Where" field now have 9% from parent table and double linktree was fixed
   - Small fix in BoardIndex template with [Karma Stat] link.
   - Small fix in Viewkarma template. When other karma statistic was ON, progress bar was absent. Bar.gif was renamed to bar_stats.png
   - Settings with notifications when karma was changed replaced to Notification area in user profiles
Title: Re: Karma Description Mod
Post by: haito on January 15, 2010, 02:22:00 AM
i got error when i installed this mod...
any sollution?

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 15, 2010, 03:07:06 AM
haito, this mod is only for SMF 2.1 RC2.
For 1.1.11 still not ready.
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on January 15, 2010, 11:06:59 AM
Grek_Kamchatka thank you for new version ;)
Title: Re: Karma Description Mod
Post by: Yahmez on January 15, 2010, 11:56:03 AM
I second that! Thanks for updating this mod  :D
Title: Re: Karma Description Mod
Post by: thezkitten on January 18, 2010, 05:14:21 PM
is there an older copy floating around of one of the versions that worked with 1.1.x?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 19, 2010, 10:57:51 PM
thezkitten, i hope in few day it will be.

To All: Karma Description Mod 2.6.3 was released!

In Russian: Инасталлятор теперь один и содержит в себе английский и русские языки (cp1251 и utf8)

Title: Re: Karma Description Mod
Post by: Nolt on January 21, 2010, 01:35:34 PM
Thanks for updating this mod.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 22, 2010, 05:35:14 AM
Karma Description Mod 2.6.4 RELEASED!
Title: Re: Karma Description Mod
Post by: Rex Zac on January 22, 2010, 05:47:44 AM
Hi,

I installed today this mod and i have some problem.
I dont see any text in admin area, even i do see boxes and simialr - i attached ss.
during installation, i get error installing in profile.template.php, but i added manualy that code.

Please help me

edit: i have 2.0 RC2 and KDM 2.6.4
Title: Re: Karma Description Mod
Post by: Fisch.666 on January 22, 2010, 08:17:34 AM
Do you use the english-utf8 languagepack?

If yes, you have to make the changes from the english languagepack to the english-utf8 languagepack or you have to install this mod:

http://custom.simplemachines.org/mods/index.php?mod=615
Title: Re: Karma Description Mod
Post by: Rex Zac on January 22, 2010, 09:45:50 AM
Quote from: Fisch.666 on January 22, 2010, 08:17:34 AM
Do you use the english-utf8 languagepack?

If yes, you have to make the changes from the english languagepack to the english-utf8 languagepack or you have to install this mod:

http://custom.simplemachines.org/mods/index.php?mod=615

i use croatian language, and I installed this mod, and now i can see mod in admin, however, does he need lil time to start gather and show up stats and things? cos i dont see thos 2 things (actualy i dont see mod in action -except in admin area  :o ):
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 23, 2010, 12:09:53 AM
It is because of you use another language then English. Open english files which was updated with this mod and add to your language files needed strings.

By the way, http://custom.simplemachines.org/mods/index.php?mod=615 will help you. Thank you Fisch.666
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 23, 2010, 02:57:23 AM
Karma_Description_Mod_ver.2.6.5 was released!

You can see release notes on main mod page. (http://custom.simplemachines.org/mods/index.php?mod=192)

Enjoy!
Title: Re: Karma Description Mod
Post by: rexusdiablos on January 24, 2010, 12:12:19 PM
Quote from: Repsol AL on September 14, 2005, 09:13:41 PM
there is no "test"
nothing to enable it
it just never gets installed
how can i execute the XML files to do the modifications
from ftp software ?

Have you tried downloading the package to your forum using the alternative means in the package manager? i.e. by url or upload the zip after downloading it and failing that trying to manually install it.

I know your problem is execution but it's worth a try.
Title: Re: Karma Description Mod
Post by: SiL on January 24, 2010, 11:24:18 PM
Greg,

for users who are still on 1.1.x, would you be so kind as to make available KMD2.3.1 in the downloads section in the meantime?   

Am getting lots of errors from 2.2 version with the "is_read" issue and seems to be upsetting some users login (it's throwing longs lists of errors)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 24, 2010, 11:57:38 PM
Sil, all Done!

Note: KDM ver.2.3.1 is an old version of this mod without any new functions which has version 2.6.5 and version 2.3.1 is no longer supported. Any troubles with KDM 2.3.1 on SMF 1.1.* is your own trouble. I'm work right now with compatibility kdm 2.6.5 and smf 1.1.11
Title: Re: Karma Description Mod
Post by: SiL on January 25, 2010, 03:04:56 AM
Quote from: Grek_Kamchatka on January 24, 2010, 11:57:38 PM
Sil, all Done!

Note: KDM ver.2.3.1 is an old version of this mod without any new functions which has version 2.6.5 and version 2.3.1 is no longer supported. Any troubles with KDM 2.3.1 on SMF 1.1.* is your own trouble. I'm work right now with compatibility kdm 2.6.5 and smf 1.1.11

thankyou, & understood.  :)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 27, 2010, 11:11:25 PM
Karma Description Mod ver. 2.6.6 was RELEASED!
Now compatible with all latest SMF versions (1.1.11 and 2.0 RC2)
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on January 28, 2010, 10:09:59 AM
Quote from: Grek_Kamchatka on January 27, 2010, 11:11:25 PM
Karma Description Mod ver. 2.6.6 was RELEASED!
Now compatible with all latest SMF versions (1.1.11 and 2.0 RC2)

Very nice work :-)
Title: Re: Karma Description Mod
Post by: haito on January 28, 2010, 09:23:41 PM
@Grek
i have error when installed...

11.     Execute Modification     ./Themes/default/Display.template.php     Test failed

:-\
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 29, 2010, 12:50:17 AM
Karma Description Mod 2.6.7 was released. See release notes on mod page
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on January 29, 2010, 08:53:28 AM
Full upgraded Czech translate version Karma_Description_Mod_ver.2.6.7.zip there:
http://www.simplemachines.org/community/index.php?topic=301494.msg1993207#msg1993207
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 30, 2010, 04:11:28 AM
Thx, posted link on mod page.
Title: Re: Karma Description Mod
Post by: rexusdiablos on January 31, 2010, 09:04:50 AM
Quote from: haito on January 28, 2010, 09:23:41 PM
@Grek
i have error when installed...

11.     Execute Modification     ./Themes/default/Display.template.php     Test failed

:-\

Are you currently using any mods that have already edited Display.template.php? From my experience, a fail usually indicates that the required code cannot be found usually because it's not there or it's been edited by another mod.

Have a look at the section of code that the mod is trying to find and see if you can match it up:

http://custom.simplemachines.org/mods/index.php?action=parse

If not, you'll need to manually install the mod.
Title: Re: Karma Description Mod
Post by: Quexinos on January 31, 2010, 08:06:30 PM
After I install it, I get this error when I try to view a topic

Fatal error: Call to undefined function is_limitedbykarma() in /home/nepta/public_html/killthemongoose.com/tnc/Sources/Display.php on line 1183
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on January 31, 2010, 10:10:36 PM
Quexinos, This mod is incompatible with other karma mods
Title: Re: Karma Description Mod
Post by: Joker™ on February 03, 2010, 03:02:00 AM
does this mod works with advance reputation mod also

i mean like this mod shows if someone give karma to another we can see it

in same way like someone add reputation to other we can see that also ?
Title: Re: Karma Description Mod
Post by: gm112 on February 05, 2010, 04:23:00 AM
Head's up on 2.6.7. In karma.php, you're going to want to remove an extra }.

GOTO: Line 428 and find
Code (php) Select

obExit(false);
}

}

}


Change that to

obExit(false);
}

}

..and everything will be fine. =)
Title: Re: Karma Description Mod
Post by: kicky on February 07, 2010, 09:14:10 PM
Hi,

I installed the latest version of this mod in my SMF 1.1.11 it not work properly.
Please see attached
there is error, not description (words) in the screen, after I clik good karma or bad karma

hope you can help me to solve this problem

thanks in advance
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 07, 2010, 09:36:28 PM
Quote from: kicky on February 07, 2010, 09:14:10 PM
Hi,

I installed the latest version of this mod in my SMF 1.1.11 it not work properly.
Please see attached
there is error, not description (words) in the screen, after I clik good karma or bad karma

hope you can help me to solve this problem

thanks in advance
Hi, what language do you use by default on your forum?
Title: Re: Karma Description Mod
Post by: kicky on February 07, 2010, 10:08:08 PM
Quote from: Grek_Kamchatka on February 07, 2010, 09:36:28 PM
Quote from: kicky on February 07, 2010, 09:14:10 PM
Hi,

I installed the latest version of this mod in my SMF 1.1.11 it not work properly.
Please see attached
there is error, not description (words) in the screen, after I clik good karma or bad karma

hope you can help me to solve this problem

thanks in advance
Hi, what language do you use by default on your forum?

English
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 08, 2010, 02:00:13 AM
Only English, or english-utf8? Do you have any errors in error log?
Title: Re: Karma Description Mod
Post by: kicky on February 08, 2010, 03:02:34 AM
Quote from: Grek_Kamchatka on February 08, 2010, 02:00:13 AM
Only English, or english-utf8? Do you have any errors in error log?

English utf8

Yes, lots about karma
- 8: Undefined index: viewkarma_title
File: /home/innovaco/public_html/Sources/Karma.php
Line: 94

- 8: Undefined index: karma_continue
File: /home/innovaco/public_html/Themes/default/DescriptionKarma.template.php
Line: 36

-8: Undefined index: statkarma
File: /home/innovaco/public_html/Themes/default/BoardIndex.template.php
Line: 421
- 8: Undefined index: karma_continue
File: /home/innovaco/public_html/Themes/default/DescriptionKarma.template.php
Line: 36

- 8: Undefined index: karma_back
File: /home/innovaco/public_html/Themes/default/DescriptionKarma.template.php
Line: 35

- 8: Undefined index: karmarequare
File: /home/innovaco/public_html/Themes/default/DescriptionKarma.template.php
Line: 30

-8: Undefined index: karmamoder
File: /home/innovaco/public_html/Themes/default/DescriptionKarma.template.php
Line: 30

-8: Undefined index: karmadescappl
File: /home/innovaco/public_html/Themes/default/DescriptionKarma.template.php
Line: 27

-8: Undefined index: whykarmamod
File: /home/innovaco/public_html/Themes/default/DescriptionKarma.template.php
Line: 26

-8: Undefined index: viewkarma_title
File: /home/innovaco/public_html/Sources/Karma.php
Line: 94

Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 08, 2010, 03:41:33 AM
Add all language strings that was added by this mod, to your english-utf.php files
Title: Re: Karma Description Mod
Post by: kicky on February 08, 2010, 03:49:08 AM
Quote from: Grek_Kamchatka on February 08, 2010, 03:41:33 AM
Add all language strings that was added by this mod, to your english-utf.php files

what is languange strings?
where i can find them?

i assume add by manual, right?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 08, 2010, 06:05:06 AM
At the end of each files add this code:
ManageMaintenance.english-utf8.php

//Karma Descriprion Mod
$txt['maintain_karmalog'] = 'Empty out Karma Description log';
$txt['maintain_karmalog_info'] = 'Delete all karma description log';
$txt['maintain_karma_points'] = 'Set all karma points to 0 to all members';
$txt['maintain_karma_points_info'] = 'Set all karma points to 0 to all members';
$txt['maintain_karma_points_info2'] = 'and erase all karma description log';

ManageSettings.english-utf8.php

//Karma Descriprion Mod
$txt['karmadescmod'] = 'Enable Karma Description Mod';
$txt['karmamaxmembers'] = 'Members per page in Karma Description log';
$txt['karmalogview'] = 'Use member names as link to their profiles';
$txt['karmapermiss'] = 'Allow users view Karma Description log (See Permissions)';
$txt['karmalinks'] = 'Enable karma links in users profiles';
$txt['karmaisowner'] = 'Disable whole karma log for users but enable own karma log';
$txt['karmakarma'] = 'Display users karma(+/-) in Karma Description Log';
$txt['karmaurl'] = 'Enable "Where" field in Karma Description Log';
$txt['karmaotherstat'] = 'Show other Karma Statistics';
$txt['karmasurv'] = 'Applaud or smite users without explanation';
$txt['karmawhatwrite'] = 'Write this in the log, when explanation is disabled';
$txt['karmacensor'] = 'Censor karma explanation';
$txt['karmatopicstarter'] = 'Users can change only topic\'s starter karma';
$txt['karmanotifier'] = 'Enable karma notification';
$txt['karmaidmember'] = 'Send PM from this Member ID (1 by default)';
$txt['karma_pm_send_changelink'] = 'Send link in personal message to message where karma was changed';
$txt['karma_pm_send_link'] = 'Send link in personal message to own karma log';
$txt['karmacantmodify'] = 'User ID\'s, whose karma can\'t be changed. <div class="smalltext">Comma separated, without spaces. For example: 1,13,27</div>';
$txt['karmacantmodify2'] = 'User ID\'s, who can\'t modify karma. <div class="smalltext">For example: 2,412,88</div>';
$txt['karmabuttons'] = 'Show small images instead of karma applaud and smite text labels';
$txt['karmapictureinlog'] = 'Show small images in karma description log instead of + or - in action field';
$txt['karmadelete'] = 'Delete user karma points when i delete descriptions of changing in Karma Description log';
$txt['karmalabellink'] = 'Use karma label as link to members karma description log';
$txt['karmalastchange'] = 'Enable last karma change on BoardIndex';
$txt['karmalastchangenum'] = 'Number of descriptions on BoardIndex';
$txt['karmadescfieldnum'] = 'How much symbols will be in Description field on BoardIndex';

Who.english-utf8.php

//Karma Descriprion Mod
$txt['whoadmin_viewkarma'] = 'Viewing <a href="' . $scripturl . '?action=viewkarma">Karmachange Description log</a>.';
$txt['whoall_modifykarma'] = 'Changing karma.';

Help.english-utf8.php

//Karma Descriprion Mod
$helptxt['karmapermiss'] = 'By default this option is switched off and Karma Log can look only admins. If you want to do Karma Log available for other users or moderators, etc, enable this option and give the right that group, which can look Log in "Permissions" section.';
$helptxt['karmaotherstat'] = 'Show other karma statistics like Max applauded users or Max smited users and so on in whole karma log.';
$helptxt['karmalinks'] = 'If you enable this feauture, users will see two links in their profiles (Own or other users). They can see who change their karma and whom they change it. Karma Description Mod must be enabled';
$helptxt['karmakarma'] = 'It\'s display users karma in Karma log opposit the usernames. For example: Username (+12/-8)';
$helptxt['karmaurl'] = 'If you enable this option, you and your users can view where their karma was change.';
$helptxt['karmaisowner'] = 'If you enable this option, only profile owner will see two links to his own karma log. By the way, your users will resieve an error if they input an url adress (like http://your_forum.com/index.php?action=ownkarma;u=other_user) by the hand if you don\'t want your users can view other users karma log. Whole karma log will be disabled too. ONLY OWN KARMA LOG.';
$helptxt['karmanotifier'] = 'If you enable this function, your users will see another one field in their profiles in \'Notifications\' section. It give an opportunity to notify users when their karma will be changed by two way notify: Popup Message and Personal Message.';
$helptxt['karmaidmember'] = 'If your users enabled Karma Notify function and choose Personal Message notify, they will recieve a Peronal Message from this member id. For example, if you have ID_MEMBER=1 they will recieve PM from you and so on. If you set member id = 0 your users will recieve a message from Admin Guest.';
$helptxt['karma_pm_send_link'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see a link to their own karma log.';
$helptxt['karma_pm_send_desc'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see the reason of karma change.';
$helptxt['karma_pm_send_changelink'] = 'If your users enabled Karma Notify function and choose Personal Message notify, in Personal Message they will see a link to message where their karma was changed.';
$helptxt['karmacantmodify'] = 'Comma separated, without any spaces.';
$helptxt['karmacantmodify2'] = 'Comma separated, without any spaces.';


index.english-utf8.php

//Karma Description Mod
$txt['karmaview'] = 'Karma Change Description';
$txt['whykarmamod'] = 'Karma change';
$txt['Description'] = 'No Description';
$txt['karmamoder'] = 'Reason for changing the karma of this user';
$txt['karmarequare'] = '(Required field)';
$txt['karmawho'] = 'Who';
$txt['karmawhos'] = 'Whom';
$txt['karmawhat'] = 'What';
$txt['karmadesc'] = 'For What';
$txt['karmatime'] = 'When';
$txt['karmanumb'] = 'Values: ';
$txt['statkarma'] = '[Karma Stats]';
$txt['viewkarma_title'] = 'Karma Change Description';
$txt['deletekarma'] = 'Delete';
$txt['clearkarma'] = 'Clear';
$txt['karma_delete_confirm'] = 'Are you sure you want to delete this record?';
$txt['karma_back'] = '< Back';
$txt['karma_continue'] = 'Continue >';
$txt['karmadescappl'] = ' (Applaud)';
$txt['karmadescsmi'] = ' (Smite)';
$txt['karmawhere'] = 'Where';
$txt['karmawhereurl'] = 'In topic';
$txt['karmawhereurl2'] = 'In PM';
$txt['karma_delete'] = 'Delete';
$txt['karma_pages'] = 'Pages';
$txt['karma_profile_of'] = 'View the profile of';
$txt['sure_about_karma_remove'] = 'Are you sure you want to delete this record?';
$txt['karma_stat'] = 'Karma Statistic';
$txt['karma_top_applaud'] = 'Top 5 applauded users';
$txt['karma_top_smite'] = 'Top 5 smited users';
$txt['karma_other_stat'] = 'General Statistics';
$txt['karma_max_appl'] = 'User MAX applauding other users';
$txt['karma_max_smit'] = 'User MAX smiting other users';
$txt['karma_today'] = 'Karma points today';
$txt['karma_today_plus'] = 'Today "+"';
$txt['karma_today_minus'] = 'Today "-"';
$txt['karma_notifier'] = 'Your karma was changed on ';
$txt['karma_notifier2'] = ' points. Do you want to see the karma description log?';
$txt['karma_pm_subject'] = 'Karma Notification';
$txt['karma_pm_body'] = 'Dear user. Your karma was changed. ';
$txt['karma_pm_body2'] = 'You can see the log if follow this link:<br />'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Send the reason in personal message';
$txt['karma_pm_send_desc2'] = '<br /><br />The reason of changing was: ';
$txt['karma_pm_send_changelink'] = '<br /><br />Your karma was changed on this message:<br />';
$txt['karma_last_change']='Last karma change';
$txt['karma_last_change1']='Last ';
$txt['karma_last_change2']=' karma changes';

ManagePermissions.english-utf8.php

$txt['permissionname_karmalog_view'] = 'View Karma Log';
$txt['permissionhelp_karmalog_view'] = 'Karma Description Log shows all members karma and description of applauding or smiting. This permission will only work if you also have enabled it in \'Features and Options\'. You can access the Karma Description screen by clicking the link in the \'Karma Stat\' section of the board index.';

Errors.english-utf8.php

$txt['cannot_karmalog_view'] = 'Sorry - you don\'t have the proper permissions to view the Karma Description list.';
$txt['viewkarma_error'] = 'User ID must be a number';
$txt['karma_not_topic_starter'] = 'Sorry, he(she) is not a topic\'s starter.';
$txt['karma_cant_modify'] = 'Sorry, you can\'t modify karma to this user.';
$txt['karma_cant_modify2'] = 'Sorry, you can\'t modify karma to other users.';
$txt['kdm_error'] = 'Karma Description Mod is disabled';

Profile.english-utf8.php

$txt['who_change_my_karma'] = 'Who changed my karma';
$txt['whom_i_change_karma'] = 'Whose karma have I changed';
$txt['enable_notify'] = 'Notify me when my karma will be changed';
$txt['enable_notify_none'] = 'don\'t notify';
$txt['enable_notify_popup'] = 'Popup window';
$txt['enable_notify_pm'] = 'Personal Message';
Title: Re: Karma Description Mod
Post by: kicky on February 08, 2010, 06:25:30 AM
Thanks Grek

But I can not find files :

ManageMaintenance.english-utf8.php
ManageSettings.english-utf8.php

The rest I have it
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 08, 2010, 04:42:41 PM
Ah, ofcource, you have a ModSettings.english-utf8.php in smf 1.1.11 instead of ManageMaintenance and ManageSettings.
Title: Re: Karma Description Mod
Post by: kicky on February 08, 2010, 08:16:05 PM
Quote from: Grek_Kamchatka on February 08, 2010, 04:42:41 PM
Ah, ofcource, you have a ModSettings.english-utf8.php in smf 1.1.11 instead of ManageMaintenance and ManageSettings.

I open ModSetting.english-utf8.php and found the edit you asked.
So after I add the code as your quideance, the admin panel for karma showed as attached
And now what happened?

No error log.

Thanks in advance again
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 08, 2010, 10:01:59 PM
Try to erase all cache data for your forum.
Title: Re: Karma Description Mod
Post by: kicky on February 08, 2010, 10:39:51 PM
Quote from: Grek_Kamchatka on February 08, 2010, 10:01:59 PM
Try to erase all cache data for your forum.

If you mean cache in my browser I always do it after I install any mod.
And I just did it again....

Or you means clear cache data in file manager?
which cache?
how to erase?
I am noobie here :)

thanks again
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 08, 2010, 11:20:47 PM
Nope, cache in admin panel. Admin - Server options - Cacheeng. Disable
Title: Re: Karma Description Mod
Post by: kicky on February 08, 2010, 11:42:08 PM
Quote from: Grek_Kamchatka on February 08, 2010, 11:20:47 PM
Nope, cache in admin panel. Admin - Server options - Cacheeng. Disable

Cache is disable in my SMF
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 08, 2010, 11:59:07 PM
Ok, can you mail me your ModSettings.english.php and ModSettings.english-utf8.php? grek.kamchatka at gmail.com
Title: Re: Karma Description Mod
Post by: kicky on February 09, 2010, 12:16:58 AM
Thanks Grek.

Sent
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 09, 2010, 12:17:46 AM
I saw your files you mail me, do next step
open your ModSettings.english-utf8.php file and add this code at the end of the file

//Karma Descriprion Mod
$txt['karmadescmod'] = 'Enable Karma Description Mod';
$txt['karmamaxmembers'] = 'Members per page in Karma Description log';
$txt['karmalogview'] = 'Use member names as link to their profiles';
$txt['karmapermiss'] = 'Allow users view Karma Description log (See Permissions)';
$txt['karmalinks'] = 'Enable karma links in users profiles';
$txt['karmaisowner'] = 'Disable whole karma log for users but enable own karma log';
$txt['karmakarma'] = 'Display users karma(+/-) in Karma Description Log';
$txt['karmaurl'] = 'Enable "Where" field in Karma Description Log';
$txt['karmaotherstat'] = 'Show other Karma Statistics';
$txt['karmasurv'] = 'Applaud or smite users without explanation';
$txt['karmawhatwrite'] = 'Write this in the log, when explanation is disabled';
$txt['karmacensor'] = 'Censor karma explanation';
$txt['karmatopicstarter'] = 'Users can change only topic\'s starter karma';
$txt['karmanotifier'] = 'Enable karma notification';
$txt['karmaidmember'] = 'Send PM from this Member ID (1 by default)';
$txt['karma_pm_send_changelink'] = 'Send link in personal message to message where karma was changed';
$txt['karma_pm_send_link'] = 'Send link in personal message to own karma log';
$txt['karmacantmodify'] = 'User ID\'s, whose karma can\'t be changed. <div class="smalltext">Comma separated, without spaces. For example: 1,13,27</div>';
$txt['karmacantmodify2'] = 'User ID\'s, who can\'t modify karma. <div class="smalltext">For example: 2,412,88</div>';
$txt['karmabuttons'] = 'Show small images instead of karma applaud and smite text labels';
$txt['karmapictureinlog'] = 'Show small images in karma description log instead of + or - in action field';
$txt['karmadelete'] = 'Delete user karma points when i delete descriptions of changing in Karma Description log';
$txt['karmalabellink'] = 'Use karma label as link to members karma description log';
$txt['karmalastchange'] = 'Enable last karma change on BoardIndex';
$txt['karmalastchangenum'] = 'Number of descriptions on BoardIndex';
$txt['karmadescfieldnum'] = 'How much symbols will be in Description field on BoardIndex';
Title: Re: Karma Description Mod
Post by: kicky on February 11, 2010, 02:35:49 AM
@ Grek

Done and work perfect.

But now some member can not view the stats, even I already allow in the permision and karma panel
I will report back if I still can not solve it
Title: Re: Karma Description Mod
Post by: kicky on February 11, 2010, 04:11:41 AM
@ Grek

I thick this function
Disable whole karma log for users but enable own karma log

But then all members can not see Karma Stats.

That function suppose for view own karma log only, isn't it?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 11, 2010, 05:55:21 AM
Quote from: kicky on February 11, 2010, 04:11:41 AM
That function suppose for view own karma log only, isn't it?
Yes, thats right
Title: Re: Karma Description Mod
Post by: kicky on February 11, 2010, 06:07:48 AM
@ Grek,

After I thick that function than all member can't see their own karma, even can't not see any karma stat icon in Homepage.

Whats went wrong?
Any item that I miss?
Title: Re: Karma Description Mod
Post by: oOo--STAR--oOo on February 12, 2010, 04:00:39 AM
Fantastic MOD love it.. instealled freshly on 2.0RC with custom theme no proble no mod needed to the custom theme works a treat..

Thanks for the great mod.. :)

100% man.
Title: Re: Karma Description Mod
Post by: waruna on February 19, 2010, 07:31:29 AM
If Karma Mode is 'Enable Total', then can I still use this Karma Description?

Thanks.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 21, 2010, 04:55:46 AM
Yes, ofcourse
Title: Re: Karma Description Mod
Post by: davidhs on February 23, 2010, 02:40:45 PM
I completed the translation spanish_es (and spanish_es-utf8, of course ;) ) of KarmaDescriptionMod 2.6.7 (I have based on several translations already made)


<?php

// $themedir/languages/Admin.spanish_es.php - 1.1
// $themedir/languages/ManageMaintenance.spanish_es.php - 2.0
$txt['maintain_karmalog'] = 'Vaciar el log de Descripción del Karma';
$txt['maintain_karmalog_info'] = 'Elimina todo el log de Descripción del Karma';
$txt['maintain_karma_points'] = 'Establecer todos los puntos de karma a 0 en todos los usuarios';
$txt['maintain_karma_points_info'] = 'Establece todos los puntos de karma a 0 en todos los usuarios';
$txt['maintain_karma_points_info2'] = 'y borra todo el log de Descripción del Karma';

// $themedir/languages/ModSettings.spanish_es.php - 1.1
// $themedir/languages/ManageSettings.spanish_es.php - 2.0
$txt['karmadescmod'] = 'Habilita el Mod Karma Description';
$txt['karmamaxmembers'] = 'Usuarios por página en el log de Descripción del Karma';
$txt['karmalogview'] = 'Usa los nombres de los usuarios como enlace a sus perfiles';
$txt['karmapermiss'] = 'Permite a los usuarios ver el log de Descripción del Karma (Ver Permisos)';
$txt['karmalinks'] = 'Habilita los enlaces de karma en los perfiles de usuario';
$txt['karmaisowner'] = 'Inhabilita el log de karma completo a los usuarios, pero habilita el log de karma propio';
$txt['karmakarma'] = 'Muestra el karma(+/-) de los usuarios en el log de Descripción del Karma';
$txt['karmaurl'] = 'Habilita el campo "Dónde" en el log de Descripción del Karma';
$txt['karmaotherstat'] = 'Muestra otras estadísticas de karma';
$txt['karmasurv'] = 'Aplaudir o castigar a usuarios sin explicación';
$txt['karmawhatwrite'] = 'Escribe esto en el log cuando la explicación esta inhabilitada';
$txt['karmacensor'] = 'Censurar la descripción del karma';
$txt['karmatopicstarter'] = 'Los usuarios solo pueden modificar el karma del autor del tema';
$txt['karmanotifier'] = 'Habilita la notificación de karma';
$txt['karmaidmember'] = 'Envía MP desde este ID de usuario (por defecto 1)';
$txt['karma_pm_send_changelink'] = 'Envía por mensaje personal un enlace al mensaje donde se ha cambiado el karma';
$txt['karma_pm_send_link'] = 'Envía enlace al log de karma propio por mensaje personal';
$txt['karmacantmodify'] = 'IDs de usuario cuyo karma no puede ser modificado. <div class="smalltext">Separados por coma, sin espacios. Por ejemplo: 1,13,27</div>';
$txt['karmacantmodify2'] = 'IDs de usuario que no pueden modificar el karma. <div class="smalltext">Por ejemplo: 2,412,88</div>';
$txt['karmabuttons'] = 'Muestra pequeñas imágenes en lugar de las etiquetas de texto de karma de aplaudir y castigar';
$txt['karmapictureinlog'] = 'Muestra pequeñas imágenes en el log de Descripción del Karma en lugar + o - en el campo acción';
$txt['karmadelete'] = 'Elimina los puntos de karma de usuario cuando borre la descripción de los cambios en el log de Descripción del Karma';
$txt['karmalabellink'] = 'Usa etiquetas de karma como enlace al log de Descripción del Karma de los usuarios';
$txt['karmalastchange'] = 'Habilita últimos cambios de karma en el índice del foro';
$txt['karmalastchangenum'] = 'Número de descripciones en el índice del foro';
$txt['karmadescfieldnum'] = 'Cuántos caracteres habrá en el campo descripción en el índice del foro';

// $themedir/languages/Who.spanish_es.php
$txt['whoadmin_viewkarma'] = 'Viendo el <a href="' $scripturl '?action=viewkarma">log de Cambios en la Descripción del Karma</a>.';
$txt['whoall_modifykarma'] = 'Cambiando el Karma.';

// $themedir/languages/Help.spanish_es.php
$helptxt['karmapermiss'] = 'Por defecto esta opción está desactivada y el log de Karma solo lo pueden ver los administradores. Si quieres que el log de Karma disponible esté otros usuarios o moderadores, etc., habilita esta opción y dale el derecho de ver el log a ese grupo modificando los permisos.';
$helptxt['karmaotherstat'] = 'Muestra otras estadísticas de karma, como los usuarios más aplaudidos o los usuarios más castigados, y cosas así, del log de karma completo.';
$helptxt['karmalinks'] = 'Si habilitas esta característica, los usuarios verán dos enlaces en sus perfiles (propios o de otros usuarios). Podrán ver quien cambia su karma y a quienes se lo han cambiado. El Mod Karma Description debe estar habilitado';
$helptxt['karmakarma'] = 'Muestra el karma del usuario en el log de karma frente a su nombre de usuario. Por ejemplo: NombreUsario (+12/-8)';
$helptxt['karmaurl'] = 'Si habilitas esta opción, tu y tus usuarios podrán ver donde se modificó su karma.';
$helptxt['karmaisowner'] = 'Si habilitas esta opción, solo el propietario del perfil podrá ver los dos enlaces a su propio log de karma. Por otra parte, tus usuarios recibirán un error si introducen una dirección url (como http://your_forum.com/index.php?action=ownkarma;u=other_user) a mano si no deseas que tus usuarios puedan ver el log de karma de los demás usuarios. El log de karma completo se inhabilitará también. SOLO EL LOG DE KARMA PROPIO.';
$helptxt['karmanotifier'] = 'Si habilitas esta función, tus usuarios verán un campo más en sus perfiles en la sección \'Notificaciones y email\'. Esto dará la oportunidad de notificar a los usuarios cuando se modifique su karma, a través de dos formas: Mensaje en una ventana emergente y Mensaje Personal.';
$helptxt['karmaidmember'] = 'Si tus usuarios habilitaron la función de Notificación del Karma y eligen notificación por Mensaje Personal, lo recibirán desde este ID de usuario. Por ejemplo, si tienes ID_MEMBER=1 recibirán un MP de tu parte. Si fijas el ID de usuario a 0, tus usuarios recibirán un mensaje de parte del Administrador.';
$helptxt['karma_pm_send_link'] = 'Si tus usuarios habilitan la función de Notificación del Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán un enlace a su log de karma propio.';
$helptxt['karma_pm_send_desc'] = 'Si tus usuarios habilitan la función de Notificación del Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán la razón del cambio de karma.';
$helptxt['karma_pm_send_changelink'] = 'Si tus usuarios habilitan la función de Notificación de Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán enlace al mensaje donde se modificó su karma.';
$helptxt['karmacantmodify'] = 'Separados por comas, sin espacios.';
$helptxt['karmacantmodify2'] = 'Separados por comas, sin espacios.';

// $themedir/languages/index.spanish_es.php
$txt['karmaview'] = 'Cambios en la Descripción del Karma';
$txt['whykarmamod'] = 'Cambio de karma';
$txt['Description'] = 'Sin Descripción';
$txt['karmamoder'] = 'Razón para cambiar el karma de este usuario';
$txt['karmarequare'] = '(Campo requerido)';
$txt['karmawho'] = 'Quién';
$txt['karmawhos'] = 'A quién';
$txt['karmawhat'] = 'Qué';
$txt['karmadesc'] = 'Por qué';
$txt['karmatime'] = 'Cuándo';
$txt['karmanumb'] = 'Valores: ';
$txt['statkarma'] = '[Estadísticas de Karma]';
$txt['viewkarma_title'] = 'Cambios en la Descripción del Karma';
$txt['deletekarma'] = 'Eliminar';
$txt['clearkarma'] = 'Limpiar';
$txt['karma_delete_confirm'] = '¿Estás seguro de que quieres eliminar este registro?';
$txt['karma_back'] = '< Volver';
$txt['karma_continue'] = 'Continuar >';
$txt['karmadescappl'] = ' (Aplaudir)';
$txt['karmadescsmi'] = ' (Abuchear)';
$txt['karmawhere'] = 'Dónde';
$txt['karmawhereurl'] = 'En tema/post';
$txt['karmawhereurl2'] = 'En MP';
$txt['karma_delete'] = 'Eliminar';
$txt['karma_pages'] = 'Páginas';
$txt['karma_profile_of'] = 'Ver perfil de';
$txt['sure_about_karma_remove'] ='¿Estás seguro de que quieres eliminar este registro?';
$txt['karma_stat'] = 'Estadísticas de Karma';
$txt['karma_top_applaud'] = 'Los 5 usuarios más aplaudidos';
$txt['karma_top_smite'] = 'Los 5 usuarios más abucheados';
$txt['karma_other_stat'] = 'Estadísticas Generales';
$txt['karma_max_appl'] = 'Usuario que más aplaude a otros usuarios';
$txt['karma_max_smit'] = 'Usuario que más abuchea a otros usuarios';
$txt['karma_today'] = 'Puntos de karma de hoy';
$txt['karma_today_plus'] = 'Hoy "+"';
$txt['karma_today_minus'] = 'Hoy "-"';
$txt['karma_notifier'] = 'Tu karma ha sido cambiado en ';
$txt['karma_notifier2'] = ' puntos. ¿Deseas ver el log de descripción de karma?';
$txt['karma_pm_subject'] = 'Notificación de Karma';
$txt['karma_pm_body'] = 'Estimado usuario. Tu Karma ha sido cambiado. ';
$txt['karma_pm_body2'] = 'Puedes ver el registro siguiendo este enlace:<br />'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Envía la razón en el mensaje personal';
$txt['karma_pm_send_desc2'] = '<br /><br />La razón del cambio fue: ';
$txt['karma_pm_send_changelink'] = '<br /><br />Tu karma fue modificado en este mensaje:<br />';
$txt['karma_last_change']='Últimos cambios de karma';
$txt['karma_last_change1']='Últimos ';
$txt['karma_last_change2']=' cambios de karma';

// $themedir/languages/ManagePermissions.spanish_es.php
$txt['permissionname_karmalog_view'] = 'Ver el log de karma';
$txt['permissionhelp_karmalog_view'] = 'El log de Descripción del Karma muestra el karma de todos los usuarios, y una descripción sobre los aplausos o abucheos. Este permiso sólo funcionará si también lo tienes activado en \'Características y Opciones\'. Puedes acceder a la pantalla Descripción del Karma haciendo clic en el enlace de la sección \'Estadísticas de Karma\' en el índice del foro.';

// $themedir/languages/Errors.spanish_es.php
$txt['cannot_karmalog_view'] = 'Lo siento - no tienes los permisos apropiados para ver la lista de Descripción del Karma.';
$txt['viewkarma_error'] = 'El ID de usuario debe ser un número';
$txt['karma_not_topic_starter'] = 'Lo siento, él no es el autor del tema.';
$txt['karma_cant_modify'] = 'Lo siento, no puedes modificar el karma de este usuario.';
$txt['karma_cant_modify2'] = 'Lo siento, no puedes modificar el karma de otros usuarios.';
$txt['kdm_error'] = 'El Mod Karma Description está inhabilitado';

// $themedir/languages/Profile.spanish_es.php
$txt['who_change_my_karma'] = '¿Quién cambió mi Karma?';
$txt['whom_i_change_karma'] = '¿A quienes he cambiado el Karma?';
$txt['enable_notify'] = 'Notificarme cuando mi karma sea cambiado';
$txt['enable_notify_none'] = 'no notificar';
$txt['enable_notify_popup'] = 'Ventana emergente';
$txt['enable_notify_pm'] = 'Mensaje personal';

?>



and I found an English word in the code, which should be changed to variable language:

File: Viewkarma.template.php
Line: 122
Change:

<?php

if ($user_info['is_admin']) echo ' <td align="center"><b>Delete</b></td>';

?>


For:

<?php

if ($user_info['is_admin']) echo ' <td align="center"><b>'$txt['deletekarma'], '</b></td>';

?>


Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 23, 2010, 07:10:41 PM
Thq, very much
Title: Re: Karma Description Mod
Post by: VieNoc on March 06, 2010, 11:13:38 AM
Quote from: davidhs on February 23, 2010, 02:40:45 PM
I completed the translation spanish_es (and spanish_es-utf8, of course ;) ) of KarmaDescriptionMod 2.6.7 (I have based on several translations already made)


<?php

// $themedir/languages/Admin.spanish_es.php - 1.1
// $themedir/languages/ManageMaintenance.spanish_es.php - 2.0
$txt['maintain_karmalog'] = 'Vaciar el log de Descripción del Karma';
$txt['maintain_karmalog_info'] = 'Elimina todo el log de Descripción del Karma';
$txt['maintain_karma_points'] = 'Establecer todos los puntos de karma a 0 en todos los usuarios';
$txt['maintain_karma_points_info'] = 'Establece todos los puntos de karma a 0 en todos los usuarios';
$txt['maintain_karma_points_info2'] = 'y borra todo el log de Descripción del Karma';

// $themedir/languages/ModSettings.spanish_es.php - 1.1
// $themedir/languages/ManageSettings.spanish_es.php - 2.0
$txt['karmadescmod'] = 'Habilita el Mod Karma Description';
$txt['karmamaxmembers'] = 'Usuarios por página en el log de Descripción del Karma';
$txt['karmalogview'] = 'Usa los nombres de los usuarios como enlace a sus perfiles';
$txt['karmapermiss'] = 'Permite a los usuarios ver el log de Descripción del Karma (Ver Permisos)';
$txt['karmalinks'] = 'Habilita los enlaces de karma en los perfiles de usuario';
$txt['karmaisowner'] = 'Inhabilita el log de karma completo a los usuarios, pero habilita el log de karma propio';
$txt['karmakarma'] = 'Muestra el karma(+/-) de los usuarios en el log de Descripción del Karma';
$txt['karmaurl'] = 'Habilita el campo "Dónde" en el log de Descripción del Karma';
$txt['karmaotherstat'] = 'Muestra otras estadísticas de karma';
$txt['karmasurv'] = 'Aplaudir o castigar a usuarios sin explicación';
$txt['karmawhatwrite'] = 'Escribe esto en el log cuando la explicación esta inhabilitada';
$txt['karmacensor'] = 'Censurar la descripción del karma';
$txt['karmatopicstarter'] = 'Los usuarios solo pueden modificar el karma del autor del tema';
$txt['karmanotifier'] = 'Habilita la notificación de karma';
$txt['karmaidmember'] = 'Envía MP desde este ID de usuario (por defecto 1)';
$txt['karma_pm_send_changelink'] = 'Envía por mensaje personal un enlace al mensaje donde se ha cambiado el karma';
$txt['karma_pm_send_link'] = 'Envía enlace al log de karma propio por mensaje personal';
$txt['karmacantmodify'] = 'IDs de usuario cuyo karma no puede ser modificado. <div class="smalltext">Separados por coma, sin espacios. Por ejemplo: 1,13,27</div>';
$txt['karmacantmodify2'] = 'IDs de usuario que no pueden modificar el karma. <div class="smalltext">Por ejemplo: 2,412,88</div>';
$txt['karmabuttons'] = 'Muestra pequeñas imágenes en lugar de las etiquetas de texto de karma de aplaudir y castigar';
$txt['karmapictureinlog'] = 'Muestra pequeñas imágenes en el log de Descripción del Karma en lugar + o - en el campo acción';
$txt['karmadelete'] = 'Elimina los puntos de karma de usuario cuando borre la descripción de los cambios en el log de Descripción del Karma';
$txt['karmalabellink'] = 'Usa etiquetas de karma como enlace al log de Descripción del Karma de los usuarios';
$txt['karmalastchange'] = 'Habilita últimos cambios de karma en el índice del foro';
$txt['karmalastchangenum'] = 'Número de descripciones en el índice del foro';
$txt['karmadescfieldnum'] = 'Cuántos caracteres habrá en el campo descripción en el índice del foro';

// $themedir/languages/Who.spanish_es.php
$txt['whoadmin_viewkarma'] = 'Viendo el <a href="' $scripturl '?action=viewkarma">log de Cambios en la Descripción del Karma</a>.';
$txt['whoall_modifykarma'] = 'Cambiando el Karma.';

// $themedir/languages/Help.spanish_es.php
$helptxt['karmapermiss'] = 'Por defecto esta opción está desactivada y el log de Karma solo lo pueden ver los administradores. Si quieres que el log de Karma disponible esté otros usuarios o moderadores, etc., habilita esta opción y dale el derecho de ver el log a ese grupo modificando los permisos.';
$helptxt['karmaotherstat'] = 'Muestra otras estadísticas de karma, como los usuarios más aplaudidos o los usuarios más castigados, y cosas así, del log de karma completo.';
$helptxt['karmalinks'] = 'Si habilitas esta característica, los usuarios verán dos enlaces en sus perfiles (propios o de otros usuarios). Podrán ver quien cambia su karma y a quienes se lo han cambiado. El Mod Karma Description debe estar habilitado';
$helptxt['karmakarma'] = 'Muestra el karma del usuario en el log de karma frente a su nombre de usuario. Por ejemplo: NombreUsario (+12/-8)';
$helptxt['karmaurl'] = 'Si habilitas esta opción, tu y tus usuarios podrán ver donde se modificó su karma.';
$helptxt['karmaisowner'] = 'Si habilitas esta opción, solo el propietario del perfil podrá ver los dos enlaces a su propio log de karma. Por otra parte, tus usuarios recibirán un error si introducen una dirección url (como http://your_forum.com/index.php?action=ownkarma;u=other_user) a mano si no deseas que tus usuarios puedan ver el log de karma de los demás usuarios. El log de karma completo se inhabilitará también. SOLO EL LOG DE KARMA PROPIO.';
$helptxt['karmanotifier'] = 'Si habilitas esta función, tus usuarios verán un campo más en sus perfiles en la sección \'Notificaciones y email\'. Esto dará la oportunidad de notificar a los usuarios cuando se modifique su karma, a través de dos formas: Mensaje en una ventana emergente y Mensaje Personal.';
$helptxt['karmaidmember'] = 'Si tus usuarios habilitaron la función de Notificación del Karma y eligen notificación por Mensaje Personal, lo recibirán desde este ID de usuario. Por ejemplo, si tienes ID_MEMBER=1 recibirán un MP de tu parte. Si fijas el ID de usuario a 0, tus usuarios recibirán un mensaje de parte del Administrador.';
$helptxt['karma_pm_send_link'] = 'Si tus usuarios habilitan la función de Notificación del Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán un enlace a su log de karma propio.';
$helptxt['karma_pm_send_desc'] = 'Si tus usuarios habilitan la función de Notificación del Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán la razón del cambio de karma.';
$helptxt['karma_pm_send_changelink'] = 'Si tus usuarios habilitan la función de Notificación de Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán enlace al mensaje donde se modificó su karma.';
$helptxt['karmacantmodify'] = 'Separados por comas, sin espacios.';
$helptxt['karmacantmodify2'] = 'Separados por comas, sin espacios.';

// $themedir/languages/index.spanish_es.php
$txt['karmaview'] = 'Cambios en la Descripción del Karma';
$txt['whykarmamod'] = 'Cambio de karma';
$txt['Description'] = 'Sin Descripción';
$txt['karmamoder'] = 'Razón para cambiar el karma de este usuario';
$txt['karmarequare'] = '(Campo requerido)';
$txt['karmawho'] = 'Quién';
$txt['karmawhos'] = 'A quién';
$txt['karmawhat'] = 'Qué';
$txt['karmadesc'] = 'Por qué';
$txt['karmatime'] = 'Cuándo';
$txt['karmanumb'] = 'Valores: ';
$txt['statkarma'] = '[Estadísticas de Karma]';
$txt['viewkarma_title'] = 'Cambios en la Descripción del Karma';
$txt['deletekarma'] = 'Eliminar';
$txt['clearkarma'] = 'Limpiar';
$txt['karma_delete_confirm'] = '¿Estás seguro de que quieres eliminar este registro?';
$txt['karma_back'] = '< Volver';
$txt['karma_continue'] = 'Continuar >';
$txt['karmadescappl'] = ' (Aplaudir)';
$txt['karmadescsmi'] = ' (Abuchear)';
$txt['karmawhere'] = 'Dónde';
$txt['karmawhereurl'] = 'En tema/post';
$txt['karmawhereurl2'] = 'En MP';
$txt['karma_delete'] = 'Eliminar';
$txt['karma_pages'] = 'Páginas';
$txt['karma_profile_of'] = 'Ver perfil de';
$txt['sure_about_karma_remove'] ='¿Estás seguro de que quieres eliminar este registro?';
$txt['karma_stat'] = 'Estadísticas de Karma';
$txt['karma_top_applaud'] = 'Los 5 usuarios más aplaudidos';
$txt['karma_top_smite'] = 'Los 5 usuarios más abucheados';
$txt['karma_other_stat'] = 'Estadísticas Generales';
$txt['karma_max_appl'] = 'Usuario que más aplaude a otros usuarios';
$txt['karma_max_smit'] = 'Usuario que más abuchea a otros usuarios';
$txt['karma_today'] = 'Puntos de karma de hoy';
$txt['karma_today_plus'] = 'Hoy "+"';
$txt['karma_today_minus'] = 'Hoy "-"';
$txt['karma_notifier'] = 'Tu karma ha sido cambiado en ';
$txt['karma_notifier2'] = ' puntos. ¿Deseas ver el log de descripción de karma?';
$txt['karma_pm_subject'] = 'Notificación de Karma';
$txt['karma_pm_body'] = 'Estimado usuario. Tu Karma ha sido cambiado. ';
$txt['karma_pm_body2'] = 'Puedes ver el registro siguiendo este enlace:<br />'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Envía la razón en el mensaje personal';
$txt['karma_pm_send_desc2'] = '<br /><br />La razón del cambio fue: ';
$txt['karma_pm_send_changelink'] = '<br /><br />Tu karma fue modificado en este mensaje:<br />';
$txt['karma_last_change']='Últimos cambios de karma';
$txt['karma_last_change1']='Últimos ';
$txt['karma_last_change2']=' cambios de karma';

// $themedir/languages/ManagePermissions.spanish_es.php
$txt['permissionname_karmalog_view'] = 'Ver el log de karma';
$txt['permissionhelp_karmalog_view'] = 'El log de Descripción del Karma muestra el karma de todos los usuarios, y una descripción sobre los aplausos o abucheos. Este permiso sólo funcionará si también lo tienes activado en \'Características y Opciones\'. Puedes acceder a la pantalla Descripción del Karma haciendo clic en el enlace de la sección \'Estadísticas de Karma\' en el índice del foro.';

// $themedir/languages/Errors.spanish_es.php
$txt['cannot_karmalog_view'] = 'Lo siento - no tienes los permisos apropiados para ver la lista de Descripción del Karma.';
$txt['viewkarma_error'] = 'El ID de usuario debe ser un número';
$txt['karma_not_topic_starter'] = 'Lo siento, él no es el autor del tema.';
$txt['karma_cant_modify'] = 'Lo siento, no puedes modificar el karma de este usuario.';
$txt['karma_cant_modify2'] = 'Lo siento, no puedes modificar el karma de otros usuarios.';
$txt['kdm_error'] = 'El Mod Karma Description está inhabilitado';

// $themedir/languages/Profile.spanish_es.php
$txt['who_change_my_karma'] = '¿Quién cambió mi Karma?';
$txt['whom_i_change_karma'] = '¿A quienes he cambiado el Karma?';
$txt['enable_notify'] = 'Notificarme cuando mi karma sea cambiado';
$txt['enable_notify_none'] = 'no notificar';
$txt['enable_notify_popup'] = 'Ventana emergente';
$txt['enable_notify_pm'] = 'Mensaje personal';

?>


Disculpa, esto en que archivo del paquete lo pego? o se pega ya instalado el mod y en que archivo?

Perdon por las preguntas pero no conozco de programacion y solo hago las cosas como ustedes las indican.

Gracias por el esfuerzo que hacen. :)
Title: Re: Karma Description Mod
Post by: davidhs on March 06, 2010, 11:45:11 AM
Quote from: ColZur on March 06, 2010, 11:13:38 AM
Disculpa, esto en que archivo del paquete lo pego? o se pega ya instalado el mod y en que archivo?
Mientras Grek_Kamchatka no saque la siguiente actualización, he unido al MOD original la traducción en español y la corrección. Lo adjunto.

(Tu y yo hablamos español, pero creo que en esta zona es mejor escribir en inglés para que todo el mundo lo entienda, aunque mi inglés no sea muy bueno :( )




While Grek_Kamchatka not take the next update I have joined the original MOD with my Spanish translation and correction. I attached this.

(Both speak Spanish, but I think that in this area is better to write in English so that everybody understands, although my English is not very good :( )
Title: Re: Karma Description Mod
Post by: VieNoc on March 06, 2010, 12:08:44 PM
Quote from: davidhs on March 06, 2010, 11:45:11 AM
Quote from: ColZur on March 06, 2010, 11:13:38 AM
Disculpa, esto en que archivo del paquete lo pego? o se pega ya instalado el mod y en que archivo?
Mientras Grek_Kamchatka no saque la siguiente actualización, he unido al MOD original la traducción en español y la corrección. Lo adjunto.

(Tu y yo hablamos español, pero creo que en esta zona es mejor escribir en inglés para que todo el mundo lo entienda, aunque mi inglés no sea muy bueno :( )




While Grek_Kamchatka not take the next update I have joined the original MOD with my Spanish translation and correction. I attached this.

(Both speak Spanish, but I think that in this area is better to write in English so that everybody understands, although my English is not very good :( )

Ya quedo perfectamente instalado y traducido; muchas gracias por tu ayuda y tiempo, y utilizare el minimo ingles que hablo la siguiente vez.

(Already I stay perfectly installed and translated; thank you very much for your help and time, and the English minimum will use that I speak the following time.)
Title: Re: Karma Description Mod
Post by: gory1963 on March 07, 2010, 10:58:02 PM
Hello, I need help, modificastes install the mod, but I can not see the description of the options, I see only if I switch to English the language of the forum, which by default is in Spanish latin.

Why did this happen? . From already thank you very much.

My platform is to: SMF Web 1.1.11:   mi web : fullelectronica.com.ar/foro


Hola, necesito ayuda, instale el mod que modificastes, pero no logro ver la descripcion de las opciones, las veo solo si modifico a ingles el idioma del foro, que por defecto esta en spanish latin.

¿Porque sucederá esto? . Desde ya muchas gracias.

Mi plataforma es la : SMF 1.1.11  mi web :
fullelectronica.com.ar/foro
Title: Re: Karma Description Mod
Post by: Kindred on March 07, 2010, 11:48:06 PM
almost all mods will only install in english and the default theme. If you are using a language which is not officially supported by the mod, then you will have to add the translations to modifications.YOURLANGUAGE.php on your own
Title: Re: Karma Description Mod
Post by: davidhs on March 08, 2010, 03:40:36 PM
Quote from: humberto martinelli on March 07, 2010, 10:58:02 PM
Hello, I need help, modificastes install the mod, but I can not see the description of the options, I see only if I switch to English the language of the forum, which by default is in Spanish latin.

Why did this happen? . From already thank you very much.

Mi plataforma es la : SMF 1.1.11  mi web : http://www.fullelectronica.com.ar/foro
I am from Spain and I translated to Spanish of Spain (spanish_es). You need Spanish of Latin America (spanish_latin), which is very similar but differs in some words and expressions.

If you can write in new replay these texts with expressions of Latin America, I will add to my modification the spanish_latin

<?php

// $themedir/languages/Admin.spanish_es.php - 1.1
// $themedir/languages/ManageMaintenance.spanish_es.php - 2.0
$txt['maintain_karmalog'] = 'Vaciar el log de Descripción del Karma';
$txt['maintain_karmalog_info'] = 'Elimina todo el log de Descripción del Karma';
$txt['maintain_karma_points'] = 'Establecer todos los puntos de karma a 0 en todos los usuarios';
$txt['maintain_karma_points_info'] = 'Establece todos los puntos de karma a 0 en todos los usuarios';
$txt['maintain_karma_points_info2'] = 'y borra todo el log de Descripción del Karma';

// $themedir/languages/ModSettings.spanish_es.php - 1.1
// $themedir/languages/ManageSettings.spanish_es.php - 2.0
$txt['karmadescmod'] = 'Habilita el Mod Karma Description';
$txt['karmamaxmembers'] = 'Usuarios por página en el log de Descripción del Karma';
$txt['karmalogview'] = 'Usa los nombres de los usuarios como enlace a sus perfiles';
$txt['karmapermiss'] = 'Permite a los usuarios ver el log de Descripción del Karma (Ver Permisos)';
$txt['karmalinks'] = 'Habilita los enlaces de karma en los perfiles de usuario';
$txt['karmaisowner'] = 'Inhabilita el log de karma completo a los usuarios, pero habilita el log de karma propio';
$txt['karmakarma'] = 'Muestra el karma(+/-) de los usuarios en el log de Descripción del Karma';
$txt['karmaurl'] = 'Habilita el campo "Dónde" en el log de Descripción del Karma';
$txt['karmaotherstat'] = 'Muestra otras estadísticas de karma';
$txt['karmasurv'] = 'Aplaudir o castigar a usuarios sin explicación';
$txt['karmawhatwrite'] = 'Escribe esto en el log cuando la explicación esta inhabilitada';
$txt['karmacensor'] = 'Censurar la descripción del karma';
$txt['karmatopicstarter'] = 'Los usuarios solo pueden modificar el karma del autor del tema';
$txt['karmanotifier'] = 'Habilita la notificación de karma';
$txt['karmaidmember'] = 'Envía MP desde este ID de usuario (por defecto 1)';
$txt['karma_pm_send_changelink'] = 'Envía por mensaje personal un enlace al mensaje donde se ha cambiado el karma';
$txt['karma_pm_send_link'] = 'Envía enlace al log de karma propio por mensaje personal';
$txt['karmacantmodify'] = 'IDs de usuario cuyo karma no puede ser modificado. <div class="smalltext">Separados por coma, sin espacios. Por ejemplo: 1,13,27</div>';
$txt['karmacantmodify2'] = 'IDs de usuario que no pueden modificar el karma. <div class="smalltext">Por ejemplo: 2,412,88</div>';
$txt['karmabuttons'] = 'Muestra pequeñas imágenes en lugar de las etiquetas de texto de karma de aplaudir y castigar';
$txt['karmapictureinlog'] = 'Muestra pequeñas imágenes en el log de Descripción del Karma en lugar + o - en el campo acción';
$txt['karmadelete'] = 'Elimina los puntos de karma de usuario cuando borre la descripción de los cambios en el log de Descripción del Karma';
$txt['karmalabellink'] = 'Usa etiquetas de karma como enlace al log de Descripción del Karma de los usuarios';
$txt['karmalastchange'] = 'Habilita últimos cambios de karma en el índice del foro';
$txt['karmalastchangenum'] = 'Número de descripciones en el índice del foro';
$txt['karmadescfieldnum'] = 'Cuántos caracteres habrá en el campo descripción en el índice del foro';

// $themedir/languages/Who.spanish_es.php
$txt['whoadmin_viewkarma'] = 'Viendo el <a href="' $scripturl '?action=viewkarma">log de Cambios en la Descripción del Karma</a>.';
$txt['whoall_modifykarma'] = 'Cambiando el Karma.';

// $themedir/languages/Help.spanish_es.php
$helptxt['karmapermiss'] = 'Por defecto esta opción está desactivada y el log de Karma solo lo pueden ver los administradores. Si quieres que el log de Karma disponible esté otros usuarios o moderadores, etc., habilita esta opción y dale el derecho de ver el log a ese grupo modificando los permisos.';
$helptxt['karmaotherstat'] = 'Muestra otras estadísticas de karma, como los usuarios más aplaudidos o los usuarios más castigados, y cosas así, del log de karma completo.';
$helptxt['karmalinks'] = 'Si habilitas esta característica, los usuarios verán dos enlaces en sus perfiles (propios o de otros usuarios). Podrán ver quien cambia su karma y a quienes se lo han cambiado. El Mod Karma Description debe estar habilitado';
$helptxt['karmakarma'] = 'Muestra el karma del usuario en el log de karma frente a su nombre de usuario. Por ejemplo: NombreUsario (+12/-8)';
$helptxt['karmaurl'] = 'Si habilitas esta opción, tu y tus usuarios podrán ver donde se modificó su karma.';
$helptxt['karmaisowner'] = 'Si habilitas esta opción, solo el propietario del perfil podrá ver los dos enlaces a su propio log de karma. Por otra parte, tus usuarios recibirán un error si introducen una dirección url (como http://your_forum.com/index.php?action=ownkarma;u=other_user) a mano si no deseas que tus usuarios puedan ver el log de karma de los demás usuarios. El log de karma completo se inhabilitará también. SOLO EL LOG DE KARMA PROPIO.';
$helptxt['karmanotifier'] = 'Si habilitas esta función, tus usuarios verán un campo más en sus perfiles en la sección \'Notificaciones y email\'. Esto dará la oportunidad de notificar a los usuarios cuando se modifique su karma, a través de dos formas: Mensaje en una ventana emergente y Mensaje Personal.';
$helptxt['karmaidmember'] = 'Si tus usuarios habilitaron la función de Notificación del Karma y eligen notificación por Mensaje Personal, lo recibirán desde este ID de usuario. Por ejemplo, si tienes ID_MEMBER=1 recibirán un MP de tu parte. Si fijas el ID de usuario a 0, tus usuarios recibirán un mensaje de parte del Administrador.';
$helptxt['karma_pm_send_link'] = 'Si tus usuarios habilitan la función de Notificación del Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán un enlace a su log de karma propio.';
$helptxt['karma_pm_send_desc'] = 'Si tus usuarios habilitan la función de Notificación del Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán la razón del cambio de karma.';
$helptxt['karma_pm_send_changelink'] = 'Si tus usuarios habilitan la función de Notificación de Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán enlace al mensaje donde se modificó su karma.';
$helptxt['karmacantmodify'] = 'Separados por comas, sin espacios.';
$helptxt['karmacantmodify2'] = 'Separados por comas, sin espacios.';

// $themedir/languages/index.spanish_es.php
$txt['karmaview'] = 'Cambios en la Descripción del Karma';
$txt['whykarmamod'] = 'Cambio de karma';
$txt['Description'] = 'Sin Descripción';
$txt['karmamoder'] = 'Razón para cambiar el karma de este usuario';
$txt['karmarequare'] = '(Campo requerido)';
$txt['karmawho'] = 'Quién';
$txt['karmawhos'] = 'A quién';
$txt['karmawhat'] = 'Qué';
$txt['karmadesc'] = 'Por qué';
$txt['karmatime'] = 'Cuándo';
$txt['karmanumb'] = 'Valores: ';
$txt['statkarma'] = '[Estadísticas de Karma]';
$txt['viewkarma_title'] = 'Cambios en la Descripción del Karma';
$txt['deletekarma'] = 'Eliminar';
$txt['clearkarma'] = 'Limpiar';
$txt['karma_delete_confirm'] = '¿Estás seguro de que quieres eliminar este registro?';
$txt['karma_back'] = '< Volver';
$txt['karma_continue'] = 'Continuar >';
$txt['karmadescappl'] = ' (Aplaudir)';
$txt['karmadescsmi'] = ' (Abuchear)';
$txt['karmawhere'] = 'Dónde';
$txt['karmawhereurl'] = 'En tema/post';
$txt['karmawhereurl2'] = 'En MP';
$txt['karma_delete'] = 'Eliminar';
$txt['karma_pages'] = 'Páginas';
$txt['karma_profile_of'] = 'Ver perfil de';
$txt['sure_about_karma_remove'] ='¿Estás seguro de que quieres eliminar este registro?';
$txt['karma_stat'] = 'Estadísticas de Karma';
$txt['karma_top_applaud'] = 'Los 5 usuarios más aplaudidos';
$txt['karma_top_smite'] = 'Los 5 usuarios más abucheados';
$txt['karma_other_stat'] = 'Estadísticas Generales';
$txt['karma_max_appl'] = 'Usuario que más aplaude a otros usuarios';
$txt['karma_max_smit'] = 'Usuario que más abuchea a otros usuarios';
$txt['karma_today'] = 'Puntos de karma de hoy';
$txt['karma_today_plus'] = 'Hoy "+"';
$txt['karma_today_minus'] = 'Hoy "-"';
$txt['karma_notifier'] = 'Tu karma ha sido cambiado en ';
$txt['karma_notifier2'] = ' puntos. ¿Deseas ver el log de descripción de karma?';
$txt['karma_pm_subject'] = 'Notificación de Karma';
$txt['karma_pm_body'] = 'Estimado usuario. Tu Karma ha sido cambiado. ';
$txt['karma_pm_body2'] = 'Puedes ver el registro siguiendo este enlace:<br />'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Envía la razón en el mensaje personal';
$txt['karma_pm_send_desc2'] = '<br /><br />La razón del cambio fue: ';
$txt['karma_pm_send_changelink'] = '<br /><br />Tu karma fue modificado en este mensaje:<br />';
$txt['karma_last_change']='Últimos cambios de karma';
$txt['karma_last_change1']='Últimos ';
$txt['karma_last_change2']=' cambios de karma';

// $themedir/languages/ManagePermissions.spanish_es.php
$txt['permissionname_karmalog_view'] = 'Ver el log de karma';
$txt['permissionhelp_karmalog_view'] = 'El log de Descripción del Karma muestra el karma de todos los usuarios, y una descripción sobre los aplausos o abucheos. Este permiso sólo funcionará si también lo tienes activado en \'Características y Opciones\'. Puedes acceder a la pantalla Descripción del Karma haciendo clic en el enlace de la sección \'Estadísticas de Karma\' en el índice del foro.';

// $themedir/languages/Errors.spanish_es.php
$txt['cannot_karmalog_view'] = 'Lo siento - no tienes los permisos apropiados para ver la lista de Descripción del Karma.';
$txt['viewkarma_error'] = 'El ID de usuario debe ser un número';
$txt['karma_not_topic_starter'] = 'Lo siento, él no es el autor del tema.';
$txt['karma_cant_modify'] = 'Lo siento, no puedes modificar el karma de este usuario.';
$txt['karma_cant_modify2'] = 'Lo siento, no puedes modificar el karma de otros usuarios.';
$txt['kdm_error'] = 'El Mod Karma Description está inhabilitado';

// $themedir/languages/Profile.spanish_es.php
$txt['who_change_my_karma'] = '¿Quién cambió mi Karma?';
$txt['whom_i_change_karma'] = '¿A quienes he cambiado el Karma?';
$txt['enable_notify'] = 'Notificarme cuando mi karma sea cambiado';
$txt['enable_notify_none'] = 'no notificar';
$txt['enable_notify_popup'] = 'Ventana emergente';
$txt['enable_notify_pm'] = 'Mensaje personal';

?>

Title: Re: Karma Description Mod
Post by: oOo--STAR--oOo on March 08, 2010, 05:00:20 PM
Hi with this mod.. I have thank-o-matic installed aswell..
When i thank some one and have karma enabled also.
they get +1 Karma for a thankyou on a post.

But if i was to delete the thankyou.
there +1 Karma still stays..

Is there anyway to get them both to work so that thank-o-matic and karma add and take away when thanking and deleting the thankyou?


Im using SMF 2.0 RC2
Title: Re: Karma Description Mod
Post by: impreza on March 10, 2010, 05:27:58 AM
With tlanslatora PL - ENG

mod would be imparted to the vanished key thank you thank you for your post.
would be possible to insert only 1x thank you for that post by 1 members and not at a certain time to wait.

Insert only good or bad - to choose one without changing the decision after some time. And most important is that one person could be one and the same post only vote once.

Should be so that you can give thanks for every post without having to wait, but only once to 1 post thank you can insert the same person.

Waiting is unnecessary as well as the ability to change the reputation in the same post or from time to time the addition of

Following behind this mod is great, I use it on smf 1x - thanks
Title: Re: Karma Description Mod
Post by: luismanson on March 10, 2010, 07:31:37 AM
its not installing on RC3 :(
Title: Re: Karma Description Mod
Post by: okae on March 10, 2010, 11:04:05 AM
Quote
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

:(
Title: Re: Karma Description Mod
Post by: BellGab.com on March 10, 2010, 12:37:42 PM
me too.  installing on RC3 returns this error:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 13, 2010, 05:11:06 AM
Karma Description Mod 2.6.8 was released
Please delete old version from package manager and update to new kdm 2.6.8
Title: Re: Karma Description Mod
Post by: Eclipse16V on March 13, 2010, 06:41:01 AM
Hi

i have a error on RC3

see the attachments

Title: Re: Karma Description Mod
Post by: BellGab.com on March 13, 2010, 07:47:47 AM
Quote from: Eclipse16V on March 13, 2010, 06:41:01 AM
Hi

i have a error on RC3

see the attachments
me too.  same thing.  yikes.
Title: Re: Karma Description Mod
Post by: steve51184 on March 14, 2010, 01:13:49 AM
fixed this for rc3 ;)

Edit by Kill Em All: Please do not distribute mod's without the mod author's consent first.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 14, 2010, 08:45:47 PM
Updated kdm 2.6.8 with fixed installer was released.
Anyone who have a problem with ManageMaintenance.template.php (during install process SMF 2.0RC3) please download kdm 2.6.8 again.
Title: Re: Karma Description Mod
Post by: steve51184 on March 15, 2010, 02:11:25 AM
was just posting a fix :\
Title: Re: Karma Description Mod
Post by: Dharshan on March 21, 2010, 01:16:39 AM
using this on RC3 install.works fine ! :) no errors! Cheers!
Title: Re: Karma Description Mod
Post by: Eclipse16V on March 21, 2010, 11:35:07 AM
Hi

there is a error in the Forum Maintenance

see the attachment
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on March 21, 2010, 11:03:50 PM
Hm. ok, i'll test it again
Title: Re: Karma Description Mod
Post by: Leemy on March 23, 2010, 10:21:10 PM
Hi I'm having an issue in installation.
The modification of "/Themes/default/ManageMaintenance.template.php" is not found

My ManageMaintenance.template.php, or the relevant section it seems, is below:




<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=recount" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_recount_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
<>
<span class="botslice"><span></span></span>
<>
<h3 class="catbg"><span class="left"></span>
', $txt['maintain_logs'], '
</h3>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=logs" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_logs_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
<>
<span class="botslice"><span></span></span>
<>
<h3 class="catbg"><span class="left"></span>
', $txt['maintain_cache'], '
</h3>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=cleancache" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_cache_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
<>
<span class="botslice"><span></span></span>
<>
Title: Re: Karma Description Mod
Post by: Ataru Moroboshi on March 25, 2010, 10:23:50 AM
I worked on an italian translation:

<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>IvanV.PetrovichAkaGrek:KarmaDescriptionMod</id>
<version>2.6.8</version>
<file name="$themedir/languages/ManageMaintenance.italian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Karma Descriprion Mod
$txt['maintain_karmalog'] = 'Vuota il registro delle descrizioni del Karma';
$txt['maintain_karmalog_info'] = 'Cancella tutte le descrizioni del Karma dal registro';
$txt['maintain_karma_points'] = 'Azzera i punti Karma a tutti gli utenti';
$txt['maintain_karma_points_info'] = 'Imposta a 0 tutti i punti Karma di tutti gli utenti';
$txt['maintain_karma_points_info2'] = 'e cancella dal registro tutte le descrizioni del Karma';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Admin.italian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Karma Descriprion Mod
$txt['maintain_karmalog'] = 'Vuota il registro delle descrizioni del Karma';
$txt['maintain_karmalog_info'] = 'Cancella tutte le descrizioni del Karma dal registro';
$txt['maintain_karma_points'] = 'Azzera i punti Karma a tutti gli utenti';
$txt['maintain_karma_points_info'] = 'Imposta a 0 tutti i punti Karma di tutti gli utenti';
$txt['maintain_karma_points_info2'] = 'e cancella dal registro tutte le descrizioni del Karma';
]]></add>
</operation>
</file>

<file name="$themedir/languages/ManageSettings.italian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Karma Descriprion Mod
$txt['karmadescmod'] = 'Abilita Karma Description Mod';
$txt['karmamaxmembers'] = 'Utenti per pagina nel registro delle descrizioni del Karma';
$txt['karmalogview'] = 'Usa i nomi degli utenti come link al profilo';
$txt['karmapermiss'] = 'Permetti agli utenti di vedere le descrizioni del Karma (vedi permessi)';
$txt['karmalinks'] = 'Abilita pulsanti del Karma nel profilo utente';
$txt['karmaisowner'] = 'Disabilita il registro globale del Karma ma abilita quello personale';
$txt['karmakarma'] = 'Mostra il karma(+/-) degli utenti nel registro delle descrizioni del Karma';
$txt['karmaurl'] = 'Abilita il campo "Dove" nel registro delle descrizioni del Karma';
$txt['karmaotherstat'] = 'Mostra altre statistiche del Karma';
$txt['karmasurv'] = 'Applaudi or fischia gli utenti senza spiegazone';
$txt['karmawhatwrite'] = 'Scrivi questo nel registro, quando la spiegazione &egrave; disabilitata';
$txt['karmacensor'] = 'Censura sulla spiegazione del Karma';
$txt['karmatopicstarter'] = 'Gli utenti possono cambiare solo il Karma del creatore del topic';
$txt['karmanotifier'] = 'Abilita le notifiche del Karma ';
$txt['karmaidmember'] = 'Manda un PM da questo ID di utente (1 di default)';
$txt['karma_pm_send_changelink'] = 'Manda link al messaggio dove &egrave; stato cambiato il Karma con un messaggio personale';
$txt['karma_pm_send_link'] = 'manda link al proprio registro del Karma con un messaggio personale';
$txt['karmacantmodify'] = 'User ID per i quali il karma non pu&ograve essere cambiato. <div class="smalltext">Separati da virgole, senza spazi. Esempio: 1,13,27</div>';
$txt['karmacantmodify2'] = 'User ID che non possono modificare il karma. <div class="smalltext">Esempio: 2,412,88</div>';
$txt['karmabuttons'] = 'Mostra piccole immagini invece delle etichette applaudi/fischia';
$txt['karmapictureinlog'] = 'Mostra piccole immagini nel registro delle descrizioni del Karma invece del + o del - nel campo azione';
$txt['karmadelete'] = 'Elimina i punti Karma nel registro delle descrizioni del Karma quando elimino la descrizione del cambiamento di Karma';
$txt['karmalabellink'] = 'Utilizza le etichette di karma come link al registro delle descrizioni del Karma';
$txt['karmalastchange'] = 'Visualizza l\'ultimo cambiamento di Karma nell\'indice del Forum';
$txt['karmalastchangenum'] = 'Numero di descrizioni nell\'indice del Forum';
$txt['karmadescfieldnum'] = 'Quanti simboli ci saranno nel campo descrizione nell\'indice del forum';
]]></add>
</operation>
</file>

<file name="$themedir/languages/ModSettings.italian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Karma Descriprion Mod
$txt['karmadescmod'] = 'Abilita Karma Description Mod';
$txt['karmamaxmembers'] = 'Utenti per pagina nel registro delle descrizioni del Karma';
$txt['karmalogview'] = 'Usa i nomi degli utenti come link al profilo';
$txt['karmapermiss'] = 'Permetti agli utenti di vedere le descrizioni del Karma (vedi permessi)';
$txt['karmalinks'] = 'Abilita pulsanti del Karma nel profilo utente';
$txt['karmaisowner'] = 'Disabilita il registro globale del Karma ma abilita quello personale';
$txt['karmakarma'] = 'Mostra il karma(+/-) degli utenti nel registro delle descrizioni del Karma';
$txt['karmaurl'] = 'Abilita il campo "Dove" nel registro delle descrizioni del Karma';
$txt['karmaotherstat'] = 'Mostra altre statistiche del Karma';
$txt['karmasurv'] = 'Applaudi or fischia gli utenti senza spiegazone';
$txt['karmawhatwrite'] = 'Scrivi questo nel registro , quando la spiegazione &egrave; disabilitata';
$txt['karmacensor'] = 'Censura sulla spiegazione del Karma';
$txt['karmatopicstarter'] = 'Gli utenti possono cambiare solo il Karma del creatore del topic';
$txt['karmanotifier'] = 'Abilita le notifiche del Karma ';
$txt['karmaidmember'] = 'Manda un PM da questo ID di utente (1 di default)';
$txt['karma_pm_send_changelink'] = 'Manda link al messaggio dove &egrave; stato cambiato il Karma con un messaggio personale';
$txt['karma_pm_send_link'] = 'manda link al proprio registro del Karma con un messaggio personale';
$txt['karmacantmodify'] = 'User ID per i quali il karma non pu&ograve essere cambiato. <div class="smalltext">Separati da virgole, senza spazi. Esempio: 1,13,27</div>';
$txt['karmacantmodify2'] = 'User ID che non possono modificare il karma. <div class="smalltext">Esempio: 2,412,88</div>';
$txt['karmabuttons'] = 'Mostra piccole immagini invece delle etichette applaudi/fischia';
$txt['karmapictureinlog'] = 'Mostra piccole immagini nel registro delle descrizioni del Karma invece del + o del - nel campo azione';
$txt['karmadelete'] = 'Elimina i punti Karma nel registro delle descrizioni del Karma quando elimino la descrizione del cambiamento di Karma';
$txt['karmalabellink'] = 'Utilizza le etichette di karma come link al registro delle descrizioni del Karma';
$txt['karmalastchange'] = 'Visualizza l\'ultimo cambiamento di Karma nell\'indice del Forum';
$txt['karmalastchangenum'] = 'Numero di descrizioni nell\'indice del Forum';
$txt['karmadescfieldnum'] = 'Quanti simboli ci saranno nel campo descrizione nell\'indice del forum';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Who.italian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Karma Descriprion Mod
$txt['whoadmin_viewkarma'] = 'Sta visualizzando il <a href="' . $scripturl . '?action=viewkarma">registro delle descrizioni del Karma</a>.';
$txt['whoall_modifykarma'] = 'Sta cambiando il karma.';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Help.italian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Karma Descriprion Mod
$helptxt['karmapermiss'] = 'Di default questa opzione &egrave; disattivata e il registro del Karma pu&ograve essere visto solo dagli amministratori. Se vuoi che il registro sia isibile anche agli altri utenti o ai moderatori, etc, abilita questa opzione e dai diritto ai gruppi che potranno vedere il registro nella sezione "Permessi".';
$helptxt['karmaotherstat'] = 'Mostra altre statistiche sul Karma come gli utenti pi&ugrave applauditi o i pi&ugrave fischiati e cos&igrave via in tutto il registro del Karma.';
$helptxt['karmalinks'] = 'Se abiliti questa funzione, gli utenti vedranno due link nel profilo (proprio o di altri utenti). Potranno vedere chi e come ha cambiato il loro karma. deve essere abilitato il Karma Description Mod';
$helptxt['karmakarma'] = 'Mostra il Karma degli utenti nel registro del Karma davanti al nome utente. Esempio: Username (+12/-8)';
$helptxt['karmaurl'] = 'Abilitando questa opzione, tu e i tuoi utenti potrete vedere dove &egrave; stato cambiato il Karma.';
$helptxt['karmaisowner'] = 'Abilitando questa opzione, solo il proprietario del profilo vedr&agrave i due link al proprio registro del Karma. Tra l\'altro, i tuoi utenti riceveranno un errore se inseriranno un indirizzo (come http://your_forum.com/index.php?action=ownkarma;u=other_user); a mano, se non vuoi che gli utenti vedano il registro degli altri utenti. L\'intero registro del karma sar&agrave disabilitato. SOLO IL PROPRIO REGISTRO DEL KARMA.';
$helptxt['karmanotifier'] = 'Se si attiva questa funzione, gli utenti vedranno un altro campo nei loro profili in \'Notifiche\'. Si offre la possibilit&agrave di informare gli utenti quando il loro karma viene modificato in due modi: Messaggio Popup o messaggio personale.';
$helptxt['karmaidmember'] = 'Se gli utenti abilitano la funzione di notifica del Karma e scelgono i messaggi privati, riceveranno un messaggio personale da questo ID utente. Per esempio, se avete ID_MEMBER = 1 riceveranno PM da voi e cos&igrave via. Se si imposta ID = 0 gli utenti riceveranno un messaggio dall\'amministratore.';
$helptxt['karma_pm_send_link'] = 'Se gli utenti abilitano la funzione di notifica del Karma e scelgono i messaggi privati, nel messaggio vedranno un link al loro registro del karma.';
$helptxt['karma_pm_send_desc'] = 'Se gli utenti abilitano la funzione di notifica del Karma e scelgono i messaggi privati, nel messaggio vedranno la motivazione del cambio di Karma.';
$helptxt['karma_pm_send_changelink'] = 'Se gli utenti abilitano la funzione di notifica del Karma e scelgono i messaggi privati, nel messaggio vedranno un link al messaggio dove &egrave; stato cambiato il loro Karma.';
$helptxt['karmacantmodify'] = 'Separati da virgole, senza nessuno spazio.';
$helptxt['karmacantmodify2'] = 'Separati da virgole, senza nessuno spazio.';

]]></add>
</operation>
</file>

<file name="$themedir/languages/index.italian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Karma Description Mod
$txt['karmaview'] = 'Descrizione del cambiamento del Karma';
$txt['whykarmamod'] = 'Cambiamento del Karma';
$txt['Description'] = 'Nessuna Descrizione';
$txt['karmamoder'] = 'Ragione per cui si cambia il Karma di questo utente';
$txt['karmarequare'] = '(Campo obbligatorio)';
$txt['karmawho'] = 'Chi';
$txt['karmawhos'] = 'A chi';
$txt['karmawhat'] = 'Cosa';
$txt['karmadesc'] = 'Perch&eacute;';
$txt['karmatime'] = 'Quando';
$txt['karmanumb'] = 'Cambiamenti di Karma: ';
$txt['statkarma'] = '[Statistiche del Karma]';
$txt['viewkarma_title'] = 'Descrizione del cambiamento del Karma';
$txt['deletekarma'] = 'Elimina';
$txt['clearkarma'] = 'Vuota';
$txt['karma_delete_confirm'] = 'Sei sicuro di voler eliminare questo record?';
$txt['karma_back'] = '< Indietro';
$txt['karma_continue'] = 'Continua >';
$txt['karmadescappl'] = ' (Applaudi)';
$txt['karmadescsmi'] = ' (Fischia)';
$txt['karmawhere'] = 'Dove';
$txt['karmawhereurl'] = 'Nella discussione';
$txt['karmawhereurl2'] = 'In un PM';
$txt['karma_delete'] = 'Elimina';
$txt['karma_pages'] = 'Pagine';
$txt['karma_profile_of'] = 'Guarda il profilo di';
$txt['sure_about_karma_remove'] = 'Sei sicuro di voler eliminare questo record?';
$txt['karma_stat'] = 'Statistiche del Karma';
$txt['karma_top_applaud'] = 'I 5 utenti pi&ugrave applauditi';
$txt['karma_top_smite'] = 'I 5 utenti pi&ugrave fischiati';
$txt['karma_other_stat'] = 'Statistiche Generali';
$txt['karma_max_appl'] = 'Chi ha applaudito di pi&ugrave';
$txt['karma_max_smit'] = 'Chi ha fischiato di pi&ugrave';
$txt['karma_today'] = 'Punti Karma di oggi';
$txt['karma_today_plus'] = '"+" di oggi';
$txt['karma_today_minus'] = '"-" di oggi';
$txt['karma_notifier'] = 'Il tuo Karma &egrave; stato cambiato di ';
$txt['karma_notifier2'] = ' punti. Vuoi vedere il registro del Karma?';
$txt['karma_pm_subject'] = 'Notifica cambiamento Karma';
$txt['karma_pm_body'] = 'Caro utente, Il tuo karma &egrave; stato cambiato. ';
$txt['karma_pm_body2'] = 'Puoi vedere il registro seguendo questo link:<br />'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Manda la motivazione con un messaggio personale';
$txt['karma_pm_send_desc2'] = '<br /><br />La motivazione del cambiamento di karma &egrave;: ';
$txt['karma_pm_send_changelink'] = '<br /><br />Il tuo Karma &egrave; stato modificato in questo messaggio:<br />';
$txt['karma_last_change']='Ultimo cambiamento di Karma';
$txt['karma_last_change1']='Ultimi ';
$txt['karma_last_change2']=' cambiamenti di Karma';
]]></add>
</operation>
</file>

<file name="$themedir/languages/ManagePermissions.italian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Karma Description Mod
$txt['permissionname_karmalog_view'] = 'Visualizzare il registro del Karma';
$txt['permissionhelp_karmalog_view'] = 'Il registro delle descrizioni del Karma mostra il Karma di tutti gli utenti e le descrizioni degli applausi e dei fischi. Questo permesso funziona solo se &egrave; stato abilitato nella sezione \'Funzioni e Opzioni\'. Puoi accedere alla schermata delle descrizioni del Karma cliccando il linki nelle \'Statistiche del Karma\' nell\'indice del Forum.';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Errors.italian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Karma Description Mod
$txt['cannot_karmalog_view'] = 'Spiacente, non hai i permessi giusti per veder l\'elenco delle descrizioni del Karma.';
$txt['viewkarma_error'] = 'User ID deve essere un numero';
$txt['karma_not_topic_starter'] = 'Spiacente, l\'utente non &egrave; il creatore del topic.';
$txt['karma_cant_modify'] = 'Spiacente, non puoi modificare il Karma di questo utente.';
$txt['karma_cant_modify2'] = 'Spiacente, non puoi modificare il Karma degli utenti.';
$txt['kdm_error'] = 'Karma Description Mod &egrave; disabilitata';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Profile.italian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
$txt['who_change_my_karma'] = 'Chi ha modificato il mio Karma';
$txt['whom_i_change_karma'] = 'Quali Karma ho modificato';
$txt['enable_notify'] = 'Avvisami quando qualcuno modifica il mio Karma';
$txt['enable_notify_none'] = 'Non avvisarmi';
$txt['enable_notify_popup'] = 'Finestra Popup';
$txt['enable_notify_pm'] = 'Messaggio personale';
]]></add>
</operation>
</file>
</modification>
Title: Re: Karma Description Mod
Post by: Ataru Moroboshi on March 26, 2010, 10:35:41 AM
Is there any way to let users leave empty the description field?
Title: Re: Karma Description Mod
Post by: Eclipse16V on March 26, 2010, 12:59:31 PM
In the Settings of this Mod you can disable this.
Title: Re: Karma Description Mod
Post by: Ataru Moroboshi on March 27, 2010, 07:20:05 PM
of course you can disable... but i mean let users leave empty, if they don't want to say nothing
Title: Re: Karma Description Mod
Post by: Usu on April 17, 2010, 01:56:11 PM
Hi! I've been using this great mod for quite a while now, the only problem I have is that with the progressive increase of entries in smf_log_karma opening the page ?action=ownkarma;u=* became slower and slower.
smf_log_karma has reached almost 250000 entries and the ownkarma page loads in about 4 seconds, which is bad considering that my smf installation is heavily optimized and I manage my own dedicated server.

The queries that seem to slow down the loading of the page are these:

SELECT COUNT(*) AS cnt, mem.realName
FROM smf_log_karma AS lk, smf_members AS mem
WHERE lk.action = 1
AND mem.ID_MEMBER = lk.ID_EXECUTOR
GROUP BY lk.ID_EXECUTOR
ORDER BY cnt DESC
LIMIT 1
   in forum/Sources/Viewkarma.php line 382, which took 2.18026304 seconds.

SELECT COUNT(*) AS cnt, mem.realName
FROM smf_log_karma AS lk, smf_members AS mem
WHERE lk.action = -1
AND mem.ID_MEMBER = lk.ID_EXECUTOR
GROUP BY lk.ID_EXECUTOR
ORDER BY cnt DESC
LIMIT 1
   in forum/Sources/Viewkarma.php line 396, which took 0.52557111 seconds.

SELECT ID_MEMBER, realName, karmaGood
FROM smf_members
WHERE karmaGood >= 0
ORDER BY karmaGood DESC
LIMIT 5
   in forum/Sources/Viewkarma.php line 431, which took 0.63220406 seconds.

SELECT ID_MEMBER, realName, karmaBad
FROM smf_members
WHERE karmaBad >= 0
ORDER BY karmaBad DESC
LIMIT 5
   in forum/Sources/Viewkarma.php line 458, which took 0.60894513 seconds.



The table smf_log_karma has only one index: logTime
The version of KDM I'm using is pretty old (2.2) but I read the changelog and I didn't see any performance fix, I'd prefer to avoid the upgrade of the mod because I'd have to translate it again, but of course if you tell me that this issue has been fixed in later versions and I can upgrade it without losing all the karma description entries I'll do that :)

Thanks.
Title: Re: Karma Description Mod
Post by: Major Wood on April 23, 2010, 12:11:27 AM
I have moderators who are allowed to view the karma description list, by permissions. However, only the administrator has access to that list.
Also, I was going to upgrade to the newest version, but I'm getting some test failed errors when trying to either uninstall the old version, or install the new one.

Help!
Title: Re: Karma Description Mod
Post by: Spacecadet on May 08, 2010, 08:04:48 PM
Hoping someone can help me out here. I installed the mod but when I go to the "Configuration" "Features and options" "Karma" all the options are invisible. I see all the check boxes but no words to the left of them???? Any ideas?

Thank You
Title: Re: Karma Description Mod
Post by: Arantor on May 08, 2010, 08:07:31 PM
Spacecadet: What language are you using, what version of SMF?
Title: Re: Karma Description Mod
Post by: Spacecadet on May 08, 2010, 08:12:38 PM
RC3 and English UK i think.
Title: Re: Karma Description Mod
Post by: Spacecadet on May 08, 2010, 08:14:38 PM
Right got it, thank you. US English only.
Title: Re: Karma Description Mod
Post by: Arantor on May 08, 2010, 08:16:19 PM
Quote from: Spacecadet on May 08, 2010, 08:14:38 PM
Right got it, thank you. US English only.

Well, yeah, the mod only adds settings to US English however there's no reason why it couldn't be expanded to check for ManageSettings.english_british.php (and both the UTF-8 variants). Or even use Modifications.english.php which is loaded in English as well as language specific in RC2+.
Title: Re: Karma Description Mod
Post by: Major Wood on May 09, 2010, 12:11:05 PM
Quote from: Major Wood on April 23, 2010, 12:11:27 AM
I have moderators who are allowed to view the karma description list, by permissions. However, only the administrator has access to that list.
Also, I was going to upgrade to the newest version, but I'm getting some test failed errors when trying to either uninstall the old version, or install the new one.

Help!

Someone? Please?
Title: Re: Karma Description Mod
Post by: Spacecadet on May 16, 2010, 05:58:04 PM
I installed this mod but none of my regular users can access the "Karma Stats" I undertstand it's a permission problem however I honestly cannot figure out how to use the permissions properly. I opened up the area in permissions with all the check boxes and checked off "Allow users to see stats" but it doesnt do anything. How does the advanced permission settings work? I belive this is the same problem Major Wood is having.

TY
Title: Re: Karma Description Mod
Post by: Spacecadet on May 17, 2010, 09:12:40 AM
Hey Major ever get the feeling your being ignored?
Title: Re: Karma Description Mod
Post by: Arantor on May 17, 2010, 09:15:56 AM
Well... the mod author isn't here all the time, I've never used the mod so have absolutely no idea about it other than general support issues, and really I'm not even a support person any more (apparently I have trouble being nice to people)

Remember the person who wrote this is someone who wrote it and gave it away - you could have a little patience.
Title: Re: Karma Description Mod
Post by: Spacecadet on May 17, 2010, 09:35:49 AM
lol that was pretty polite you know, if you ever want to be a support person again you have my vote. I figured that the person who wrote the script simply wasnt here and I am aware that he made the script for free. I was hoping that someone knew the answer besides the author. Ah well when I have no choice but to be paitient..........
Title: Re: Karma Description Mod
Post by: Spacecadet on May 17, 2010, 09:57:23 AM
HMMM another problem has croped up. who has changed my Karma and who's Karma have i changed are doubled. I realize this means going in and manually deleting the duplicate information. Can someone tell me which file it would be in and where?
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on May 19, 2010, 11:37:19 AM
If I remember correctly, there are many settings to this mod and they all together make up the way this mod works / looks to your users. Firstly, it should add functions to see recent karma actions from a link placed in your info center, and two links to see specific users karma action in the user profile area.

If your users can't access the links/stats, can you as an admin? Have you made sure your users and you are using the same themes? Have you considered creating a test user to test the different settings and permissions on? ;)
Title: Re: Karma Description Mod
Post by: Aleksi "Lex" Kilpinen on May 19, 2010, 11:39:15 AM
The duplicates are probably in profile.template.php or similar, I don't remember for sure - and can't check this right now, but do take a look at the manual install instructions - it should show you where the mod adds those...
Title: Re: Karma Description Mod
Post by: impreza on May 21, 2010, 07:07:15 PM
When your message is the guy always comes up a bug report. The problem with the line in the file:

if ($message['member']['karma']['allow'])

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg441.imageshack.us%2Fimg441%2F7853%2Fbeztytuukf.png&hash=50cee9706ed8f835b70e361e3b191563dcacb321)

How many posts in the topic is of international importance is the guy so much errors in the reports. It always takes place - if someone is able to help?

.............

edit: Elsewhere, graphics and so I did not work. Already it is ok
Title: Re: Karma Description Mod
Post by: Spacecadet on May 31, 2010, 10:40:56 PM
I have checked and nobody except the Administrator user can access "Karma Stats". Not even Global Moderator. Am I missing something?
Title: Re: Karma Description Mod
Post by: Major Wood on June 01, 2010, 10:14:29 PM
Quote from: Spacecadet on May 31, 2010, 10:40:56 PM
I have checked and nobody except the Administrator user can access "Karma Stats". Not even Global Moderator. Am I missing something?

This is my problem. I have checked many times to see if I have any permissions incorrect. I even created a test account and gave it a new usergroup that had specific permissions to see the karma stats. It didn't work.

This is driving me crazy. Does anyone have any ideas?
Title: Re: Karma Description Mod
Post by: Spacecadet on June 04, 2010, 03:58:49 PM
Major I found this other mod it might be a good substitute for the Reputation System Mod.

http://custom.simplemachines.org/mods/index.php?mod=346

for the record, thank you for the one person who tried to help us. I am uninstalling this mod and have no plans on ever using a mod from this designer again. I waited 3 weeks for help, I think I was very patient.
Title: Re: Karma Description Mod
Post by: 1cor1313 on June 05, 2010, 09:34:57 AM
Hi, I have one of the problems listed on the FAQ (the menu does not display in the admin panel). I used to use Load Standard language but I can't anymore since I upgraded to RC3. I use english-utf8 on my forum.

I tried following some of the previous posts in this thread but I couldn't get it to work properly...

Which files should I change to utf-8?
Title: Re: Karma Description Mod
Post by: PurpleCrow on June 24, 2010, 11:53:36 AM
I have display issues with this on SMF 2.0 RC3 - it displays fine within the ACP but when using it within the forum its totally screwed.

As an example I've attatched an image that shows the screen when you click on the thumbs up or thumbs down (where you place the reason for applauding/smiting). It looks the same on all themes, including the default Core theme.
Title: Re: Karma Description Mod
Post by: steve51184 on June 26, 2010, 11:01:09 AM
hi on the [karma stats] i have enabled the 'Karma Statistic' but it's showing just the applauded users + and not there total + and the same with smited

is there a way to change that to total as i use the total karma system on smf and not +/-
Title: Re: Karma Description Mod
Post by: Maxtor on June 30, 2010, 02:32:23 AM
at version 1.7 you had added this option:

*Add "Delete" function in Karma Log. Only for Admin.

can you add an option to "delete" function in permissions for all other membergroups?
Title: Re: Karma Description Mod
Post by: steve51184 on July 01, 2010, 03:06:01 PM
Quote from: zx71 on June 26, 2010, 11:01:09 AM
hi on the [karma stats] i have enabled the 'Karma Statistic' but it's showing just the applauded users + and not there total + and the same with smited

is there a way to change that to total as i use the total karma system on smf and not +/-

bump?
Title: Re: Karma Description Mod
Post by: hijinx on July 05, 2010, 09:15:52 PM
Even with the default theme, no words show up for me on the Karma settings screen, or when people try to change karma. just a text box and two blank buttons show up.

what'd i do wrong?
Title: Re: Karma Description Mod
Post by: hijinx on July 07, 2010, 12:22:35 PM
it doesn't appear to be a language pack issue, i'm not having any similar issues else where. i could be wrong though?
Title: Re: Karma Description Mod
Post by: hijinx on July 08, 2010, 01:19:42 AM
aha! it WAS a language pack issue. it was editting english and i was using english-utf8.

any idea what changes i can make to get it working in UTF8?
Title: Re: Karma Description Mod
Post by: Celestita on July 16, 2010, 04:24:06 AM
Hello people! i've got a question, I translated the mod to spanish_latin because my forum uses it as the main language, and I'm attaching it for those who need the .xml file translated, but I don't know how it is suposed to work.
I mean I only translated the xml file and directed the url's tho the spanish_latin php files, is there anything else that I should do? Cause it's not picking it up! I matched the lines with the english xml file and there aren't any syntax error for what I can tell, but would any of you take a look if you can?

Thanks a lot anyway!
Title: Re: Karma Description Mod
Post by: xrunner on July 20, 2010, 01:31:11 PM
I have the earlier version 2.3 installed on SMF 1.1 and I want to install the latest version.

Q1: Do I have to uninstall v2.3 first?

Q2: If I do have to uninstall it first,  I get this error upon testing the uninstall -

2.     Execute Modification     ./Sources/Karma.php     Test failed

How can I fix this error? Or can I just restore the original Karma.php file?
Title: Re: Karma Description Mod
Post by: Major Wood on July 21, 2010, 08:20:09 PM
Someone please give me some advice. I've been trying to figure this out for months and no one has offered any help.
I just installed the latest version and it didn't fix the problem. No one else besides the admin can view the karma description log. The following error comes up.

QuoteSorry - you don't have the proper permissions to view the Karma Description list.

All the permissions are set to allow other types of users to view this, but it isn't working. I realize that this is a question in the FAQ on the mod page, but the answer doesn't fix the problem.
Title: Re: Karma Description Mod
Post by: Celestita on July 21, 2010, 08:30:32 PM
Did you choose that on the administration control panel or did you just change the permissions? In the admin c_panel the option should be ticked as well as the permissions must be set. If the permissions are set but the option in the admin c_panel is not ticked it may not work. I'm sure you've done all this anyway, but just to be sure.
Title: Re: Karma Description Mod
Post by: Major Wood on July 21, 2010, 09:35:13 PM
I've got the correct settings in the permissions, as well as in the karma tab under features and options. If there are any other options, I sure can't find them.
Title: Re: Karma Description Mod
Post by: Major Wood on July 22, 2010, 04:48:47 PM
Ok, so the upgrade apparently caused other issues.

Now when someone tries to applaud or smite another user, they get this:

QuoteFatal error: Cannot redeclare modkarm() (previously declared in /home1/yourmomt/public_html/zebrahuddle/Sources/Karma.php:41) in /home1/yourmomt/public_html/zebrahuddle/Sources/Karma.php on line 834

If I remove that second modkarm() function, they get this:

QuoteUnable to load the 'main' template.

I'm ready to tear my hair out here.
Title: Re: Karma Description Mod
Post by: Major Wood on July 23, 2010, 12:12:33 PM
Ignore that last post, I managed to fix that problem.
Still having problems getting my moderators to see the log though.
Title: Re: Karma Description Mod
Post by: Miyagi on July 27, 2010, 10:22:01 AM
Hi Greg,

A really basic issue but I can't for the life figure out where the issue lays. I'm confident it's not specifically with the mod.

I believe my admin formatting or database may be screwy but I'm getting the attached image in my karma settings section.  If you could point me in the right direction to addressing this I should be able to fix easily.

Many Thanks,
Miyagi
Title: Re: Karma Description Mod
Post by: NukeWorker.com on July 29, 2010, 02:18:15 PM
PLEASE add the ability to restrict the total karma given in a day.

i.e.  I would like to let my users give a maximum of 10 karma points a day.

I'm willing to pay you for your time to make this change for me.
Title: Re: Karma Description Mod
Post by: Dharshan on July 31, 2010, 11:44:37 AM
Hi,

I have SMF 1.1.11. lok at the pics. the mod does not show text infront of the check boxes etc.

tried installing 2.6 and 2.8...HELP please

Title: Re: Karma Description Mod
Post by: Kindred on July 31, 2010, 12:56:15 PM
language files...  make sure that modifications.YOURLANGUAGE.php was edited with the new strings.
(do note that the UTF-8 version of a language is *NOT* the same as the regular version)

(and try using search next time, this question has been answered multiple times in nearly EVERY mod thread)
Title: Re: Karma Description Mod
Post by: Dharshan on August 01, 2010, 11:35:54 AM
tnx.
Title: Re: Karma Description Mod
Post by: NukeWorker.com on August 02, 2010, 12:31:58 PM
I have this mod installed on a 1.1.11 board.

When users look at the karma log, ALL of the "Where" say "In Topic", even the actions that were performed "In PM".  It displays correctly for the admin.

Suggestions?
Title: Re: Karma Description Mod
Post by: Dharshan on August 07, 2010, 01:50:35 AM
Quote from: Kindred on July 31, 2010, 12:56:15 PM
language files...  make sure that modifications.YOURLANGUAGE.php was edited with the new strings.
(do note that the UTF-8 version of a language is *NOT* the same as the regular version)

(and try using search next time, this question has been answered multiple times in nearly EVERY mod thread)

ok this is weird or else am doing smthing wrong.

i use a custom theme. so i used the mods parse instructions and edited the
Display.template.php
BoardIndex.template.php

files

but still the text doesn't show up.  :S

if u need screen shots i look at my previous post. (i tried searching for this?#@#)
Title: Re: Karma Description Mod
Post by: Kindred on August 08, 2010, 09:49:44 PM
Quote from: Kindred on July 31, 2010, 12:56:15 PM
language files...  make sure that modifications.YOURLANGUAGE.php was edited with the new strings.
(do note that the UTF-8 version of a language is *NOT* the same as the regular version)
Title: Re: Karma Description Mod
Post by: Dharshan on August 09, 2010, 11:42:26 AM
Quote from: Kindred on August 08, 2010, 09:49:44 PM
Quote from: Kindred on July 31, 2010, 12:56:15 PM
language files...  make sure that modifications.YOURLANGUAGE.php was edited with the new strings.
(do note that the UTF-8 version of a language is *NOT* the same as the regular version)

edited them! no use..

i have attached it here ..
Title: Re: Karma Description Mod
Post by: Kindred on August 09, 2010, 12:16:50 PM
are you SURE that you are using english and not english utf-8
Title: Re: Karma Description Mod
Post by: Dharshan on August 10, 2010, 08:12:33 AM
thanks Kindred.


you pointed me right direction..
this mod does not update the code in utf8 language files... just updated the utf8 files instead of changing the language in server settings.

thank you once again.,


Title: Re: Karma Description Mod
Post by: timmytimmy on August 16, 2010, 11:36:42 PM
Hello,

I just upgraded from 1.1.11 to 2.0 RC3, and after installing the Karma Description Mod, I see that none of the old description logs have carried over.  How do I go about importing the old logs so that my forum members can see both their old logs and the most recent (since migrating to RC3) logs?

Thank You,
Greg
Title: Re: Karma Description Mod
Post by: NukeWorker.com on August 23, 2010, 11:34:18 AM
BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG

Quote from: NukeWorker.com on August 02, 2010, 12:31:58 PM
I have this mod installed on a 1.1.11 board.

When users look at the karma log, ALL of the "Where" say "In Topic", even the actions that were performed "In PM".  It displays correctly for the admin.

When users look at the karma log, ALL of the "Where" say "In Topic", even the actions that were performed "In PM".  It displays correctly for the admin, but users see "In Topic" for EVERY action, even in the "In PM" karma actions.  Clicking on the "In Topic" link takes then to the forum index.

Shouldn't it say "In PM" to everyone?



BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG BUG
Title: Re: Karma Description Mod
Post by: sss on September 02, 2010, 11:22:37 AM
I have a different language pack (spanish_es_utf8) and cant make this mod work in this language,

i dont care if it is properly traducted i just want the tool operational, what can i do?
Title: Re: Karma Description Mod
Post by: Dharshan on September 08, 2010, 12:04:19 AM
Quote from: sss on September 02, 2010, 11:22:37 AM
I have a different language pack (spanish_es_utf8) and cant make this mod work in this language,

i dont care if it is properly traducted i just want the tool operational, what can i do?

check the manual installation instructions, by using the parse function in mod site.
Title: Re: Karma Description Mod
Post by: Major Wood on September 09, 2010, 08:02:45 AM
Quote from: Major Wood on April 23, 2010, 12:11:27 AM
I have moderators who are allowed to view the karma description list, by permissions. However, only the administrator has access to that list.
Also, I was going to upgrade to the newest version, but I'm getting some test failed errors when trying to either uninstall the old version, or install the new one.

Help!

Is anyone going to try to help me on this? I've been very patient, but I need a solution.
Title: Re: Karma Description Mod
Post by: Kindred on September 09, 2010, 08:55:02 AM
the author has not been online since July....

About the install/uninstall...   that just means that some other mod that you installed in between has changed the code, so the auto-function won't work. You'll have to manually edit the files that failed.
Title: Re: Karma Description Mod
Post by: Eudemon on September 15, 2010, 02:23:38 PM
i enabled send personal message for reason and link for where karma is been changed
but i tested, it's not sending out anything

any idea why?

also how do i check member's id?

thx
Title: Re: Karma Description Mod
Post by: mextremex on September 26, 2010, 03:37:41 AM
i have a problem whit the karma mod  in personal  messages ,
wen i try to hit  in the karma  buttons  from personal messages
i get this error :
The database value you're trying to insert does not exist: id_topic

any cloud?? plz

here is a part of eror log :



forum/index.php?action=modifykarma;sa=applaud;uid=1;f=inbox;start=0;pm=


Type of error: Critical :(

btw many thanks for  this awesome mod :)
Title: Re: Karma Description Mod
Post by: Ihmeliö on September 30, 2010, 03:19:39 PM
This may have been asked before, but; since the mod already attaches certain karma to certain messages, would it be possible to implement the option to show how many karma points have been given to a certain post? So that every message in a thread would display the possible karma?
Title: Re: Karma Description Mod
Post by: Eudemon on October 02, 2010, 05:36:56 PM
Can someone gimme a solution why i enabled send pm but members are not receiving any pm for karma change

i searched this post and red every single reply that contains the word "message", and i still can't find a solution
someone mentioned there is an option under profile look and layout but i couldn't find any

i found the notify option under the notification now
but how do i enable everyone to receive pm, and make it receive karma change notification by default

i installed it with no error
and my smf version is 2.0rc3

Title: Re: Karma Description Mod
Post by: Diomet on October 06, 2010, 05:56:27 AM
Nice mod, thank you.

In my error log I've noticed an error:

8: Undefined index: viewkarma_title
Apply Filter: Only show the errors from this file
File: /var/www/clients/client50/web65/web/forum/Sources/Karma.php
Line: 100
'name' => $txt['viewkarma_title'] );

and others with Line 97
$context['page_title'] = $txt['viewkarma_title'];

I have defined viewkarma_title in index.*.php and I have updated both language files used.
I am using 2.0 RC3

Thank you in advance
Title: Re: Karma Description Mod
Post by: xrunner on November 04, 2010, 10:11:12 AM
I just updated a forum to SMF 2.0 RC4 and this mod is now no longer compatible. Here's the error message I get -

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Title: Re: Karma Description Mod
Post by: #Pascal on November 06, 2010, 05:40:39 AM
greate mod but doesn't work with RC4
Title: Re: Karma Description Mod
Post by: xrunner on November 06, 2010, 07:41:57 PM
Could we possibly at least get the Mod author to chime in briefly here and tell us he'll be looking into making this compatible with RC4? I don't mind waiting a bit, but this mod is very important to my forum community and I don't want to upgrade to RC4 until this mod is compatible.

I do appreciate this mod and the work that goes into updating it.

Thanks!
Title: Re: Karma Description Mod
Post by: bogaratee on November 15, 2010, 02:03:51 AM
hello how to enable notification to all users?
Title: Re: Karma Description Mod
Post by: xrunner on November 15, 2010, 09:40:23 AM
Does anyone know the author of this mod -

Grek_Kamchatka

Maybe another way to contact him and at least get him to say if he might update the mod? He was last active Nov 12th, but doesn't seem to be interested in replying to the support thread for his mod here. I'm holding my forum to RC3 for a while longer, but at some point I'll have to tell my membership that we have to move on without this mod.
Title: Re: Karma Description Mod
Post by: xrunner on November 21, 2010, 10:18:00 AM
Well, I upgraded to RC4 and now the karma descriptions are gone. What a shame. I don't understand why the author does not even log in to tell us why he has abandoned this great mod.
Title: Re: Karma Description Mod
Post by: Rain Forest on November 21, 2010, 02:04:11 PM
Quote from: xrunner on November 21, 2010, 10:18:00 AM
Well, I upgraded to RC4 and now the karma descriptions are gone. What a shame. I don't understand why the author does not even log in to tell us why he has abandoned this great mod.

Well, you don't know the reason why he didn't show up since the last time.

Besides, everyone has their own private life.
Title: Re: Karma Description Mod
Post by: xrunner on November 22, 2010, 08:30:45 AM
Quote
Well, you don't know the reason why he didn't show up since the last time.

He has shown up "since last time" though ...

Check the dates below. He logged on 6 days after my first post in this series. So I would have thought he could have at least told us that he would either be updating the mod or abandoning it. Does he log on and not respond to his mod support thread? All he had to say was either

"I am not interested in supporting the mod any longer"

or

"I will have to put off support because of my personal life"

He doesn't have to do anything he doesn't want to do, but logging on and not even talking to loyal users of his mod in his support thread isn't good for his reputation. If he isn't supporting the mod, and users are posting in the support thread for support from him, then he needs to tell the users they should not expect support from him. Seems to me that's the least he could have done if he logged on, as I have clearly shown that he did below.

*****

Grek_Kamchatka
Last Active:   November 12, 2010, 05:25:31 PM

Quote from: xrunner on November 06, 2010, 07:41:57 PM
Could we possibly at least get the Mod author to chime in briefly here and tell us he'll be looking into making this compatible with RC4? I don't mind waiting a bit, but this mod is very important to my forum community and I don't want to upgrade to RC4 until this mod is compatible.

I do appreciate this mod and the work that goes into updating it.

Thanks!

Title: Re: Karma Description Mod
Post by: Rain Forest on November 23, 2010, 12:44:59 PM
Maybe someone else is doing the update, give them some time to update it.
Title: Re: Karma Description Mod
Post by: lucas-ruroken on November 24, 2010, 03:48:22 PM
Quote from: giovannie_1 on November 23, 2010, 12:44:59 PM
Maybe someone else is doing the update, give them some time to update it.

http://www.simplemachines.org/community/index.php?topic=369147.msg2861319#msg2861319
Title: Re: Karma Description Mod
Post by: xrunner on November 25, 2010, 10:07:50 AM
I did all the changes you described step by step and got the following error message during the package install process -


Duplicate column name 'description'
File: /home/thesite9/public_html/test/Packages/temp/Karma_Description_Mod_ver.2.6.8/db_change_2.0.php
Line: 18
Title: Re: Karma Description Mod
Post by: lucas-ruroken on November 25, 2010, 12:55:49 PM
Did you have installed karma description before?

If so.... open db_changes_2.0.php

and replace everything with:

<?php
//Karma Description Mod

if(file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
   require_once(
dirname(__FILE__) . '/SSI.php');
else if(!
defined('SMF'))
   die(
'<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php and SSI.php files.');

if((
SMF == 'SSI') && !$user_info['is_admin'])
   die(
'Admin priveleges required.');

db_extend('packages');



?>

Title: Re: Karma Description Mod
Post by: xrunner on November 25, 2010, 01:20:43 PM
Quote from: lucas-ruroken on November 25, 2010, 12:55:49 PM
Did you have installed karma description before?

Yes I did.

Quote
If so.... open db_changes_2.0.php

and replace everything with: ...?>


OK, let me test this for a day on my test forum and I'll report back. Thanks for your effort to help us.  :)
Title: Re: Karma Description Mod
Post by: lucas-ruroken on November 25, 2010, 01:34:26 PM
You're welcome
Title: Re: Karma Description Mod
Post by: xrunner on November 26, 2010, 07:46:37 PM
lucas-ruroken,

Suppose I need to uninstall this mod after all these manual patches - how would I do it? I can't use the package manager to uninstall it right?
Title: Re: Karma Description Mod
Post by: lucas-ruroken on November 27, 2010, 10:08:17 AM
mmmm no... The only you need is not load again the new dates on your database.... If you install as I say... You can install with no problems
Title: Re: Karma Description Mod
Post by: xrunner on November 27, 2010, 10:22:02 AM
Quote from: lucas-ruroken on November 27, 2010, 10:08:17 AM
mmmm no... The only you need is not load again the new dates on your database.... If you install as I say... You can install with no problems

Yes, but I was asking about un-installing it if I ever needed to. How would I do that properly - un-installing it?
Title: Re: Karma Description Mod
Post by: vince123 on December 05, 2010, 07:58:06 AM
Is there a version for 1.1.12?
Title: Re: Karma Description Mod
Post by: xrunner on December 05, 2010, 06:57:52 PM
lucas-ruroken,

Since you knew how to fix this mod, and the changes worked, is there any way you could take over the mod, or is there any way you could make a new package for it that would install/uninstall with the fixes through the package manager, so others wouldn't have to manually edit stuff?

Thanks.
Title: Re: Karma Description Mod
Post by: Kindred on December 05, 2010, 08:23:49 PM
not unless the original authors gives permission to transfer ownership of the mod to another user.
Title: Re: Karma Description Mod
Post by: amjari on December 10, 2010, 09:27:29 AM
Quote from: vince123 on December 05, 2010, 07:58:06 AM
Is there a version for 1.1.12?

I'm looking for this too.

thanks!
Title: Re: Karma Description Mod
Post by: vasilios on December 16, 2010, 06:45:28 AM
When i try install this mod in 1.1.12 version,,I get this message:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg255.imageshack.us%2Fimg255%2F5826%2F21999904.th.jpg&hash=8f42a9cccad75c7adc0d5c2a82414cac0c143fa0) (http://img255.imageshack.us/i/21999904.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)

Why?  Not compatible with this version?
Title: Re: Karma Description Mod
Post by: nutrjay on December 16, 2010, 02:21:55 PM
How to setting this mod.

I need all user can see Who changed my karma and Whose karma have I changed but i can't setting.

Only admin can see in thier profile.

Thank you so much
Title: Re: Karma Description Mod
Post by: Eudemon on December 18, 2010, 09:39:57 PM
i managed to install in 2.0rc4
the only problem i have is the karma log is overlapping clear cache in Forum Maintenance
what should i do? see attachment


solved, see http://www.simplemachines.org/community/index.php?topic=49088.msg2885875#msg2885875 (http://www.simplemachines.org/community/index.php?topic=49088.msg2885875#msg2885875)
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on December 19, 2010, 03:44:55 AM
Quote from: Eudemon369 on December 18, 2010, 09:39:57 PM
i managed to install in 2.0rc4
the only problem i have is the karma log is overlapping clear cache in Forum Maintenance
what should i do? see attachment

Yes, I too...
But is it not important ;)
Title: Re: Karma Description Mod
Post by: Eudemon on December 19, 2010, 12:54:43 PM
true that, not really important, but that bothers you sometimes
because now we can't empty cache... should be a little edit, but i just can't do it
Title: Re: Karma Description Mod
Post by: Eudemon on December 19, 2010, 02:36:47 PM
QuoteYes, I too...
But is it not important ;)
ok, i got some free time today
so i took a look at the codes, and i managed to make cache log to display fine
here is the change, actually all i did is relocate the codes (tested in my own forum, works)
go to ur ManageMaintenance.template.php
find, and delete
<div class="cat_bar">
<h3 class="catbg"><span class="left"></span>
', $txt['maintain_karmalog'], '
</h3>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karmalog_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>
<h3 class="catbg"><span class="left"></span>
', $txt['maintain_karma_points'], '
</h3>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma_points" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karma_points_info'], '</p>
                        <p><input type="checkbox" name="del" value="del" class="check"/> ', $txt['maintain_karma_points_info2'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>

search
<div class="cat_bar">
<h3 class="catbg">', $txt['maintain_logs'], '</h3>
</div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=logs" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_logs_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>
<div class="cat_bar">
<h3 class="catbg">', $txt['maintain_cache'], '</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=cleancache" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_cache_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>

add after
<div class="cat_bar">
<h3 class="catbg"><span class="left"></span>
', $txt['maintain_karmalog'], '
</h3>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karmalog_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>
<h3 class="catbg"><span class="left"></span>
', $txt['maintain_karma_points'], '
</h3>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma_points" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karma_points_info'], '</p>
                        <p><input type="checkbox" name="del" value="del" class="check"/> ', $txt['maintain_karma_points_info2'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>

still nothing is displayed under " Empty out Karma Description log " but at least got the empty cache back  ;D
hope that helps
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on December 19, 2010, 02:48:40 PM
Very nice :D
Thank you!
Title: Re: Karma Description Mod
Post by: kaung on December 20, 2010, 06:40:58 PM
I fixed the code to make the Karma log buttons/sections show under maintenance. There were span class and div misplacements.

First I want to thank Eudemon369 for sharing the fix to make the cache log maintenance show again.

I will restate his brilliant fix with my fix in it:
http://www.simplemachines.org/community/index.php?topic=49088.msg2885875#msg2885875

FIND & DELETE as E said:
<div class="cat_bar">
<h3 class="catbg"><span class="left"></span>
', $txt['maintain_karmalog'], '
</h3>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karmalog_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>
<h3 class="catbg"><span class="left"></span>
', $txt['maintain_karma_points'], '
</h3>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma_points" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karma_points_info'], '</p>
                        <p><input type="checkbox" name="del" value="del" class="check"/> ', $txt['maintain_karma_points_info2'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>


Now SEARCH as E said:
<div class="cat_bar">
<h3 class="catbg">', $txt['maintain_logs'], '</h3>
</div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=logs" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_logs_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>
<div class="cat_bar">
<h3 class="catbg">', $txt['maintain_cache'], '</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=cleancache" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_cache_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>


AFTER add this fixed code instead:
<div class="cat_bar">
<h3 class="catbg">', $txt['maintain_karmalog'], '</h3></div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karmalog_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>
<h3 class="catbg">', $txt['maintain_karma_points'], '</h3></div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma_points" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karma_points_info'], '</p>
                        <p><input type="checkbox" name="del" value="del" class="check"/> ', $txt['maintain_karma_points_info2'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>


_____________________________________________

If you've already done E's methods, do this only

FIND
<div class="cat_bar">
<h3 class="catbg"><span class="left"></span>
', $txt['maintain_karmalog'], '
</h3>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karmalog_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>
<h3 class="catbg"><span class="left"></span>
', $txt['maintain_karma_points'], '
</h3>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma_points" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karma_points_info'], '</p>
                        <p><input type="checkbox" name="del" value="del" class="check"/> ', $txt['maintain_karma_points_info2'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div> 


REPLACE WITH:
<div class="cat_bar">
<h3 class="catbg">', $txt['maintain_karmalog'], '</h3></div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karmalog_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>
<h3 class="catbg">', $txt['maintain_karma_points'], '</h3></div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma_points" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karma_points_info'], '</p>
                        <p><input type="checkbox" name="del" value="del" class="check"/> ', $txt['maintain_karma_points_info2'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div> 



Title: Re: Karma Description Mod
Post by: Eudemon on December 20, 2010, 07:00:32 PM
tested, works perfect
thx kaung ;)
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on December 21, 2010, 01:58:55 AM
One lite bug :)
Title: Re: Karma Description Mod
Post by: kaung on December 21, 2010, 02:51:19 AM
 :D

For the double lines with misplaced checkbox,

In the same managemaintenance.template.php
FIND:

<div class="cat_bar">
<h3 class="catbg">', $txt['maintain_karmalog'], '</h3></div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karmalog_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>
<h3 class="catbg">', $txt['maintain_karma_points'], '</h3></div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma_points" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karma_points_info'], '</p>
                        <p><input type="checkbox" name="del" value="del" class="check"/> ', $txt['maintain_karma_points_info2'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>   
   


REPLACE:

<div class="cat_bar">
<h3 class="catbg">', $txt['maintain_karmalog'], '</h3></div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karmalog_info'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>
<h3 class="catbg">', $txt['maintain_karma_points'], '</h3></div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma_points" method="post" accept-charset="', $context['character_set'], '">
                        <p><input type="checkbox" name="del" value="del" class="check"/> ', $txt['maintain_karma_points_info'], ' ', $txt['maintain_karma_points_info2'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
<span class="botslice"><span></span></span>
</div>

Title: Re: Karma Description Mod
Post by: MaXiForum.cz on December 22, 2010, 10:24:32 AM
No, it is the same :)
I read your post before ;)
Title: Re: Karma Description Mod
Post by: kaung on December 23, 2010, 11:04:28 PM
Quote from: MaXiForum.cz on December 22, 2010, 10:24:32 AM
No, it is the same :)
I read your post before ;)

Oops. I pasted it wrong.

Find:
<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma_points" method="post" accept-charset="', $context['character_set'], '">
<p>', $txt['maintain_karma_points_info'], '</p>
                        <p><input type="checkbox" name="del" value="del" class="check"/> ', $txt['maintain_karma_points_info2'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>

Replace

<form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=karma_points" method="post" accept-charset="', $context['character_set'], '">
                        <p><input type="checkbox" name="del" value="del" class="check"/> ', $txt['maintain_karma_points_info'], ' ', $txt['maintain_karma_points_info2'], '</p>
<span><input type="submit" value="', $txt['maintain_run_now'], '" class="button_submit" /></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on December 27, 2010, 02:00:07 AM
No change man :)
Title: Re: Karma Description Mod
Post by: Eudemon on December 27, 2010, 12:23:31 PM
are you using simple portal?
it could be sp's block issue, im not sure
try uninstall portal see if it displays fine, if it is, then it's the portal block problem
i know recently they did something to the portal.css
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on December 27, 2010, 01:25:45 PM
Yes I have installed SimplePortal :-)
And I have the file portal.css in the actual theme :)
This bug is not important.
Thank you
Title: Re: Karma Description Mod
Post by: kaung on December 29, 2010, 03:03:21 PM
I have simple portal as well.
I wonder if it's cache issue.

Title: Re: Karma Description Mod
Post by: HorTs on January 01, 2011, 04:04:27 PM
How did the people who have this working on RC4 manage it?
Title: Re: Karma Description Mod
Post by: Eudemon on January 01, 2011, 10:26:02 PM
Quote from: HorTs on January 01, 2011, 04:04:27 PM
How did the people who have this working on RC4 manage it?
open package-info
find
<install for="2.0 RC3">
replace with
<install for="2.0 RC3, 2.0 RC4">
find
<uninstall for="2.0 RC3">
replace with
<uninstall for="2.0 RC3, 2.0 RC4">
Title: Re: Karma Description Mod
Post by: Bigguy on January 01, 2011, 10:29:41 PM
Or you can use the advanced options in the package manager to emulate earlier versions of SMF so older mods will install.
Title: Re: Karma Description Mod
Post by: HorTs on January 02, 2011, 05:41:55 AM
Many thanks.
Title: Re: Karma Description Mod
Post by: impreza on January 02, 2011, 09:59:06 AM
great modification, I translated it into PL because of such use. Very good mod. Thanks
Title: Re: Karma Description Mod
Post by: Sir Kaos on January 06, 2011, 03:53:33 PM
is this available as a zipfile mod? im a rookie and surely know nothing about those codes. currently only using package manager  :-[

using smf 1.1.12
Title: Re: Karma Description Mod
Post by: SergeantAsh on February 07, 2011, 02:54:57 PM
I'm using this mod and have just converted my forum to UTF8 and suddenly the page where you enter the reason for the Karma change has no text/form labels? Also, within the admin the Karma settings page also have no text/form labels?!

I have tried uninstalling the mod and reinstalling but to no avail?
Title: Re: Karma Description Mod
Post by: Kindred on February 07, 2011, 03:10:07 PM
most mods do not install in tuf-8. You need to make the language updates to your utf-8 language files manually.
Title: Re: Karma Description Mod
Post by: SergeantAsh on February 10, 2011, 02:38:37 PM
Quote from: Kindred on February 07, 2011, 03:10:07 PM
most mods do not install in tuf-8. You need to make the language updates to your utf-8 language files manually.

Ohh bum! Can I just take one of the language files that comes with it and append UTF8 to the end of it?
Title: Re: Karma Description Mod
Post by: Sido on February 20, 2011, 01:38:54 AM
Quote from: vasilios on December 16, 2010, 06:45:28 AM
When i try install this mod in 1.1.12 version,,I get this message:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg255.imageshack.us%2Fimg255%2F5826%2F21999904.jpg&hash=72d77ae0326e661164dce71f96e75fc07d7c4b1f)

Why?  Not compatible with this version?

sorry me if this post was answered, but i could not see any.

i got the same problem with version 1.1.3 can anyone help me ?
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on February 20, 2011, 05:23:42 AM
Install it like 1.1.11
http://custom.simplemachines.org/mods/index.php?mod=2113

or by hand ;)
Title: Re: Karma Description Mod
Post by: Sido on February 20, 2011, 07:57:47 AM
Quote from: MaXiForum.cz on February 20, 2011, 05:23:42 AM
Install it like 1.1.11
http://custom.simplemachines.org/mods/index.php?mod=2113

or by hand ;)
first of all thanks for the answer,
second i did it manual and i think it worked well (since in admin panel at karma mod, i could add the log and configure it)

but 1 problem appear when i wanted to check it, i clicked on >Home and i got this error.

Unknown column 'lk.Description' in 'field list'
File: /home/ilive/public_html/forum/Sources/BoardIndex.php
Line: 438

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.13, while your database is at version 1.1.12. The above error might possibly go away if you execute the latest version of upgrade.php.


i installed that mod "version_emulate_dropdown" and selected 1.1.11 / 1.1.12 and some others, and still nothing....
Title: Re: Karma Description Mod
Post by: Sido on February 20, 2011, 05:30:11 PM
so nobody :( ?

i saw some things about this error but could not understand :(
Title: Re: Karma Description Mod
Post by: Arantor on February 20, 2011, 05:33:56 PM
Just means you didn't run the installer script that comes with the mod - when you did the manual installation instructions you missed the last step.
Title: Re: Karma Description Mod
Post by: Sido on February 20, 2011, 06:38:35 PM
Quote from: Arantor on February 20, 2011, 05:33:56 PM
Just means you didn't run the installer script that comes with the mod - when you did the manual installation instructions you missed the last step.
ur right  :-X

i didnt did the last 2 steps Code & File Operations,

my question is now what i have to do in this step ?

QuoteCode
db_change_1.1.php
This file should be able to execute standalone.
Title: Re: Karma Description Mod
Post by: Arantor on February 20, 2011, 06:43:27 PM
Upload that file to your forum's directory, next to SSI.php and then navigate to it in your browser so the code runs and expands the database.
Title: Re: Karma Description Mod
Post by: Sido on February 20, 2011, 06:54:44 PM
Quote from: Arantor on February 20, 2011, 06:43:27 PM
Upload that file to your forum's directory, next to SSI.php and then navigate to it in your browser so the code runs and expands the database.
just a white page ill get if i visit it ....
Title: Re: Karma Description Mod
Post by: Arantor on February 20, 2011, 07:00:44 PM
Quotejust a white page ill get if i visit it ....

You're not supposed to get any content in that page. Now does it work?
Title: Re: Karma Description Mod
Post by: Sido on February 20, 2011, 07:04:24 PM
Quote from: Arantor on February 20, 2011, 07:00:44 PM
Quotejust a white page ill get if i visit it ....

You're not supposed to get any content in that page. Now does it work?
nop, the same exact error.
Title: Re: Karma Description Mod
Post by: Arantor on February 20, 2011, 07:17:05 PM
Hmm.

So you definitely put it into the right place and you definitely browsed to it in your browser?
Title: Re: Karma Description Mod
Post by: Sido on February 20, 2011, 07:23:09 PM
Quote from: Arantor on February 20, 2011, 07:17:05 PM
Hmm.

So you definitely put it into the right place and you definitely browsed to it in your browser?
next to SSI.php and yes i runed it into my browser  adress/forum/db_change_1.1.php
Title: Re: Karma Description Mod
Post by: Arantor on February 20, 2011, 07:30:41 PM
Odd.

What you can do is go into the db_change_1.1.php and look at the instructions it runs, and run those manually in phpMyAdmin, just remembering to change {$db_prefix} for your actual prefix, normally smf_ (e.g. smf_log_karma)
Title: Re: Karma Description Mod
Post by: Sido on February 21, 2011, 05:14:21 AM
Quote from: Arantor on February 20, 2011, 07:30:41 PM
Odd.

What you can do is go into the db_change_1.1.php and look at the instructions it runs, and run those manually in phpMyAdmin, just remembering to change {$db_prefix} for your actual prefix, normally smf_ (e.g. smf_log_karma)
with my knowledge i cant do what its writed there   :-\
Title: Re: Karma Description Mod
Post by: Arantor on February 21, 2011, 05:23:54 AM
Even though it's basically copy and paste?

You copy the ALTER TABLE lines into phpMyAdmin, remove the {$db_prefix} and put your actual setting there, then hit 'Go'.
Title: Re: Karma Description Mod
Post by: Sido on February 21, 2011, 05:39:32 AM
Quote from: Arantor on February 21, 2011, 05:23:54 AM
Even though it's basically copy and paste?

You copy the ALTER TABLE lines into phpMyAdmin, remove the {$db_prefix} and put your actual setting there, then hit 'Go'.
Create new table on database [b]DBname[/b]
Name


if i put that line here ( where i think it should) and hit go, it just tell me that table exist...
Title: Re: Karma Description Mod
Post by: Arantor on February 21, 2011, 05:44:58 AM
Yes, the database already exists. You need to alter tables in it.

Hit the SQL button to get a nice big area to put the query into.
Title: Re: Karma Description Mod
Post by: Sido on February 21, 2011, 06:15:59 AM
Quote from: Arantor on February 21, 2011, 05:44:58 AM
Yes, the database already exists. You need to alter tables in it.

Hit the SQL button to get a nice big area to put the query into.
didnt know about that ( i mean , so i could execute "texts" from sql button)
and sorry for late, i dont know why but it gave me errors, i tried to change text , understand the error and so long, (errors were like DBname_PREFIXname.PREFIXiWriteOnSqlButtonKarma_Log does not exist,  and i was till bath and come again, did the same thing and worked ... strange)

all its working ok, i just miss the down button near [other stats] the [karma log] 
i think its easy this one (if not ill come and ask for help once again)

but the karma log work, i checked in Profile -> who changed my karma, and worked.



thanks very much for all, especially to Arantor :P
Title: Re: Karma Description Mod
Post by: Sido on February 21, 2011, 06:43:21 AM
 :-[ im here again....

now i cant change my theme , i click on
Overall forum default:  and it change to my choosed theme

but

Reset everyone to: remain to No Change
Title: Re: Karma Description Mod
Post by: Arantor on February 21, 2011, 06:45:33 AM
Quoteremain to No Change

And that's a problem? What it means is to reset the forum default and anyone who's set their profile to 'use the forum default' will use the new default, and anyone who set it for anything else is left alone.

If you have any problems that aren't strictly related to this mod please open a support topic.
Title: Re: Karma Description Mod
Post by: Sido on February 21, 2011, 06:52:00 AM
i cant change the forum theme even from profile or any other option, it just remain on default one w/e i do.

and i posted here believing this is the right section, since this problem appear when i added this karma mod :P
Title: Re: Karma Description Mod
Post by: Arantor on February 21, 2011, 06:55:11 AM
Well, that area of the admin panel isn't touched by this mod so that isn't the issue... the profile might have been edited incorrectly though.
Title: Re: Karma Description Mod
Post by: Sido on February 21, 2011, 07:05:49 AM
Quote from: Arantor on February 21, 2011, 06:55:11 AM
Well, that area of the admin panel isn't touched by this mod so that isn't the issue... the profile might have been edited incorrectly though.
lol my bath is special. now i didnt did smth special just changed few files but still not worked....
i was till bath and come again saw ur answer and wanted to do few more edits to see if it worked, and when i clicked on my forum adress to join the admin panel , the theme was changed already. hmmm

maybe my host upload it a bit harder and thats why i see no changes in few secs ...
Title: Re: Karma Description Mod
Post by: Sido on February 21, 2011, 07:11:41 AM
Sorry for double post,
i wanted to say.


Thanks once again for all support.

All works well now, i need no more help in this case,

and anyone if have problem with this just read all the posts, u will find the answer :P
Title: Re: Karma Description Mod
Post by: DnZkYcN on February 21, 2011, 08:34:36 AM
i have question about karma mod. When i give a karma (lots of) my members, i can do it easly in profile section (Forum Profile Information) with karma box. But Global moderators didn't too. I want to open it for my global moderators, because when we giving lots of karma, they are can't do easly.

How i can solve it? my smf verison is 1.1.12
Title: Re: Karma Description Mod
Post by: Sido on February 21, 2011, 10:47:46 AM
Quote from: DnZkYcN on February 21, 2011, 08:34:36 AM
i have question about karma mod. When i give a karma (lots of) my members, i can do it easly in profile section (Forum Profile Information) with karma box. But Global moderators didn't too. I want to open it for my global moderators, because when we giving lots of karma, they are can't do easly.

How i can solve it? my smf verison is 1.1.12
can u please rewrite what u just said ? i didnt understand a thing :(
Title: Re: Karma Description Mod
Post by: DnZkYcN on February 21, 2011, 06:57:47 PM
Quote from: Sido on February 21, 2011, 10:47:46 AM
Quote from: DnZkYcN on February 21, 2011, 08:34:36 AM
i have question about karma mod. When i give a karma (lots of) my members, i can do it easly in profile section (Forum Profile Information) with karma box. But Global moderators didn't too. I want to open it for my global moderators, because when we giving lots of karma, they are can't do easly.

How i can solve it? my smf verison is 1.1.12
can u please rewrite what u just said ? i didnt understand a thing :(
sorry my english very bad :D But i can explain with picture

here it is:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg220.imageshack.us%2Fimg220%2F1050%2Fadszif.png&hash=887caf3eb3b0d56827def4149d54c6e691b34bf3)

as you can see, 2 boxes here for karma changing on -forum profile information- on my any member. I can writing numbers here what i want. But global moderator's can't see this 2 boxes. I want to open this my moderators but im rookie on smf mod editing.
Title: Re: Karma Description Mod
Post by: Biology Forums on March 08, 2011, 09:21:53 PM
Quote from: Eudemon369 on October 02, 2010, 05:36:56 PM
Can someone gimme a solution why i enabled send pm but members are not receiving any pm for karma change

i searched this post and red every single reply that contains the word "message", and i still can't find a solution
someone mentioned there is an option under profile look and layout but i couldn't find any

i found the notify option under the notification now
but how do i enable everyone to receive pm, and make it receive karma change notification by default

i installed it with no error
and my smf version is 2.0rc3

What did you end up doing about this?
Title: Re: Karma Description Mod
Post by: Biology Forums on March 08, 2011, 09:29:55 PM
Quote from: Grek_Kamchatka on October 03, 2006, 01:02:51 AM
Whoops, it's not a _members table. It is a _setting table, i forget it. So it is a dynamical table, and it can't consist default value. You only can edit Profile.template.php lines with Karma Description Mod to set default value = 2

So what do you do to make it a default option?
//Karma Description Mod (Notification)
if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmanotifier']))
echo '
<tr>
<td colspan="2"><label for="enable_notify">', $txt['enable_notify'], '</label>
<select name="default_options[enable_notify]" id="none_notifier">
<option value="0"', empty($context['member']['options']['enable_notify']) ? ' selected="selected"' : '', '>', $txt['enable_notify_none'], '</option>
<option value="1"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] == 1 ? ' selected="selected"' : '', '>', $txt['enable_notify_popup'], '</option>
<option value="2"', !empty($context['member']['options']['enable_notify']) && $context['member']['options']['enable_notify'] !=1 ? ' selected="selected"' : '', '>', $txt['enable_notify_pm'], '</option>

Title: Re: Karma Description Mod
Post by: NukeWorker.com on March 21, 2011, 02:59:14 AM
Why does the "Show small images instead of karma applaud and smite text labels?" use the default template images, instead of the current theme's images??
Title: Re: Karma Description Mod
Post by: Rain Forest on April 04, 2011, 09:17:26 AM
Something is wrong with the manageMaintance..

'delete cache' is gone and there is no button for Empty out Karma Description log

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.decashare.com%2Fimages%2F0nJ9ygDuG-Untitled-2.jpg&hash=1ded20208f0546498b7d147c7841fba8bd26bd79)
Title: Re: Karma Description Mod
Post by: Leemy on May 01, 2011, 05:50:57 PM
This may have been asked and answered, but two things:

1. Is there a script to make all existing users set to Notify via PM (or popup)?
2. Is there a script to make new users set to Notify via PM (or popup)?

Thanks
Title: Re: Karma Description Mod
Post by: RvG on May 02, 2011, 02:46:51 PM
Quote from: Leemy on May 01, 2011, 05:50:57 PM
This may have been asked and answered, but two things:

1. Is there a script to make all existing users set to Notify via PM (or popup)?
2. Is there a script to make new users set to Notify via PM (or popup)?

Thanks

I would like to ask the same question.
Many thanks.
Title: Re: Karma Description Mod
Post by: Biology Forums on May 02, 2011, 04:15:42 PM
Quote from: RvG on May 02, 2011, 02:46:51 PM
Quote from: Leemy on May 01, 2011, 05:50:57 PM
This may have been asked and answered, but two things:

1. Is there a script to make all existing users set to Notify via PM (or popup)?
2. Is there a script to make new users set to Notify via PM (or popup)?

Thanks

I would like to ask the same question.
Many thanks.

Likewise.
Title: Re: Karma Description Mod
Post by: Kindred on May 02, 2011, 04:16:42 PM
 no... as far as I know, you would have to do a direct database edit...
Title: Re: Karma Description Mod
Post by: Biology Forums on May 04, 2011, 05:44:43 PM
Quote from: Kindred on May 02, 2011, 04:16:42 PM
no... as far as I know, you would have to do a direct database edit...

How so?
Title: Re: Karma Description Mod
Post by: RvG on May 13, 2011, 03:57:10 AM
Quote from: Kindred on May 02, 2011, 04:16:42 PM
no... as far as I know, you would have to do a direct database edit...

Kindly help us...
Many thanks for your help.
Title: Re: Karma Description Mod
Post by: Omen on May 15, 2011, 09:16:28 AM
ok, maybe I am just overlooking it when reviewing this thread. Is there a way for me to install this to SMF 2.0 RC5? If so, how?

thx
Title: Re: Karma Description Mod
Post by: wii123 on May 18, 2011, 05:52:08 PM
would be awesome for 2.0 RC5 i rlly want this :O
Title: Re: Karma Description Mod
Post by: Biology Forums on May 18, 2011, 10:05:42 PM
Quote from: wii123 on May 18, 2011, 05:52:08 PM
would be awesome for 2.0 RC5 i rlly want this :O

open the package file using notepad and change the RC4 or whatever it's at to RC5 and it will install with no problems.
Title: Re: Karma Description Mod
Post by: wii123 on May 18, 2011, 11:23:44 PM
Quote from: shuban on May 18, 2011, 10:05:42 PM
Quote from: wii123 on May 18, 2011, 05:52:08 PM
would be awesome for 2.0 RC5 i rlly want this :O

open the package file using notepad and change the RC4 or whatever it's at to RC5 and it will install with no problems.
Oh beast thanks man
Title: Re: Karma Description Mod
Post by: Omen on May 19, 2011, 01:01:39 AM
nope, now I get this:

Duplicate column name 'description'
File: /.../Forumsmf/Packages/temp/db_change_2.0.php
Line: 18
Title: Re: Karma Description Mod
Post by: babyxdeja on May 19, 2011, 03:20:01 AM
Quote from: shuban on May 18, 2011, 10:05:42 PM
Quote from: wii123 on May 18, 2011, 05:52:08 PM
would be awesome for 2.0 RC5 i rlly want this :O

open the package file using notepad and change the RC4 or whatever it's at to RC5 and it will install with no problems.

Worked perfectly. Thank You!
Title: Re: Karma Description Mod
Post by: Biology Forums on May 19, 2011, 11:28:48 AM
yup, use that trick with whatever mod u install
Title: Re: Karma Description Mod
Post by: Omen on May 19, 2011, 01:57:01 PM
wonder why its not working for me?

exactly what file did you change in the package?
Title: Re: Karma Description Mod
Post by: babyxdeja on May 19, 2011, 03:13:56 PM
Quote from: Omen on May 19, 2011, 01:57:01 PM
wonder why its not working for me?

exactly what file did you change in the package?

file name = package-info.xml

Change <install for="2.0 RC2"> to whatever version you have.  I changed mine to <install for="2.0 RC5">
Title: Re: Karma Description Mod
Post by: babyxdeja on May 19, 2011, 03:14:27 PM
Is there an option to have the Karma listed on profiles?
Title: Re: Karma Description Mod
Post by: Omen on May 19, 2011, 05:44:45 PM
ok, apparently the fix for this is more involved than just changing rc2 to rc5, I keep getting the following error:


Duplicate column name 'description'
File: /.../Forumsmf/Packages/temp/db_change_2.0.php
Line: 18

the mod may work for some, but it isn't working for me for some reason.

anyone out there that can help?
Title: Re: Karma Description Mod
Post by: Citizen Erased on May 26, 2011, 02:18:19 PM
Great Mod.

It works perfect for me.

Thanks a lot.

An advice: change de installer to 1.1.13 instead 1.1.11.

And here is my Mod's spanish translation (it says "spanish_latin" but it'll work for "spanish_es" too):

Admin.spanish_latin.php

//Karma Descriprion Mod
$txt['maintain_karmalog'] = 'Vaciar el Registro de Descripci&oacute;n de Karma';
$txt['maintain_karmalog_info'] = 'Borrar todo el Registro de Descripci&oacute;n de Karma';
$txt['maintain_karma_points'] = 'Poner el Karma de todos los Usuarios en 0';
$txt['maintain_karma_points_info'] = 'Establecer el Karma de todos los Usuarios en 0';
$txt['maintain_karma_points_info2'] = 'y borrar todo el Registro de Descripci&oacute;n de Karma';

ModSettings.spanish_latin.php

//Karma Descriprion Mod
$txt['karmadescmod'] = 'Activar el Mod de Descripci&oacute;n de Karma';
$txt['karmamaxmembers'] = 'Usuarios por p&aacute;gina en el registro de Descripci&oacute;n de Karma';
$txt['karmalogview'] = 'Hacer que los nicks de usuarios sean links a sus perfiles';
$txt['karmapermiss'] = 'Permitir a los usuarios ver el registro de Descripci&oacute;n de Karma (Ver Permisos)';
$txt['karmalinks'] = 'Activar links de Karma en los Perfiles';
$txt['karmaisowner'] = 'Desactivar el registro de karma para los usuarios, pero permitir el registro del karma propio';
$txt['karmakarma'] = 'Mostrar el karma(+/-) de usuarios en el registro de Descripci&oacute;n de Karma';
$txt['karmaurl'] = 'Activar el campo "D&oacute;nde" en el Registro de Descripci&oacute;n de Karma';
$txt['karmaotherstat'] = 'Mostrar otras Estad&iacute;sticas de Karma';
$txt['karmasurv'] = 'Aplaudir o castigar usuarios sin explicaciones';
$txt['karmawhatwrite'] = 'Escribir lo siguiente en el registro cuando la Explicaci&oacute;n est&aacute; desactivada';
$txt['karmacensor'] = 'Censurar la Explicaci&oacute;n de Karma';
$txt['karmatopicstarter'] = 'Los Usuarios s&oacute;lo pueden cambiar el carma del autor del Tema';
$txt['karmanotifier'] = 'Activar Notificaci&oacute;n de Karma';
$txt['karmaidmember'] = 'Enviar PM al usuario con este ID (1 por defecto)';
$txt['karma_pm_send_changelink'] = 'Enviar en los PM un link al mensaje donde fue modificado el Karma';
$txt['karma_pm_send_link'] = 'Enviar en los PM link al registro de Karma propio';
$txt['karmacantmodify'] = 'IDs de los usuarios a los que no se les puede cambiar el Karma. <div class="smalltext">Separar con comas, sin espacios. Por ejemplo: 1,13,27</div>';
$txt['karmacantmodify2'] = 'IDs de usuarios que no pueden modificar Karma. <div class="smalltext">Por ejemplo: 2,412,88</div>';
$txt['karmabuttons'] = 'Mostrar peque&ntilde;as im&aacute;genes de aplaudir y castigar en el Karma en lugar de las palabras';
$txt['karmapictureinlog'] = 'Mostrar peque&ntilde;as im&aacute;genes en el registro de Descripci&oacute;n de Karma en el campo "Acci&oacute;n" en lugar de + o -';
$txt['karmadelete'] = 'Borrar los puntos de karma del usuario cuando se borran las descripciones de cambios en el registro de Descripci&oacute;n de Karma';
$txt['karmalabellink'] = 'Usar la etiqueta karma como link al registro de Descripci&oacute;n de Karma del usuario';
$txt['karmalastchange'] = 'Activar &uacute;ltimo cambio de karma en el &Iacute;ndice';
$txt['karmalastchangenum'] = 'N&uacute;mero de descripciones en el &Iacute;ndice';
$txt['karmadescfieldnum'] = 'Cantidad de s&iacute;mbolos que se mostrar&aacute;n en el campo "Descripci&oacute;n" en el &Iacute;ndice';

Who.spanish_latin.php

//Karma Descriprion Mod
$txt['whoadmin_viewkarma'] = 'Viendo <a href="' . $scripturl . '?action=viewkarma">Registro de Descripci&oacute;n de Cambio de Karma</a>.';
$txt['whoall_modifykarma'] = 'Modificando Karma.';

Help.spanish_latin.php

//Karma Descriprion Mod
$helptxt['karmapermiss'] = 'Por defecto, esta opci&oacute;n est&aacute; desactivada y el Registro de Karma s&oacute;lo lo pueden ver los Admins. Si quieres que lo puedan ver otros moderadores o usairos, etc., act&iacute;valo y dale permisos a cada usuario en la secci&oacute;n "Permisos".';
$helptxt['karmaotherstat'] = 'Mostrar las Estad&iacute;sticas de Karma como usuarios m&aacute;s aplaudidos o castigados, etc., en el registro de Karma.';
$helptxt['karmalinks'] = 'Si activas esto, los usuarios ver&aacute;n dos links en sus perfiles (o en el de otros). Podr&aacute;n ver qui&eacute;n les cambi&oacute; el Karma y a qui&eacute;n se lo han cambiado. El Mod de Descripci&oacute;n de Karma debe estar activado';
$helptxt['karmakarma'] = 'Esto muestra el Karma de los usuarios en el Registro de Karma junto a sus nombres. Por ejemplo: Nombre (+12/-8)';
$helptxt['karmaurl'] = 'Si activas esta opci&oacute;n, t&uacute; y los usaurios podr&aacute;n ver d&oacute;nde les fue cambiado el Karma.';
$helptxt['karmaisowner'] = 'Si activas esta opci&oacute;n, s&oacute;lo el due&ntilde;o del perfil podr&aacute; ver dos links a su propio registro de Karma. De paso, los usuarios recibir&aacute;n un mensaje de error si escriben la url de otro usuario (como http://your_forum.com/index.php?action=ownkarma;u=other_user) si no quieres que puedan ver el registro de Karma de otros usuarios. El registro completo de Karma estar&aacute; desactivado tambi&eacute;n. S&Oacute;LO EL REGISTRO PERSONAL.';
$helptxt['karmanotifier'] = 'Si activas esta funci&oacute;n, los usuarios podr&aacute;n ver otro campo en sus perfiles en la secci&oacute;n \'Notificaciones\'. &Eacute;sto les dar&aacute; la oportunidad de recibir notificaciones cuando sus karmas sean modificados, de dos formas: Mensaje Popup y Mensaje Personal.';
$helptxt['karmaidmember'] = 'Si los usuarios activan la Notificaci&oacute;n de Karma y escogen notificaciones por Mensaje Personal, recibir&aacute;n un Mensaje Personal del usuario con esta ID. Por ejemplo, si pones ID_MEMBER=1, ellos recibir&aacute;n un PM del Usuario 1 y as&iacute;. Si pones ID = 0 recibir&aacute;n un PM de Admin Invitado.';
$helptxt['karma_pm_send_link'] = 'Si los usuarios activan la Notificaci&oacute;n de Karma y escogen notificaciones por Mensaje Personal, en el Mensaje Personal ver&aacute;n un link a su Registro de Karma personal.';
$helptxt['karma_pm_send_desc'] = 'Si los usuarios activan la Notificaci&oacute;n de Karma y escogen notificaciones por Mensaje Personal, en el Mensaje Personal ver&aacute;n la raz&oacute;n del cambio de Karma.';
$helptxt['karma_pm_send_changelink'] = 'Si los usuarios activan la Notificaci&oacute;n de Karma y escogen notificaciones por Mensaje Personal, en el Mensaje Personal ver&aacute;n un link al mensaje en el cual les modificaron el Karma.';
$helptxt['karmacantmodify'] = 'Separados con coma, sin espacios.';
$helptxt['karmacantmodify2'] = 'Separados con coma, sin espacios.';

index.spanish_latin.php

//Karma Description Mod
$txt['karmaview'] = 'Descripci&oacute;n de Cambio de Karma';
$txt['whykarmamod'] = 'Cambio de Karma';
$txt['Description'] = 'Sin Descripci&oacute;n';
$txt['karmamoder'] = 'Raz&oacute;n para modificar el Karma de este usuario';
$txt['karmarequare'] = '(Campo requerido)';
$txt['karmawho'] = 'Qui&eacute;n';
$txt['karmawhos'] = 'A qui&eacute;n';
$txt['karmawhat'] = 'Qu&eacute;';
$txt['karmadesc'] = 'Raz&oacute;n';
$txt['karmatime'] = 'Cu&aacute;ndo';
$txt['karmanumb'] = 'Valores: ';
$txt['statkarma'] = '[Estad&iacute;sticas de Karma]';
$txt['viewkarma_title'] = 'Descripci&oacute;n de Cambio de Karma';
$txt['deletekarma'] = 'Eliminar';
$txt['clearkarma'] = 'Borrar';
$txt['karma_delete_confirm'] = '&iquest;Est&aacute;s seguro/a que quieres borrar este registro?';
$txt['karma_back'] = '< Cancelar';
$txt['karma_continue'] = 'Aceptar >';
$txt['karmadescappl'] = ' (Aplaudir)';
$txt['karmadescsmi'] = ' (Castigar)';
$txt['karmawhere'] = 'D&oacute;nde';
$txt['karmawhereurl'] = 'En Tema';
$txt['karmawhereurl2'] = 'En PM';
$txt['karma_delete'] = 'Eliminar';
$txt['karma_pages'] = 'P&aacute;gina';
$txt['karma_profile_of'] = 'Ver el Perfil de';
$txt['sure_about_karma_remove'] = '&iquest;Est&aacute;s seguro/a que quieres borrar este registro?';
$txt['karma_stat'] = 'Estad&iacute;sticas de Karma';
$txt['karma_top_applaud'] = 'Top 5 de usuarios aplaudidos';
$txt['karma_top_smite'] = 'Top 5 de usuarios castigados';
$txt['karma_other_stat'] = 'Estad&iacute;sticas Generales';
$txt['karma_max_appl'] = 'Usuario que m&aacute;s ha aplaudido';
$txt['karma_max_smit'] = 'Usuario que m&aacute;s ha castigado';
$txt['karma_today'] = 'Puntos de Karma hoy';
$txt['karma_today_plus'] = '"+" de hoy';
$txt['karma_today_minus'] = '"-" de hoy';
$txt['karma_notifier'] = 'Tu karma ha sido modificado en ';
$txt['karma_notifier2'] = ' puntos. &iquest;Quieres ver el Registro de Descripci&oacute;n de Karma?';
$txt['karma_pm_subject'] = 'Notificaci&oacute;n de Karma';
$txt['karma_pm_body'] = 'Estimado Usuario. Tu Karma ha sido modificado. ';
$txt['karma_pm_body2'] = 'Puedes ver el registro en el siguiente link:<br />'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Enviar la raz&oacute;n en un mensaje personal';
$txt['karma_pm_send_desc2'] = '<br /><br />La raz&oacute;n de la modificaci&oacute;n fue: ';
$txt['karma_pm_send_changelink'] = '<br /><br />Tu Karma fue modificado en este mensaje:<br />';
$txt['karma_last_change']='&Uacute;ltimo cambio de Karma';
$txt['karma_last_change1']='&Uacute;ltimos ';
$txt['karma_last_change2']=' cambios de Karma';

ManagePermissions.spanish_latin.php

//Karma Description Mod
$txt['permissionname_karmalog_view'] = 'Ver Registro de Karma';
$txt['permissionhelp_karmalog_view'] = 'El Registro de Descripci&oacute;n de Karma muestra el karma de todos los usuarios y las descripciones para aplaudir o castigar. Este permiso s&oacute;lo funcionar&aacute; si ya lo has activado en Caracter&iacute;sticas y Opciones. Puedes acceder a la pantalla de Descripci&oacute;n de Karma haciendo clic en el link de Estad&iacute;sticas de Karma en el &Iacute;ndice del Foro.';

Errors.spanish_latin.php

//Karma Description Mod
$txt['cannot_karmalog_view'] = 'Lo sentimos - no tienes permisos para ver la lista de Descripci&oacute;n de Karma.';
$txt['viewkarma_error'] = 'La ID del usuario debe ser un n&uacute;mero';
$txt['karma_not_topic_starter'] = 'Lo sentimos, pero este/a usuario/a no es el autor del Tema.';
$txt['karma_cant_modify'] = 'Lo sentimos, pero no puedes modificarle el Karma a este/a usuario/a.';
$txt['karma_cant_modify2'] = 'Lo sentimos, pero no puedes modificarle el Karma a otros usuarios.';
$txt['kdm_error'] = 'El Mod de Descripci&oacute;n de Karma est&aacute; desactivado';

Profile.spanish_latin.php

//Karma Description Mod
$txt['who_change_my_karma'] = 'Qui&eacute;n modific&oacute; mi Karma';
$txt['whom_i_change_karma'] = 'A qui&eacute;n le modifiqu&eacute; el Karma';
$txt['enable_notify'] = 'Notificarme cuando alguien me modifique el Karma';
$txt['enable_notify_none'] = 'no notificar';
$txt['enable_notify_popup'] = 'Ventana popup';
$txt['enable_notify_pm'] = 'Mensaje Personal';
Title: Re: Karma Description Mod
Post by: #Pascal on June 14, 2011, 08:55:57 AM
2.0 RELEASE

Invalid default value for 'is_read'
file: /blabla/db_change_2.0.php
str: 20
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on June 17, 2011, 12:57:47 AM
A new version of Karma Description Mod will be released soon.
Title: Re: Karma Description Mod
Post by: #Pascal on June 17, 2011, 01:24:37 AM
Quote from: Grek_Kamchatka on June 17, 2011, 12:57:47 AM
A new version of Karma Description Mod will be released soon.
Great !!!
Title: Re: Karma Description Mod
Post by: MaXiForum.cz on June 17, 2011, 01:51:00 PM
Very nice Grek_Kamchatka ;)
Title: Re: Karma Description Mod
Post by: R-one on June 18, 2011, 05:38:14 AM
thank god

believe it or not.. my forum's demographic thrive on the ability to rep/karma each other publicly.. with a description.

i have migrated to 2.0 gold.. but currently have a gaping hole where your mod was.

pls, hurry!

XOX
Title: Re: Karma Description Mod
Post by: Richardgm on June 21, 2011, 06:54:20 PM
Waits patiently. Our members loved this mod.
Title: Re: Karma Description Mod
Post by: xrunner on June 21, 2011, 06:57:46 PM
Quote from: Grek_Kamchatka on June 17, 2011, 12:57:47 AM
A new version of Karma Description Mod will be released soon.

Thank goodness!
Title: Re: Karma Description Mod
Post by: Eclipse16V on June 22, 2011, 03:00:13 AM
Run the new Version on 2.0?

QuoteSMF Version: 1.1.11, 2.0 RC3
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on June 22, 2011, 03:03:48 AM
Quote from: Eclipse16V on June 22, 2011, 03:00:13 AM
Run the new Version on 2.0?

QuoteSMF Version: 1.1.11, 2.0 RC3
KDM with 2.0 Gold supporting will be released soon.
Title: Re: Karma Description Mod
Post by: Eclipse16V on June 22, 2011, 03:50:31 AM
Thanks
Title: Re: Karma Description Mod
Post by: RvG on June 23, 2011, 05:15:29 PM
Quote from: Grek_Kamchatka on June 22, 2011, 03:03:48 AM
Quote from: Eclipse16V on June 22, 2011, 03:00:13 AM
Run the new Version on 2.0?

QuoteSMF Version: 1.1.11, 2.0 RC3
KDM with 2.0 Gold supporting will be released soon.

Yay! hope to see it soon...
Title: Re: Karma Description Mod
Post by: Maxtor on June 27, 2011, 09:37:55 PM
waiting for 2.0 version..
Title: Re: Karma Description Mod
Post by: venex on July 01, 2011, 07:52:50 PM
I have a problem...

When I first installed this MOD long time ago users decided if they wanted to be inform when they get a karma point... but for some reason now the option is not displayed in the profile configuration under the "notifications" tab. I don't think is a problem with the MOD since is was working before. I think is because we modified some things of our theme and maybe the guy that did it missed the code that puts that option. Can you tell me how can I have that option back?

PS: The option is marked in the administration panel... it just doesn't show the option to choose anymore. Therefore, member who already decided to receive either a PM or a pop-up do receive the message or pop-up... but new member can't decide.

Thanks.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 02, 2011, 06:44:56 AM
It will be a new function in admin panel to change karma notification for new and old members.
By the way, KDM for SMF 2.0 already done. I'll see it soon.
Title: Re: Karma Description Mod
Post by: xrunner on July 02, 2011, 08:20:24 AM
Quote from: Grek_Kamchatka on July 02, 2011, 06:44:56 AM
By the way, KDM for SMF 2.0 already done. I'll see it soon.

It's done? Sure would be nice to see it this weekend!
Title: Re: Karma Description Mod
Post by: Maxtor on July 02, 2011, 12:17:05 PM
Quote from: Grek_Kamchatka on July 02, 2011, 06:44:56 AM
It will be a new function in admin panel to change karma notification for new and old members.
By the way, KDM for SMF 2.0 already done. I'll see it soon.

its the last mod im waiting to be done, so i can move my forum from 1.1.14 to 2.o final.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 02, 2011, 08:07:04 PM
It's done for SMF 2.0 but I still working on KDM for SMF 1.1*
So when it will be done, you all'll see a new version with many new feautures you asked.
Title: Re: Karma Description Mod
Post by: xrunner on July 02, 2011, 08:13:13 PM
Man, the suspense is killing me!
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 03, 2011, 03:48:09 AM
Be patient =)
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on July 03, 2011, 04:16:17 AM
Quote from: Grek_Kamchatka on July 03, 2011, 03:48:09 AM
Be patient =)

Good to see you still hanging in around here <3 :D
Title: Re: Karma Description Mod
Post by: xrunner on July 03, 2011, 07:58:22 PM
Hey Grek,

I still have the database table for when I was using the previous version of the Karma Desc. Mod. Will the new version use the same table, i.e. will the entries I have show up OK?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 04, 2011, 06:44:21 AM
Yep. The new version use the same table.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 07, 2011, 04:49:58 AM
Karma Description Mod ver.2.7 was Released.


At this time ver. 2.7 compatible with SMF 2.0 only (Sorry, i have a lot of work)
I have updated some screen shots, but other release notes i'll post tomorrow (haven't time right now)
Title: Re: Karma Description Mod
Post by: #Pascal on July 07, 2011, 05:07:18 AM
Yes ! It works ! thx a lot !
Title: Re: Karma Description Mod
Post by: xrunner on July 07, 2011, 08:53:13 AM
Thanks!
Title: Re: Karma Description Mod
Post by: Richardgm on July 07, 2011, 10:06:21 AM
For some reason, none of the old descriptions show up with 2.7. Also, when I set permissions to "Allow to see Log" that doesn't work... So only admins are given the option to view the log.
Title: Re: Karma Description Mod
Post by: endiZ on July 07, 2011, 11:12:55 AM
Sweet, thanks for the update!
Title: Re: Karma Description Mod
Post by: Maxtor on July 07, 2011, 12:00:27 PM
Quote from: Richardgm on July 07, 2011, 10:06:21 AM
For some reason, none of the old descriptions show up with 2.7. Also, when I set permissions to "Allow to see Log" that doesn't work... So only admins are given the option to view the log.

same problem, all old descriptions are gone.
Title: Re: Karma Description Mod
Post by: willsteele on July 07, 2011, 01:25:05 PM
Getting this error when trying to give karma...

QuoteField 'is_read' doesn't have a default value
File: E:\Websites\Forum\Sources\Karma.php
Line: 588

Installed latest version on SMF 2.0 gold


edit to add.. i uninstalled this mod and still getting this error.  cant give karma at all.
Title: Re: Karma Description Mod
Post by: #Pascal on July 07, 2011, 01:41:14 PM
// none of the old descriptions show up with 2.7.
+1
// Also, when I set permissions to "Allow to see Log" that doesn't work... So only admins are given the option to view the log.
-1
set it in group permissions
Title: Re: Karma Description Mod
Post by: willsteele on July 07, 2011, 02:40:51 PM
something is horribly wrong now....  i uninstalled it but this still shows up (see attachment)  any help is GREATLY appreciated
Title: Re: Karma Description Mod
Post by: Eclipse16V on July 07, 2011, 04:05:21 PM
@ willsteele
Clear your smf cache
Title: Re: Karma Description Mod
Post by: willsteele on July 07, 2011, 04:11:19 PM
^^  got it.  thanks.   still having the problem below though



Quote from: willsteele on July 07, 2011, 01:25:05 PM
Getting this error when trying to give karma...

QuoteField 'is_read' doesn't have a default value
File: E:\Websites\Forum\Sources\Karma.php
Line: 588

Installed latest version on SMF 2.0 gold


edit to add.. i uninstalled this mod and still getting this error.  cant give karma at all.
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 07, 2011, 05:04:29 PM
All your old reasons has gone because you used a standart karma function. By the way it clear all karma actions all time. (now you can upload your old karma actions from sql backup, ofcourse  if you have it.)
Title: Re: Karma Description Mod
Post by: Jaysyn on July 07, 2011, 06:25:05 PM
2.7 worked wonderfully on my forums, thanks!
Title: Re: Karma Description Mod
Post by: Richardgm on July 07, 2011, 07:54:47 PM
Quote from: Grek_Kamchatka on July 07, 2011, 05:04:29 PM
All your old reasons has gone because you used a standart karma function. By the way it clear all karma actions all time. (now you can upload your old karma actions from sql backup, ofcourse  if you have it.)

How do we upload the old ones? I thought just changing the "backup_smf_karma_log" to "smf_karma_log" would work. But that gave me an error.

Quote from: PascalCX on July 07, 2011, 01:41:14 PM
// Also, when I set permissions to "Allow to see Log" that doesn't work... So only admins are given the option to view the log.
-1
set it in group permissions

And where else should I enable members to have access to the Log? (see attachment)
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 07, 2011, 10:50:54 PM
Hi. Here is small video How to upload old descriptions to the new empty (or with some values) table.

I used phpMyAdmin (free software) for it.

Don't forget to change encoding, when you will be Import an old log. See the red pointer on video

http://www.youtube.com/watch?v=NKWits46gpQ
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 07, 2011, 10:58:16 PM
Quote from: Richardgm on July 07, 2011, 07:54:47 PM
Quote from: Grek_Kamchatka on July 07, 2011, 05:04:29 PM
All your old reasons has gone because you used a standart karma function. By the way it clear all karma actions all time. (now you can upload your old karma actions from sql backup, ofcourse  if you have it.)

How do we upload the old ones? I thought just changing the "backup_smf_karma_log" to "smf_karma_log" would work. But that gave me an error.

Quote from: PascalCX on July 07, 2011, 01:41:14 PM
// Also, when I set permissions to "Allow to see Log" that doesn't work... So only admins are given the option to view the log.
-1
set it in group permissions

And where else should I enable members to have access to the Log? (see attachment)

Check off "Disable whole karma log..."
You forbade users to look a log.
Title: Re: Karma Description Mod
Post by: Richardgm on July 07, 2011, 11:14:46 PM
Thanks for helping me out.

When I'm importing the old table, I get "Error
SQL query: #1054 - Unknown column 'logTime' in 'field list'"

In PHPMyAdmin
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 07, 2011, 11:20:28 PM
logTime was in SMF 1.1.* in SMF 2.0 it's named as log_time.

Rename "logTime" into "log_time" in your sql file and try to execute it again.
Title: Re: Karma Description Mod
Post by: Richardgm on July 07, 2011, 11:27:14 PM
That worked! Thanks.

Also, what's :

"Amount of karma points: ∞" about?
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 08, 2011, 12:37:35 AM
Quote from: Richardgm on July 07, 2011, 11:27:14 PM
That worked! Thanks.

Also, what's :

"Amount of karma points: ∞" about?
It's show how many karma points you have today. As an administrator you have no limit, so this character is meant by endlessness to you.
Title: Re: Karma Description Mod
Post by: dta.register on July 09, 2011, 10:45:30 AM
Im a newbie.


im using SMF 1.1.14 with Black Rain theme and TP

Will this work for my forum?



Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 09, 2011, 06:21:56 PM
No. This mod only for SMF 2.0
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on July 10, 2011, 09:29:57 PM
KDM ver.2.7.1 was released.

*Added new icons for karma labels +/-
*Fixed bug with real_name instead of poster_name in description for concrete message template
*Fixed bug with </div> in Description template (When applauding or smiteing)
*Fixed bug with $button error in error log. (Reason for concrete message template)
Title: Re: Karma Description Mod
Post by: Eclipse16V on July 12, 2011, 07:48:22 AM
Thanks
Title: Re: Karma Description Mod
Post by: MacTrom on July 24, 2011, 03:39:53 PM
I just installed in 2.0 and I see the links as shown below but my users don't. I've tried playing with the various settings, but nothing seems to give them access to their karma so they can see who gave them karma and why.
Title: Re: Karma Description Mod
Post by: xrunner on July 24, 2011, 05:46:25 PM
Quote from: MacTrom on July 24, 2011, 03:39:53 PM
I just installed in 2.0 and I see the links as shown below but my users don't. I've tried playing with the various settings, but nothing seems to give them access to their karma so they can see who gave them karma and why.

You have to set permissions for the groups to see that, go to permissions ...
Title: Re: Karma Description Mod
Post by: MacTrom on July 25, 2011, 01:44:22 AM
Quote from: xrunner on July 24, 2011, 05:46:25 PM
Quote from: MacTrom on July 24, 2011, 03:39:53 PM
I just installed in 2.0 and I see the links as shown below but my users don't. I've tried playing with the various settings, but nothing seems to give them access to their karma so they can see who gave them karma and why.

You have to set permissions for the groups to see that, go to permissions ...

can you be more specific? I take it you mean the Member's Persmissions, but where do I set the "See Karma Descriptions"?
Title: Re: Karma Description Mod
Post by: xrunner on July 25, 2011, 08:30:41 AM
Quote from: MacTrom on July 25, 2011, 01:44:22 AM
can you be more specific? I take it you mean the Member's Persmissions, but where do I set the "See Karma Descriptions"?

Did you even look?

Admin > Permissions > General Permissions > "Regular Members" > Use basic forum functionality > View Karma Log
Title: Re: Karma Description Mod
Post by: MacTrom on July 25, 2011, 08:37:27 AM
Got it, thanks. I'm just a little slow.
::)
Title: Re: Karma Description Mod
Post by: Leemy on July 28, 2011, 02:00:32 PM
Great mod, I'm using it on 2.0 final now.
et
One issue I've had since the beginning: Notifications. If a user sets their profile to get a PM notification when they receive karma, there are the following issues:

1. Even though normal PMs get an e-mail notification, this PM does not. That is, expected: recipient receives a PM as well as an email with the PM notification. actual: recipient receives just the PM.
2. The e-mail is very poorly formatted and with broken links. Expected: a full working link to the user's karma log. Actual: Text and a link that says:
"Dear user. Your karma was changed. You can see the log if follow this link:
?action=ownkarma;u=27"

That's not a link.


If PMs send e-mail notifications, then karma PMs should as well. The reason I care is because it drives user engagement, bringing a user to the site because another user has interacted with them.




Lastly, a request: which column in which table is the setting for notifications, and what are the values that map to PM notification? I would like to put together a script that just sets all users to PM notification (BONUS POINTS if you make it the default setting for new users!)


i.e. update profile_settings_table?
set  karma_notification_type = 'value for PM'


no where statement, all users.
Title: Re: Karma Description Mod
Post by: SeasonsChange on August 13, 2011, 11:13:07 AM
Mod works well on my board, only problem I've run into is that on the home page, the words "KARMA STATS" are enormous and up by my banner. Is there a quick fix for this?
Title: Re: Karma Description Mod
Post by: impreza on August 22, 2011, 02:07:08 PM
It's fun to be as far gave the set to display the top positive and negative and not by default, only 5
Title: Re: Karma Description Mod
Post by: Tincho on August 24, 2011, 06:20:38 PM
I have a problem with "Today karma points". The count is wrong. How can I fix this? Thanks!


//Today karma points
                $today_karma_points = db_query("
                SELECT COUNT(*)
                FROM {$db_prefix}log_karma
                WHERE FROM_UNIXTIME( logTime, '%Y%m%d' ) = $date
                ",__FILE__, __LINE__);
                $row = mysql_fetch_row($today_karma_points);
                $context['today_point'] = stripslashes($row[0]);
                mysql_free_result($today_karma_points);


Note: I'm using version 2.6.8 on SMF 1.1.11.
Title: Re: Karma Description Mod
Post by: endiZ on September 26, 2011, 02:14:50 PM
I tried to upgrade from 2.7 to 2.7.1 because my applauding doesn't work anymore, and I get the following error:

Install Mod
This package is already installed, and no upgrade was found!

You should uninstall the old version first to avoid problems, or ask the author to create an upgrade from your old version.

Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.
Installations actions for "Karma Description Mod"
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


I tried uninstalling 2.7 but it states:

This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.


I am running SMF 2.0.1. Any help would be appreciated!
Title: Re: Karma Description Mod
Post by: Kindred on September 26, 2011, 02:32:01 PM
use version emulate
Title: Re: Karma Description Mod
Post by: paq on November 12, 2011, 04:17:39 PM
I succesfully installed this mod, but with even activated the permission for my global moderators, they cannot view the karma log...

Title: Re: Karma Description Mod
Post by: FullHero on December 16, 2011, 11:55:00 PM
Quote from: davidhs on February 23, 2010, 02:40:45 PM
I completed the translation spanish_es (and spanish_es-utf8, of course ;) ) of KarmaDescriptionMod 2.6.7 (I have based on several translations already made)


<?php

// $themedir/languages/Admin.spanish_es.php - 1.1
// $themedir/languages/ManageMaintenance.spanish_es.php - 2.0
$txt['maintain_karmalog'] = 'Vaciar el log de Descripción del Karma';
$txt['maintain_karmalog_info'] = 'Elimina todo el log de Descripción del Karma';
$txt['maintain_karma_points'] = 'Establecer todos los puntos de karma a 0 en todos los usuarios';
$txt['maintain_karma_points_info'] = 'Establece todos los puntos de karma a 0 en todos los usuarios';
$txt['maintain_karma_points_info2'] = 'y borra todo el log de Descripción del Karma';

// $themedir/languages/ModSettings.spanish_es.php - 1.1
// $themedir/languages/ManageSettings.spanish_es.php - 2.0
$txt['karmadescmod'] = 'Habilita el Mod Karma Description';
$txt['karmamaxmembers'] = 'Usuarios por página en el log de Descripción del Karma';
$txt['karmalogview'] = 'Usa los nombres de los usuarios como enlace a sus perfiles';
$txt['karmapermiss'] = 'Permite a los usuarios ver el log de Descripción del Karma (Ver Permisos)';
$txt['karmalinks'] = 'Habilita los enlaces de karma en los perfiles de usuario';
$txt['karmaisowner'] = 'Inhabilita el log de karma completo a los usuarios, pero habilita el log de karma propio';
$txt['karmakarma'] = 'Muestra el karma(+/-) de los usuarios en el log de Descripción del Karma';
$txt['karmaurl'] = 'Habilita el campo "Dónde" en el log de Descripción del Karma';
$txt['karmaotherstat'] = 'Muestra otras estadísticas de karma';
$txt['karmasurv'] = 'Aplaudir o castigar a usuarios sin explicación';
$txt['karmawhatwrite'] = 'Escribe esto en el log cuando la explicación esta inhabilitada';
$txt['karmacensor'] = 'Censurar la descripción del karma';
$txt['karmatopicstarter'] = 'Los usuarios solo pueden modificar el karma del autor del tema';
$txt['karmanotifier'] = 'Habilita la notificación de karma';
$txt['karmaidmember'] = 'Envía MP desde este ID de usuario (por defecto 1)';
$txt['karma_pm_send_changelink'] = 'Envía por mensaje personal un enlace al mensaje donde se ha cambiado el karma';
$txt['karma_pm_send_link'] = 'Envía enlace al log de karma propio por mensaje personal';
$txt['karmacantmodify'] = 'IDs de usuario cuyo karma no puede ser modificado. <div class="smalltext">Separados por coma, sin espacios. Por ejemplo: 1,13,27</div>';
$txt['karmacantmodify2'] = 'IDs de usuario que no pueden modificar el karma. <div class="smalltext">Por ejemplo: 2,412,88</div>';
$txt['karmabuttons'] = 'Muestra pequeñas imágenes en lugar de las etiquetas de texto de karma de aplaudir y castigar';
$txt['karmapictureinlog'] = 'Muestra pequeñas imágenes en el log de Descripción del Karma en lugar + o - en el campo acción';
$txt['karmadelete'] = 'Elimina los puntos de karma de usuario cuando borre la descripción de los cambios en el log de Descripción del Karma';
$txt['karmalabellink'] = 'Usa etiquetas de karma como enlace al log de Descripción del Karma de los usuarios';
$txt['karmalastchange'] = 'Habilita últimos cambios de karma en el índice del foro';
$txt['karmalastchangenum'] = 'Número de descripciones en el índice del foro';
$txt['karmadescfieldnum'] = 'Cuántos caracteres habrá en el campo descripción en el índice del foro';

// $themedir/languages/Who.spanish_es.php
$txt['whoadmin_viewkarma'] = 'Viendo el <a href="' $scripturl '?action=viewkarma">log de Cambios en la Descripción del Karma</a>.';
$txt['whoall_modifykarma'] = 'Cambiando el Karma.';

// $themedir/languages/Help.spanish_es.php
$helptxt['karmapermiss'] = 'Por defecto esta opción está desactivada y el log de Karma solo lo pueden ver los administradores. Si quieres que el log de Karma disponible esté otros usuarios o moderadores, etc., habilita esta opción y dale el derecho de ver el log a ese grupo modificando los permisos.';
$helptxt['karmaotherstat'] = 'Muestra otras estadísticas de karma, como los usuarios más aplaudidos o los usuarios más castigados, y cosas así, del log de karma completo.';
$helptxt['karmalinks'] = 'Si habilitas esta característica, los usuarios verán dos enlaces en sus perfiles (propios o de otros usuarios). Podrán ver quien cambia su karma y a quienes se lo han cambiado. El Mod Karma Description debe estar habilitado';
$helptxt['karmakarma'] = 'Muestra el karma del usuario en el log de karma frente a su nombre de usuario. Por ejemplo: NombreUsario (+12/-8)';
$helptxt['karmaurl'] = 'Si habilitas esta opción, tu y tus usuarios podrán ver donde se modificó su karma.';
$helptxt['karmaisowner'] = 'Si habilitas esta opción, solo el propietario del perfil podrá ver los dos enlaces a su propio log de karma. Por otra parte, tus usuarios recibirán un error si introducen una dirección url (como http://your_forum.com/index.php?action=ownkarma;u=other_user) a mano si no deseas que tus usuarios puedan ver el log de karma de los demás usuarios. El log de karma completo se inhabilitará también. SOLO EL LOG DE KARMA PROPIO.';
$helptxt['karmanotifier'] = 'Si habilitas esta función, tus usuarios verán un campo más en sus perfiles en la sección \'Notificaciones y email\'. Esto dará la oportunidad de notificar a los usuarios cuando se modifique su karma, a través de dos formas: Mensaje en una ventana emergente y Mensaje Personal.';
$helptxt['karmaidmember'] = 'Si tus usuarios habilitaron la función de Notificación del Karma y eligen notificación por Mensaje Personal, lo recibirán desde este ID de usuario. Por ejemplo, si tienes ID_MEMBER=1 recibirán un MP de tu parte. Si fijas el ID de usuario a 0, tus usuarios recibirán un mensaje de parte del Administrador.';
$helptxt['karma_pm_send_link'] = 'Si tus usuarios habilitan la función de Notificación del Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán un enlace a su log de karma propio.';
$helptxt['karma_pm_send_desc'] = 'Si tus usuarios habilitan la función de Notificación del Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán la razón del cambio de karma.';
$helptxt['karma_pm_send_changelink'] = 'Si tus usuarios habilitan la función de Notificación de Karma y eligen notificación por Mensaje Personal, en el Mensaje Personal verán enlace al mensaje donde se modificó su karma.';
$helptxt['karmacantmodify'] = 'Separados por comas, sin espacios.';
$helptxt['karmacantmodify2'] = 'Separados por comas, sin espacios.';

// $themedir/languages/index.spanish_es.php
$txt['karmaview'] = 'Cambios en la Descripción del Karma';
$txt['whykarmamod'] = 'Cambio de karma';
$txt['Description'] = 'Sin Descripción';
$txt['karmamoder'] = 'Razón para cambiar el karma de este usuario';
$txt['karmarequare'] = '(Campo requerido)';
$txt['karmawho'] = 'Quién';
$txt['karmawhos'] = 'A quién';
$txt['karmawhat'] = 'Qué';
$txt['karmadesc'] = 'Por qué';
$txt['karmatime'] = 'Cuándo';
$txt['karmanumb'] = 'Valores: ';
$txt['statkarma'] = '[Estadísticas de Karma]';
$txt['viewkarma_title'] = 'Cambios en la Descripción del Karma';
$txt['deletekarma'] = 'Eliminar';
$txt['clearkarma'] = 'Limpiar';
$txt['karma_delete_confirm'] = '¿Estás seguro de que quieres eliminar este registro?';
$txt['karma_back'] = '< Volver';
$txt['karma_continue'] = 'Continuar >';
$txt['karmadescappl'] = ' (Aplaudir)';
$txt['karmadescsmi'] = ' (Abuchear)';
$txt['karmawhere'] = 'Dónde';
$txt['karmawhereurl'] = 'En tema/post';
$txt['karmawhereurl2'] = 'En MP';
$txt['karma_delete'] = 'Eliminar';
$txt['karma_pages'] = 'Páginas';
$txt['karma_profile_of'] = 'Ver perfil de';
$txt['sure_about_karma_remove'] ='¿Estás seguro de que quieres eliminar este registro?';
$txt['karma_stat'] = 'Estadísticas de Karma';
$txt['karma_top_applaud'] = 'Los 5 usuarios más aplaudidos';
$txt['karma_top_smite'] = 'Los 5 usuarios más abucheados';
$txt['karma_other_stat'] = 'Estadísticas Generales';
$txt['karma_max_appl'] = 'Usuario que más aplaude a otros usuarios';
$txt['karma_max_smit'] = 'Usuario que más abuchea a otros usuarios';
$txt['karma_today'] = 'Puntos de karma de hoy';
$txt['karma_today_plus'] = 'Hoy "+"';
$txt['karma_today_minus'] = 'Hoy "-"';
$txt['karma_notifier'] = 'Tu karma ha sido cambiado en ';
$txt['karma_notifier2'] = ' puntos. ¿Deseas ver el log de descripción de karma?';
$txt['karma_pm_subject'] = 'Notificación de Karma';
$txt['karma_pm_body'] = 'Estimado usuario. Tu Karma ha sido cambiado. ';
$txt['karma_pm_body2'] = 'Puedes ver el registro siguiendo este enlace:<br />'.$scripturl.'?action=ownkarma;u='.'';
$txt['karma_pm_send_desc'] = 'Envía la razón en el mensaje personal';
$txt['karma_pm_send_desc2'] = '<br /><br />La razón del cambio fue: ';
$txt['karma_pm_send_changelink'] = '<br /><br />Tu karma fue modificado en este mensaje:<br />';
$txt['karma_last_change']='Últimos cambios de karma';
$txt['karma_last_change1']='Últimos ';
$txt['karma_last_change2']=' cambios de karma';

// $themedir/languages/ManagePermissions.spanish_es.php
$txt['permissionname_karmalog_view'] = 'Ver el log de karma';
$txt['permissionhelp_karmalog_view'] = 'El log de Descripción del Karma muestra el karma de todos los usuarios, y una descripción sobre los aplausos o abucheos. Este permiso sólo funcionará si también lo tienes activado en \'Características y Opciones\'. Puedes acceder a la pantalla Descripción del Karma haciendo clic en el enlace de la sección \'Estadísticas de Karma\' en el índice del foro.';

// $themedir/languages/Errors.spanish_es.php
$txt['cannot_karmalog_view'] = 'Lo siento - no tienes los permisos apropiados para ver la lista de Descripción del Karma.';
$txt['viewkarma_error'] = 'El ID de usuario debe ser un número';
$txt['karma_not_topic_starter'] = 'Lo siento, él no es el autor del tema.';
$txt['karma_cant_modify'] = 'Lo siento, no puedes modificar el karma de este usuario.';
$txt['karma_cant_modify2'] = 'Lo siento, no puedes modificar el karma de otros usuarios.';
$txt['kdm_error'] = 'El Mod Karma Description está inhabilitado';

// $themedir/languages/Profile.spanish_es.php
$txt['who_change_my_karma'] = '¿Quién cambió mi Karma?';
$txt['whom_i_change_karma'] = '¿A quienes he cambiado el Karma?';
$txt['enable_notify'] = 'Notificarme cuando mi karma sea cambiado';
$txt['enable_notify_none'] = 'no notificar';
$txt['enable_notify_popup'] = 'Ventana emergente';
$txt['enable_notify_pm'] = 'Mensaje personal';

?>



and I found an English word in the code, which should be changed to variable language:

File: Viewkarma.template.php
Line: 122
Change:

<?php

if ($user_info['is_admin']) echo ' <td align="center"><b>Delete</b></td>';

?>


For:

<?php

if ($user_info['is_admin']) echo ' <td align="center"><b>'$txt['deletekarma'], '</b></td>';

?>



Sorry, but I installed the mod on my forum, version 2.0.1 and I want to install it says "The package you're trying to download or install is corrupt or not compatible with your version of SMF.", I tried different ways and the result is always the same. someone could help me or guide are some solutions to do so.
By the way the mod you download the 2.7.1 which claims to be compatible with versions 2.0 and 2.0.1 or I'm wrong?

From already thank you very much!!
Title: Re: Karma Description Mod
Post by: kent[ka] on December 17, 2011, 09:03:22 PM
Just install in the 2.0 version and no problem. It will work fine.

Nice MoD be the way, at least it works, not like others...

I've some suggestions/questions.

Is it possible to make it only "add" karma and not allow to negative points? Yes, i know the concept of a karma is +/- but would like to have a system with just "+"

Then is it possible to display karma with xx amount of images and not number?
Also, would be possible to add a function for security that out or even with amount of time for next action of karma, another function that force member to give karma to different user before giving to the last one?

Out of that, nice mod since it work. Still testing in my forums.   :P
Title: Re: Karma Description Mod
Post by: wolfgod12 on December 18, 2011, 06:42:59 PM
Hello there

I am currently trying to install this mod to a forum with 2.0.1. The file isn't available and I'm not sure if I have to upgrade the forum again to get this to work? Any help is appreciated.

-m
Title: Re: Karma Description Mod
Post by: kent[ka] on December 20, 2011, 05:55:33 AM
Emulate 2.0 version in the package manager and install it.
Title: Re: Karma Description Mod
Post by: sdd on February 02, 2012, 02:29:10 PM
It is written: "compatible with version 2.0.2" - it is not compatible.
Title: Re: Karma Description Mod
Post by: Footniko on February 03, 2012, 12:04:42 PM
Quote from: sdd on February 02, 2012, 02:29:10 PM
It is written: "compatible with version 2.0.2" - it is not compatible.
Go to Package Manager->Advanced(at bottom right corner) and change Emulate Version to 2.0
And try again. Don't forget to change Emulate Version back after install.
And don't forget to enable this mod(at "Core Features")
Title: Re: Karma Description Mod
Post by: impreza on February 10, 2012, 04:58:09 AM
Hi what was modified in January? I already have 2.7.1 for several months and says that there were changes in 2012. What is it?
Title: Re: Karma Description Mod
Post by: impreza on February 10, 2012, 01:43:52 PM
I have an idea

When enabled, the total karma is good if it was shown in posts, the total for the post and not the + / -
Title: Re: Karma Description Mod
Post by: crobbe on February 11, 2012, 09:01:10 AM
Downloaded this today, works great.

However, I want to change language so in which file do I do that and how do I do it?

Or, do someone have this mod translated to Swedish?

Or, the mod creator can send me what needs to be translated via PM, I'll fix it  8).

Thanks.
Title: Re: Karma Description Mod
Post by: enitarzi on February 14, 2012, 10:52:57 AM
Apply Filter: Only show the error messages of this URL
http://**********/index.php?action=karmamessage;u=32
Apply Filter: Only show the errors with the same message
Ошибка базы данных: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND mes.id_msg =
LIMIT 1' at line 4
Apply Filter: Only show the errors from this file
File: /***********/htdocs/Sources/Viewkarma_smf2.php
Line: 440


DB Error if you click on view post karma and after that click on Karma Change Description
VERY BAD error. Indicates that author is putting GET contents directly to database query. Can be a security flaw.

If development of this mod is active, mod should be fixed or removed for security reasons!

Title: Re: Karma Description Mod
Post by: impreza on February 15, 2012, 05:31:57 PM
How to have fun doing this modification:

How to fill in the relevant post it to such a possibility has already disappeared from the person for the same post
Title: Re: Karma Description Mod
Post by: Leemy on February 16, 2012, 05:19:29 PM
Any help on this? Thanks! I've been searching through the database and xml files and just CANNOT figure out what to update

Quote from: Leemy on July 28, 2011, 02:00:32 PM
Great mod, I'm using it on 2.0 final now.
et
One issue I've had since the beginning: Notifications. If a user sets their profile to get a PM notification when they receive karma, there are the following issues:

1. Even though normal PMs get an e-mail notification, this PM does not. That is, expected: recipient receives a PM as well as an email with the PM notification. actual: recipient receives just the PM.
2. The e-mail is very poorly formatted and with broken links. Expected: a full working link to the user's karma log. Actual: Text and a link that says:
"Dear user. Your karma was changed. You can see the log if follow this link:
?action=ownkarma;u=27"

That's not a link.


If PMs send e-mail notifications, then karma PMs should as well. The reason I care is because it drives user engagement, bringing a user to the site because another user has interacted with them.




Lastly, a request: which column in which table is the setting for notifications, and what are the values that map to PM notification? I would like to put together a script that just sets all users to PM notification (BONUS POINTS if you make it the default setting for new users!)


i.e. update profile_settings_table?
set  karma_notification_type = 'value for PM'


no where statement, all users.
Title: Re: Karma Description Mod
Post by: Leemy on February 16, 2012, 05:35:39 PM
Update: So I found where the notifier settings are, if anyone else reading this is looking for the information. It's in smf_themes with variable 'enable_notify'. What's frustrating is that I can't just set all users to '1' or '2': the only existing rows are those who updated it manually first. I guess i can remove the existing entries and create a new row for each user with the variable. I wish this was a column in smf_members!! That would make a lot more sense.
Title: Re: Karma Description Mod
Post by: Kindred on February 16, 2012, 09:46:30 PM
Many user options are stored in the themes table like that...especially mod settings. It does not require any new tables or columns, and h code already supports inserting values into the themes table
Title: Re: Karma Description Mod
Post by: bros on February 17, 2012, 12:52:35 AM
would it be possible to make it so that is optional for users to input a reason?
Title: Re: Karma Description Mod
Post by: impreza on February 19, 2012, 05:53:47 AM
There should be no possibilities thank one person for the same post
Title: Re: Karma Description Mod
Post by: Adrek on April 03, 2012, 02:15:02 PM
today I found strange thing... user can add karma points for himself. This is how this mod works or I just cant see proper setting?
Title: Re: Karma Description Mod
Post by: Biology Forums on April 03, 2012, 11:15:16 PM
Quote from: phantomm on April 03, 2012, 02:15:02 PM
today I found strange thing... user can add karma points for himself. This is how this mod works or I just cant see proper setting?

This can be disabled using the forum admin.
Title: Re: Karma Description Mod
Post by: Adrek on April 04, 2012, 02:30:53 AM
I've searched everywhere, but I can't see this setting :|

There is only "Users can change only topic's starter karma", but then users who reply in topic can't receive points
Title: Re: Karma Description Mod
Post by: lttung on June 13, 2012, 12:49:08 PM
How to enable "Set reason for karma" ?
Title: Re: Karma Description Mod
Post by: abhirupmanna on June 14, 2012, 11:49:59 AM
Can't parse for 2.02 is this compatible ?
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on July 01, 2012, 02:36:46 AM
Kinda stupid question but I want to minimise all the ifs in this block of code that I've redone the HTML of...


//Karma Description Mod
if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmainmessage']))
   {
if (($context['karma_message_plus']!=0) || ($context['karma_message_minus']!=0))
{
if (!empty($modSettings['karmainmessagelink']))
{
echo '<a href="'. $scripturl . '?action=karmamessage;u='. $message['member']['id'] .';topic=', $context['current_topic'], ';m=', $message['id'], '"> +'.$context['karma_message_plus'].'/-'.$context['karma_message_minus'].$txt['karma_count'].'</a>';
}
else
{
echo '+'.$context['karma_message_plus'].'/-'.$context['karma_message_minus'].$txt['karma_count'];
}
}

}


What do they mean? What does each one do exactly? I get the first one checks that the settings are on, and the second makes sure there's more or less than 0 for either karma, but what's the third one do?
Title: Re: Karma Description Mod
Post by: MISTA FIESTA on July 07, 2012, 12:09:22 AM
Hello fellow Simple Machiners,

I have recently installed the Karma Description Mod. No errors, works perfectly fine. When i click on to a user profile -> click either the "Who Changed my Karma" or "Who's Karma have i changed" link, it will show the Karma info outside the normal main frame.

Screenshot attatched

The lower part (Users online , search , recent topics) is actually ment to be on the right side.

Details of what I have installed

SMF version 2.0.2,
Core theme
TinyPortal   1.107
Karma Buttons 1.1
YouTube BBCode 2.6
Activity in Profile 1.1
Copyright and Footer Links 3.2
Custom Greeting Mod  1.1.1
Avatar Verification 1.4.4
Karma Description Mod  2.7.1

I would appreciate any assisatnce in this matter

Thanks
Title: Re: Karma Description Mod
Post by: freakydeaky on July 08, 2012, 10:55:58 PM
this thing is driving me crazy... i installed the mod without uninstalling Karma Buttons v1.1, now my karma is all messed up

here is my forum: c4gnation.com

i've uninstalled the karma buttons mod, only the Karma Description Mod is installed now

please help me fix this, thanks
Title: Re: Karma Description Mod
Post by: freakydeaky on July 09, 2012, 02:51:20 PM
anyone help with the issue above, much thanks
Title: Re: Karma Description Mod
Post by: Ix Soulcist xI on July 13, 2012, 04:40:30 AM
How comes this tells me that it's not compatible with my SMF version when it states it's for 2.0.2?
Title: Re: Karma Description Mod
Post by: Eclipse16V on July 14, 2012, 12:46:57 PM
@freakydeaky
Nice Forum & Nice Car. ;)
Title: Re: Karma Description Mod
Post by: aerolite on July 30, 2012, 10:41:49 PM
I have a question, how would I open this for all members? cause right now, only administrator can use my karma mod.
Title: Re: Karma Description Mod
Post by: Goad on August 02, 2012, 07:45:04 AM
is there a way to allow groups (other than admin) have the ability to delete karma comments?

I would like my Global Moderators to have access to moderate the Karma comments.
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on August 06, 2012, 07:04:37 AM
Quote from: Jade Elizabeth on July 01, 2012, 02:36:46 AM
Kinda stupid question but I want to minimise all the ifs in this block of code that I've redone the HTML of...


//Karma Description Mod
if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmainmessage']))
   {
if (($context['karma_message_plus']!=0) || ($context['karma_message_minus']!=0))
{
if (!empty($modSettings['karmainmessagelink']))
{
echo '<a href="'. $scripturl . '?action=karmamessage;u='. $message['member']['id'] .';topic=', $context['current_topic'], ';m=', $message['id'], '"> +'.$context['karma_message_plus'].'/-'.$context['karma_message_minus'].$txt['karma_count'].'</a>';
}
else
{
echo '+'.$context['karma_message_plus'].'/-'.$context['karma_message_minus'].$txt['karma_count'];
}
}

}


What do they mean? What does each one do exactly? I get the first one checks that the settings are on, and the second makes sure there's more or less than 0 for either karma, but what's the third one do?
Title: Re: Karma Description Mod
Post by: shazoo! on August 10, 2012, 09:36:49 AM
In the Karma notification, I see:

Dear user. Your karma was changed. You can see the log if follow this link:
?action=ownkarma;u=2

The reason of changing was: Thank you!

How do I fix the link?
Title: Re: Karma Description Mod
Post by: Zarquad on August 12, 2012, 11:04:01 PM
Quote from: Goad on August 02, 2012, 07:45:04 AM
is there a way to allow groups (other than admin) have the ability to delete karma comments?

I would like my Global Moderators to have access to moderate the Karma comments.

I need that as well. Can someone help me with this?
Title: Re: Karma Description Mod
Post by: PopsicleStickChick on August 29, 2012, 10:12:56 AM
Quote from: Ix Soulcist xI on July 13, 2012, 04:40:30 AM
How comes this tells me that it's not compatible with my SMF version when it states it's for 2.0.2?
I get this too.
Title: Re: Karma Description Mod
Post by: woolly bugger on August 30, 2012, 09:28:16 PM
I'm having an issue with new members, when the register they automatically get +100 applauds in their Karma. This just started happening, it may be related to this mod??

this is the list of my current installed mods.

I want to set it to ZERO so new member are  0  / 0

1.   Karma Description Mod   2.7.1   
2.   Countdown BBCode   2.0.1   
3.   Referrals System   3.0.3   
4.   Adk Top Karma   1.0   
5.   Ad Seller Pro   1.0.12   
6.   Separate the sticky topics   1.0.0   
7.   FancyBox 4 SMF   0.2.1   
8.   markItUp! for SMF   0.4.2   
9.   SMF 2.0.2 Update   1.0   
10.   Join date and Location in Posts   1.2   
11.   Customize *Child Board* | S-Ace & Eudemon   2.4   
12.   InLine Attachments   1.11   
13.   Aeva ~ Auto-Embed Video & Audio   7.1   
14.   Stop Forum Spam   1.0   
15.   Custom Board Sort   1.0.2   
16.   Ad Managment   3.0.1   
17.   NChat   1.3   
18.   Users Online Today   2.0   
19.   Custom Copyright   1.0.2   
20.   Google Analytics Code   1.4   
21.   Hide Images from Guests   2.0   
22.   SMF 2.0.1 Update   1.0   
23.   Report BBCode   1.0   
Title: Re: Karma Description Mod
Post by: ocmdiaz714 on September 25, 2012, 04:49:21 PM
Great mod. But, instead of being taken to a new page when stating a description, can we have a popup showup? Thanks.

Oh can you also tell me how to bold the karma label? Just the "Karma:" not the score. Thanks.

And one last thing, is it possible to integration the statistic with the mod cp?

Also, I think there's a bug with the delete button, why is it up there? I tried fixing it using margin, but that's obviously not always going to work.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2F6rsgog.png&hash=6530cb65c91ac697a550930d661df18260b05ffe)
Title: Re: Karma Description Mod
Post by: ocmdiaz714 on September 26, 2012, 02:29:41 AM
How do I disable karma for administration. I know about entering the member ID, but I don't want the label to display at all for admins, it's obviously not necessary if their karma is not modifiable.

Something along the lines of?:

elseif (!$user_info['is_admin'])
               echo '';
Title: Re: Karma Description Mod
Post by: xrunner on December 06, 2012, 07:38:54 PM
Grek,

Your mod won't install under 2.0.2 unless you go to Advanced and emulate 2.0.0. You ought to fix that so it isn't necessary. I'm training some newbies on a test forum and they got completely stumped when I told them to install this mod.  :)
Title: Re: Karma Description Mod
Post by: shazoo! on June 02, 2013, 06:37:43 AM
Quote from: shazoo! on August 10, 2012, 09:36:49 AM
In the Karma notification, I see:

Dear user. Your karma was changed. You can see the log if follow this link:
?action=ownkarma;u=2

The reason of changing was: Thank you!

How do I fix the link?
Anyone have an idea of how to fix this?  I'm sure it's probably something simple

I see it's referencing "$scripturl" before "?action=ownkarma;u=2".... where can I go to verify my scripturl is present?
Title: Re: Karma Description Mod
Post by: TiPsY on July 10, 2013, 12:30:11 PM
Hello

I've installed without any errors on SMF 2.0.4 by emulating 2.0 version

everything's normal, yet again when someone looks at his profile the following message shows up in the top of the page

//Karma Descriprion Mod $txt['whoadmin_viewkarma'] = 'Viewing Karmachange Description log.'; $txt['whoall_modifykarma'] = 'Changing karma.';

no errors on the error log, and I can't track it for some reason on cpanel, tried everything on sources/load and themes/default/languages
Title: Re: Karma Description Mod
Post by: Kindred on July 10, 2013, 12:40:26 PM
it looks like one of the language files gort updated incorrectly.

Look at this mod - find which language files it edits...   confirm that each (and every) one of those files has the ?> as the FINAL THING in the file. NOTHING should be after that... not a space, not a carriage return... nothing.

If the ?> is higher in the file... move it to the end
Title: Re: Karma Description Mod
Post by: shazoo! on July 10, 2013, 06:46:55 PM
Quote from: shazoo! on June 02, 2013, 06:37:43 AM
Quote from: shazoo! on August 10, 2012, 09:36:49 AM
In the Karma notification, I see:

Dear user. Your karma was changed. You can see the log if follow this link:
?action=ownkarma;u=2

The reason of changing was: Thank you!

How do I fix the link?
Anyone have an idea of how to fix this?  I'm sure it's probably something simple

I see it's referencing "$scripturl" before "?action=ownkarma;u=2".... where can I go to verify my scripturl is present?
Can anyone help me with this issue?
Title: Re: Karma Description Mod
Post by: TiPsY on July 11, 2013, 03:51:04 AM
Quote from: Kindred on July 10, 2013, 12:40:26 PM
it looks like one of the language files gort updated incorrectly.

Look at this mod - find which language files it edits...   confirm that each (and every) one of those files has the ?> as the FINAL THING in the file. NOTHING should be after that... not a space, not a carriage return... nothing.

If the ?> is higher in the file... move it to the end
Thanks!

After researching it was in $themedir/languages/Who.english.php which I'd never expect to look there
I have no idea why the file didn't update with the ?> in the end of the file
Title: Re: Karma Description Mod
Post by: shazoo! on August 15, 2013, 08:54:11 AM
Quote from: shazoo! on July 10, 2013, 06:46:55 PM
Quote from: shazoo! on June 02, 2013, 06:37:43 AM
Quote from: shazoo! on August 10, 2012, 09:36:49 AM
In the Karma notification, I see:

Dear user. Your karma was changed. You can see the log if follow this link:
?action=ownkarma;u=2

The reason of changing was: Thank you!

How do I fix the link?
Anyone have an idea of how to fix this?  I'm sure it's probably something simple

I see it's referencing "$scripturl" before "?action=ownkarma;u=2".... where can I go to verify my scripturl is present?
Can anyone help me with this issue?
How can I make the message include the beginning of the URL?

It's showing only ?action=ownkarma;u=2, so I have to figure out why it's not placing "http://www.website.com/forum/index.php" in front of that.  Any ideas for me to try?
Title: Re: Karma Description Mod
Post by: DSystem on August 31, 2013, 07:41:27 PM
Congrats on the MOD. This making the biggest success in my forum

Installed and working perfectly in SMF 2.0.5
Title: Re: Karma Description Mod
Post by: Dijboy on October 20, 2013, 05:40:11 AM
It's working on my forum version 2.0.5. Thanks for the mod :D
Edit: Also works on 2.0.6!
Title: Re: Karma Description Mod
Post by: makv on November 29, 2013, 06:54:14 AM
At certain places in my forum (such as Who's Online) users see text relating to this mod at the top of their page. Here is an example:

//Karma Descriprion Mod $txt['whoadmin_viewkarma'] = 'Viewing Karmachange Description log.'; $txt['whoall_modifykarma'] = 'Changing karma.'; //Karma Descriprion Mod $txt['whoadmin_viewkarma'] = 'Viewing Karmachange Description log.'; $txt['whoall_modifykarma'] = 'Changing karma.';

Any idea what is going on here or how to fix it?
Title: Re: Karma Description Mod
Post by: makv on November 29, 2013, 08:03:13 AM
Quote from: makv on November 29, 2013, 06:54:14 AM
At certain places in my forum (such as Who's Online) users see text relating to this mod at the top of their page. Here is an example:

//Karma Descriprion Mod $txt['whoadmin_viewkarma'] = 'Viewing Karmachange Description log.'; $txt['whoall_modifykarma'] = 'Changing karma.'; //Karma Descriprion Mod $txt['whoadmin_viewkarma'] = 'Viewing Karmachange Description log.'; $txt['whoall_modifykarma'] = 'Changing karma.';

Any idea what is going on here or how to fix it?

Ah, got it. The Who.english.php file was hosed as per a post a page or so back. Move the ?> to the end of the file and that did it.
Title: Re: Karma Description Mod
Post by: bros on February 19, 2014, 06:40:14 PM
Is there a way to make it so the karma description is optional? I have some members who don't like to put in descriptions, while others would like to have the option of putting a description in
Title: Re: Karma Description Mod
Post by: Grek.Kamchatka on February 19, 2014, 07:29:09 PM
Quote from: bros on February 19, 2014, 06:40:14 PM
Is there a way to make it so the karma description is optional? I have some members who don't like to put in descriptions, while others would like to have the option of putting a description in
Check this in karma settings - "Change karma without explanation"
Title: Re: Karma Description Mod
Post by: bros on February 25, 2014, 01:37:05 PM
Quote from: Grek.Kamchatka on February 19, 2014, 07:29:09 PM
Quote from: bros on February 19, 2014, 06:40:14 PM
Is there a way to make it so the karma description is optional? I have some members who don't like to put in descriptions, while others would like to have the option of putting a description in
Check this in karma settings - "Change karma without explanation"

That makes it so nobody can give an explanation.
Title: Re: Karma Description Mod
Post by: FemR on March 26, 2014, 05:25:16 PM
What happens with my current karma totals for each member when I install this mod on a forum that only has the basic SMF v2 karma (from Core features) turned on?

Some members have over 5000 'karma_good' points, will these totals be kept after I install this mod?

Currently in 'log_karma' table there is only one row that gets overwritten over and over and all the karma totals are kept in 'karma_good' and 'karma_bad' in 'members' table. Will all my members lose those totals and will have to start over?

Thank you for clarification  :)


EDIT: Installed - previous karma totals in 'members' table ('karma_good' and 'karma_bad') got kept  :)
Title: Re: Karma Description Mod
Post by: GamePersia on March 27, 2014, 03:38:13 AM
it's not uninstalling !!..... :(
Help needed,..
saying no uninstaller found,..contact mod author
Title: Re: Karma Description Mod
Post by: Jade Elizabeth on April 02, 2014, 05:34:33 AM
Quote from: Jade Elizabeth on July 01, 2012, 02:36:46 AM
Kinda stupid question but I want to minimise all the ifs in this block of code that I've redone the HTML of...


//Karma Description Mod
if (!empty($modSettings['karmadescmod']) && !empty($modSettings['karmainmessage']))
   {
if (($context['karma_message_plus']!=0) || ($context['karma_message_minus']!=0))
{
if (!empty($modSettings['karmainmessagelink']))
{
echo '<a href="'. $scripturl . '?action=karmamessage;u='. $message['member']['id'] .';topic=', $context['current_topic'], ';m=', $message['id'], '"> +'.$context['karma_message_plus'].'/-'.$context['karma_message_minus'].$txt['karma_count'].'</a>';
}
else
{
echo '+'.$context['karma_message_plus'].'/-'.$context['karma_message_minus'].$txt['karma_count'];
}
}

}


What do they mean? What does each one do exactly? I get the first one checks that the settings are on, and the second makes sure there's more or less than 0 for either karma, but what's the third one do?
Title: Re: Karma Description Mod
Post by: blunted on April 17, 2014, 04:03:59 PM
wont install in 2.0.7 says not compatible
Title: Re: Karma Description Mod
Post by: Kindred on April 17, 2014, 09:48:30 PM
http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Title: Re: Karma Description Mod
Post by: shazoo! on April 22, 2014, 07:35:05 AM
Quote from: blunted on April 17, 2014, 04:03:59 PM
wont install in 2.0.7 says not compatible

Quote from: Kindred on April 17, 2014, 09:48:30 PM
http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version


Blunted, emulate version 2.0 and you should be golden
Title: Re: Karma Description Mod
Post by: @rjen on July 24, 2014, 09:00:54 AM
Nice Mod, except for the display position issue with Tinyportal that was reported earlier.

Since I a running a completely dutch forum, I created a full translation for the text files to Dutch.
I attached the "language_dutch.xml" file.

This can be added to the install . zip file, just add following lines in the "package-info.xml" and it installs and de-installs with the rest...

Quote<modification type="file" format="xml">language_english.xml</modification>
      <modification type="file" format="xml">language_english_utf8.xml</modification>
      <modification type="file" format="xml">language_dutch.xml</modification>

and
Quote<modification reverse="true">language_english.xml</modification>
      <modification reverse="true">language_english_utf8.xml</modification>
      <modification reverse="true">language_dutch.xml</modification>

It would be nice to get the screen layout in the profile fixed when combined with Tinyportal...
Title: Re: Karma Description Mod
Post by: Empire KickAss on April 27, 2015, 09:43:46 PM
I have an error, I can't found it anywhere in Display.template.php.

As from the image there is two lots of links

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfhacks.com%2Findex.php%3Faction%3Ddlattach%3Btopic%3D8750.0%3Battach%3D4745%3Bimage&hash=e0e086ccf753ad633b27a115dce301ceda0b80de)

Want to remove one of them
Title: Re: Karma Description Mod
Post by: lntit on October 25, 2015, 12:33:53 PM
Hi there,

First off, this is a great and useful mod!

I just have a minor problem:
If I am going to delete an entry, it does not redirects me correctly to the previous page (I guess it should go there, right?). This is what I get in the Error log:


---------/index.php?action=viewkarma
8: Undefined index: sort
File: ----/Sources/Viewkarma_smf2.php
Line: 535



---------/index.php?action=viewkarma
8: Undefined index: start
File: ----/Sources/Viewkarma_smf2.php
Line: 535



Offending line is:
                redirectexit('action=viewkarma;start=' . $_GET['start'] . ';sort='. $_GET['sort'].';' . (isset($_GET['desc']) ? 'desc' : 'asc') . '');

We are on SMF 2.0.11.

It would be cool if there is a solution for this.
Title: Re: Karma Description Mod
Post by: thesiger on October 23, 2017, 12:22:14 AM
Are people still using this mod? Our forum has always had it but I am reluctant to reinstall it again as it hasn't been updated for three years. We just upgraded to 2.0.14.
Title: Re: Karma Description Mod
Post by: Kindred on October 23, 2017, 11:41:33 AM
why would that matter? Most mods which work on 2.0.x will work on any other 2.0.x with little, if any, need for further modification
Title: Re: A Karma Description Mod
Post by: digger on November 23, 2017, 12:50:22 AM
Karma Description Mod v2.8

*Minor fixes.
*Update database install script.
*Add new indexes for karma table.
*Fix columns delete when uninstall mod if needed.
*Fix install script for MySQL 5.7 and newer.
*Force karma enabled when mod installed.
*Mod tested with SMF 2.0.15 and PHP 7.0.
Title: Re: A Karma Description Mod
Post by: Realinfo on July 02, 2018, 02:51:35 AM
Karma +3/-4 in member profile at left side

Want to change "Karma" word to something else, can't able to see in language files Default/theme/language

please guide
Title: Re: A Karma Description Mod
Post by: Arantor on July 02, 2018, 02:56:32 AM
Where's the footer copyright? We've been through this before...
Title: Re: A Karma Description Mod
Post by: Kindred on July 02, 2018, 11:22:59 AM
He's hoping that we don't remember him from the copyright discussion 2 years ago... and also before that... and before that.
Title: Re: A Karma Description Mod
Post by: MontW on September 10, 2018, 05:42:33 PM
I am getting a blank page on Karma Change description as a regular user.  It works fine as an admin, but not as a regular user. Help appreciated
Title: Re: A Karma Description Mod
Post by: MontW on September 13, 2018, 04:37:39 PM
I finallly figured it out.  Both the Karma log box and the show Karma to users boxes have to be ticked on. 
Title: Re: A Karma Description Mod
Post by: sts_pro on September 20, 2019, 12:08:14 AM
Quote from: shazoo! on August 15, 2013, 08:54:11 AM
Quote from: shazoo! on July 10, 2013, 06:46:55 PM
Quote from: shazoo! on June 02, 2013, 06:37:43 AM
Quote from: shazoo! on August 10, 2012, 09:36:49 AM
In the Karma notification, I see:

Dear user. Your karma was changed. You can see the log if follow this link:
?action=ownkarma;u=2

The reason of changing was: Thank you!

How do I fix the link?
Anyone have an idea of how to fix this?  I'm sure it's probably something simple

I see it's referencing "$scripturl" before "?action=ownkarma;u=2".... where can I go to verify my scripturl is present?
Can anyone help me with this issue?
How can I make the message include the beginning of the URL?

It's showing only ?action=ownkarma;u=2, so I have to figure out why it's not placing "http://www.website.com/forum/index.php" in front of that.  Any ideas for me to try?

I know this post is old but I got the same error after installing it just a few days ago. So I guess this issue never got fixed and probably not affecting most of the users.

So, I did some debugging and figured out some variables ($scripturl and $context in my case) are not working correctly within the language files. So I moved these calls to Karma.php file.

Also, by some reason, both $context and $modSettings were surrounded by isset() and were returning "1" in my case. I remove this check and put actual values instead.

I attached a quick patch I created, which fixed these issues for me (I haven't been able to make it work for non-UTF Russian translation - sorry guys :) ).
Title: Re: A Karma Description Mod
Post by: diegolyanky on June 27, 2020, 12:14:21 PM
Hello: I am getting this error:

Notice: Undefined index: karma_profile_of ... on line 67 of Viewkarma.template.php

Any idea about how to solve it? ... Or where to start looking for the issue?



echo '</td>
LINE 67                                <td width="14%" align="center"><a href="' . $scripturl . '?action=profile;u=' . $member['id_targ'] . '" title="' . $txt['karma_profile_of'] . ' ' . $member['target'] . '">' . $member['target'] . '</a>';

            if (!empty($modSettings['karmakarma'])) {
                if ($modSettings['karmaMode'] == '1') {
                    echo ' <span class="smalltext">(', $member['targetkarmagood'] - $member['targetkarmabad'], ')</span>';
                } else {
                    echo ' <span class="smalltext">(+', $member['targetkarmagood'], '/-', $member['targetkarmabad'], ')</span>';
                }
            }



Thanks a lot!