Forum Replies Created
-
In reply to: Buddypress profile menu
@stockton – do you mean BuddyBoss theme?
You should ask the theme authors about your issue.
If you’re using multi-site, be sure to tell them that.In reply to: Buddypress profile menuThis is most likely related to something in your theme.
To confirm, try switching to a WP theme, maybe 2015.In reply to: Get the current usernameIt probably be easier to add the shortcode to whatever template is loaded for this screen:
/members/[current user]/mystocks/activity/In reply to: Stalking-Admin View PM?When you open phpmyadmin, you should see a list of databases.
There might only be one database.
You’ll find the name of your database in your wp-config.phpIn reply to: Hide Course Discussion buttonQuestions specific to another plugin are best asked of the plugin creators.
Try http://www.learndash.com/ or https://wordpress.org/support/plugin/buddypress-learndashIn reply to: How to get an ID of a user who was just activated?Please use the
codebutton when sharing code.You’re using 2 hooks – one passes arguments, one does not – resulting in the warnings.
Therefore you need 2 functions.
But the hookbp_after_activate_contentwill not expose the user_id value.Please read the codex article I provided a link to.
In reply to: How to get an ID of a user who was just activated?No, we have no knowledge of how you wrote or load the plugin.
In reply to: How to get an ID of a user who was just activated?That’s not how you use a hook.
https://codex.wordpress.org/Function_Reference/do_actionfunction william_bp_core_activated_user( $user_id, $key, $user ) { // do something with $user_id // there is no return for add_action, only add_filter }; add_action( 'bp_core_activated_user', 'william_bp_core_activated_user', 10, 3 );In reply to: How to get an ID of a user who was just activated?Try using this hook:
do_action( 'bp_core_activated_user', $user_id, $key, $user );In reply to: Notifications of my own forum topic replies-bug?Please include any links to bbPress forums that refer to these statements:
that bbPress function turns out to be riddled with bugs 🙁
(I guess JJJ’s “condemned” remarks would imply the same conclusion?)>Is there a way to completely disconnect BuddyPress notifications from the bbpress forums?
Try changing this line:
add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10, 7 );
to
//add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10, 7 );
in bbpress\includes\extend\buddypress\notifications.phpIn reply to: Stalking-Admin View PM?@mercime – really? How? I can’t.
Adding/messagesto another member’s page results in viewing my own messages, even though the page header is for that member.In reply to: Hide profile tabs on user rolesUntested, but try:
function jake_nav_remove($nav_array) { if( ! bp_is_my_profile() ) { $roles = wp_get_current_user()->roles; if (in_array('Supporter', $roles)) $nav_array = ''; } return $nav_array; } add_filter('bp_get_displayed_user_nav_activity', 'jake_nav_remove', 10, 1 ); add_filter('bp_get_displayed_user_nav_profile', 'jake_nav_remove', 10, 1 );However – removing these tabs can create problems – ‘profile’ is the default tab ( and therefore screen ) for member pages. You’ll need to decide on which tab should be default, since you may remove profile and activity.
In reply to: Profile TabsIn reply to: Stalking-Admin View PM?You could use a tool like phpmyadmin to directly view the database – which is where the messages are stored, not in ‘ftp’.
You could write an admin tool that allows you to view messages.
In reply to: [Resolved] Doubt on profile codeIn the code you’ve shown here, replace
echo get_edit_user_link($current_user->ID);
with
echo bp_core_get_user_domain($current_user->ID) . 'profile';In reply to: [Resolved] Doubt on profile code$profile_link = bp_core_get_user_domain($current_user->ID) . 'profile'; echo $profile_link;In reply to: mySql querry helpWhy not use an existing function like bp_core_get_users() ?
In reply to: Auto-fill Profile FieldHave you tried sending a message with this box checked – ‘This is a message to all users’ ?
It’s on the Compose screen in your profile > Messages.
It should create a Notice that all members will see and can dismiss if logged in.In reply to: Pagination gives error on buddypress tabI see some issues in your function for adding the tab.
Review this gist and note the differences.
Also don’t use ‘posts’ as a slug, try:
'slug' => 'myposts',In reply to: Exclude groups from get_total_group_countPlease use the
codebutton when sharing code.If you only need a total count, and know that there are 3 groups you don’t want included, then use Henry’s approach with this tweak:
return $count - 3;Otherwise, don’t use a filter in the manner shown in your initial post.
It will result in a double query.
Just make it a custom function that you call wherever you want.In reply to: Pagination gives error on buddypress tabtry:
$paged = ( isset( $_GET['pubs'] ) ) ? $_GET['pubs'] : 1;In reply to: Pagination gives error on buddypress tabMaybe this is clearer:
Replace this:
$big = 999999999; // need an unlikely integer echo paginate_links( array( //etc ));With this:
echo ggsalas_profile_pagination( $wp_query );btw – you don’t need any of the 3 globals you’re including.
In reply to: Pagination gives error on buddypress tabUntested but try this:
Replace your paginate call with this:
echo ggsalas_profile_pagination( $wp_query );And add this function to your plugin:
function ggsalas_profile_pagination( $wp_query ) { $profile_page_links = paginate_links( array( 'base' => esc_url( add_query_arg( 'pubs', '%#%' ) ), 'format' => '', 'total' => ceil( (int) $wp_query->found_posts / (int) get_query_var('posts_per_page') ), 'current' => (int) get_query_var('paged'), ) ); return $profile_page_links; }In reply to: List tab on the profile‘list’ is not a standard BP tab.
It’s being added by your theme or some other plugin.In reply to: Display an excerpt from xprofile field