Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 2,099 total)
  • Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I’ve added a group in BuddyPress profile panel…

    If you add / move that group into the Base (Primary) field group in wp-admin > Users > Profile Fields, then it will appear on the registration screen.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    1. is_super_admin( $user_id )
    https://codex.wordpress.org/Function_Reference/is_super_admin

    2. bp_get_displayed_user_fullname()

    But at-mention functionality only works with user names.
    So @jino01 will work
    But @LarryJino will not work.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Use the group slug:
    $group_id = groups_get_id( $group_slug );

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Display Name: Larry Jino
    Mention Name: jino01

    If Display Name has not been explicitly set, then calls to displayname will show the mentionname.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    1. On a standard install, if somebody was able to log in as a subscriber, they can mainly be annoying: generating lots of Notices and maybe emails, inappropriate content, etc.

    In general, read up on ‘wordpress hardening’.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Those Notices are tricky to debug – especially the ‘user was initialized’.
    Although BP generates that rather aggressive notice, it is due to an issue somewhere else in your installation.
    I suspect the same is true re the ‘property of non-object’.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Thanks for opening the ticket.
    https://buddypress.trac.wordpress.org/ticket/6895
    In the ticket, please add a reference to this thread and also paste your useful filter.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    bp_core_validate_email_address uses the WP function email_exists.
    So perhaps that WP function should check the signups table.

    You can open a ticket here and a decision will be made as to whether it should actually be a WP ticket:
    https://buddypress.trac.wordpress.org/newticket
    Use the same suer / pw you use for these forums.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    popular = # of friends

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    That is how it should be.
    The Forums link on Profiles should show you what you have done on Forums.
    It does not show you the actual forums.
    Create some topics, replies, favs, etc via http://gamedealsdaily.com/forums/
    Then check your Profile > Forums.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    How are you trying to link? What is the href on the link?

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    To confirm that some ( maybe all ) of the Notices are due to your theme,
    try switching momentarily to a WP theme like 2013.
    Do any of the Notices disappear?

    Do you have any plugins that affect Profiles?
    If so, try deactivating them – check for Notices.

    Try deactivating Membership 2 – check for notices.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    change this:
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . $exclude_members ) ) : ?>

    to this:
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . $exclude_testing ) ) : ?>

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    By default, all BP pages are public.
    Your feedback page is not a BP page, afaik.
    Therefore something in your theme, plugins or custom code is setting that WordPress page to private.
    I doubt it is related to .htacess

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    BP does not delete users automatically.
    Perhaps something in your theme, plugins or some custom code is changing things.
    Do the members appear in …wp-admin > Users ?
    If so, something is hiding them on the front end.
    If not, something is deleting your users – and it is not BP.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You could try creating a template overload of
    buddypress\bp-templates\bp-legacy\buddypress\groups\single\home.php

    And replace <?php bp_get_options_nav(); ?> with whatever you want.
    Before you do, grab the current nav output and then tweak it as you wish.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Use the filter in function bp_has_message_threads
    Found in buddypress\bp-messages\bp-messages-template.php

    apply_filters( 'bp_has_message_threads', $messages_template->has_threads(), $messages_template, $r );

    And remove the messages you don’t want to appear.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You’ll need an identifier re team members. A profile field could work.

    You don’t say where the Team Page appears.

    Unless you are explicitedly using the bp-default theme, always use files from
    \buddypress\bp-templates\bp-legacy\buddypress\
    in your child theme.

    If you have a conditional, you could edit members-loop.php
    Something like:

    
    <?php
    $is_team_page = true; // something that returns a boolean
    if ( $is_team_page ) 
       $include = '&include=1,2,3,4';
    else
       $include = '';
    ?>
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . $include ) ) : ?>

    More info:
    https://codex.buddypress.org/developer/loops-reference/the-members-loop/

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    It won’t remove already-existing entries, but should prevent new ones from being created.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    This will remove all group-related activity items from the main stream.
    Paste it in your theme/functions.php or in bp-custom.php

    function swa_remove_group_activity( $a, $activities ) {
     
        if ( ! bp_is_group() && ! bp_is_user() ) {
        
    	foreach ( $activities->activities as $key => $activity ) {
    	
    		if ( $activity->component == 'groups') {
    			
    			unset( $activities->activities[$key] );
    			 
    			$activities->activity_count = $activities->activity_count-1;
    			$activities->total_activity_count = $activities->total_activity_count-1;
    			$activities->pag_num = $activities->pag_num -1;
    		}
    	}
    	 
    	$activities_new = array_values( $activities->activities );
    	$activities->activities = $activities_new;
    	
        }
    	
        return $activities;
    }
    add_action('bp_has_activities','swa_remove_group_activity', 10, 2 );
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    To prevent activity items being created for new registers and friendships, add this to your theme/functions.php or bp-custom.php

    remove_action( 'bp_core_activated_user', 'bp_core_new_user_activity' );
    remove_action( 'bp_register_activity_actions', 'friends_register_activity_actions' );
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Do you see an error message?
    If so, what is it?

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You can put it in your theme or child-theme functions.php or in bp-custom.php.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    No, you also need to backup the database.

Viewing 25 replies - 1 through 25 (of 2,099 total)
Skip to toolbar