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

  • Author
  • #70011
     Santos Ramos
    Participant

    Hello! I have two small problems with the site.

    I just created a free membership but I don’t think is working properly.

    If I click on the members and groups button it will send you to the memberships levels page where you can select the free membership.

    If you click on the forums button it will send you directly to the Crate Account page skipping the free membership page.

    If I click on the signup button on top of the page it will open a popup window and then will send you to the Crate Account skipping the free membership page.

    Also, the I would like the blog to be public but it requires to login to view it.

    Can you please help me fix the problem!

    Thanks!

    #70012
     Santos Ramos
    Participant

    Here is the code I added to the child theme, I’m not sure is the code is the problem.

    <?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
    */

    add_action(‘after_setup_theme’,’kleo_my_actions’);

    function kleo_my_actions()
    {
    /* disable matching on member profile */
    remove_action(‘kleo_bp_before_profile_name’, ‘kleo_bp_compatibility_match’);

    /* Replace the heart over images */
    add_filter(‘kleo_img_rounded_icon’, ‘my_custom_icon’);

    /* Replace the heart from register modal */
    add_filter(‘kleo_register_button_icon’, ‘my_custom_icon_register’);

    /* Replace the heart from About us widget */
    add_filter(‘kleo_widget_aboutus_icon’, ‘my_custom_icon_about_widget’);
    }

    /* Replace the heart with a camera icon function */
    function my_custom_icon () {
    return ‘camera’;
    }

    /* Replace the heart from register modal with a user icon function */
    function my_custom_icon_register () {
    return ‘edit’;
    }
    /* Replace the heart from about us widget with a user icon function */
    function my_custom_icon_about_widget () {
    return ‘user’;
    }

    /**
    * Sweetdate Child Theme Functions
    * Login no spaces code
    */

    add_action(‘bp_init’,’bpdev_remove_bp_pre_user_login_action’);
    function bpdev_remove_bp_pre_user_login_action(){
    remove_action( ‘pre_user_login’, ‘bp_core_strip_username_spaces’ );
    }

    //add a filter to invalidate a username with spaces
    add_filter(‘validate_username’,’bpdev_restrict_space_in_username’,10,2);
    function bpdev_restrict_space_in_username($valid,$user_name){
    //check if there is an space
    if ( preg_match(‘/\s/’,$user_name) )
    return false;//if myes, then we say it is an error
    return $valid;//otherwise return the actual validity
    }

    /* Filter the redirect url for login*/
    add_filter(“login_redirect”,”kleo_redirect_to_profile”,100,3);
    function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){
    /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
    if(!is_super_admin($user->ID))
    return bp_core_get_user_domain($user->ID );
    else
    return $redirect_to_calculated; /*if site admin*/
    }

    ?>

    #70013
     Santos Ramos
    Participant
    This reply has been set as private.
    #70129
     Laura
    Moderator

    Hello, the membership page should apper after an user signs up and if the user doesnt already have a membership, each time he logs in he will see it. That is how it should be 🙂
    You can lock all your pages just for free membership so they need to select it to see 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 🙂

    #70326
     Santos Ramos
    Participant

    Thanks for the help.
    Now I understand how the membership works!

    About the blog.
    I would like the blog to be viable by anyone!
    Right now I need to login to be bale to see the blog.

    The blog is not locked to the free membership.

    How can I fix this?

    Thanks!

    #70494
     Laura
    Moderator

    Hello, that is strange, could you share admin credentials? 🙂

    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 🙂

    #70496
     Santos Ramos
    Participant
    This reply has been set as private.
    #70816
     Laura
    Moderator

    Hello, your blog is not restricted. Both users see the same, empty blog page. i see ou have posts so maybe the isue is related to a plugin that could be creating a conflict. Please try deactivating one by one until its fixed 🙂
    Let me know

    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 🙂

    #71001
     Santos Ramos
    Participant

    Thanks Laura,

    Paid Memberships Pro is the problem.

    I deactivated all the plugins and when I activate Paid Memberships Pro I get the blocked blog.

    If I go to Paid Memberships Pro and unselect blog, the blog still blocked.

    Can you please help!

    Thanks,
    Santos

    Attachments:
    You must be logged in to view attached files.
    #71247
     Laura
    Moderator

    Hello, you have articles,uncategorized and general checked, this blocks the posts showsn in blog. I unchecked those, and now its fixed 🙂

    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 10 posts - 1 through 10 (of 10 total)

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

Log in with your credentials

Forgot your details?