Automaticly get karma whenever a user poss or start new topic

Started by ArkServer, February 26, 2006, 08:26:30 AM

Previous topic - Next topic

ArkServer

Hello :)

How can i change the karma so that when a user posts a msg or creates a new topic they automatically get +5 (new post) or +10(new topic) karma?

I tried to do this manually but i don't know how and got stuck.


creatures

Hello,
Display.template.php

Find $modSettings['karmaLabel'] and add $message['member']['posts']

$modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'] + $message['member']['posts'] * 5


$message['member']['posts'] will make the trick, it will automaticly increase the karma member's post multiply 5.

I haven't tried $message['member']['topic'] it may work.

Anyway, I am looking for counting member's online time by which so I will also increase the karma.
I have tried
$context['member']['total_time_logged_in']['hours']
$context['member']['posts_per_day']
$message['member']['posts_per_day']

I am trying to get poster's online time that he spent his time at forum.

Any ideas?

fiver

Hi creatures,

Thanks for the first tip on multiplying the post into karma. I have posted a request before but without any success, and not to double post, here is my request:
http://www.simplemachines.org/community/index.php?topic=71761.0

Are you able to include the 'topic'? How about the other items in my list? Look forward to your reply.

;)




onijin

I'm trying to turn the karma system in a "overall user's value" where it incoporates everything they do in the forums

I got posts to effect the karma (thanks for that) and also number of PM messages.

I also, can't seem to get the topics to affect karma.

I've tried:
$message['member']['topic']
$message['member']['topics']
$context['member']['topic']
$context['member']['topics']
$message['member']['num_topic']
$message['member']['num_topics']
$context['member']['num_topic']
$context['member']['num_topics']

but they all return a value of 0.

The values I'm trying to have effect karma are:
topics, hours online, # of attatch up (most important), and # of attatch down, but none of those work...

Any advice?

Advertisement: