[buddypress-trac] [BuddyPress Trac] #8581: Extending no content activities with images and call of actions

buddypress-trac noreply at wordpress.org
Sun Dec 12 02:58:44 UTC 2021


#8581: Extending no content activities with images and call of actions
-----------------------------+---------------------
 Reporter:  vapvarun         |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  10.0.0
Component:  Activity         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+---------------------

Comment (by imath):

 In [changeset:"13181" 13181]:
 {{{
 #!CommitTicketReference repository="" revision="13181"
 Generate a richer content for "no-content" activities

 Create the "generated-content" support for the following activity types:
 'new_member', 'new_avatar', 'friendship_created', 'created_group',
 'joined_group' & 'updated_profile'.

 - Introduce the `bp_activity_type_part()` function to return the name of
 the activity type template part.
 - edit the `bp_activity_has_content()` function to generate a richer
 content for activity types supporting the feature. For such activities the
 `$activities_template` global is extended adding a `generated_content`
 property to each activity in the loop having a type supporting the
 "generated-content" feature.
 - Introduce the `bp_activity_generated_content_part()` template tag which
 use the current activity `generated_content` property to output the
 requested information passed as the function parameter.

 Props vapvarun, oztaser

 See #8581
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8581#comment:37>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list