Quote:
Originally Posted by MonkYZ
Hello everyone ! Can somebody tell me how can i substract points from some members ? For example, i have members that are not active anymore, but they still keep beeing first in the Experience charts... and i want them to lose points for not beeing active. Is there a way (beside giving them infraction points) ?
|
We have managed it, by multiplying activity by count_post and count_thread
You need to change class_experience.php
Add one line about line no 642
PHP Code:
$user['xperience_ppd'] = $this->GetPPD($user, $vbulletin->options['xperience_avgppd']);
and then multiply Summary Thread
PHP Code:
//Summary Thread
$xperience['count_thread'] += $xperience['count_threads'];
$xperience['count_thread'] += $xperience['count_threads_sg'];
$xperience['count_thread'] += $xperience['count_thread_votes'];
$xperience['count_thread'] += $xperience['count_thread_replycount'];
$xperience['count_thread'] += $xperience['count_thread_views'];
$xperience['count_thread'] += $xperience['count_thread_stickies'];
$xperience['count_thread'] += $xperience['count_thread_tags'];
$xperience['count_thread'] = floor($xperience['count_thread']*$user['xperience_ppd']/100);
and
PHP Code:
//Summary Post
$xperience['count_post'] += $xperience['count_posts'];
$xperience['count_post'] += $xperience['count_posts_sg'];
$xperience['count_post'] += $xperience['count_post_thanks'];
$xperience['count_post'] += $xperience['count_post_thanks_use'];
$xperience['count_post'] += $xperience['count_post_attachment'];
$xperience['count_post'] += $xperience['count_post_attachment_views'];
$xperience['count_post'] = floor($xperience['count_post']*$user['xperience_ppd']/100);
(just last lines were added).
You can do it in different point groups too.
BTW, would like to see it by default in Phalynx mod. :-)
It makes ranks more dynamic, and forces users to be active.
Regards