Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: b0x on May 20, 2007, 09:59:38 AM

Title: Karma Applaud Only
Post by: b0x on May 20, 2007, 09:59:38 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=817)

This mod will disable karma smites. After installation users will only be allowed to use applauds.
Title: Re: Karma Applaud Only
Post by: keyboard on May 20, 2007, 10:14:03 AM
What an excellent idea.....In my mind , the role of Karma is to motivate users ...and this will do it..

Thanks
Title: Re: Karma Applaud Only
Post by: b0x on May 21, 2007, 07:11:45 AM
No worries! I'm glad you like it.
Title: Re: Karma Applaud Only
Post by: franklinrony on May 21, 2007, 11:59:31 PM
good idea, but smites option  appears in pms how delete to smites  thanks for the mod
Title: Re: Karma Applaud Only
Post by: b0x on May 22, 2007, 06:50:28 AM
You're right frony, I forgot to remove the smite link in the personal messages. Eventhough the smite link doesn't work (the smite function has been disabled) it is an oversight on my end. Thanks for letting me know.

This has been fixed in version 1.0.1.
Title: Re: Karma Applaud Only
Post by: ishy on May 22, 2007, 03:47:11 PM
Excellent job.  I have members that want to use the karma mod, but I don't like the ability to take away points.  This is great!
Title: Re: Karma Applaud Only
Post by: keyboard on May 22, 2007, 08:22:49 PM
Quote from: CryoSphere on May 22, 2007, 06:50:28 AM
You're right frony, I forgot to remove the smite link in the personal messages. Eventhough the smite link doesn't work (the smite function has been disabled) it is an oversight on my end. Thanks for letting me know.

This has been fixed in version 1.0.1.

Can I just install 1.0.1  over the original Just like normal   or do I have to uninstall the original first?
Title: Re: Karma Applaud Only
Post by: b0x on May 22, 2007, 10:05:35 PM
@keyboard
You'll have to uninstall the old version before installing version 1.0.1.

@ishy
Thanks. Glad you like it!
Title: Re: Karma Applaud Only
Post by: franklinrony on May 23, 2007, 11:51:45 AM
thanks for the new version
Title: Re: Karma Applaud Only
Post by: b0x on May 24, 2007, 01:09:59 AM
No worries.
Title: Re: Karma Applaud Only
Post by: qtime on May 26, 2007, 10:28:40 AM
just found out to fix this "problem" manually in the PersonalMessage.template.php and the Display.template.php files
Title: Re: Karma Applaud Only
Post by: b0x on May 27, 2007, 02:52:07 AM
qtime,

You'll also want to make some changes to Karma.php, otherwise your users will still be able to change an applaud link into a smite link.
Title: Re: Karma Applaud Only
Post by: qtime on May 28, 2007, 01:03:49 PM
ok thanks for the hint, but my members are not too smart... lol
Title: Re: Karma Applaud Only
Post by: ~Unkn0wn~ on May 30, 2007, 04:06:45 PM
Work on the latest SMF?
Title: Re: Karma Applaud Only
Post by: b0x on May 30, 2007, 07:28:59 PM
Yes, the mod works on the latest version of SMF (1.1.2).

Although I haven't tested it on version 1.1.1 or 1.1, I am fairly confident it should work on those versions as well.
Title: Re: Karma Applaud Only
Post by: phpmycoder on June 13, 2007, 07:21:29 PM
thanks for the mod, brilliant idea! 'disable negativity in the community'  8)
Title: Re: Karma Applaud Only
Post by: qtime on June 28, 2007, 01:35:50 AM
another trick is to leave the bad karma description blanc , there will be no - karma button visible if there is not text in this field. But the best way is this mod off course :).
Title: Re: Karma Applaud Only
Post by: watt on July 25, 2007, 08:09:05 PM
Cool mod , thank you
Title: Re: Karma Applaud Only
Post by: b0x on July 26, 2007, 09:03:23 AM
No worries, glad you like it!
Title: Re: Karma Applaud Only
Post by: kill3r on August 16, 2007, 05:21:53 AM
been looking for a mod like this. thank you
Title: Re: Karma Applaud Only
Post by: mrstime on August 27, 2007, 03:50:32 PM
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! 
Title: Re: Karma Applaud Only
Post by: jatterb on January 25, 2008, 09:12:08 PM
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.
Title: Re: Karma Applaud Only
Post by: b0x on January 26, 2008, 04:01:44 AM
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.
Title: Re: Karma Applaud Only
Post by: Johno69 on May 23, 2008, 05:36:47 AM
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..
Title: Re: Karma Applaud Only
Post by: Johno69 on May 23, 2008, 05:54:10 AM
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')

