RevCMS: Default amount of VIP-Points when register?

Tando

Norwegian Steam Engine
Oct 23, 2011
83
5
Hello.
I want to set a default amount of VIP-Points that users can register with.
Does anyone know how to do this?
I am using RevCMS as mentioned in the title.

Thanks in advance.
 

FunkyBohh

Member
Jun 21, 2011
181
6
I know where the file is located. I need to know where in the file I can edit the default amount of VIP-Points. Damn.

HTML:
    /*-------------------------------Adding/Updating/Deleting users-------------------------------------*/
   
    final public function addUser($username, $password, $email, $motto, $credits, $pixels, $rank, $figure, $gender, $seckey)   
    {       
        global $engine;                                   
        $sessionKey = 'RevCMS-'.rand(9,999).'/'.substr(sha1(time()).'/'.rand(9,9999999).'/'.rand(9,9999999).'/'.rand(9,9999999),0,33);
        $engine->query("INSERT INTO users (username, password, mail, motto, credits, activity_points, rank, look, gender, seckey, ip_last, ip_reg, account_created, last_online, auth_ticket) VALUES('" . $username . "', '" . $password . "', '" . $email . "', '" . $motto . "', '" . $credits . "', '" . $pixels . "', '" . $rank . "', '" . $figure . "', '" . $gender . "', '" . $seckey . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . time() . "', '" . time() . "', '" . $sessionKey . "')");   
        unset($sessionKey);

Their After Values Find What You Need To Change And Save
 

Sab

I love milfs.
Jun 25, 2011
1,212
136
Run this in your db
Code:
ALTER TABLE users ALTER COLUMN vip_points SET DEFAULT 'howevermuch points you want to set it too'

Tell me if that works
 

Users who are viewing this thread

Top