2014-01-02, 02:31 PM
I want to make a Group Reputation, based on User Reputation.
Well, my points is about edit reputation.php
I created a row in database (usergroup) and named it as TotalRepPoint
I want everytime I + or - reputation of an user, it will automatic + or - of his/her main group.
As I know, first, it must have a sql to select main group of user.
Than, in code line of + or - reputation point, it must have a sql to + or - TotalRepPoint of database usergroup.
But I'm not good at php and sql, I just can write some tiny code. So, please help me in this situation.
Thanks!
Well, my points is about edit reputation.php
I created a row in database (usergroup) and named it as TotalRepPoint
I want everytime I + or - reputation of an user, it will automatic + or - of his/her main group.
As I know, first, it must have a sql to select main group of user.
Than, in code line of + or - reputation point, it must have a sql to + or - TotalRepPoint of database usergroup.
But I'm not good at php and sql, I just can write some tiny code. So, please help me in this situation.
Thanks!