options['vbbux_enabled'] == 1) { // check if it should give the thread creator some points if ($vbulletin->options['vbbux_perreply'] != 0 && $foruminfo['vbbux_perreply'] != 0) { // generate the number of points to add $givepoints = $vbulletin->options['vbbux_perreply'] * $foruminfo['vbbux_perreply']; { // check if it should give any points if (isset($givepoints) && ($givepoints != 0)) { // send the query to give the points $vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . $vbulletin->options['vbbux_pointstable'] . " SET `" . $vbulletin->options['vbbux_pointsfield'] . "` = `" . $vbulletin->options['vbbux_pointsfield'] . "` + " . $givepoints . " WHERE userid = '" . $threadinfo['postuserid'] . "' AND vbp_receivespoints = '1' "); } } } } } ?>