Search Results for 'code'
-
Search Results
-
Topic: 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.Hi,
I recently installed bbpress on my site and had no issues with it – it worked really well. But I changed my permalinks to %category% for the category base. And suddenly the forums stopped working. I tried copying the short code, and even clicking “view forum” direct from the forum creator, and it keeps coming up as a 404, even though they are clearly visible in the back end.
When I remove the %category% permalink, it returns to normal, but then of course that stops me being able to permalink my categories (which is something I need to do for this site). I have tried un installing and re installing the plugin, but it doesn’t seem to have any effect. Any idea what might be going on, and how to resolve it?
Hello,
I would like to display on the front-end (over forum list on bbpress root page) the forum’s description (see here: http://i.imgur.com/o3c5iA1.png … to see what i’m speaking about).
I know there is a hook to put some content in this area “bbp_template_before_forums_index” but is there a function or a shortcode to get the forum’s description (http://i.imgur.com/o3c5iA1.png) ?
Thx