Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 31 total)
  • @paragbhagwat

    Participant

    @paragbhagwat

    Participant

    @alonsotron please go to settings–>General and check Anyone can register check box then you will be able to allow registration from others

    @paragbhagwat

    Participant

    @alonsotron all you will need to do is create blank pages with the same names and then in settings for buddypress associate the pages with register and activate action in the Pages tab of settings.

    @paragbhagwat

    Participant

    Thanks @Henry. I could not find any other way so was thinking of using this method. Is there a suggested approach for this?

    @paragbhagwat

    Participant

    @paragbhagwat

    Participant

    Thanks @henrywright for requesting to join a new private group i am using the groups_member_before_save hook and it seems to work fine except that any echo or _e or bp_add_message calls seem to be ignored. Any idea what is going on?

    @paragbhagwat

    Participant

    Hello,

    Any one had a chance to read this and confirm this is the place where this can be done?

    Thanks,
    Parag

    @paragbhagwat

    Participant

    Thanks@r-a-y i figured out that my Theme has code from older version of buddy press. I will go ahead and modify it.

    @paragbhagwat

    Participant

    @r-a-y i got it.. in buddypress 4.0 under buddypress.2.4.0\buddypress\bp-templates\bp-legacy\buddypress\groups\single the new file is there but under

    buddypress.2.4.0\buddypress\bp-themes\bp-default\groups\single

    it has the older file. Is that how its supposed to be? I am now going to check my theme to see if it has overridden any of those files.

    Thanks,
    Parag

    @paragbhagwat

    Participant

    @r-a-y hmmm i am not even checking it in my theme i just unzipped buddypress.2.4.0 and i am seeing the old file inside that.

    @paragbhagwat

    Participant

    @r-a-y i did not any changes to home.php the code that i sent you was directly from the plugin buddypress2.4.0 folders.

    @paragbhagwat

    Participant

    @r-a-y thanks i did read that and i added a front.php in my theme under buddypress/groups/single and it worked perfectly fine. I was then looking to have a different page for pubblic groups vs private groups so i created a new file called

    front-status-public.php and placed it under the same location of buddypress/groups/single

    That is not working. Only front.php works.. as given in the hierarchy it should look at the status file before it even picks up the front.php. As shown below the home.php seems to be looking only for front.php and not the hierarchy. Any idea what is going on?

    home.php code

    
    if ( bp_is_group_home() ) :
    
    						// Use custom front if one exists
    						$custom_front = locate_template( array( 'groups/single/front.php' ) );
    						if     ( ! empty( $custom_front   ) ) : load_template( $custom_front, true );
    
    						// Default to activity
    						elseif ( bp_is_active( 'activity' ) ) : locate_template( array( 'groups/single/activity.php' ), true );
    
    						// Otherwise show members
    						elseif ( bp_is_active( 'members'  ) ) : locate_template( array( 'groups/single/members.php'  ), true );
    
    						endif;
    
    

    @paragbhagwat

    Participant

    @danbp that worked thanks.

    @paragbhagwat

    Participant

    Hello @danbp

    What would i do if i want to remove a tab? Please refer to my question

    https://buddypress.org/support/topic/hiding-groups-and-forums-from-members-page/

    Thanks,
    Parag

    @paragbhagwat

    Participant

    Hello,

    Anyone has any idea on how to resolve this?

    Thanks,
    Parag

    @paragbhagwat

    Participant

    @nithin270 does this solution work?

    @paragbhagwat

    Participant

    This works thanks..a lot @henrywright

    @paragbhagwat

    Participant

    Hello,

    Anyone has any idea on what is going on here?

    Thanks
    Parag

    @paragbhagwat

    Participant

    Thanks a lot Henry.. i tried that i am sure i am doing something wrong.. this is what i have and for some reason nothing happens… What am i doing wrong?

    add_action('groups_group_before_save','RECN_CUSTOM_CHECK_DUPLICATE_NAME');
    function RECN_CUSTOM_CHECK_DUPLICATE_NAME($fogroup)
    {
        
        if ( class_exists( 'BP_Groups_Group' ) ) : //
    
            $group_id = BP_Groups_Group::group_exists( $fogroup->slug );
    
            if(!empty($group_id))
            {
                bp_core_add_message( 'A group with the same name already exists. Please search for the existing group to send a membership request.', 'error' );
                $fogroup->name=null;
                return $fogroup;
            }
    endif;
        return $fogroup;
    }

    @paragbhagwat

    Participant

    Also should i be using the search_groups method for searching for an existing group with the same name or is there a different way?

    @paragbhagwat

    Participant

    This is what i was looking for.. thanks.. so should we use

    bp_core_add_message

    function to show the user an error?

    Thanks,
    Parag

    @paragbhagwat

    Participant

    Ok i figured out part question 1 and 2. Basically i copied create.php in my theme and customized the text as needed. Now the remaining questions are

    1)Add additional tab or fields to existing tab for the group.
    2) I want to enforce each group having a forum is there a way i can remove the section?

    Thanks,
    parag

    @paragbhagwat

    Participant

    Hello ,

    I am sorry but i did not see what the fix was? The link for ticket 6692 is for the avataar fix?

    Thanks,
    Parag

    @paragbhagwat

    Participant

    To add more to this… i am writing the method as shown below

    add_filter( ‘bp_core_signup_send_validation_email_message’, ‘RECN_CUSTOM_activation_message’, 10, 3 );

    function RECN_CUSTOM_activation_message( $message, $user_id, $activate_url ) {

    $user = get_userdata( $user_id );
    ….
    ….

    and the $user_id passed is the signup id ….while the WP_USER table does not have data for the signup id…

    @paragbhagwat

    Participant

    I will give that Plugin a try. I want to avoid having a large number of plugins if there is a readymade action or filter i can use.

Viewing 25 replies - 1 through 25 (of 31 total)
Skip to toolbar