Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#4596 closed enhancement (fixed)

Template function to get group->creator_id

Reported by: DJPaul Owned by: modemlooper
Milestone: 1.7 Priority: low
Severity: minor Version:
Component: Groups Keywords: needs-testing has-patch
Cc:

Description

We should add a groups template loop function to return the group->creator_id property. We already have many simliar functions for the group's other properties, and we should expose this to avoid theme authors having to access the global directly.

Attachments (1)

4596.patch (2.4 KB) - added by modemlooper 8 years ago.

Download all attachments as: .zip

Change History (8)

#1 @DJPaul
8 years ago

  • Keywords needs-patch added

Puntable unless someone wants to write a patch for fame and glory.

#2 @modemlooper
8 years ago

  • Owner set to modemlooper
  • Status changed from new to assigned

#3 @modemlooper
8 years ago

  • Keywords has-patch needs-testing added; needs-patch removed

patch creates two functions:

bp_group_creator() and bp_group_creator_permalink()

#4 @DJPaul
8 years ago

  • Keywords needs-patch added; has-patch removed

Thanks for patch. I think we should also add a function to just return the user ID?

#5 @modemlooper
8 years ago

I was thinking the same thing, ill add that.

@modemlooper
8 years ago

#6 @modemlooper
8 years ago

  • Keywords has-patch added; needs-patch removed

Added more functions

bp_group_creator_username()
bp_group_creator_id()
bp_group_creator_permalink()
bp_group_creator_avatar()
bp_is_group_creator()

#7 @johnjamesjacoby
8 years ago

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

(In [6614]) Add some extra group template tags. Also, correctly pass $group through related output functions. Props modemlooper. Fixes #4596.

Last edited 8 years ago by johnjamesjacoby (previous) (diff)
Note: See TracTickets for help on using tickets.