Forum Replies Created
-
You need to contact the creator of that plugin: buddypress-who-clicked-at-my-profile
Yup, it’s failing on
groups_is_user_member()inbp-groups\bp-groups-functions.php.You could hack that function, but I think what you really need is a filter hook on the return.
Then your task would be simple.groups_post_update()inbp-templates\bp-legacy\buddypress-functions.phpusesgroups_is_user_member()You could create an enhancement ticket on trac.
In reply to: Get notification action linkLook thru that function and use one of the filter hooks to write a function that uses a conditional.
In reply to: Get notification action linkIn reply to: Get notification action linkThe notifications loop template uses
bp_the_notification_action_links()toechothose links.
If you want to retrieve them for some other use, then this will not echo them:
$links = bp_get_the_notification_action_links();In reply to: MyCred + Buddypress integration?Integration with other plugins is seldom done within BP.
Typically it is handled by a third plugin or by making a request to the MyCred plugin author.
In reply to: Can’t update Member-CounterIf a member has not logged in at least once, they are not considered ‘active’ and will not show in the count.
You could run this once in your theme/functions.php and then remove it. It will create an activity timestamp for all members with the role: subscriber.
function pp_add_last_activity() { $subscribers = get_users( 'fields=ID&role=subscriber' ); foreach ( $subscribers as $user_id ) { bp_update_user_last_activity( $user_id, bp_core_current_time() ); } } add_action('bp_init', 'pp_add_last_activity' );In reply to: Is it profile or members conditional tags?Try
bp_is_user()which should return true on [domain]/members/warrick-brown/etc.In reply to: List of Group Member IDsTry, after
while ( bp_groups() ) : bp_the_group();:$args = array( 'group_id' => bp_get_group_id(), 'exclude_admins_mods' => false ); $group_members_result = groups_get_group_members( $args ); $group_members = array(); foreach( $group_members_result['members'] as $member ) { $group_members[] = $member->ID; } echo implode(", ", $group_members);Did you try the repair tool?
In wp-admin > Tools > BuddyPress and selectReinstall emails (delete and restore from defaults).In reply to: City, State, Country Location PluginIt’s a single field.
Google will give you full address choices based on what you input.
It also includes support for BP Profile Search.You can also get it here:
http://www.philopress.com/products/bp-xprofile-location/In reply to: City, State, Country Location PluginYou can also use this free plugin:
https://wordpress.org/plugins/bp-xprofile-location/I don’t know anything about wps. You might try talking to the creators of wps.
Something is redirecting or rewriting your urls – perhaps whatever generates the ‘wps’ shortcodes which do not come from BP. Try deactivating the wps plugin.
Your friends url is: …/militaryareas.com/members/admin/friends/
Not: …militaryareas.com/friends/Please use the
codebutton when sharing code.Take a look at
buddypress\bp-templates\bp-legacy\buddypress\members\single\profile.php
to see how files and functionality and html is loaded for profiles.In reply to: [Resolved] Using BP_User_QueryAre you really using that approach for a single member id?
Anyhow, you should use this method instead:
https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/In reply to: Problem using an xProfile functionIt does not say that an array is supported…
* @param mixed $field The ID of the field, or the $name of the field.In reply to: [Resolved] Unminified JavascriptTry using
define( 'SCRIPT_DEBUG', true );in your wp-config file.In reply to: fetching specfic role usersTry:
if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&per_page=500&include=' . $experts ) ) :In reply to: Changing filtering default in activity streamDid you try:
https://wordpress.org/plugins/bp-activity-filter/In reply to: fetching specfic role usersTry it with subscribers.
get_users( 'fields=ID&role=subscriber' );If that works, then it’s a clue that there is an issue re your ‘expert’ role.
In reply to: BP profile data added to a custom post typeAgain – how you interface with the Gravity Form is a question for the creators of Gravity Forms.
In reply to: BP profile data added to a custom post typeYou can call xprofile data directly by calling
xprofile_get_field_data
http://hookr.io/functions/xprofile_get_field_data/How you add a merge tag is a question for Gravity Forms.
In reply to: fetching specfic role usersThen some code from some other plugin or theme is interfering.
To find out, try turning off other plugins and switching to a WP theme like 2015.