A+ individual user calendars and block booking

Hi all,

I have installed A+ on my jobs site for temp workers. I have attempted to crate individual calendars for every user using the code supplied by Hakan in this previous thread:
However, I'm not sure I've transposed it correctly as it doesn't seem to be doing what I want(I have no experience with coding for websites). The download on the thread containing the code doesn't seem to be working- would it be possible for somebody to repost the code in one block for me?
Also, I need to allow clients to book users for days or entire weeks. Is there a hack to allow me to do this?

Thanks in advance,

  • Hoang Ngo

    Hi @Stuart,

    Just for clarify, so if the user is doctor, we will display the calendar for other user can make appointment with the doctor ?

    So please place this code to your theme functions.php

    function append_appoitments_to_bb_profile(){
        global $appointments, $bp;
        $a = $appointments;
        if ( !is_object($a) || !$a->is_worker(bp_displayed_user_id()))
        bp_core_new_subnav_item( array(
            'name' => __( 'Make appointment', 'appointments' ),
            'slug' => 'make-appointment',
            'parent_url' => $bp->displayed_user->domain .'profile/',
            'parent_slug' => $bp->profile->slug,
            'screen_function' => '_append_appoitments_to_bb_profile',
            'position' => 40 ) );
    function _append_appoitments_to_bb_profile(){
        add_action( 'bp_template_title', 'agenda_function_title' );
        add_action( 'bp_template_content', 'agenda_function_content' );
        bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    function agenda_function_title() {
        echo 'Agenda';
    function agenda_function_content() {
    // content
        echo do_shortcode( '[app_monthly_schedule]' );
        echo do_shortcode( '[app_confirmation]' );
        echo do_shortcode( '[app_pagination]' );
    add_action( 'bp_setup_nav', 'append_appoitments_to_bb_profile', 25 );

    Hope this will help :slight_smile:
    Best Regards

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.