disable karma function for a single user

Started by dsanchez, October 16, 2007, 10:47:35 AM

Previous topic - Next topic

dsanchez

Hello guys

Just notice one user in our forum is doing a bad use of the karma function, giving everyone -1.

Is there a way to disable this option for this specific user?

Thanks in advance.

David.

Kindred

There are no member specific permissions in SMF at this time.

create a special group for that user: FORBID the karma function for that group, and assign that user to that group.
Сл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."

Neorics

or just warn him to stop it or you'll ban him or install visual warning mod to have a variety
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

Rumbaar

Not sure of the correct syntax for extracting the viewing person ID, but you might want to try a slight hack to your Display.template.php file.  It wont take out their ability, if they type in the URL directly but it should (if works) take away the +/- buttons for them so they wont be able to access them directly.  For all intended purposes they'll think they've been denied the ability.

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow']) && ($context['member']['id'] != {offending users ID here})

Hopefully a SMF coding guru will correct any syntax errors.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Kindred

why bother with a hack when you can do it with existing features?
Сл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."

Rumbaar

You have to then define them in a 'custom' membergroup.  Which in a way singles them out to others and might even 'cause more of a reaction from him/others for his/her actions.  This way it's hidden from the person who seems to want to misuse the feature, thus not 'rewarding' them with their own membergroup.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Kindred

rumbaar... you don't seem to understand how the "additional groups" function works.

if you assign someone to a group in the additional groups selection, then that group is not displayed...
Сл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."

Rumbaar

It wasn't clear to me, at least, that in your initial post you meant for them to assigning that person to the newly created membergroup as an 'additional group'.

That feature may not be fully known to all, but now that you've made it clear they can explore that option as well :)
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: