Showing the current user's listing detail in their dashboard

This topic contains 8 replies, has 4 voices, and was last updated by  Paolo 8 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #41313
    #41349

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the “my listings” page is this one:

    http://yoursite/author/username/?geodir_dashbord=true&stype=gd_place

    The username part of the URL is dynamic, each user has its own.

    There are several plugin allowing for redirect after login, but I’m not sure about one that can redirect to a dynamic page.

    Otherwise, below the GD >> login box widget, after logging in you can show a link to this page. (see image attached)

    Another option would be to install buddypress and our buddyoress integration. In this case the dashboard of listings is integrated in buddyrpess profile and to redirect to a buddypress profile after login is much easier: https://www.google.com/search?q=buddypress+redirect+user+to+profile+after+login&ie=utf-8&oe=utf-8

    Thanks

    #41864

    DR
    Expired Member
    Post count: 78

    Hi Paolo,
    I have been trying to get this to work for a little while now.. but not so lucky.
    Adding this bit of code to the functions.php I was able to get it to redirect to:

    http://mysite/user_nicename/ while the profile is actually in http://mysite/members/user_nicename/

    /*
    Following Function Redirect the user to profile page after login
    */

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

    }

    (credits: https://codeofsandy.wordpress.com/2015/04/21/buddypress-redirect-user-to-profile-page-after-login/)

    Can you help with this please?

    #41950

    Paolo
    Site Admin
    Post count: 31206

    Have you tried this? https://wordpress.org/plugins/bp-redirect-to-profile/

    Here there is someone that seem to have the exact same problem:

    https://buddypress.org/support/topic/redirect-to-profile-page/

    Let us know,

    Thanks

    #41973

    Wayne Harvey
    Expired Member
    Post count: 102

    Hi Paolo,
    I too am looking for this kind of functionality, ie. a profile page where the user can view all his stuff including listings and favorites. I recall seeing a GD staff comment a few months ago while researching this that GD was planning on revamping the whole author pages and registration part of the GD system. Is that still on the agenda and if so do you have any details and timetable??
    Thanks
    Wayne

    #41974

    DR
    Expired Member
    Post count: 78

    Hi Paolo,
    Thanks for the response. I have actually tried that your suggestion along with a host of others (including plugins). I find the problem is the same in all the situations as I stated. It redirects to http://siteadrress/user_nicename while profile is at http://siteadrress/members/user_nicename

    Will keep trying and will post any successes but in the meanwhile, I am standing by for suggestions please..

    Cheers.

    #42099

    Paolo
    Site Admin
    Post count: 31206

    Hi @Wayne Harvey, at the moment we only worked on Buddypress to extend that.

    I’m looking into Ultimate Member https://wordpress.org/plugins/ultimate-member integration, but given that BuddyPress really works well with GD now, we pushed this for later development.

    @Legionnaire I did test the code myself today and it works from wp-login.php, but not if logging in using one of GD login forms.

    I’ve asked to Kiran to verify why and possibly add redirect options in the compatibility plugin, so we don’t have to add extra code.

    We will let you know,

    Thanks

    #42123

    DR
    Expired Member
    Post count: 78

    Hi Paolo,
    Thank you for the follow up and response. I am looking forward to seeing this sorted out.

    Cheers

    #42241

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    we added an option to redirect all users to profile page in our BP integration.

    It will be available with next release.

    Thank you

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket