News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Log Karma Actions

Started by vbgamer45, January 10, 2010, 03:14:27 AM

Previous topic - Next topic

vbgamer45

Link to Mod

Log Karma Actions


Original Author: Hadeflames
SMF Version: 2.0.x
Mod Version: 2.0

Description:
This modification adds a new table to your database where it will store Karma actions (Applaud or Smite) and not erase and replace them such as the standard SMF karma log. The information is then displayed in the maintenance section of your admin panel, right under "Logs..."

ChangeLog:
Version 2.0

-Taken over by Runic
-UTF8 Support Added

Version 1.1

-Log removing is now selectable with check boxes

Version 1.0

-Changed code tags to database in package-info.xml
-Released on December 28, 2009.

Why Not Visit:
http://www.smfhacks.com
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

JBlaze

Congrats on another approved mod!
Jason Clemons
Former Team Member 2009 - 2012

hadesflames


rexusdiablos

I like how it's limited to admin but can we not get a screen shot?

How does it compare to this aside from who can access it?: http://custom.simplemachines.org/mods/index.php?mod=192
"You just can't make this stuff up!" - Alex Jones | www.infowars.com

Nolt

#4
Thanks for this mod, finally someone created such an important function :)

but I got a little problem...
I've installed this mod for testing on localhost and it works great. So I decided to install it on production site, and installation was successful but nothing happens. I doesnt have any additional option in Log section just nothing. I checked files all are OK.

rexusdiablos

@nolt: I'm installing this in a while on 2.0 RC2 so I'll revert to let you know if I have the same issue. Out of curiosity, what version is your production site?
"You just can't make this stuff up!" - Alex Jones | www.infowars.com

Nolt

#6
SMF 2 RC2 of course (in both cases) but different text encoding (i think encoding isn't so important).

//edit
Problem solved, after reading all log errors I found problem in our chmods, especially in Source folder, file Subs-Package.

rexusdiablos

Installed without a problem. A link to the post the received the +/- would be a nice addition.
"You just can't make this stuff up!" - Alex Jones | www.infowars.com

hadesflames

Wow. I need to check these mod topics more often lol.

I'm glad you guys got it working and are liking the mod.

Quote from: rexusdiablos on January 24, 2010, 11:30:09 AM
Installed without a problem. A link to the post the received the +/- would be a nice addition.

I'll think about that, a bit busy with Dream Portal at the moment though ;)

Baloch

Kindly do something for SMF 1.1.11 too

hadesflames

I thought about making it compatible for 1.1, but I decided to make it for 2.0 only since I don't really want to support the 1.x series with this mod, sorry.

hadesflames

Version 1.1

[!] Log removing is now selectable with check boxes

Bugo

Russian translation => in attachments

tatack

I'm using Karma on my forum, but often, when I try to leave an applauds or a smites, it release this message:


QuoteDuplicate entry '255' for key 1
        File: /var/www/vhosts/e-compa.com/httpdocs/ht/Sources/Karma.php
        Riga: 124



I have this mod installed: Log Karma Actions

Do you know which is the problem?

Thank You  :)

Scoobymaniac

Can this mod be manually installed on 1.1.12?

Or what would need to be done to make it work?

babyxdeja

Will this work for 2.0 RC5?

live627

Quote from: babyxdeja on May 19, 2011, 02:53:26 AM
Will this work for 2.0 RC5?
You could try emulating RC4 and see if that works.

babyxdeja

http://mods.simplemachines.org/index.php?mod=192

Ended up using the above Mod. Edit the first file in notepad and change the RC2 to RC5 and it works perfectly. :)

Branko.

Thanks to Scrooge, Log Karma Actions now also for 2.0.3..  :)

Think about changes in this line:
Quote// Build an array to return karma action data.
   while ($row = $smcFunc['db_fetch_assoc']($result))
   {
      $return[] = array(
         'id' => $row['id_karma'],
         'executor' => $row['id_executor'],
         'target' => $row['id_target'],
         'action' => $row['action'] == 1 ? 'applauds' : 'smites',
         'time' => timeformat($row['log_time'])

Something like $txt['karma_positive'] and $txt['karma_negative'] ... More useful for translation to other languages?
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Deaks

I will look into it shortly :)
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: