This topic has 11 replies, 2 voices, and was last updated 9 years by Laura.

  • Author
  • #45431
     tdarnold
    Participant

    After signing up I can no longer navigate to any pages. Everything redirects to the home page. FWIW I have the code installed in the functions.php to make it free for women.

    #45434
     Laura
    Moderator

    Hello, can you share your functions.php file here?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #45440
     tdarnold
    Participant

    <?php
    /**
    * @package WordPress
    * @subpackage Sweetdate
    * @author SeventhQueen <themesupport@seventhqueen.com>
    * @since Sweetdate 1.0
    */

    /**
    * Sweetdate Child Theme Functions
    * Add extra code or replace existing functions
    */

    /**
    * When registering, add the member to a specific membership level
    * based on the field value he has selected
    *
    * @global object $wpdb
    * @global object $bp
    * @param integer $user_id
    */
    function kleo_pmpro_default_level($user_id) {
    global $wpdb, $bp;

    //Change this with your field name
    $field_name= “I am a”;

    //Change the field value
    $value_to_match = “Woman”;

    //Membership level id
    $membership_level = 2;

    //Done editing
    $field_id = $wpdb->get_var( $wpdb->prepare( “SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s”, $field_name ) );
    if ($_POST[‘field_’.$field_id] == $value_to_match) {
    pmpro_changeMembershipLevel($membership_level, $user_id);
    }
    }

    function kleo_mu_pmpro_default_level($user_id, $password, $meta) {
    global $bp, $wpdb;

    //Change this with your field name
    $field_name= “I am a”;

    //Change the field value
    $value_to_match = “Woman”;

    //Membership level id
    $membership_level = 1;

    //Done editing
    $field_id = $wpdb->get_var( $wpdb->prepare( “SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s”, $field_name ) );
    $field_value = $meta[‘field_’.$field_id];
    if ( $field_value == $value_to_match ) {
    pmpro_changeMembershipLevel($membership_level, $user_id);
    }
    }

    if (is_multisite()) {
    add_action( ‘wpmu_activate_user’, ‘kleo_mu_pmpro_default_level’, 10, 3);
    } else {
    add_action(‘user_register’, ‘kleo_pmpro_default_level’);
    }

    ?>

    #45442
     tdarnold
    Participant

    Thanks for the quick response BTW

    #45444
     Laura
    Moderator

    Hello, please share a link to your website and also login credentials to ftp and wp-admin 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #45446
     tdarnold
    Participant
    This reply has been set as private.
    #45447
     Laura
    Moderator

    Hello, it doesnt redirect me, but if it does to you, it may be because of a plugin you have installed, see attachment. It may be causing that

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    Attachments:
    You must be logged in to view attached files.
    #45450
     tdarnold
    Participant

    Ok I will check it and appreciate your help. One last question What is the link to get the theme API?

    #45451
     Laura
    Moderator

    Hello, what do you mean? Purchase code for updates?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #45452
     tdarnold
    Participant

    Turns out it was the “404 to Start: plugin

    #45458
     tdarnold
    Participant

    From the sales page:
    Easy update using Envato WordPress Toolkit. This is included in our theme, all you need is to set your username and API key is our smart Admin Panel

    #45469
     Laura
    Moderator

    Hello, look here http://themeforest.net/help/api
    In theme options you will find where to insert it

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 12 posts - 1 through 12 (of 12 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?