Title: Re: Karma Applaud Only
Post by: b0x on May 31, 2008, 08:34:03 PM
Sorry mate, I only just read your post. Good to hear you got it working.
Title: Re: Karma Applaud Only
Post by: slackerpunk on June 08, 2008, 05:58:50 AM
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
Title: Re: Karma Applaud Only
Post by: b0x on June 08, 2008, 09:18:53 AM
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?
Title: Re: Karma Applaud Only
Post by: Acans on June 15, 2008, 12:59:41 AM
installed without a problem, very nice mod.
Title: Re: Karma Applaud Only
Post by: b0x on June 16, 2008, 12:19:21 AM
Glad you like it!
Title: Re: Karma Applaud Only
Post by: twon on October 16, 2008, 04:20:19 PM
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.
Title: Re: Karma Applaud Only
Post by: b0x on October 17, 2008, 12:56:47 AM
Hi twon,

Are you using the default theme?
Title: Re: Karma Applaud Only
Post by: twon on October 17, 2008, 09:43:31 AM
Nope
Title: Re: Karma Applaud Only
Post by: b0x on October 17, 2008, 08:14:43 PM
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.
Title: Re: Karma Applaud Only
Post by: frenki on April 23, 2010, 08:41:13 AM
Can you update this for 2.0 ?
Title: Re: Karma Applaud Only
Post by: frenki on April 23, 2010, 01:12:00 PM
nm, little coding did the thing.
Title: Re: Karma Applaud Only
Post by: shroomAzoom on May 04, 2010, 02:27:51 PM
Frenki, care to share your modification? :)
Title: Re: Karma Applaud Only
Post by: Dr. Jay Sin on November 04, 2011, 12:03:27 AM
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?
Title: Re: Karma Applaud Only
Post by: funkythemunky on January 05, 2012, 03:32:43 PM
I´d like to know as well... does it work automatically in 2.0.2 when I install the mod?
Title: Re: Karma Applaud Only
Post by: funkythemunky on January 17, 2012, 08:53:32 AM
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?
Title: Re: Karma Applaud Only
Post by: Padre gremista on March 26, 2014, 10:10:37 PM
Is possible, update for compatible with SMF 2.0.7 version?
Title: Re: Karma Applaud Only
Post by: Padre gremista on March 28, 2014, 11:23:24 AM
None?
Title: Re: Karma Applaud Only
Post by: NekoJonez on March 29, 2014, 01:48:14 PM
I have it working on 2.0.7 without any issues. :D
Title: Re: Karma Applaud Only
Post by: Padre gremista on March 29, 2014, 10:58:50 PM
Quote from: NekoJonez on March 29, 2014, 01:48:14 PM
I have it working on 2.0.7 without any issues. :D

Here, happens 7 errors, before the installation.
Title: Re: Karma Applaud Only
Post by: NekoJonez on March 30, 2014, 09:25:43 AM
Could you please tell me which errors you have and the other mods you have installed?
Title: Re: Karma Applaud Only
Post by: Padre gremista on March 30, 2014, 01:18:50 PM
See the errors bellow in the annex.

Title: Re: Karma Applaud Only
Post by: Padre gremista on April 01, 2014, 01:09:53 PM
Nobody with same errors?
Title: Re: Karma Applaud Only
Post by: NekoJonez on April 03, 2014, 08:24:17 AM
Attach the files please;
Title: Re: Karma Applaud Only
Post by: Padre gremista on April 09, 2014, 07:40:58 AM
Quote from: NekoJonez on April 03, 2014, 08:24:17 AM
Attach the files please;

It's in my last post.
Title: Re: Karma Applaud Only
Post by: NekoJonez on April 10, 2014, 07:02:09 AM
The php files.