#481 closed defect (bug) (fixed)
2 hooks in bp-groups/directories/bp-groups-directory-groups.php needed!
Reported by: | nicolagreco | Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | ||
Component: | Keywords: | ||
Cc: |
Description
I need an hook (that could be useful for others) here
bp-groups/directories/bp-groups-directory-groups.php
in the function groups_directory_groups_content()
26 if ( isset( $_GET['s'] ) ) 27 $groups = BP_Groups_Group::search_groups( $_GET['s'], $pag_num, $pag_page ); 28 else 29 $groups = groups_get_active( $pag_num, $pag_page );
after that, a thing like :
if ( isset( $_GET['s'] ) ) $groups = BP_Groups_Group::search_groups( $_GET['s'], $pag_num, $pag_page ); else $groups = groups_get_active( $pag_num, $pag_page ); do_action('groups_custom_directory_groups_content')
in the same file, another hook here
105 <div class="item"> 106 <div class="item-title"><a href="<?php echo bp_group_permalink( $group ) ?>" title="<?php echo $group->name ?>"><?php echo $group->name ?></a></div> 107 <div class="item-meta"><span class="activity"><?php echo bp_core_get_last_activity( groups_get_groupmeta( $group->id, 'last_activity' ), __('active %s ago') ) ?></span></div> 108 <div class="item-meta desc"><?php echo bp_create_excerpt( $group->description ) ?></div> 109 </div>
to add extra items after the standard ones
thanks a lot,
Nicola
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [1136]) Fixes #481