Karma Description Mod

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

Previous topic - Next topic

Grek.Kamchatka

I think you installed this mod twise. You must open Karma.php and remove two closed brackets before ?>

SOTG Marine

^^^ 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?

SOTG Marine

I found it... it's called viewkarma  but I have no link... any guess on why it's not visible in my theme?

Grek.Kamchatka

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'

steve in houston


Grek.Kamchatka


houston

Do you need to uninstall the previous version before installing the newest version?

Thanks

Grek.Kamchatka

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.

houston

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.

Grek.Kamchatka


finnhack

#70
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

SirGotxi

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

Gwion

#72
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. :)

Grek.Kamchatka

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?

SirGotxi

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 ^^

Gwion

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.


Grek.Kamchatka

Hi, Gwion, it will be in new version....soon =)

JustJa

Fantastic!
I just don´t want normal users to know who changed their Karma...
How can I do that?

Grek.Kamchatka

Hi, Brasileira, just edit their permissions =)
By default, only admin can view log.

JustJa

 I want them to see the reason why they got + or - ....
but not who chanegd the karma  ::)

Advertisement: