Hide Reply button on certain activity types
-
Hi everyone, I’m trying to hide the reply button on the activity stream where the activity type = ‘new_forum_post’ or ‘new_forum_topic’. I can see in the wp_bp_activity table the field type but I do not know how to check for this field in bp.
In wp-content/themes/bp-addata/activity/entry.php around line 30 I found the conditional for the reply link, I just need to add some more conditionals to check if the activity is type ‘new_forum_post’ or ‘new_forum_topic’ to not show the reply button. I have the code below which i thought i had pulled the field i needed to preform the check on that type field.
http://chr313.powweb.com/1.2.9/
Thank you for the any help,
if ( (is_user_logged_in() && bp_activity_can_comment()) && ($activity_obj->type != 'new_forum_post') ) :
reply button
endif;
- The topic ‘Hide Reply button on certain activity types’ is closed to new replies.