Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Making `from` a link in Topic View


Peter A. Gebhardt
Participant

@starship-trooper

The code developed so far (resembling the buddyPress Forum experience):

...
<span id="topic_posts"><?php topic_posts_link(); ?>, </span>
<span id="topic_voices"><?php printf( '%s voices', bb_get_topic_voices() ); ?></span>
<span><?php if ( 1 < get_topic_posts() ) : ?>
<?php printf(__('- <a href="%1$s">Latest reply</a> from '),attribute_escape( get_topic_last_post_link()) ) ?>
<a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (sanitize_user(get_topic_last_poster(),true)); ?>"><?php echo get_topic_last_poster(); ?></a>

<?php endif; ?>
</span>

does only generate an “User not found.” error with:

..../profile.php?id=Test%20User

Skip to toolbar