BuddyBoss Home – Web Support Forums Themes Boss. theme Customizing group creation in boss child theme

Viewing 3 posts - 1 through 3 (of 3 total)
  • Question

    #50273
    @bhagwat-paraggmail-com

    Hello,

    I followed the instructions on one of the tutorial and copied buddypress/groups/create.php under boss-child. I made text updates to the wizard and all of them show up correctly except the Forum tab of the wizard. What am i doing wrong here? Attached is my create.php.. and the snapshot of how the forum looks tab looks like..the changes in this file for that particular tab are not getting reflected..

    Thanks,
    Parag

    Answers

    #50275
    @bhagwat-paraggmail-com

    looks like create.php cannot be attached so pasting all the code here..

    
    <?php do_action( 'bp_before_create_group_page' ); ?>
    
    	<div id="buddypress">
    
    		<?php do_action( 'bp_before_create_group_content_template' ); ?>
    
    		<form action="<?php bp_group_creation_form_action(); ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
    
    			<div>
    				<?php _e( 'Please make sure you have searched through the existing project groups before proceeding.', 'boss' ); ?>
    			</div>
    
    			<?php do_action( 'bp_before_create_group' ); ?>
    
    			<div class="item-list-tabs no-ajax" id="group-create-tabs" role="navigation">
    				<ul>
    
    					<?php bp_group_creation_tabs(); ?>
    
    				</ul>
    			</div>
    
    			<div class="item-body" id="group-create-body">
    
    				<?php do_action( 'template_notices' ); ?>
    
    				<?php /* Group creation step 1: Basic group details */ ?>
    				<?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?>
    
    					<?php do_action( 'bp_before_group_details_creation_step' ); ?>
    
    					<div>
    						<label for="group-name"><?php _e( 'Project/Building Name (required)', 'boss' ); ?></label>
    						<input type="text" name="group-name" id="group-name" aria-required="true" value="<?php bp_new_group_name(); ?>" />
    					</div>
    
    					<div>
    
    						<label for="group-desc"><?php _e( 'Project/Building Description (required). Please describe the project in detail so it would be easier for others to find this. An example would be
    					This project is for builder xxxx, city xxxx', 'boss' ); ?></label>
    
    						<textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_new_group_description(); ?></textarea>
    					</div>
    
    					<?php
    					do_action( 'bp_after_group_details_creation_step' );
    					do_action( 'groups_custom_group_fields_editable' ); // @Deprecated
    
    					wp_nonce_field( 'groups_create_save_group-details' ); ?>
    
    				<?php endif; ?>
    
    				<?php /* Group creation step 2: Group settings */ ?>
    				<?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?>
    
    					<?php do_action( 'bp_before_group_settings_creation_step' ); ?>
    
    					<h4><?php _e( 'Privacy Options', 'boss' ); ?></h4>
    
    					<div class="radio big-caps">
    						<label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> <strong><?php _e( 'This is a public group', 'boss' ); ?></strong></label>
    						<ul>
    							<li><?php _e( 'Any site member can join this group.', 'boss' ); ?></li>
    							<li><?php _e( 'This group will be listed in the groups directory and in search results.', 'boss' ); ?></li>
    							<li><?php _e( 'Group content and activity will be visible to any site member.', 'boss' ); ?></li>
    						</ul>
    
    						<label>
    							<input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    							<strong><?php _e( 'This is a private group', 'boss' ); ?></strong>
    						</label>
    						<ul>
    							<li><?php _e( 'Only users who request membership and are accepted can join the group.', 'boss' ); ?></li>
    							<li><?php _e( 'This group will be listed in the groups directory and in search results.', 'boss' ); ?></li>
    							<li><?php _e( 'Group content and activity will only be visible to members of the group.', 'boss' ); ?></li>
    						</ul>
    
    					</div>
    
    					<h4><?php _e( 'Group Invitations', 'boss' ); ?></h4>
    
    					<strong><?php _e( 'Which members of this group are allowed to invite others?', 'boss' ); ?></strong>
    
    					<div class="radio">
    						<label>
    							<input type="radio" name="group-invite-status" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    							<strong><?php _e( 'All group members', 'boss' ); ?></strong>
    						</label>
    
    						<label>
    							<input type="radio" name="group-invite-status" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    							<strong><?php _e( 'Group admins and moderators only', 'boss' ); ?></strong>
    						</label>
    
    					</div>
    
    					<?php if ( bp_is_active( 'forums' ) ) : ?>
    
    						<h4><?php _e( 'Group Forums', 'boss' ); ?></h4>
    
    						<?php if ( bp_forums_is_installed_correctly() ) : ?>
    
    							<p><?php _e( 'A Forum will be created for this group,visibility of forum contents is defined by the group setting (Public vs Hidden).A forum allows members of this group to communicate in a structured, bulletin-board style fashion ', 'boss' ); ?></p>
    
    							<p><?php _e( 'Forum is a powerful collaboration tool and allows members of this group to communicate in a structured, bulletin-board style fashion.Real Estate Consumer Network suggest using Topics for important discussion points to keep content segregated . Some example topic are   ', 'boss' ); ?></p>
    							<ul>
    								<li><?php _e( 'Construction Status', 'boss' ); ?></li>
    								<li><?php _e( 'Clearances', 'boss' ); ?></li>
    								<li><?php _e( 'Possession delays', 'boss' ); ?></li>
    							</ul>
    
    						<?php elseif ( is_super_admin() ) : ?>
    
    							<p><?php printf( __( '<strong>Attention Site Admin:</strong> Group forums require the <a href="%s">correct setup and configuration</a> of a bbPress installation.', 'boss' ), bp_core_do_network_admin() ? network_admin_url( 'settings.php?page=bb-forums-setup' ) :  admin_url( 'admin.php?page=bb-forums-setup' ) ); ?></p>
    
    						<?php endif; ?>
    
    					<?php endif; ?>
    
    					<?php do_action( 'bp_after_group_settings_creation_step' ); ?>
    
    					<?php wp_nonce_field( 'groups_create_save_group-settings' ); ?>
    
    				<?php endif; ?>
    
    				<?php /* Group creation step 3: Avatar Uploads */ ?>
    				<?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?>
    
    					<?php
    
    					/**
    					 * Fires before the display of the group avatar creation step.
    					 *
    					 * @since BuddyPress (1.1.0)
    					 */
    					do_action( 'bp_before_group_avatar_creation_step' ); ?>
    
    					<?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    
    						<div class="left-menu">
    
    							<?php bp_new_group_avatar(); ?>
    
    						</div><!-- .left-menu -->
    
    						<div class="main-column">
    							<p><?php _e( "Upload an image11 to use as a profile photo for this group. The image will be shown on the main group page, and in search results.", 'boss' ); ?></p>
    
    							<p>
    								<input type="file" name="file" id="file" />
    								<input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'boss' ); ?>" />
    								<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    							</p>
    
    							<p><?php _e( 'To skip the group profile photo upload process, hit the "Next Step" button.', 'boss' ); ?></p>
    						</div><!-- .main-column -->
    
    						<?php
    						/**
    						 * Load the Avatar UI templates
    						 *
    						 * @since  BuddyPress (2.3.0)
    						 */
    						bp_avatar_get_templates(); ?>
    
    					<?php endif; ?>
    
    					<?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    
    						<h4><?php _e( 'Crop Group Profile Photo', 'boss' ); ?></h4>
    
    						<img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php esc_attr_e( 'Profile photo to crop', 'boss' ); ?>" />
    
    						<div id="avatar-crop-pane">
    							<img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php esc_attr_e( 'Profile photo preview', 'boss' ); ?>" />
    						</div>
    
    						<input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php esc_attr_e( 'Crop Image', 'boss' ); ?>" />
    
    						<input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
    						<input type="hidden" name="upload" id="upload" />
    						<input type="hidden" id="x" name="x" />
    						<input type="hidden" id="y" name="y" />
    						<input type="hidden" id="w" name="w" />
    						<input type="hidden" id="h" name="h" />
    
    					<?php endif; ?>
    
    					<?php
    
    					/**
    					 * Fires after the display of the group avatar creation step.
    					 *
    					 * @since BuddyPress (1.1.0)
    					 */
    					do_action( 'bp_after_group_avatar_creation_step' ); ?>
    
    					<?php wp_nonce_field( 'groups_create_save_group-avatar' ); ?>
    
    				<?php endif; ?>
    
    				<?php /* Group creation step 4: Invite friends to group */ ?>
    				<?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?>
    
    					<?php do_action( 'bp_before_group_invites_creation_step' ); ?>
    
    					<?php if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    
    						<div class="left-menu">
    
    							<div id="invite-list">
    								<ul>
    									<?php buddyboss_new_group_invite_friend_list(); ?>
    								</ul>
    
    								<?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?>
    							</div>
    
    						</div><!-- .left-menu -->
    
    						<div class="main-column">
    
    							<div id="message" class="info">
    								<p><?php _e('Select people to invite from your friends list.', 'boss' ); ?></p>
    							</div>
    
    							<?php /* The ID 'friend-list' is important for AJAX support. */ ?>
    							<ul id="friend-list" class="item-list" role="main">
    
    								<?php if ( bp_group_has_invites() ) : ?>
    
    									<?php while ( bp_group_invites() ) : bp_group_the_invite(); ?>
    
    										<li id="<?php bp_group_invite_item_id(); ?>">
    
    											<?php bp_group_invite_user_avatar(); ?>
    
    											<h4><?php bp_group_invite_user_link(); ?></h4>
    											<span class="activity"><?php bp_group_invite_user_last_active(); ?></span>
    
    											<div class="action">
    												<a class="remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'boss' ); ?></a>
    											</div>
    										</li>
    
    									<?php endwhile; ?>
    
    									<?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?>
    
    								<?php endif; ?>
    
    							</ul>
    
    						</div><!-- .main-column -->
    
    					<?php else : ?>
    
    						<div id="message" class="info">
    							<p><?php _e( 'Once you have built up friend connections you will be able to invite others to your group.', 'boss' ); ?></p>
    						</div>
    
    					<?php endif; ?>
    
    					<?php wp_nonce_field( 'groups_create_save_group-invites' ); ?>
    
    					<?php do_action( 'bp_after_group_invites_creation_step' ); ?>
    
    				<?php endif; ?>
    
    				<?php do_action( 'groups_custom_create_steps' ); // Allow plugins to add custom group creation steps ?>
    
    				<?php do_action( 'bp_before_group_creation_step_buttons' ); ?>
    
    				<?php if ( 'crop-image' != bp_get_avatar_admin_step() ) : ?>
    
    					<div class="submit" id="previous-next">
    
    						<?php /* Previous Button */ ?>
    						<?php if ( !bp_is_first_group_creation_step() ) : ?>
    
    							<input type="button" value="<?php esc_attr_e( 'Back to Previous Step', 'boss' ); ?>" id="group-creation-previous" name="previous" onclick="location.href='<?php bp_group_creation_previous_link(); ?>'" />
    
    						<?php endif; ?>
    
    						<?php /* Next Button */ ?>
    						<?php if ( !bp_is_last_group_creation_step() && !bp_is_first_group_creation_step() ) : ?>
    
    							<input type="submit" value="<?php esc_attr_e( 'Next Step', 'boss' ); ?>" id="group-creation-next" name="save" />
    
    						<?php endif;?>
    
    						<?php /* Create Button */ ?>
    						<?php if ( bp_is_first_group_creation_step() ) : ?>
    
    							<input type="submit" value="<?php esc_attr_e( 'Create Group and Continue', 'boss' ); ?>" id="group-creation-create" name="save" />
    
    						<?php endif; ?>
    
    						<?php /* Finish Button */ ?>
    						<?php if ( bp_is_last_group_creation_step() ) : ?>
    
    							<input type="submit" value="<?php esc_attr_e( 'Finish', 'boss' ); ?>" id="group-creation-finish" name="save" />
    
    						<?php endif; ?>
    					</div>
    
    				<?php endif;?>
    
    				<?php do_action( 'bp_after_group_creation_step_buttons' ); ?>
    
    				<?php /* Don't leave out this hidden field */ ?>
    				<input type="hidden" name="group_id" id="group_id" value="<?php bp_new_group_id(); ?>" />
    
    				<?php do_action( 'bp_directory_groups_content' ); ?>
    
    			</div><!-- .item-body -->
    
    			<?php do_action( 'bp_after_create_group' ); ?>
    
    		</form>
    
    		<?php do_action( 'bp_after_create_group_content_template' ); ?>
    
    	</div>
    
    <?php do_action( 'bp_after_create_group_page' ); ?>
    
    #50287

    Anonymous
    @

    Hi @bhagwat-paraggmail-com, you should discuss core functionality customization of BuddyPress inside the BuddyPress support.
    https://buddypress.org/support/

    Regards

Viewing 3 posts - 1 through 3 (of 3 total)
  • The question ‘Customizing group creation in boss child theme’ is closed to new replies.