• Hi,
    I was trying to manage multiple-registration forms through RCP plugin for a different type of user, but, I couldn’t make it as there is no such functionality in RCP. therefore, I’ve tried to use an Ultimate Member plugin to fulfill the required functionality. But, I am not sure how to integrate it with RCP as there is no detailed step by step tutorial by RCP or UM too, even though both suggest using each other for further functionalities.

    the problem is, when I create different registration forms by Ultimate Member, I am not able to integrate RCP’s payment gateways or terms & conditions to show up in UM created registration forms. If I use UM’s shortcodes in each different pricing plan, nothing connected to RCP, and If I use RCP’s shortcodes, it will use RCPs registration form, which is not fit in my request.

    I will appreciate it if someone shares the detailed step by step integration of these two plugins. thank you.

Viewing 15 replies - 1 through 15 (of 16 total)
  • same issue here. I was looking for this for long time. any tutorial about using custom UM forms within rcp membership levels is really awesome.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @samtoronto @fm20201

    I’ll play with RCP + Ultimate Member this week and see if we can integrate the two with just a few coding and tweaking configurations.

    If anyone already has an idea, please let us know so i can write a doc article to help everyone in the forum.

    I’ll keep you posted.

    Regards,

    thank you Champ Camba, cannot wait to see this integration, long time to do list.

    Hi,

    same problem on dealing with this two plugin integration. It would be nice to have the solution soon, thank you.

    Also interested in the answer!

    • This reply was modified 4 years, 6 months ago by swhayes.

    I also interested with this.

    Champ have you tried with RCP?

    Not sure if this has been resolved yet, but this is how the setup I used for our site. After months of messing around trying to figure this out, these are the settings that I have that works.

    Hopes this helps. Feel free to check out our website https://www.thehorsebc.world. But it would be great if UM could do content restriction and take payments. Which could be done either by building it in or separate add-on plugins.

    In Restrict Content Pro (RCP)
    – create a Membership Level
    – assign a User Role
    – save

    In Ultimate Member (UM)
    – create user role with whatever permissions and access settings
    – save
    – Ultimate Member – Settings
    – Appearance
    – Registration Form
    – choose a Registration Default Role
    // here choose the same role as the one from RCP Membership Level
    – save

    This should link the two setting to the one role. It will add the Site User Role and add an active Membership when the user signs up using RCP registration form.

    To get RCP membership account to show up in UM account tab I use a custom code to add the RCP shortcode into a UM account tab. The code below is what I use by creating a custom plugin.

    /*********************************************************************
    * function to add a tab to UM user account page to show RCP MEMBERSHIP
    **********************************************************************/
    /* add new tab called “membership” */

    add_filter(‘um_account_page_default_tabs_hook’, ‘my_membership_tab_in_um’, 300 );
    function my_membership_tab_in_um( $tabs ) {
    $tabs[700][‘membership’][‘icon’] = ‘um-icon-ios-box’;
    $tabs[700][‘membership’][‘title’] = ‘My Membership’;
    $tabs[700][‘membership’][‘custom’] = true;
    $tabs[700][‘membership’][‘show_button’] = false;
    return $tabs;
    }

    /* make our new tab hookable */
    add_action(‘um_account_tab__membership’, ‘um_account_tab__membership’);
    function um_account_tab__membership( $info ) {
    global $ultimatemember;
    extract( $info );

    $output = $ultimatemember->account->get_tab_output(‘membership’);
    if ( $output ) { echo $output; }
    }

    /* Finally we add some content in the tab */
    add_filter(‘um_account_content_hook_membership’, ‘um_account_content_hook_membership’);
    function um_account_content_hook_membership( $output ){
    ob_start();
    ?>
    <?php echo do_shortcode(‘[subscription_details]’); ?>
    <?php
    $output .= ob_get_contents();
    ob_end_clean();
    return $output;
    }

    WOW!! @thehorsebc

    I have been trying to get YITH ubscription and then Woocommerce Subcription to work with my Ultimate Member website but have finally been told by UM to ue RCP…

    It look like you have it craced but I do not fully understand all the directions…

    Would appreciate any help

    We are using the skillfulplugins Restrict Content Pro/Ultimate Member plugin and it seems to do very little. As far as I can tell, from inside the UM profile, if the user clicks the settings icon, and then clicks ‘My Account’, on the page that opens there is a tab where you can see your active RCP membership and click links to make changes. We were hoping for more integration options than that.

    @thehorsebc I wanted to try your solution, but my PHP is terrible. When I created a new plugin with your code I got syntax errors on lines 21 and 41. This was my plugin code. It would be awesome if you could take a look at it and let me know if there is anything obviously wrong. It was great to finally see some more discussion about UM RCP integration.

    <?php
    /*
    Plugin Name: UMRCP Membership Tab
    Plugin URI:
    Description: A plugin that should create a new RCP membership tab in Ultimate Member
    Version:
    Author:
    Author URI:
    License:
    License URI:
    */
    /*********************************************************************
    * function to add a tab to UM user account page to show RCP MEMBERSHIP
    **********************************************************************/
    /* add new tab called “membership” */

    add_filter(‘um_account_page_default_tabs_hook’, ‘my_membership_tab_in_um’, 300 );
    function my_membership_tab_in_um( $tabs ) {
    $tabs[700][‘membership’][‘icon’] = ‘um-icon-ios-box’;
    $tabs[700][‘membership’][‘title’] = ‘My_Membership’;
    $tabs[700][‘membership’][‘custom’] = true;
    $tabs[700][‘membership’][‘show_button’] = false;
    return $tabs;
    }

    /* make our new tab hookable */
    add_action(‘um_account_tab__membership’, ‘um_account_tab__membership’);
    function um_account_tab__membership( $info ) {
    global $ultimatemember;
    extract( $info );

    $output = $ultimatemember->account->get_tab_output(‘membership’);
    if ( $output ) { echo $output; }
    }

    /* Finally we add some content in the tab */
    add_filter(‘um_account_content_hook_membership’, ‘um_account_content_hook_membership’);
    function um_account_content_hook_membership( $output ){
    ob_start();
    ?>
    <?php echo do_shortcode(‘[subscription_details]’); ?>
    <?php
    $output .= ob_get_contents();
    ob_end_clean();
    return $output;
    }

    @thehorsebc this is super cool! But the same as @mtbrex, I can’t get it to work.Any thoughts why the I am getting an error on the following line. It says it does not know ‘membership’

    $tabs[700][‘membership’][‘title’] = ‘My_Membership’;

    Sorry, I found the issue. Going to see what happens next. Thanks for the hard work you have done with the integration!

    chers

    @iwebcrafter what was your problem? Maybe mine has the same thing.

    regarding code problems… I think it might be as simple as the quotation marks

    ie paste what you copy off a browser into a text file… look at the ‘ marks – they’re wrong

    Correct the quotes got me. Thanks. Maybe @mtbrex saw this too.

    greetz…

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Restrict Content Pro Integration’ is closed to new replies.