• Resolved John Smith

    (@vincentcox)


    I want to create a manual coded page in PHP to display a livestream (that I coded manually), but it only allows to display the livestream to platinium subscribers.

    What PHP function do I call to make use of your plugin’s user-roles to check if the current user is a platinum user?

    Let’s say:

    if (platinum==true) {...Livestream code...}

    Which files do I have to include in the PHP file? Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    If you are creating a custom template, you don’t need to include any files.

    You can do it like this:

    
    $user = get_current_user_id();
    $level_id = 1; if(rua_has_user_level($user,$level_id)) {
        //livestream
    }
    

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Manual PHP page’ is closed to new replies.