This topic has 1 reply, 2 voices, and was last updated 10 years by Laura.

  • Author
  • #39840
     miraclepray
    Participant

    Dear

    I created new user ID. When I logged in with user ID, I could see the “site admin” right bottom of the Forum, blog.. page as well

    When I clicked the “Site admin”, there is a “dash board” showed up.
    Dash board includes “Right now in Rtmedia” and “The lates from Paidpromembership.com”
    I would like to erase those parts. Is it possible?

    I will look forward hearing from you soon.

    Thank you

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

    Hello, that is a widget located at Appearance > Widgets
    If you have problems with users being redirected to admin panel, try this code in bp-custom.php in wp-content/plugins folder:

    COPY CODE
    
    /*Make sure profile is default component*/
    define('BP_DEFAULT_COMPONENT','profile');
    
    /*let us filter where to redirect */
    add_filter("login_redirect","bpdev_redirect_to_profile",10,3);
     
    function bpdev_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user)
    {
    if(empty($redirect_to_calculated))
    $redirect_to_calculated=admin_url();
     
    /*if the user is not site admin,redirect to his/her profile*/
    if(!is_site_admin($user->user_login))
    return bp_core_get_user_domain($user->ID );
    else
    return $redirect_to_calculated; /*if site admin or not logged in,do not do anything much*/
     
    }
    
    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 2 posts - 1 through 2 (of 2 total)

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

Log in with your credentials

Forgot your details?