Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

  • TripWest
    Participant

    @tripwest

    I keep getting one of these two errors at the top. No errors are showing up in google inspector though. I hope this helps

    Warning: Creating default object from empty value in plugins\buddypress\bp-core\bp-core-avatars.php on line 553

    Warning: Creating default object from empty value in plugins\buddypress\bp-core\bp-core-avatars.php on line 555


    TripWest
    Participant

    @tripwest

    Alright, here’s where I am at. However, it seems to be riddled with errors. Anybody see anything glaringly wrong with my plugin? I’m getting parsing errors around line 7

    1,
    ‘type’ => ‘selectbox’,
    ‘name’ => ‘Featured Teacher’,
    ‘description’ => ‘Showcase your teacher on your Profile’,
    ‘is_required’ => false,
    ‘can_delete’ => true,
    ‘order_by’ => ‘name’
    );
    $featured_teacher_list_id = xprofile_insert_field($teacher_list_args);
    if ($featured_teacher_list_id) {
    $featured_teachers = array(

    while ( bp_members() ) : bp_the_member();
    $fitlinkzmembertype = xprofile_get_field_data(‘Member Type’, bp_get_member_user_id());
    if ($fitlinkzmembertype == ‘Teacher’) :
    bp_member_name();
    endif;
    endwhile;

    );
    foreach ($featured_teachers as $i =>$featured_teacher) {
    xprofile_insert_field(array(
    ‘field_group_id’ => 1,
    ‘parent_id’ => $featured_teacher_list_id,
    ‘type’ => ‘selectbox’, // it is ‘selectbox’ not ‘option’
    ‘name’ =>$featured_teacher,
    ‘option_order’ => $i+1
    ));
    }
    }
    }

    //Featured Group
    add_action(‘bp_member_meta_init’, ‘featured_group_list’); // That might not be the perfect hook to use
    function featured_group_list() {
    if (xprofile_get_field_id_from_name(‘Featured Group’)) return;
    $group_list_args = array(
    ‘field_group_id’ => 1,
    ‘type’ => ‘selectbox’,
    ‘name’ => ‘Featured Group’,
    ‘description’ => ‘Showcase your group on your Profile’,
    ‘is_required’ => false,
    ‘can_delete’ => true,
    ‘order_by’ => ‘name’
    );
    $featured_group_list_id = xprofile_insert_field($group_list_args);
    if ($featured_group_list_id) {
    $featured_groups = array(

    while ( bp_groups() ) : bp_the_group(); if(custom_field(‘fitlinkz-group-type’) == ‘Group’ ) :
    bp_group_name();
    endif;
    endwhile;

    );
    foreach ($featured_groups as $i =>$featured_group) {
    xprofile_insert_field(array(
    ‘field_group_id’ => 1,
    ‘parent_id’ => $featured_group_list_id,
    ‘type’ => ‘selectbox’, // it is ‘selectbox’ not ‘option’
    ‘name’ =>$featured_group,
    ‘option_order’ => $i+1
    ));
    }
    }
    }

    ?>


    TripWest
    Participant

    @tripwest

    Has anybody tried out that plugin?

    If not, then would anybody have an idea of how to accomplish this? I’m thinking a of making a table with a meeting number, date, location, and just a string of attendees. Then add a calendar page. On the calendar page create a calendar table, read the date of each cell (not sure exactly how to accomplish this) and the logged in user, if the user is an attendee of a meeting on the cell date, then show the meeting that has that date with that attendee.

    Thoughts on how I can go about coding this, or if there is a quicker way?


    TripWest
    Participant

    @tripwest

    Yes, I am using the default BuddyPress theme


    TripWest
    Participant

    @tripwest

    Thanks. I’m actually taking a look at that one, but I’m waiting to hear back from them if it will accomplish what I’m looking for. I don’t feel like paying for a plugin only to get it and find out that it doesn’t do what I need it to even after some tweaks. If it will do what I need, then I have no problem paying for the plugin.

    Does anybody know if wpmudev’s Appointments+ will accomplish letting two buddypress members set up meetings with eachother? I’d additionally be okay with something that just set up an events page as long as the event could be made private and recurring. Everything I see is either for groups or no apparent way to make it private

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar