RevCMS check rank.

Results 1 to 6 of 6
  1. #1
    Boomshakalaka resize is offline
    MemberRank
    Dec 2011 Join Date
    286Posts

    RevCMS check rank.

    Hi

    I need help to fix a check rank statement for revcms so a certain rank only can access the Bot pge and make bots.

    Could someone help me with this?

    i tried with this but no success

    <?php
    //Change 3 to the minimum rank
    if($rank >= 3)
    {
    //Show the content here
    }
    else
    {
    echo 'You have to be VIP';
    }
    ?>


  2. #2
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: RevCMS check rank.

    is $rank defined ?

  3. #3
    Boomshakalaka resize is offline
    MemberRank
    Dec 2011 Join Date
    286Posts

    Re: RevCMS check rank.

    oh crap i forgot :P, i will try it now

  4. #4
    Member Sheenieboy is offline
    MemberRank
    Jan 2012 Join Date
    66Posts

    Re: RevCMS check rank.

    Use this:
    Code:
    <?php
    $rank = $_SESSION['user']['rank']; // Gets the rank of your user
    if($rank <= '3')
    {
    echo 'You have to be Vip';
    die;
    }
    ?>

  5. #5
    Boomshakalaka resize is offline
    MemberRank
    Dec 2011 Join Date
    286Posts

    Re: RevCMS check rank.

    Quote Originally Posted by Sheenieboy View Post
    Use this:
    Code:
    <?php
    $rank = $_SESSION['user']['rank']; // Gets the rank of your user
    if($rank <= '3')
    {
    echo 'You have to be Vip';
    die;
    }
    ?>
    Thanks, but i solved it :)

    MOD please close this thread :)
    Last edited by resize; 14-04-13 at 08:09 PM.

  6. #6
    Account Upgraded | Title Enabled! r63 is offline
    MemberRank
    Jan 2012 Join Date
    apt-get GPSLocation
    430Posts

    Re: RevCMS check rank.

    Quote Originally Posted by Sheenieboy View Post
    Use this:
    Code:
    <?php
    $rank = $_SESSION['user']['rank']; // Gets the rank of your user
    if($rank <= '3')
    {
    echo 'You have to be Vip';
    die;
    }
    ?>
    You do not need to put integers in quotation marks



Advertisement