User Profiles
-
I’m trying to figure out a few things – I’ve done a search and read through a couple dozen or so items without much luck.
I’d like to incorporate some more info into the bbPress user profiles – I know I can probably do this using the $curauth params but want to make sure. I also want to make authors/contributors/etc link to the bbPress profiles as well. Is there a quick piece of code I can use to do this within my WordPress theme files?
I have this function to return an author profile page when the name is clicked on:
function new_comment_author_profile_link(){ /* Get the comment author information */ global $comment; $comment_ID = $comment->user_id; $author = get_comment_author( $comment_ID ); $url = get_comment_author_url( $comment_ID ); /* Return the default WordPress comment author link if comment author is not a registered user */ if ($comment_ID == 0){ if ( empty( $url ) || 'http://' == $url ) $return = $author; else $return = "<a href='$url' rel='' class='author-url'>$author</a>"; } else { /* Return the link to the comment author's profile page if otherwise */ $return = '<a href="'.home_url().'/?author='.$comment_ID.'">'.$author.'</a>'; } return $return; }
Can I plug in some line/piece of code to direct it to the bbPress profile instead? If so, what piece?
Wordpress & bbPress are latest versions – website is http://www.novasev.com
Appreciate the feedback.
- You must be logged in to reply to this topic.