News:

Wondering if this will always be free?  See why free is better.

Main Menu

Karma Applaud Only

Started by b0x, May 20, 2007, 09:59:38 AM

Previous topic - Next topic

mrstime

Thank you!  Thank you!!  We have had some issues of people smiting others just to be mean but we like to have the exalt option there.  This fixed the problem! 

jatterb

Just to let you all know, you can disable Karma smites without having to install a module.

Go to Admin -> Features and Options -> Karma, erase the text found in the Karma Smite Label box, and then click the Save button. With this text box blank, there is nothing for the forum program to create a smite link with.

Also, if you haven't already done so, you'll also want to change the Karma Mode drop down box to "Enable karma total". After all, no sense in showing how many smites someone has gotten if you are going to disable the smites.

I did this when I first came on the forum I help run almost 2 years ago, and we haven't had any problems.

b0x

Although you can remove the smite link, it won't stop your users from changing an applaud link into a smite link manually. This mod removes the smite link and also disables the smite function. This stops your users from changing the applaud link into a smite link manually. If your solution works for you that is great, but for some forums that's simply not enough. Hence this module.

Johno69

Thanks for this mod.

I'd like to change it slightly if someone can help..

I'd like to make the karmaLabel the link to applaud and do away with the extra applaud + below the Karma label.

Which of the following code should I edit?

// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</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'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';



Thanks..

Johno69

#24
Well actually what I did was this...

I took the advice of a member above and didn't fully install the mod, but manually made the change to Karma.php file as per the mod settings.

Then I removed the label for both the karma + and -.

next I edited Display.template.php

from:

               

                           // Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br /> ', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />'; elseif ($modSettings['karmaMode'] == '2')




to:



// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaLabel'], '</a> ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')


b0x

Sorry mate, I only just read your post. Good to hear you got it working.

slackerpunk

anywan to disable both? I have the automatic karma mod installed and I use it for an event for my site and would really like to disable both applaud and smithe

b0x

If you only want to remove the links you can do that in the control panel without installing my mod. My mod also disables the smite function. I can change this mod to whatever you want, but I dont know if I undertand you correctly. Do you want both the applaud and smite functions to be disabled? Will the automatic karma mod still work if you do that, or does it use it's own functions?

Acans

installed without a problem, very nice mod.
"The Book of Arantor, 17:3-5
  And I said unto him, thy database query shalt always be sent by the messenger of $smcFunc
  And $smcFunc shall protect you against injections and evil
  And so it came to pass that mysql_query was declared deprecated and even though he says he is not
  dead yet, the time was soon to come to pass when mysql_query shall be gone and no more

b0x


twon

Hello,
I just like to say i like this idea. Also, I installed the mod and it appeared to do nothing. I am running 1.1.6. It still shows the smite words. For the time being I just took it off by deleting the smite word. However, in the gaming community people will figure out they can smite someone.

Any help would be appreciated.

b0x

Hi twon,

Are you using the default theme?


b0x

That's the problem. This mod (like many other mods) also makes changes to some of the template files. Because you're not using the default template, the smite links are not removed. Although the smite links are still there, they will not work because the mod also disables the smite function.

If you let me know what theme you're using, I'll try to create a custom mod for you in the next week or so.

frenki

Can you update this for 2.0 ?

frenki

nm, little coding did the thing.

shroomAzoom

Frenki, care to share your modification? :)

Dr. Jay Sin

I'm also wondering if (how, apparently) this can be updated for use in 2.0.1.  I'm currently using 1.1.15, and am about to upgrade to 2.0.1.  I'm considering uninstalling and doing a fresh install of this wonderful mod using the parsing option from the mod.'s page (http://custom.simplemachines.org/mods/index.php?mod=817).  Has anyone had success manually installing using the parse option for 2.0.1?

funkythemunky

I´d like to know as well... does it work automatically in 2.0.2 when I install the mod?

funkythemunky

Hey folks is there really no one out there who has this mod installed on 2.0.2 and could tell me if it works or what to do to make it work?

Advertisement: