News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Karma Log mod

Started by Kindred, May 03, 2005, 11:18:06 AM

Previous topic - Next topic

Kindred

Well, I don't use Karma on my own site, but one of the sites I work on requested this feature.
Scanning through some of the old messages on SMF here, I noticed that this seems to be desired by some others as well.
There was some code published that did something similar, using SSI... and I took that code for use in a more integrated mod.

What this mod will do is add a log of all Karma actions (applaud and smite) and KEEP that log (unlike the standard SMF karma log, which is erased and replaced)
It adds an admin function "View Karma Log" down in the maintainence menu of the admin section.

This is version 1.0 of the mod. Basic display of the log in the admin section.

Please note: This mod has been tested on only two systems. This mod should not have any effect on the normal operation of your board. However, as always BACK UP before installing. If you encounter any problems, let me know.

(There is no error checking to see if Karma is activated or not. I assume that only people who USE the Karma system will install this.)



Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Eragle

I've been waiting on this one but the mod is giving off some weird behavior.

Quote2: copy(/home2/tntalks/public_html/forum/Packages/temp/themefiles/Karma.template.php): failed to open stream: No such file or directory
File: /home2/tntalks/public_html/forum/Sources/Subs-Package.php
Line: 814

And the "temp" directory it created is one tough bugger to delete if need be. Mucho permission hang ups on the server.

Kindred

Sorry about that.

I've updated the package in the first post...   this should work better.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mennou

#3
it gave me error  ...    it says  something about      Packages/temp/themefiles.....  it refused  to   work....   is there someother way i can make it work../?


An Error Has Occurred!
2: copy(/usr/home/mixspot/public_html/community/Packages/temp/themefiles/Karma.template.php): failed to open stream: No such file or directory 

Kindred

DAMIT!   I thought I had the hang of the package file...  let's try this one more time...

I have updated the firts post once more... hopefully the last time I need to do this for v1.0

FYI:   If you want to do this by hand, you should copy the Karma.template.php into the themes/default directory and then do the modifications described in the KarmaLog.mod file...  (and of course, run the SQL script in KarmaLog.php)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mennou

works  now...  thanx   but  where  can i see  it???

Eragle

Works great! Now is there a way to make it viewable to all members?

Kindred

well, that would be something different.

It would require a change to the code added to Karma.php (it checks isadmin) and a change to the template file (which currently displays as a sub-page of the smf admin section)

Then you'd have to add some link (a button or something) to go to index.php?action=karma


tell you what... I'll work on a member viewable log in the next day or two...

Mennou... it should have added an option to your admin menu, down with the forum maintainence options.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Gary

It seems like a nice feature, I'll probably test it out on my forum, which is running on SMF 1.1 Beta 1, and from what I'm gathering (as you're not a CM) is that you havent tested it out on 1.1 Beta 1.

Why not submit it to the SMF Mod's site using this submission form that way people dont have come here to see it, they can access the mod via their package managers on their own forum.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Eragle

It's one of the few mods I've used so far that installs easily and without a bunch of guesswork.

Jessondair

#10
I just installed this, and didn't seem to have any trouble.. karma still works, and the karma log link is in Admin.. but it's empty.  It's been installed for 3 days and I know people have used the karma feature.  Where do I look for my mistake?

pcigre

Does this mod work on RC2?

winrules

Quote from: pcigre on April 08, 2006, 04:44:14 AM
Does this mod work on RC2?

Quote
Compatible With:   1.0.3, 1.0.4, 1.0.5, 1.1 Beta 3 Public


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


KidGuko

I get this error:

Install Actions for archive KarmaLogv1.0.zip [nofollow]:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I have SMF Version 1.0.7


Thanks

Kindred

see above message...

however, with 1.0.7, you can change the version line in the XML installation file and it should install correctly.

I have basically stopped supporting this mod, since the karma description mod appears to do everything this one does, better. :)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

KidGuko


Flag

How I install manually?
In the version 1.1rc2 says that it does not have archive of installation or uninstall.

Kindred

I am fairly certain that this will not work with 1.1RC2, even manually.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: