WordPress.org

Plugin Directory

Changeset 590124


Ignore:
Timestamp:
08/25/12 10:15:07 (5 years ago)
Author:
hnla
Message:

Correct network admin paths for MS or single site. Locate settings depending on BP version

Location:
bp-user-profile-map
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bp-user-profile-map/tags/1.4.1/admin/upm-admin.php

    r538966 r590124  
    150150if( is_multisite() && function_exists( 'is_network_admin' ) ){ 
    151151    $path_to = site_url() . "/wp-admin/network/admin.php"; 
    152     if(floatval(BP_VERSION) >= 1.6) { 
    153         $path_to_xprofile = site_url() . "/wp-admin/network/users.php"; 
    154     } 
     152     
     153        if(floatval(BP_VERSION) >= 1.6) { 
     154            $path_to_xprofile = site_url() . '/wp-admin/network/users.php?page=bp-profile-setup'; 
     155        }else{ 
     156            $path_to_xprofile = site_url() . '/wp-admin/network/admin.php?page=bp-profile-setup'; 
     157        } 
     158 
    155159} else { 
    156160    $path_to = site_url() . "/wp-admin/admin.php"; 
    157     if(floatval(BP_VERSION) >= 1.6) { 
    158         $path_to_xprofile = site_url() . "/wp-admin/users.php";  
    159     } 
     161     
     162        if(floatval(BP_VERSION) >= 1.6) { 
     163            $path_to_xprofile = site_url() . '/wp-admin/users.php?page=bp-profile-setup';  
     164        }else{ 
     165            $path_to_xprofile = $path_to . '?page=bp-profile-setup'; 
     166        } 
    160167}  
    161168?> 
     
    168175    
    169176         <p><?php _e('To use The BuddyPress profile or members list maps you must have first set up a new custom xprofile field to ask users for a location. This is important as the map script looks for this field and value to obtain map location data, you may name this field as you choose and then enter that name below.', 'bp_upm') ?></p> 
    170    <p><?php _e('If you have not yet set up a location field please visit the <a href="' . $path_to_xprofile . '?page=bp-profile-setup">Profile Field Setup</a> page.', 'bp_upm') ?></p> 
     177   <p><?php _e('If you have not yet set up a location field please visit the <a href="' . $path_to_xprofile . '">Profile Field Setup</a> page.', 'bp_upm') ?></p> 
    171178   <p><?php _e('You can either set the location field in the base group to show it on the sign up page or create a new group for the field name in which case it will show in the users profle setup and public display only.', 'bp_upm') ?></p> 
    172179         <p><?php _e('Styling of the map elements is kept to a minimum, you might need to add styles for your theme via your primary styles, all elements of the maps are well tokenised so styling is fairly easy.', 'bp_upm') ?></p> 
  • bp-user-profile-map/tags/1.4.1/readme.txt

    r578806 r590124  
    44Requires at least: BuddyPress 1.5 
    55Tested up to: WP 3.3, BuddyPress 1.6 
    6 Stable tag: 1.4 
     6Stable tag: 1.4.1 
    77 
    88Add a map display of a members location to their BuddyPress profile. 
  • bp-user-profile-map/trunk/admin/upm-admin.php

    r538966 r590124  
    150150if( is_multisite() && function_exists( 'is_network_admin' ) ){ 
    151151    $path_to = site_url() . "/wp-admin/network/admin.php"; 
    152     if(floatval(BP_VERSION) >= 1.6) { 
    153         $path_to_xprofile = site_url() . "/wp-admin/network/users.php"; 
    154     } 
     152     
     153        if(floatval(BP_VERSION) >= 1.6) { 
     154            $path_to_xprofile = site_url() . '/wp-admin/network/users.php?page=bp-profile-setup'; 
     155        }else{ 
     156            $path_to_xprofile = site_url() . '/wp-admin/network/admin.php?page=bp-profile-setup'; 
     157        } 
     158 
    155159} else { 
    156160    $path_to = site_url() . "/wp-admin/admin.php"; 
    157     if(floatval(BP_VERSION) >= 1.6) { 
    158         $path_to_xprofile = site_url() . "/wp-admin/users.php";  
    159     } 
     161     
     162        if(floatval(BP_VERSION) >= 1.6) { 
     163            $path_to_xprofile = site_url() . '/wp-admin/users.php?page=bp-profile-setup';  
     164        }else{ 
     165            $path_to_xprofile = $path_to . '?page=bp-profile-setup'; 
     166        } 
    160167}  
    161168?> 
     
    168175    
    169176         <p><?php _e('To use The BuddyPress profile or members list maps you must have first set up a new custom xprofile field to ask users for a location. This is important as the map script looks for this field and value to obtain map location data, you may name this field as you choose and then enter that name below.', 'bp_upm') ?></p> 
    170    <p><?php _e('If you have not yet set up a location field please visit the <a href="' . $path_to_xprofile . '?page=bp-profile-setup">Profile Field Setup</a> page.', 'bp_upm') ?></p> 
     177   <p><?php _e('If you have not yet set up a location field please visit the <a href="' . $path_to_xprofile . '">Profile Field Setup</a> page.', 'bp_upm') ?></p> 
    171178   <p><?php _e('You can either set the location field in the base group to show it on the sign up page or create a new group for the field name in which case it will show in the users profle setup and public display only.', 'bp_upm') ?></p> 
    172179         <p><?php _e('Styling of the map elements is kept to a minimum, you might need to add styles for your theme via your primary styles, all elements of the maps are well tokenised so styling is fairly easy.', 'bp_upm') ?></p> 
  • bp-user-profile-map/trunk/readme.txt

    r578804 r590124  
    44Requires at least: BuddyPress 1.5 
    55Tested up to: WP 3.3, BuddyPress 1.6 
    6 Stable tag: 1.4 
     6Stable tag: 1.4.1 
    77 
    88Add a map display of a members location to their BuddyPress profile. 
Note: See TracChangeset for help on using the changeset viewer.