Secret Page to VIP

Results 1 to 5 of 5
  1. #1
    Enthusiast dimitri54480 is offline
    MemberRank
    Feb 2011 Join Date
    44Posts

    Secret Page to VIP

    Hello, i made a code for the vip's on your retros

    [code][CODE]Hello, i made a code for the vip's on your retros

    Go to inc/tpl/generic-top.tpl

    Find
    Code:
    case 3:
            
                if (LOGGED_IN)
                {
                    $allowDisplay = false;
                }
                
                break;
    Under it, add
    Code:
                
                case 4:
            
                if ($users->GetUserVar(USER_ID, 'rank') <= 1)
                {
                    $allowDisplay = false;
                }
                
                break;
    Go to your Database in site_navi, in the structure
    add
    Code:
    ,'4'
    You can do secret page for your vip's, the visibility is fixed

    For fix the files, go in them

    and add under this code

    Code:
    if (!LOGGED_IN)
    {
       code........
    }
    with

    Code:
    else if ($users->GetUserVar(USER_ID, 'rank') <= 1)
    {
        /** Secret! **/ require_once "error.php"; exit; /** Secret! **/
    }
    You proteged for the user rank <= 1
    Last edited by dimitri54480; 11-04-11 at 05:54 PM.


  2. #2
    C# | C++ Emerica is offline
    MemberRank
    Oct 2010 Join Date
    GermanyLocation
    437Posts

    Re: Secret Page to VIP

    ok, nice..but easy to code, but thanks, i was too lazy ;)

  3. #3
    Enthusiast dimitri54480 is offline
    MemberRank
    Feb 2011 Join Date
    44Posts

    Re: Secret Page to VIP

    I know, but for beginners in coding :p
    For me, I am using a code to make other

  4. #4
    Garry's Mod is addictive! Law is offline
    MemberRank
    Dec 2009 Join Date
    NorwayLocation
    993Posts

    Re: Secret Page to VIP

    Seems good.. :p

  5. #5
    C# | C++ Emerica is offline
    MemberRank
    Oct 2010 Join Date
    GermanyLocation
    437Posts

    Re: Secret Page to VIP

    Quote Originally Posted by dimitri54480 View Post
    I know, but for beginners in coding :p
    For me, I am using a code to make other
    yeah it will help noobs ;)



Advertisement