Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @tweetyx

    Participant

    Problems solved on actually bp and wordpress 3.0 for profile
    The first problem was the js conflict with jquery -> dynamic marks not works
    the second is the profile maps doesn’t work so ->
    the file bp_maps_profile_init.php contain a bp_maps_profile_init() function where the function bp_maps_profile_is_enabled, bp_is_profile_edit and bp_maps_profile_is_map_group return false so the js aren’t be loaded .
    So you must change the condition for it work!
    this is my code
    function bp_maps_profile_init() {
    global $bp;

    //backend options
    add_action( ‘bp_maps_admin_plugins_div’,’bp_maps_profile_admin_plugins_div’);
    //the numer of my group edit for the location page (/members/admin/profile/edit/group/6/)

    if(strpos($_SERVER[“REQUEST_URI”], “edit/group/6?) !== false):

    //change infobulle content to set user’s info
    add_filter(‘bp_maps_marker_infobulle_content’,’bp_maps_profile_infobulle_content’,10,2);
    //add_filter(‘bp_maps_get_markerslist_marker_content’,’bp_maps_profile_marker_content’,10,2);

    //change infobulle content to set user’s info
    add_filter(‘bp_maps_get_marker_title’,’bp_maps_profile_marker_title’,10,2);
    add_filter(‘bp_maps_get_marker_list_title’,’bp_maps_profile_marker_title’,10,2);

    add_action(‘wp_print_scripts’,’bp_maps_profile_print_scripts’); //edition scripts (address autocomplete)
    add_filter(‘bp_maps_get_map_js’,’bp_maps_profile_add_map_js’,10,2); //array to contain the field ids
    add_action(‘wp’,’bp_maps_profile_edit_no_marker’);

    //TO FIX : useless ?
    //add_filter(‘bp_maps_get_new_marker_address’,’bp_maps_profile_get_new_marker_address’);

    do_action(‘bp_maps_profile_edit_map_screen’);

    bp_maps_head_init(); //load maps JS

    endif;

    }

    If you want to dll my version it here http://www.sky-flop.com/buddypressmaps-titi.rar

    @tweetyx

    Participant

    Problems solved on actually bp and wordpress 3.0 for profile
    The first problem was the js conflict with jquery -> dynamic marks not works
    the second is the profile maps doesn’t work so ->
    the file bp_maps_profile_init.php contain a bp_maps_profile_init() function where the function bp_maps_profile_is_enabled, bp_is_profile_edit and bp_maps_profile_is_map_group return false so the js aren’t be loaded .
    So you must change the condition for it work!
    this is my code
    function bp_maps_profile_init() {
    global $bp;

    //backend options
    add_action( ‘bp_maps_admin_plugins_div’,’bp_maps_profile_admin_plugins_div’);
    //the numer of my group edit for the location page (/members/admin/profile/edit/group/6/)

    if(strpos($_SERVER[“REQUEST_URI”], “edit/group/6”) !== false):

    //change infobulle content to set user’s info
    add_filter(‘bp_maps_marker_infobulle_content’,’bp_maps_profile_infobulle_content’,10,2);
    //add_filter(‘bp_maps_get_markerslist_marker_content’,’bp_maps_profile_marker_content’,10,2);

    //change infobulle content to set user’s info
    add_filter(‘bp_maps_get_marker_title’,’bp_maps_profile_marker_title’,10,2);
    add_filter(‘bp_maps_get_marker_list_title’,’bp_maps_profile_marker_title’,10,2);

    add_action(‘wp_print_scripts’,’bp_maps_profile_print_scripts’); //edition scripts (address autocomplete)
    add_filter(‘bp_maps_get_map_js’,’bp_maps_profile_add_map_js’,10,2); //array to contain the field ids
    add_action(‘wp’,’bp_maps_profile_edit_no_marker’);

    //TO FIX : useless ?
    //add_filter(‘bp_maps_get_new_marker_address’,’bp_maps_profile_get_new_marker_address’);

    do_action(‘bp_maps_profile_edit_map_screen’);

    bp_maps_head_init(); //load maps JS

    endif;

    }

    If you want to dll my version it here http://www.sky-flop.com/buddypressmaps-titi.rar

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