I have a general question. I am trying to modify the behavior of the function bbp_new_topic_handler, which is located in bbpress/includes/topics/functions.php. I use child themes extensively. I have not found a way to modify functions.php within my child theme. After reading the codex, and various searches, I THINK that I need to take the entire function, bbp_new_topic_handler, and re-declare it within bbpress-functions.php. I can’t declare a function twice, so that implies I need to remove it from functions.php within the above mentioned directory. Or perhaps I am on the wrong track?
What I fear is making changes directly to functions.php and then having those changes wiped out in the next bbpress update. I can’t use filters because I intend to modify how the function works, not just the wording.
So I suppose my question is as follows: How does one go about making changes to functions within a functions.php file, located in the includes directory? Does someone have a “best practice” recommendation for doing this?
Thanks.
@leanderbraunschweig Feel like creating a ticket on Trac, I never did ๐
https://bbpress.trac.wordpress.org/
Add it as an ‘enhancement’ type ticket with the component ‘users’ and leave it in ‘Awaiting Review’, add a bit of the detail of what is outlined above though the general consensus of the feedback above and we can start working towards adding support for this into bbPress ๐
This is a theme issue, your theme isn’t letting bbPress inject it’s template styles.
Ceate a file in the root of your theme called bbpress.php and putting the following code into it
<?php
/**
* bbPress wrapper template.
*/
get_header(); ?>
<?php while( have_posts() ): the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php get_footer(); ?>
@robinw – I just came across this too and thought exactly the same as you, that it needed that filter or something like that. I was trying to change the “Topic tags: ” (or something like that) bit of the tags archive pages.
It was picking up the default taxonomy-topic-tags.php file. This must have been picked up from the plugin default theme, not mine – it’s in /extras in my theme folder but changing it there had no effect, I had to move it out of there to the root of the theme folder. This totally makes sense from a WordPress standpoint but was non-obvious because I was looking in the bbPress folder in my theme.
ANYWAY it’s sorted now but if someone else comes across it, check for some hidden template. I couldn’t get that filter to work for anything. I tried very very hard to make it work. It didn’t.
@saulmarq – what you can do is make a new page and make the permalink your forum root. So my forum root (in settings) is forums and the page is at example.com/forums. Then use the [bbp-forum-index] shortcode. The gotcha is that this page will *only* use the bbPress template, I think – you can’t make a custom template for it. I might be misremembering that, but I do know you can’t change the default template. Someone tried to tell me this was a good thing, whatever.
Doing it this way is nice because then you can write an intro like:
Hi! Welcome to our forums. Dive right in. Post a lot, whoo!
[bbp-forum-index]
I have a bbpress forum structured like this:
Category_Forum_A
_Subforum_1
_Subforum_2
Category_Forum_B
_Subforum_1
_Subforum_2
_Subforum_3
Is there anyway to get the URLs of subforums using Category_Forum ID ? Is there any php function which I can use to get the URLs ?
WP 3.9.1
bbPress 2.5.4-5380
Suffusion Theme 4.4.7
Child Theme
forums.typeheritage.com
Hello, I used the Recent Replies one until it broke my siteโa long story, details if requested.
Then I discovered that the Recent Topics plug-in can be used three ways with config options in the drop-down widget menu:
Hottest Topics=Topics with Recent Replies
Latest Topics=Newest Topics
Popular Topics=Popular Topics (most visited? most discussed?)
My only concern is that “Hottest Topics” lists brand-new topics with NO replies. Is there a way I can fix this?
By the way, I have lots of private [unpublished] topics in progress, and they do not list in the sidebar.
Many thanks for your help, Anna
Hi Stephen, thank you.
Here’s the link:
You need to login to see the content: localp / localplayer1
http://www.thework-coaching.de/forums/forum/beziehungsprobleme-gibts-nicht-die-challenge/
Wordpress Version: 3.9.1
bbPress Version: 2.5.4
Buddypress: 2.0.1
Hi there,
Shmoo’s suggestion will do the job, thanks! But generally I think deleting of your own account could / should be a core component of bbPress rather than having to do that from an admin side. The posts & topics should stay and the former user will be marked as “retired”, “anonymous” or rather anything you ould like to specify (add an option to change the value in bbPress options).
If you set the ‘Group Forums Parent’ when you open any of bbPress’ group forum you should be redirected to the forum inside the BuddyPress group.
Thus if there are no bbPress ‘standalone’ forums and only BuddyPress Group forums there should not be any confusion.
i.e. No confusion if your not confused by my description above ๐
Doesnโt this require the person to put the image somewhere โ ie on Smugmug โ and then use the IMG tags to reference that image?
Yes
I was looking for something that allows you to just decide to show a photo in a forum post and upload it then and there to the site and have it display inside the post.
For this a common a plugin is this one https://wordpress.org/plugins/gd-bbpress-attachments/
I don’t see anywhere that lists only BuddyPress Group Forums. I mean is this from a fresh install of bbPress? I’ve had bbPress for a couple of years and don’t see anything in options, settings or elsewhere in the Dashboard that mentions bbPress.
*Edit*
I mean, I’m on the bbPress Settings and I see the “Enable Group Forums” but I don’t see where to disable sitewide forums.
Disclaimer: I tried to self medicate in the forums to resolve this, but to no avail.
Web-site: http://www.paulgarth.name
bbpress: Just installed a day or so ago from within PlugIns – really easy
Static Home Page: My Home-Page is a Static Page of a Page
Forums: When I click on Forums, it goes to: http://paulgarth.name/forums/
Issue: Within Forums, to the left of “> Forums” – which I think is a breadcrumb – is a hyperlink, that when I hover over it it goes to http://www.paulgarth.name (ie the static page called “Welcome to the web-site including Value Propositions”
Question: Is it possible to have a Static Page, and for the breadcrumb to just say something like “Home” so that it goes to the top level of the forum breadcrumb, or however you would say this??
I suppose I’m less bothered by this, because I just click on Forums (to the right of the “>”) but I can imagine users clicking on the hyperlink and then leaving the forum page and going back to the home-page.
Thanks in advance
Paul
It’s all good… My testing of Firefox 29, Apache 2.x, and bbPress 2.5.4 here with Twenty Fourteen and things work perfectly.
Also what I meant by TinyMCE plugin is there are quite a few plugins that enhance/modify/tweak the TinyMCE, ‘TinyMCE Advanced’ and ‘Ultimate TinyMCE’ to name just two.
Anyways when/if you have another look at troubleshooting this just ask away any Q’s ๐
Hi Stephen,
Are you talking about the bbPress toolbar when creating a topic or reply?
Yes.
What happens if you switch to the Twenty Fourteen theme?
The Twenty Fourteen theme has the same issue.
Have you disabled any TinyMCE plugins?
I didn’t install a plug-in called TinyMCE. I thought it was included by default.
Have you tried disabling all your plugins except bbPress to see if the issue is resolved?
No. As I said, the site works find when using Chrome, or IE on the Linux/Apache box (with all plug-ins enabled). When I use the site hosted by Windows Server/IIS 8.5, Chrome, IE, and Firefox work.
So it looks like a bug that only shows up when Firefox + Apache + bbpress are all working together. Any other combination seems to work fine.
What version of WordPress and bbPress are you using?
Latest version of both.
Note: Please donโt bump old topics, create a new topic please, things change and most of the time the issue will be a different issue.
Very sorry. I’ll do that next time.
Note: I’ve decided that I’m just going to leave it as is. If Firefox users want to post, they can forfeit the editing tools, or use another browser.
Sorry to have wasted your time. Maybe I’ll try to troubleshoot it again when I have more time.
Thanks for your reply.
Are you talking about the bbPress toolbar when creating a topic or reply?
What happens if you switch to the Twenty Fourteen theme?
Have you disabled any TinyMCE plugins?
Have you tried disabling all your plugins except bbPress to see if the issue is resolved?
What version of WordPress and bbPress are you using?
Note: Please don’t bump old topics, create a new topic please, things change and most of the time the issue will be a different issue.
Some more information would be helpful, a link to your site, what version of WordPress and bbPress are you using etc.
Note: I split this from the other topic, no sense bumping old topics for something that sounds familiar but 99% of the time never is…
Tell them to set WP_DEBUG to false in their wp-config.php define('WP_DEBUG', false); and troubleshoot what the other plugin and/or theme is causing this issue, this is not a bbPress issue per se, it is another theme or plugin doing_it_wrong.
WP 3.9.1, BP 2.0.1 and bbPress 2.5.4 – http://www.info.ch
I would like to auto activate the forum component while a BP member creates a new BP group, same what’s happening e.g. while using BP Docs or rtMedia. Other words: the checkbox should be marked by default. Thanks for help!
Firstly, you should update WordPress to v3.9.1, if you have some reason you must remain using the 3.7.x version upgrade to 3.7.3.
That said line #1198 of your style.css has the following:
.hentry {
border-bottom: 2px solid #f7f7f8;
margin-left: 120px;
padding-bottom: 15px;
position: relative;
}
You will need to override that for your bbPress forums with a custom entry in a child themes CSS.
eg.
#bbpress-forums .hentry {
margin-left: 0px;
}
ok, I’ve just installed bbpress, buddypress and private groups on a new test site, added a couple of forums, and set one to subscribe.
Without private groups it is fine, with private groups both forums show as subscribed, so I can replicate your problem ๐
I’ll take a look tomorrow as to whether I can work a fix for it.
The content area for replies is shifted to the right on my forum, such that there is an odd white space to left. Also, this results in the right-most content being cut.
Can anyone help troubleshoot?
site: http://gcioba69-75.com/forums/topic/hello/
WP version: 3.7.1
bbPress version: 2.5.4
Hi,
I am using iThemes Exchange and bbPress Membership Add-on and want to include access to a specific forum in one of the memberships.
The issues is that the list of forums is not showing on a page where it should list all the forums available for that membership. I have logged this issue with iThemes, but replied with the following:
—
I was installing bbPress on my site to test this issue and I got the following:
Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /public_html/wp-includes/functions.php on line 3245
Can you start a ticket with them as well. There’s a good chance this could be part of the issue.
—
Thanks for any help.
P.
Hey Robin,
So I tried step 8. I duplicated and renamed page.php to bbpress.php. that didn’t seem to work.
Screenshot Here is what I’m seeing when I click into a group and click on the groups forum tab.
Getting bbpress to work with the many very clever (too clever!) themes is not always easy
Ok, we could spend a lot of time getting a forum specific sidebar for your theme, but maybe easiest to get your sidebar working to display in bbpress
so install widget logic
https://wordpress.org/plugins/widget-logic/
Then set up whatever sidebar is being displayed on the bbpress page for all the widgets that you want it to display, both for the homepage and bbpress
Then you’ll see each widget now has a widget logic condition.
For items you want to display only on bbpress add the logic
is_bbpress()
For items say only on a home page add
is_home()
for items you want on all pages apart from bbpress use
!is_bbpress()
Come back if anything is not clear
AH! I figured it out. Gosh, how simple.
BBPress was overriding my search because, in the settings, the BBPress search slug was /search, and my search results slug is also /search. By changing the BBPress slug to something else, I was able to quickly and easily fix.
Thanks for all your help! I guess now we know for future reference!