Direct Links to pages

This topic contains 3 replies, has 2 voices, and was last updated by  Paolo 8 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #154531

    sumi
    Expired Member
    Post count: 97

    hi, trying to use this, but not working for me 🙁

    as per previous posts…

    
    
    function my_nav_menu_my_place($menu) {      
    global $wpdb,$current_user;
     get_currentuserinfo();
     $username= $current_user->user_login;
          if (!is_user_logged_in())
                    return $menu;
            else
    
                    $menuextra = '<li><a href="/author/' . $username . '/?geodir_dashbord=true&stype=gd_place">' . __('My Profile') . '</a></li>';
                    
                                    $menuextra2 = '<li><a href="/author/' . $username . '/?geodir_dashbord=true&stype=gd_event">' . __('My Adverts') . '</a></li>';
                    $menu = $menu . $menuextra . $menuextra2;
                    return $menu;
    }
    

    Any views?

    #154613

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    which previous post and what are you trying to achieve with this?

    Let us know,

    Thanks

    #154685

    sumi
    Expired Member
    Post count: 97

    found a work around…

    user_firstname instead of user_login

    doesnt work for Admin, but I’m the only admin so can live with.

    Was trying to create links in dashboard…
    Also, is there a way (in the dashboard) of listing previous events for user (so user can see all their previous events)

    Many thanks

    #155257

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    there is a selector on each event page (author dashboard included) that allows to select between all, upcoming, today and past.

    Thanks

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

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

Open Support Ticket