I'm sorry I have phpMyAdmin but i'll look at the users tablesIf navicat find users table, right click it, go to design table, then find VIP and change it to 1.
After that all users that register will be VIP.
Run this in your table to set all current registered users VIP:
UPDATE users SET vip = 1;
If Phpmyadmin reply and I'll post again.
I have setup Rev properly but I don't know how to make people have Free VIP when they join. I don't want people to pay for VIP. Thanks
/*-------------------------------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, vip) VALUES('" . $username . "', '" . $password . "', '" . $email . "', '" . $motto . "', '" . $credits . "', '" . $pixels . "', '" . $rank . "', '" . $figure . "', '" . $gender . "', '" . $seckey . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . $_SERVER['REMOTE_ADDR'] . "', '" . time() . "', '" . time() . "', '" . $sessionKey . "', '1')");
unset($sessionKey);
}
final public function deleteUser($k)
{
global $engine;
$engine->query("DELETE FROM users WHERE id = '" . $k . "' LIMIT 1");
$engine->query("DELETE FROM items WHERE userid = '" . $k . "' LIMIT 1");
$engine->query("DELETE FROM rooms WHERE ownerid = '" . $k . "' LIMIT 1");
}
final public function updateUser($k, $key, $value)
{
global $engine;
$engine->query("UPDATE users SET " . $key . " = '" . $engine->secure($value) . "' WHERE id = '" . $k . "' LIMIT 1");
$_SESSION['user'][$key] = $engine->secure($value);
}
Hey could you help me also as i have my own retro and obviously im owner on it but when i try to do vip commands it says that these commands are restricted to vip members only and with me being owner it should work for me If you know please reply Thank YouNo problem, Glad to help. Show some thanks by liking my post
Alright, click users table in database, towards the top it should say "Structure", click that.
Then scroll down, you'll find VIP click the edit button/pencil go to the column Default2 change the 0 to 1 and save it.
Next run this in your database to set all current registered users VIP:
UPDATE users SET vip = 1;
Cheers, need any help contact me.
UPDATE `users` SET `vip` = '1' WHERE vip = '0'
Would just be UPDATE `users` SET `vip` = '1'; don't need the WHERE `vip` = '0' it would just say error.Code:UPDATE `users` SET `vip` = '1' WHERE vip = '0'
Should be correct
Would just be UPDATE `users` SET `vip` = '1'; don't need the WHERE `vip` = '0' it would just say error.
That's if you want to give it to everyone who's registered. if you want to just give yourself vip go to users table and find your username, then go all the way to the column vip and change the 0 to a 1.
Oh when I tried using WHERE etc when I owned a hotel it said error But yeah easier without it