Free VIP script in REVCMS

Results 1 to 5 of 5
  1. #1
    Elite Member Muhd Nazmi is offline
    Member +Rank
    Dec 2012 Join Date
    Kepler22Location
    107Posts

    Free VIP script in REVCMS

    in me.php : i put this on but it doesn't works

    <?php

    mysql_query("UPDATE users rank='2' WHERE rank ='1' AND id="'".$SESSION['id'].'";")
    ?>


  2. #2
    Member Nate Curry is offline
    MemberRank
    Dec 2012 Join Date
    80Posts

    Re: Free VIP script in REVCMS

    i think it is <?php

    mysql_query("UPDATE users rank= WHERE rank ='2' AND id="'".$SESSION['id'].'";")
    ?>
    idk but i think its that sory if its not

  3. #3
    Not so spooky... MrSpooks is offline
    Grand MasterRank
    May 2010 Join Date
    Under a rockLocation
    1,068Posts

    Re: Free VIP script in REVCMS

    try this



    <?php

    mysql_query("UPDATE users SET rank = '2' WHERE rank = '1'.$SESSION['id'].'";")
    ?>

  4. #4
    Grand Master Sledmore is offline
    Grand MasterRank
    Jun 2009 Join Date
    1,133Posts

    Re: Free VIP script in REVCMS

    Right, if you want to give users it by default (when they sign up), go to app/class.users.php - search for this:

    PHP Code:
    $this->addUser($template->form->reg_username$core->hashed($template->form->reg_password), $template->form->reg_email$_CONFIG['hotel']['motto'], $_CONFIG['hotel']['credits'], $_CONFIG['hotel']['pixels'], 1
    Replace ONLY that bit with:

    PHP Code:
    $this->addUser($template->form->reg_username$core->hashed($template->form->reg_password), $template->form->reg_email$_CONFIG['hotel']['motto'], $_CONFIG['hotel']['credits'], $_CONFIG['hotel']['pixels'], 2
    Then every user will have rank 2.

    Now if you want the current users to have VIP, run this SQL query in Navicat/PHPMyAdmin or whatever else:

    Code:
    UPDATE `users` SET `rank` = '2';
    Or, if you want to run it on a page, just stick this on:

    PHP Code:
    mysql_query("UPDATE `users` SET `rank` = '2'"); 
    That should do the trick.
    Last edited by Sledmore; 15-12-12 at 07:22 AM. Reason: I failed on the CODE tags. :{

  5. #5
    Elite Member Muhd Nazmi is offline
    Member +Rank
    Dec 2012 Join Date
    Kepler22Location
    107Posts

    Re: Free VIP script in REVCMS

    Thanks !



Advertisement