Skip to:

How can I get this plugin working?

  • ozgurpolat


    I am a newbie, I am sure I am doing something wrong but don’t know what. I installed the plugin, and created “Location” field in the buddypress member profile. I entered the name of the city, Country in this field and I choose “bp_before_loop_content Displays on the members public profile view to the right.” option.

    I added `if( function_exists(‘upm_add_map_profile_field’) ) : upm_add_map_profile_field(); endif ;` to profile-loop.php. I am using default buddypress theme and the latest versions of wordpress (3.5.1) and buddypress (1.6.4). I have a primary blog as wordpress and buddypress is installed on a secondary blog on a multisite installation.

    I also noticed that when plugin is not activated network wide, I should be able to go into an individual site and see the plugin listed on the dashboard->plugins of that site but the plugin does not show up, I can only activate the plugin network wide. Is that normal?

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

  • danbpfr


    On a network install, plugins are usually intended to be used by all blogs.
    As network’s super-admin, you can decide if the plugins can be used or not by the other blog admins. This means that you have to decide if other blog admins must use all plugins you installed for the network or if you let them choose witch plugin they want on their blog. This is a WP setting.

    The bp-user-profile-map plugin is intended for network. This information (Network: true) is mainly written in each plugin in the comments, under the plugin name and other infos. In UPM, it’s in upm-loader.php

    So yes, it’s normal.

    To solve your problem, delete the field named Location.

    Create a new xprofile field and name it City, you have to enter City ( ! case sensitive) under BP xprofile field name on the UPM Setup page and register.

    If you already inserted (correctly) the function code to the profile-loop, it should work now.

    Be aware that this function will be overwriten at the next BP update. You might use a child theme to avoid this.



    @chouf1, thank you for your suggestions. I deleted the location field and created ‘City’ instead. and in the “profile-loop.php” I inserted the code like this:



    Still not working. Is there step by step tutorial for this plugin somewhere? Thanks a lot for your help.



    I could not insert the image above but here is the link:



    The function is at the right place.

    Have you correctly added “City” in the plugin setting filed “BP xprofile field name” and saved your change ?
    Sorry to ask this… 😉

    Normally, this plugin should be activated from the Dashboard of the main blog. But your BP is on a secondary blog. IMo there is something wrong around this fact. Give more details about your config. WP network, BP in sub-directories ou sub-folder…. Have you other troubles ?

    The only guide i know about is on the plugin download page.

    Or ask @hnla the plugin’s author for help

    @chouf1 thanks for helping with this.


    tbh this plugin is due a massive re-write to improve many aspects  of it’s coding, the profile addition was actually a client requirement and only added to the repo version as easier to maintain a single version, I need to re-think ho I approached it as it ought really to apply a filter in the function. At the moment what I describe in the instructions isn’t quite correct to implement it in the loop as the BP field value needs to be removed if map displayed and off hand and playing around with it for a moment not sure of best means of implementing that although I did for client requirement but haven’t time at the moment to start re-factoring the plugin.


    As for secondary blogs? there may be other issues not accounted for however this plugin was originally only meant to be very straightforward and for bp profile display.



    @hnla and @chouf1, I created two test sites, and is not a multisite and buddypress is installed on the primary blog, and the plugin works. You can see it here:

    But when I try to install it on a multisite installation where buddypress is installed on a secondary blog, then it doesn’t work. I am not sure if there is a quick fix. Thanks very much for the responses.

    This is the multisite installation:



    And here is my wp-config.php:

    `define(‘WP_DEBUG’, false);
    define(‘WP_ALLOW_MULTISITE’, true);
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);
    define(‘BP_ROOT_BLOG’, 2);`

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How can I get this plugin working?’ is closed to new replies.
Skip to toolbar