Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mathieu Viet

    (@imath)

    Hi,
    Thanks for your feedback, just read your very nice review: thanks for it ??

    i think you can build this link if you know the user id using a code like this :

    function airsid_get_rendez_vous_user_link( $user_id = 0 ) {
       if ( empty( $user_id ) || ! bp_is_active( 'rendez_vous' ) ) {
           return false;
       }
    
       return trailingslashit( bp_core_get_user_domain( $user_id ) . buddypress()->rendez_vous->slug );
    }
    Thread Starter airsid

    (@airsid)

    Hi,
    Thanks but i don’t know php enough, I just know how to copy/paste in php files ??
    I was wondering how to get the link to create a button in front end so buddypress members can access to their rendez-vous without passing by the menu, so the link must adapt to each login user.
    Is it to complicate ? If yes thanks anyway.

    Thread Starter airsid

    (@airsid)

    Like a widget in fact ??

    Plugin Author Mathieu Viet

    (@imath)

    Hi,

    I wasn’t sure it was a dynamic menu you were looking for. I thought it was a link to a specific user.

    In this case, you can use the BuddyPress nav menu feature. To do so go into the Appearance > menu page in your WordPress administration. Then create a new menu without assigning it a location.

    If the BuddyPress meta box is not displayed on the screen, click on the screen option tab at the top of the page and activate BuddyPress checkbox. You will be able to see the BuddyPress dynamic links menu box. Then add the “rendez-vous” link by activating its checkbox. Save the menu. Finally in the Appearance > Widgets, add a new custom menu widget and select the menu you saved.

    Thread Starter airsid

    (@airsid)

    HI,
    Thanks a lot, perfect!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link to user rendez-vous’ is closed to new replies.