s2member with custom base_prefix
-
Sarah,
Thanks for creating this wonderful plugin. It’s what I was looking for!I have the s2member fields configured in DUD admin, but they don’t display on the directory. I know why this is because I’ve run into the same problem in my own code. My hosting service automatically configured a unique (not wp_) base_prefix when WordPress was installed. That doesn’t impact functions like get_s2member_custom_fields() but it does impact get_user_meta().
My assessment is that in version 1.3.7, line 257 in member_plugins_compatibility.php needs to handle base_prefix.
Before: $s2m_custom_flds = get_user_meta($user_id, ‘wp_s2member_custom_fields’);
After: global $wpdb; $s2m_custom_flds = get_user_meta($user_id, $wpdb->base_prefix . ‘s2member_custom_fields’);-OR- something similar to handle prefixes not = ‘wp_’
I also noticed during debugging that my ‘Meta Fld Types’ section shows ‘Field Type: BuddyPress’ for every s2Member field I configure. I think in version 1.3.7, line 406 in core.php should have literal “s2Member” instead of “BuddyPress”.
Hopefully, you agree with these changes and incorporate into next release.
Thanks again!
Tom
The topic ‘s2member with custom base_prefix’ is closed to new replies.