[buddypress-trac] [BuddyPress Trac] #8052: Suggestion for Activity Stream - link to Post
buddypress-trac
noreply at wordpress.org
Tue Dec 6 11:50:56 UTC 2022
#8052: Suggestion for Activity Stream - link to Post
---------------------------------------------------+-----------------------
Reporter: bee360 | Owner: imath
Type: enhancement | Status: reopened
Priority: normal | Milestone: 11.0.0
Component: Blogs | Version: 4.1.0
Severity: normal | Resolution:
Keywords: dev-feedback has-patch has-unit-tests |
---------------------------------------------------+-----------------------
Changes (by teeboy4real):
* status: closed => reopened
* resolution: fixed =>
Comment:
Hello @imath
Can you add the same design support for activities created by custom post
types so the styling can be uniform.
I use a classified plugin (wpadverts.com) with a buddypress addon but the
activity styling is different from post activities
This code was sent to change the advert activity
{{{
/* Change buddypress wpadverts activity display format */
add_filter( "wpadverts_bp_activity_add_params", function( $args, $post_id
) {
$content = "";
/** Insert Ad Content */
$content .= "<br/>". get_the_excerpt( $post_id ) . "<br/>";
/** Insert Ad Price */
$content .= "<b>". adverts_get_the_price( $post_id ) . "</b>";
/** Insert Ad Image */
$image_id = adverts_get_main_image_id( $post_id );
if( $image_id ) {
$content .= sprintf( '<img src="%s" alt="" /> ',
adverts_get_main_image( $post_id ) );
}
$args["content"] = $content;
return $args;
}, 10 , 2);
}}}
Kindly see link below for more info
https://wordpress.org/support/topic/buddypress-update-2/
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8052#comment:24>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list