BuddyPress Geo
-
Hi everyone
Im having real problems getting this plugin to function properly i am new to wordpress plugin development so im just starting to get my head into action hooks and filters.
After installing the plugin and adding the following as the plugin install notes suggest.
Add a textbox field called Latitude to the same group as the location field
Add a textbox field called Longitude to the same group as the location field
I then get the plugin to show on the main page under a menu item of Geo as show below.
http://buddy2.users31.interdns.co.uk/geo
I have added various location to some dummy members profiles and you can search say canada and you can see in the address bar that it seems to be working out the Latitude and Longitude as far as i know but it can never find any members.
All my main big problem is the plugin admin menu after install a menu appears saying Global Search Setting every time i clicked this it did a redirect and took me back to the dashboard page with this appended to the url.
/wp-admin/?c=1
I search forums about this and found that the problem is the add_action fucntion in the plugin it is current set like this after install at the bottom of the code.
add_action( ‘wp’, ‘bp_geo_wp’ );
add_action( ‘wp_head’, ‘bp_geo_head’ );
add_action( ‘admin_head’, ‘bp_geo_admin_head’ );
add_action( ‘admin_init’, ‘bp_geo_admin_init’ );
add_action( ‘xprofile_updated_profile’, ‘bp_geo_updated_profile’ );
register_activation_hook( __FILE__, ‘bp_geo_check_install’ );
If i change the: add_action( ‘admin_head’, ‘bp_geo_admin_head’ );
To this: add_action( ‘admin_menu’, ‘bp_geo_admin_head’ );
This solves the problem to a degree but i have another one i no longer get the:
http://buddy2.users31.interdns.co.uk/wp-admin/?c=1
I know after click the menu get this in the url:
http://buddy2.users31.interdns.co.uk/wp-admin/admin.php?page=buddypress-geo/buddypress-geo.php
But it just shows a blank page anyone else struggled with this, i would really like some help or input ive hit a wall.
thanks
- The topic ‘BuddyPress Geo’ is closed to new replies.