I was able to do this by adding this to my functions.php / custom plugin:
// Add custom fields to bbpress topics on front end
add_action ( 'bbp_theme_before_topic_form_content', 'bbp_extra_fields');
function bbp_extra_fields() {
$value = get_post_meta( bbp_get_topic_id(), 'YOUR-FIELD-NAME', true);
echo '<label for="bbp_extra_field">My Extra Field:</label><br>';
echo "<input type='text' name='YOUR-FIELD-NAME' value='".$value."'>";
}
//Save and update the values from the front end
add_action ( 'bbp_new_topic', 'bbp_save_extra_fields', 10, 1 );
add_action ( 'bbp_edit_topic', 'bbp_save_extra_fields', 10, 1 );
function bbp_save_extra_fields($topic_id=0) {
if (isset($_POST) && $_POST['YOUR-FIELD-NAME']!='')
update_post_meta( $topic_id, 'YOUR-FIELD-NAME', $_POST['YOUR-FIELD-NAME'] );
}
I think that’s correct but am in a bit of a code-haze at the moment! Hopefully it puts you on the right track at least. (And I can’t remember where I got the original code so apologies for not crediting original author)
Hi!
When clicking through bbpress user pages (profile, edit profil, subscriptions etc..) the avatar and the user navigation will be displayed on the left side on all those pages by default.
How can I remove avatar’s and user navigation’s div from all pages except the user’s profile home page to get more space?
Tried this in user-details.php, did not work (blank screen):
<?php if ( bbp_is_user_home() ){ ?>
<div id="bbp-user-avatar">
[...]
</div>
<div id="bbp-user-navigation">
</div>
}
Thanks in advance!
I am pretty much out of ideas as to what to do.
Our website is http://www.geekgirlpenpals.com
We have Godaddy managed wordpress hosting. I call their customer support and they have no idea what’s wrong.
We were using the Hueman theme for a long time, and suddenly yesterday the BBpress plugin began acting up and causing a 500 internal server error. It caused those errors on both Posts and Forums. The error only appears to people who are logged in.
Once I deactivated BBpress, the error was gone (but so were the forums)
Since I knew it was BBpress, I uninstalled and reinstalled BBpress plugin. That did not fix it
I turned on the Twenty Fourteen theme and that seems to show the forums fine. So I went ahead and installed a new theme, thinking it must be a theme issue.
The theme worked great for about 5 hours and showed the forums and blog (while logged in, which is when the problem was occuring) but now as of 5 minutes ago – exact same problem.
Feel free to use username jimbob and password jimbobsauce to test the Internal Server Error
HELP 🙁
Hi!
I ‘d like to change the meta titles (browser’s page title) for bbpress’ profile/user pages as it was not catched by the translation in my language.
So far I tried this which does not work:
function amend_title ()
{ elseif ( bbp_is_single_user() ) {
if ( bbp_is_user_home() ) {
$new_title['text'] = esc_attr_x( 'Translation of Your Profile', 'User viewing his/her own profile', 'bbpress' );
}
} else {
$new_title['text'] = sprintf( esc_attr_x( "%s's", 'User viewing another users profile', 'bbpress' ), get_userdata( bbp_get_user_id() )->display_name );
}
if ( bbp_is_single_user_topics() ) {
$new_title['format'] = esc_attr__( "%s Translation of topics", 'bbpress' );
} elseif ( bbp_is_single_user_replies() ) {
$new_title['format'] = esc_attr__( "%s Translation of replies", 'bbpress' );
} elseif ( bbp_is_favorites() ) {
$new_title['format'] = esc_attr__( "%s Translation of favorites", 'bbpress' );
} elseif ( bbp_is_subscriptions() ) {
$new_title['format'] = esc_attr__( "%s Translation of subscriptions", 'bbpress' );
} else {
$new_title['format'] = esc_attr__( "%s Translation of profile", 'bbpress' );
}
} elseif ( bbp_is_single_user_edit() ) {
if ( bbp_is_user_home_edit() ) {
$new_title['text'] = esc_attr__( 'Translation of edit profile', 'bbpress' );
} else {
$new_title['text'] = get_userdata( bbp_get_user_id() )->display_name;
$new_title['format'] = esc_attr__( "Translation of edit %s's profile", 'bbpress' );
}
return $new_title;
}
add_filter('bbp_before_title_parse_args', 'amend_title' );
Any help is much appreciated!
Thanks!
I am hoping someone here can help me or shed some light on what we can do about this. We have the WishList Member plugin installed, setup and running. It was not until then that we realized that despite the fact you can assign specific forums to each level any topics created by members with access to that level will not inherit that protection.
This means that if member A has access to Forum A by being a member of Level A in WishList member and creates a new Topic, lets say ‘A’. Topic A is now visible to the entire world and not just members with access to Level A. Hope that makes sense.
You can go into the WishList Member settings and protect that topic correctly after the fact, but that is a manual step for each and every topic that members create. That is definitely not going to work long term.
I am hoping someone has some ideas on what we can do about this. I have contacted WishList Member and they say despite the fact they say the ‘integrate’ with bbPress they do not support this. Which I think is a cop out, since you can go in afterwards and protect the topics…
Revival!
It gets hilariously worse when running a MultiSite – Calling a SubSite “Forum” – then working around this issue. The bigger your site, the less you want everything to weigh for User loading and Server handling. There’s now an option in the bbPress Settings called ‘Prefix all forum content with the Forum Root slug (Recommended)’ – I’ve unchecked it. I’m willing to bet I run into *at least* one hundred different user issues now that I’ve done so. This was definitely designed for the smaller blog, even with it’s latest updates I’m having unrelated issues not addressed in documentation.
I’m an advanced User, too. As cool as BuddyPress is, it’s pretty much useless without bbPress integration. As much as people would like to pretend (yep, you’re dreaming) their running their own “social media website”, it’s an unrealistic dream compared to running a Forum. Financing that dream over the Forum is poor form, but w/e.
By the time it gets addressed, the advanced users with thousands of of hits a day wont change it. Why? Because of the Social Media Integration like Facebook, Twitter, and G+ – NOT BUDDYPRESS (which I run for other much different *fluffy* reasons). Likes and Shares are gold, it’s networking and sales. We will weigh our links; SHARING LINKS and LIKES; over making the url pretty for SEO at that point… no matter how terrific the fix.
8 years too late pretty much. I know it’s community driven – and that’s respectable. Doesn’t change the bigger picture, though, and imo this plugin outweighs BuddyPress in importance concerning the current evolution of WordPress itself.
yes but does that mean there are multiple login processes? once into the membership section and another into bbPress? Im simply wanting a forum to be part of my membership section so is there a way to modify the ‘forum’ page settings?
I use to have a good custom function on my theme that add custom banners before articles, what I do is to write a function with the rotation ads inside.
The final lines are like this:
return $custom_adsense . $content;
}
add_filter(‘the_content’, ‘custom_banner’);
What is the_content equivalent in bbPress?
How can I add a custom banner over all topics?
My theme is Twenty Fourteen and I have a nice space above these forum pages that fits ads perfectly.
Hello. I run a MultiSite. I’m a firm believer in “Weight” – meaning I should only have the plugins I want activated on a site that demands it – in such a way that gives users a seamless experience (as if they never left the root). Otherwise, it weighs down the entire multisite, in my case of 8 subsites all serving vital purposes. eg. /root / magazine /forum /store /support /project1 /project2 /project3 /etc. Also helps with security.
Every time I activate a bbPress plugin on a SubSite – it deactivates bbPress. Everytime I activate bbPress, it deactivates the plugins. I don’t need bbPress sitewide, nor do I need it’s plugins sitewide. It’s useless weight – and while I could use Plugin Organizer to manually disable the plugins 7 times accross dozens of addons… why should I have to?
Potentially a user-error, I’m curious why this is might be occurring – or if there’s a solution to the issue?
No you were trying to find this code as if it was already in your theme , I just showed you the original code so you could understand why it was causing the issue.
But just place this CSS code where you would put custom CSS like what I already listed.
You do not have to replace any code just add it as custom css
#bbpress-forums .single_post a {
font-size: 12px !important;
margin-left: 0 !Important;
}
Since your bbPress forums look custom I can’t tell which is custom and what could be your theme so you would have to edit this code and replace the original code in the bbpress.css file if you want or just place it in some other custom css areas with !important after the width to help out.
You can place the code in the bbpress.css file where you want , it is your site
the two places i said would be better for beginners so that the code doesn’t conflict with the media queries.
li.bbp-forum-topic-count,
li.bbp-topic-voice-count,
li.bbp-forum-reply-count,
li.bbp-topic-reply-count {
border: 0px none;
width: 10% !important;
margin-right: 20px !important;
margin-top: 0px !important;
}
Okay so if I am understanding this correct (sorry im still learning this stuff)
for my themes style.css files you want me to find the code
.single_post a {
font-size: 14px ;
margin-left: 0 ;
}
and replace it with
#bbpress-forums .single_post a {
font-size: 12px !important;
margin-left: 0 !Important;
}
And for this code
li.bbp-forum-topic-count,
li.bbp-topic-voice-count,
li.bbp-forum-reply-count,
li.bbp-topic-reply-count {
border: 0px none;
width: 10% !important;
margin-right: 20px !important;
margin-top: 0px !important;
}
you want me to open up the bbpress.css and add it above the media queries or just at the top above the other css rules?
Well a good way to link to the users topics created is maybe create a custom bbPress login widget as listed here.
Redirect from page to profile url (menu link)
I might create a gist to post what I mentioned in the topic
Your theme had something similar to this CSS
.single_post a {
font-size: 14px ;
margin-left: 0 ;
}
So the new CSS I gave you would overwrite it only on bbPress forums.
you can add it
to your child themes style.css
in a custom css plugin
and you could add it to the bbpress.css file if you put it in your child theme in a folder called css somewhere above the media queries or just at the top above the other css rules.
I just checked my themes style.css and there is nothing with bbpress forums in it right now for some reason there is however css code in my responsive.css for bbpress forums
#bbpress-forums .status-category li.bbp-in-forum-freshness {
margin-left: 1px;
width: 33.494% !important;
#bbpress-forums .bbp-topics li.bbp-body ul.topic {
border-bottom: medium none !important;
border-left: 0 none !important;
border-top: 2px solid #aaa !important;
box-shadow: 1px 1px 0.5px 0 rgb(221, 221, 221);
thank you for the reply now where would this code go in the bbpress style.css? can it go directly at the end? Or am i editing the code? same goes for the themes style.css. thanks
Id say use this plugin ,add the widget to a sidebar ,go to the forum and remove the subscribers from the widget
https://github.com/easydigitaldownloads/bbPress-Topic-Subscribers
This seems very custom , looks pretty good though
The bbPress forum header labels have certain widths to them. So this is the CSS you might want to adjust.
li.bbp-forum-topic-count,
li.bbp-topic-voice-count,
li.bbp-forum-reply-count,
li.bbp-topic-reply-count {
border: 0px none;
width: 10% !important;
margin-right: 20px !important;
margin-top: 0px !important;
}
It might look shifted because you are trying to make your forums look more table like.
The username being shifted is because of some CSS from your theme being added into bbPress.
This custom css might help.
#bbpress-forums .single_post a {
font-size: 12px !important;
margin-left: 0 !Important;
}
@mfiguerasma
You can allow users to create forums if you give them the capability to do so , or create a new bbPress role for them to default as so that they can all create forums.
I only recommend this if you can moderate all activity somehow , and your site is built to handle users creating a bunch of forums.
Also note that some forums that a user could create could have minimum activity and really just be a dead forum if it is not as popular.
If users are able to create groups , I mean that is BuddyPress and there could be a way to disable user group creation from low level users , if you want to disable it.
IF BuddyPress has a different capability to add forums to groups then , I do not know if I can help there.
So I am using a custom theme for my site and when I integrated bbpress into my theme the alignment is just off for some reason. On the home page the top bar is a little miss aligned where it says “topics” and “posts” Link – http://dailymut.com/dailymut-forums/
When I go into a topic the alignment is really off under “topic” and a part of background is missing under “voices” “posts” and “freshness”. And There is a random circle over the “voices” text for some reason. Link – http://dailymut.com/forums/forum/madden/mut-player-reviews/
Finally when I go into the Topic The picture is not aligned with the username and the text box looks off as well.
I have tried to change the style.css and I have tried to change the bbpress CSS and nothing has worked maybe im imputing the wrong code or maybe im not in putting it correctly. Either way if anyone can check it out and see what the problem is and could tell me what code to input and where specifically to put it that would be greatly appreciated.
If you want that plugin to have compatibility with bbPress , contact the plugin author.
But you can also make forums private by going to each forum and changing the visibility to private.
- go to forums > all forums
- edit the forum of your choice
- change the visibility to private.
Can someone please post the link here. I only opted by bbPress over other options because I saw this nice sidebar in this forum.
And if you guys implement the code as a plugin or something bbPress would have many more installs.
that very interesting because thats how I implented the badges from user pro and integrated them into bbpress by modifying those templates. Ill look into it thanks.
Since I see you are using Thesis , take a look at this topic for help.
bbPress 2.0 Thesis Compatibility
And also this direct link to the plugin
http://studio.kristarella.com/product/bbpress-box/