Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#451 closed defect (bug) (fixed)

Some hooks in /buddypress-theme/member-themes/buddypress-member/groups/group-menu.php

Reported by: nicolagreco Owned by: nicolagreco
Milestone: Priority: major
Severity: Version:
Component: Keywords:
Cc:

Description

I need more than one hook i think.

this it the code of /buddypress-theme/member-themes/buddypress-member/groups/group-menu.php

<?php bp_group_avatar() ?>

<?php bp_group_join_button() ?>

<div class="info-group">
	<h4><?php _e( 'Admins', 'buddypress' ) ?></h4>
	<?php bp_group_list_admins() ?>
</div>

<?php if ( bp_group_has_moderators() ) : ?>
<div class="info-group">
	<h4><?php _e( 'Mods' , 'buddypress' ) ?></h4>
	<?php bp_group_list_mods() ?>
</div>
<?php endif; ?>

into

<?php bp_group_avatar() ?>

<?php bp_group_join_button() ?>

<?php do_action('groups_custom_profile_sidebar1'); ?>

<div class="info-group">
	<h4><?php _e( 'Admins', 'buddypress' ) ?></h4>
	<?php bp_group_list_admins() ?>
</div>

<?php if ( bp_group_has_moderators() ) : ?>
<div class="info-group">
	<h4><?php _e( 'Mods' , 'buddypress' ) ?></h4>
	<?php bp_group_list_mods() ?>
</div>
<?php endif; ?>
<?php do_action('groups_custom_profile_sidebar2'); ?>

so, two hooks:
groups_custom_profile_sidebar1 before the core widgets
groups_custom_profile_sidebar2 after the core widgets

Change History (3)

#1 @nicolagreco
13 years ago

  • Type changed from enhancement to defect

#2 @apeatling
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

These hooks already exist.

groups_sidebar_after
groups_sidebar_before

#3 @(none)
12 years ago

  • Milestone Default Member Theme 1.0 deleted

Milestone Default Member Theme 1.0 deleted

Note: See TracTickets for help on using tickets.