Forum Replies Created
-
In reply to: bbpress user profile list
I’m also interested in how to link to user’s profile pages.
Really old thread but sharing my solution in case it’s helpful for anyone else. I used:
<?php single_post_title(); ?>
Instead of:
bbp_get_forum_title
Fix is here if you’d like to manually change the current version (works for me):
https://bbpress.trac.wordpress.org/attachment/ticket/2620/2620.patch
Found the trac ticket for this error:
https://bbpress.trac.wordpress.org/ticket/2620
Looks like the fix is going into the bbpress 2.6 release.
So the error is referencing the filters “bbp_forum_subscription_mail_message” and “bbp_forum_subscription_mail_title”.
I’m developing on a localhost setup. My best guess is that, because the localhost isn’t able to send out emails notifying users that a new topic was created, it’s causing an error?
I’m also receiving this error with WP_DEBUG on. I’ll post more info if I discover anything more but my situation is exactly as dryan1144 has said too.
In reply to: Resizing AvatarsI was able to locate
bbp_single_user_details_avatar_size
in bbpress/templates/default/bbpress/user-details.php which eventually lead me to the following function that accomplishes what I needed (resizing the avatar):function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) { $author_avatar = ''; if ($size == 14) { $size = 24; } if ($size == 80) { $size = 110; } $topic_id = bbp_get_topic_id( $topic_id ); if ( !empty( $topic_id ) ) { if ( !bbp_is_topic_anonymous( $topic_id ) ) { $author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size ); } else { $author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size ); } } return $author_avatar; } /* Add priority (default=10) and number of arguments */ add_filter('bbp_get_topic_author_avatar', 'my_bbp_change_avatar_size', 20, 3); add_filter('bbp_get_reply_author_avatar', 'my_bbp_change_avatar_size', 20, 3); add_filter('bbp_get_current_user_avatar', 'my_bbp_change_avatar_size', 20, 3);