I want to create custom user profile template for bbpress users. What to do?
I am trying to create a custom user page template in bbpress. I have created a file single-user.php in my child theme. And placed the code from bbpress single-user.php there.
But the urls of the profile and other things are not working. Any idea of what is happening here?
Please help me. I am trying to gain it but not getting it right. Just need the proper guidance from you.
so have you essentially done this
transfer this to your pc and edit
create a directory on your theme called ‘bbpress’
where %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
bbPress will now use this template instead of the original
I am in the same situation : i copy/past the content-single-user.php (besides, what is the difference with the user-details.php ?) and edited it .. but i dont know what to do with it (on my profile page i can clic on Profil, favorite, engaements and subscriptions.. but when it comes to “my topics” or “my replies”, i got an error “404 : page not found” . I guess the script lines that tie in with are :
<?php if ( bbp_is_single_user_topics() ) bbp_get_template_part( ‘user’, ‘topics-created’ ); ?>
<?php if ( bbp_is_single_user_replies() ) bbp_get_template_part( ‘user’, ‘replies-created’ ); ?>
What are ‘topics-created’ or ‘replies-created’ ? methods ? templates ? how can i edit it ?
Thank you for the suggestion. But basically what I am trying to do is, show or adding the bbpress profile information to another page that I have created as an “My Account” page.
The information shows up but links are not taking me to anywhere. Is there something to do with global user ID?
bbp_get_template_part( ‘user’, ‘topics-created’ )
will use the template ‘user-topics-created.php’ – basically you put all the words together to make the file (that just how wordpress does it!)
These templates all sit in the same directory as the content-single-user.php file.
@nayanboost – what url do they take you to ?
this (changed) code from my plugin may help you create a link
`$text=__(‘Profile’, ‘bbp-style-pack’) ;
$current_user = wp_get_current_user();
echo ‘<a class=”‘.$class.'” href=”‘ . esc_url( bbp_get_user_profile_url( $user) ) . ‘”>’ . $text . ‘</a>’;`
But why when i clic on these 2 links (my replies or topics created) the page is not found ? i have tried to create 2 pages that i named user-topics-created and user-replies-created, without success 🙁
@momomoko sorry only so much I can do for free – this is not a bug in bbpress or an easy ‘how to’ – you’ll need to work it out
Ok Robin, i will try to understand how . I think that the theme i choosed for my website (oceanWP) is not the best idea i got : but now, it is too late to change .
Thank you for your time
finally i fixed it by changing the permalink settings to “simple” (it was on customed %postname%) … now i have new issue : cannot send private messages to other members
I found the way to fix this url issue : actually it was just an accent reason !!! i went to seetings->forums .. in there go to the bottom at “custom endings of URL of the profil user page” and just make sure, in the form fields, that u dont use any accent like in french (my current language!) : example for topics created fill it with sujet “demarre” (not démarré) .
hope it will help others 😉
- You must be logged in to reply to this topic.