hello
is there anyway to make this rep 2 for threads and 1 for reply's instead ?
or would changing to this work
PHP Code:
if ($type == 'thread')//if its a thread and not a post/reply
{
$result = $vbulletin->db->query_first("SELECT reputation FROM user WHERE userid =".$vbulletin->userinfo['userid']." ORDER BY userid ASC");
$punkty=$result['reputation']+2;//increase reputation by 2 CHANGE IF REQUIRED
$vbulletin->db->query_write("UPDATE user SET reputation=".$punkty." WHERE userid=".$vbulletin->userinfo['userid']);
$senderpermissions=2;
$registry =& $vbulletin;
}
else//if its anything but a thread, hense; post/reply
{
$result = $vbulletin->db->query_first("SELECT reputation FROM user WHERE userid =".$vbulletin->userinfo['userid']." ORDER BY userid ASC");
$punkty=$result['reputation']+1;//increase reputation by 1 CHANGE IF REQUIRED
$vbulletin->db->query_write("UPDATE user SET reputation=".$punkty." WHERE userid=".$vbulletin->userinfo['userid']);
$senderpermissions=2;
$registry =& $vbulletin;
}