Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#481 closed defect (bug) (fixed)

2 hooks in bp-groups/directories/bp-groups-directory-groups.php needed!

Reported by: nicolagreco's profile 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)

#1 @apeatling
16 years ago

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

(In [1136]) Fixes #481

#2 @(none)
15 years ago

  • Milestone Groups 1.0 deleted

Milestone Groups 1.0 deleted

Note: See TracTickets for help on using tickets.