ok, so
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/user-details.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/user-details.php
bbPress will now use this template instead of the original
Now edit that file so that you add a new line between line 16 & 17 which currently read
<div id="bbp-single-user-details">
<div id="bbp-user-avatar">
so add
<h1> <?php bbp_displayed_user_field( 'display_name' ); ?> </h1>
after this line so that you end up with
<div id="bbp-single-user-details">
<h1> <?php bbp_displayed_user_field( 'display_name' ); ?> </h1>
<div id="bbp-user-avatar">
as the three lines.
and save
It should now display
A quick code to achieve such will be much appreciated.
If it was I’d give it, but it would involve a rewrite of the function bbp_reply_author_link
It’s quite do-able, but I don’t have the time – sorry !
Delete Row 1302 “$url = add_query_arg( array( ‘redirect_to’ => urlencode( $redirect_to ) ), $url );”
It works for me…. 😉
@Kolya Korobochkin you are right, but i think the mistake born when admin use bbpress only on subsite, and not in wide mode. By the way, the bbpress shortcode for register isnt working.
ok, it hasn’t come through, so first of three replies to avoid the spam filter !
WITHOUT CODE – I can do more if you accept coding!
1. Alter the bbPress user profile page–adding new fields, editing existing fields and removing fields
Try my plugin https://wordpress.org/plugins/bbp-profile-information/
Lets you add 4 profile fields for users to update and you can optionally display these under the avatar on topics and replies.
If you want to remove fields – that’s code, but let me know which ones you want to remove, and I’ll take a look.
Hey fellas,
After going through these forums for over 3 days and even thou I can across topics similar to this, the solution provided there just doesn’t work for me.
What I am looking for is basically a simple way to distinguish easily between members of different roles, i.e., By allotting colors to Author names depending on their roles like Red for Admin, Blue for Participant, etc. This should not only display in a the topic/thread itself but also in the forum/topics list as well. A quick code to achieve such will be much appreciated.
Next followup thing is to distinguish threads created by these members by highlighting the topic with in New Topics/Forums with the color assigned to the topic author. For ex: Threads created by Admin should be highlighted in Red.
I have seen allot of folks here give their into helping out this growing community and I appreciate all that you guys are doing.
Hoping someone could up with a quick set for this issue.
Cheers.
Line 65 is:
if( is_page() || is_bbpress() ) {
function travelify_theloop() {
if( is_page() || is_bbpress() ) {
if( is_page_template( 'templates/template-blog-large-image.php' ) ) {
travelify_theloop_for_template_blog_image_large();
}
elseif( is_page_template( 'templates/template-blog-medium-image.php' ) ) {
travelify_theloop_for_template_blog_image_medium();
}
elseif( is_page_template( 'templates/template-blog-full-content.php' ) ) {
travelify_theloop_for_template_blog_full_content();
}
else {
travelify_theloop_for_page();
}
}
Hi, i have a wired problem.
When i have bbpress activate, my page works fine.
but when i deactivate the bbpress plugin, my mainpage stop working,
and i get a php error in logs
[10-Feb-2015 10:47:43 UTC] PHP Fatal error: Call to undefined function is_bbpress() in /var/www/clients/client3/web3/web/wp-content/themes/travelify/library/structure/content-extensions.php on line 65
Hi folks,
I could really use some help! I’ve installed bbpress and it’s beginning to look good, but I’m having some problems with the table alignment.
My theme is responsive but for some reason, the individual forum columns (ie freshness, topic, etc) aren’t holding their shape at all and keep running over onto the next line, making the forum look very messy on mobile.
I have access to the CSS file but can’t figure out the code I need to make sure that the columns remain ‘fixed’, regardless of the screen size/orientation. Here’s a link – I would be very grateful if you could give me a hint as to what I need to change. I’m running wordpress 4.1 and the latest version of bbpress.
Sweden & Denmark travel forum
Thank you!
Welcome, and I wish everybody wrote such a clear problem definition !!
Ok, what we need to do is to get bbpress to use the correct template/part of template that has the sidebar setup you want.
This is always that hardest part of getting bbpress working, as theme authors do like to make complicated themes !
First can you tell me what way bbpress is working in step 3 below
Step by step guide to setting up a bbPress forum – Part 1
Hello. I’m new to bbPress and to WordPress in general. I have installed the bbPress plugin and am trying to set up the bbPress user profile to do a few things below.
Is there a plugin or collection of plugins that you can suggest to help me do these things? In general, I’m not comfortable editing code.
Here’s what I’d like to do:
1. Alter the bbPress user profile page–adding new fields, editing existing fields and removing fields
2. Add a link to the bbPress Login Widget for users to edit their profiles (instead of clicking their names…clicking their names doesn’t seem obvious to me)
3. Completely hide any backend/admin type stuff from non-admin users so that they never leave the frontend part of the site
Thanks
Hi robin,
I put my bbPress.php into the Twenty Twelve parent theme, activated the twenty tweleve theme, and the forum links still do not work / problem remains with that config.
I tried the above with also removing the bbPress.php from my child theme. still no joy.
I tried the above with my child theme activated. continued no luck.
I made a page with the short code. links don’t work, problem remains.
Thanks for your continued help!
I know where to add it if the code works but my basic understanding is not very good. Just html and css so far.
What idea occurred to you?
ok, two thoughts
1. if you put your bbpress.php into the twenty twelve parent theme, does it work ?- that will eliminate that file
2. can you create a page and put the shortcode [bbp-forum-index] in it and see how that page works or not
Thanks for your reply.
Yes thats right. I added a forum and a topic in the forum, and I want to use the reply form to let the user answerfrom another wordpress page into this specific topic – in my case I want to add the reply forum in a course page of learndash – I think they use the normal wordpress post.
It works already with the shortcode [bbp-single-topic id=$topic_id], but then the reply form and specific topic with its answers is shown in the page. Thats too much.
I thought of just adding the form reply and say the shortcode [bbp-reply-form] where it
belongs to.
Like the example: http://www.imageupload.co.uk/images/2015/02/08/shorcodeforminsidepage.jpg
Is that possible?
I have a custom theme site, child theme of twentytwelve. The links for the various forums and topics do not seem to be pointing to the correct places (individual forum, topic).
http://www.telluridemountainclub.org/mtn-club-forums/
When I click on anyone of the forums I get the “Oh Brother! No forums were found here.” message
When I click on anyone of the topics I get the same “Oh Brother! No forums were found here.” message. I pretty sure that I have configured something incorrectly.
In the theme folder I have put the bbPress.php. Below is the code in that file. Does my problem lie with the bbPress code that I used in this file?
<?php
/**
* bbPress - Forum Archive
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<div id="p7CCM_3" class="p7CCM01 p7ccm01-fixed-960">
<div class="p7ccm01-content-row p7ccm01-trans p7ccm01-dyn-img p7ccm-row">
<div id="mtn-main-column-page01" class="p7ccm01-2col-auto-column1 p7ccm-col">
<div class="p7ccm01-2col-auto-column1-cnt p7ccm01-content p7ehc-1">
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<div id="forum-front" class="bbp-forum-front">
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'archive-forum' ); ?>
</div>
</div><!-- #forum-front -->
<?php do_action( 'bbp_after_main_content' ); ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Any suggestions for getting this to work will be greatly appreciated.
Hi,
I am using bbpress 2.5.4 and Wordporess 4.1 and everything work fine.
Is it possibe to only display the reply form with the shortcode [bbp-reply-form] on any wordpress page or in my case at a course page from Learn Dash?
as shown here:
http://www.imageupload.co.uk/images/2015/02/08/shorcodeforminsidepage.jpg
If I reply now the “Error: Topic Id is missing” (German: FEHLER: Themen-ID fehlt) appears. Ok, that’s traceable because I dint’s say the reply form where it belongs to. But adding a Topic ID to the shortcode like [bbp-reply-form id=223] doesn’t seem to be supported and nothing appears.
Is there any way to do that? To say the reply form on any page in wordporess in which topic it should reply.
I don’t want to add new topics to a forum or let the user select a forum from the dropdown (as described in the bbpress shorcode codex). I just want to have the reply form (without the topic posts) inside my course pages and let the people reply.
Looking forward for any help or solutions.
Grettings,
Basti
@andreippo Do not change the plugin files (bbPress). Use MU plugins or write your custom plugin. I use MU. If you write custom plugin make sure what all hooks connects in the right sequence.
Do not change the attributes passed to functions (they are correct). You can change logic inside functions and change the headers, title, text of outgoing emails.
selena_network_ is my multisite prefix used in all functions at armyofselenagomez.com and selenaselena.ru.
Hello All,
I was wondering if anyone had any insight to the “My Account” menu on this site up in the top right.
Does anyone know if this is a plugin or is this all back end coded?
I checked several places bbPress and WordPress plugins but I cant find anything thats looks like it.
I did check the “Author Avatars List” plugin.
I am also guessing it might be “membership” related outside of bbPress.
Any insight would be greatly appreciated.
Thanks!
This is perfectly fine or if it said
http://www.gaucinforum.com/members/japs/
that would be fine too.
I am assuming there is some code in the bbpress members pages that says to use nickname instead of username?
or is there some php to add to my functions to make wp register users nicknames as there username with a 1 or something.
I hope that makes it clear whats happening and what I need to happen?
Thanks
Mark
Sorry I thought I was but you know what its like when your in the middle of it 🙂
The site is gaucinforum.com
When you go there you can only access the home page the contact page and terms etc without being registered.
The registration page is standard bbpress with 3 additional fields (not really relevent)
The user registers with
Username : japs
Name : John Powell
In the background it has created a user with
Username : japs
First Name : John
Last Name : Powell
Nickname : John Powell
Display Name Publicly : John Powell
I am using the plugin BP Display Name to force Display Name Publicly As : Username
and I have added the code
define( ‘BP_SHOW_DISPLAYNAME_ON_PROFILE’, false );
to my wp-config.php
If you have FTP access then :
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
find
wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/form-reply.php
bbPress will now use this template instead of the original
then you need to chnage the line
<?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
to do a check for keymaster and author
something like
<?php if ( bbp_is_user_keymaster()) || bbp_get_reply_author_id() == bbp_get_current_user_id() : ?>
bbp_get_reply_author_id() might need to be bbp_get_topic_author_id() – you’ll need to try it to see
Give this a go, I’m very short of time at the moment, so haven’t tested !
@twist360 I’d like to save this solution in my folder of useful info.
To save me copying and cobbling together the final answer from the above, can you post the final code you did for the solution below as one package
This will help others and be useful
Thanks Robin
I have to say I think your programming skills are probably better than mine !
The views bit hooks to bbp_has_topics, so the args are the key part to get this going, rather than needing to alter php files
see
Adding Custom View Shortcode
for how another user got a custom view with meta data working – I’m a bit tied up at the moment to write the answer, but judging by your post above you should be able to work it out !
If you don’t then come back and I’ll try and help when I get some time
If you do, please post the whole solution here in the spirit of sharing – it would be a good one to have for other people, and to add as a plugin to the other plugin.
or add the following to your style.css
. bbp-reply-content a:link, a:visited, a:hover {
color: blue !important ;
}
Functions files and child themes – explained !