Forum Replies Created
-
never mind…
silly me
Nice…
Thank you for the help.Here is another good plugin for opening external links in new windows.
https://wordpress.org/extend/plugins/open-external-links-in-a-new-window/I guess this is top secret information?
I promise I won’t tell anyone
In my forums-loop.php I have:
(Didn’t come up on my first post)if ( function_exists( ‘bp_get_the_topic_post_poster_username’ ) ) echo bp_get_the_topic_post_poster_username();
I found this confusing thread searching for a way to add the topic starter on my forums index page:
Ex: http://www.mywebsite.com/forums/What do I need to have in my bp-custom.php file?
I have this:
function ray_bp_get_the_topic_last_poster_name( $name ) {
global $forum_template;return str_replace($forum_template->topic->topic_last_poster_displayname, $forum_template->topic->topic_last_poster_login, $name);
}
add_filter( ‘bp_get_the_topic_last_poster_name’, ‘ray_bp_get_the_topic_last_poster_name’ );function bp_get_the_topic_post_poster_username() {
global $topic_template;if ( !$link = bp_core_get_user_domain( $topic_template->post->poster_id, $topic_template->post->poster_nicename, $topic_template->post->poster_login ) )
return __( ‘Deleted User’, ‘buddypress’ );return apply_filters( ‘bp_get_the_topic_post_poster_username’, ‘post->poster_login . ‘”>’ . $topic_template->post->poster_login . ‘‘ );
}And then this in my forums-loop.php template I have:
But all I get is “Deleted User”
Can anyone tell me what I am doing wrong?