Thanks Lynq. I have forwarded your suggestion to Themedy Themes to ask how I can get this fixed in my Derby theme. Thanks again.
Not sure if this is a bbpress or buddypress issue (BTW can’t post on buddypress support forums, when I log in to bbpress.org, but that’s a separate issue, I also see the admin menu on buddypress.org)…
Ok, so I’ve been playing around with both bbpress and buddypress for the last 2 weeks. I have checked out of svn both of the latest trunk versions. I’ve gotten pretty adept at setting everything up from scratch during my testing. When creating a group, let’s say “group1” in buddypress, I allow bbpress to create the corresponding forum during group setup. Now, when I go into the bbpress admin backend and create a forum from there, let’s say “subforum1” and make “group1” the parent, it works. Yeah! Just what I wanted, parent groups and sub-forums, however, it doesn’t work the way I expect it to. I can see the subforum in the group now from the front end, and post something in the subforum, but not in the main forum/group “group1”, and every time I click on the group, and then the forum tab, it shows the sub forum(s) and topic posts (only from the last post to the last subforum), and then a create topic form on the bottom, defaulting to the last subforum I created. Meaning I can never post anything in the parent forum “group1” or any other subforums that might have been created under group1. No dropdown to select a different forum to post it to. This is not how would expect it to work. I would expect that you default to the main parent forum (group1) for posting and reading of topics, and the subforums (which do show on the group1 forum page) you can click on and then post within them. It seems this functionality is almost there, and I want to make sure this is either something that is getting fixed, or a mistaken capability that I stumbled upon and it not meant to operate that way.
Thanks for all of you hard work on these 2 projects, you guys are awesome! I can help contribute to the dev as a tester if you want.
I donโt know if what I wrote is anything like a best practice, but it worked for me
Anything is better than nothing. We can always iterate on anything you create later. Thanks for putting that up!
I made a codex page describing what I learned so far. I don’t know if what I wrote is anything like a best practice, but it worked for me. It would be great if those more knowledgeable would correct and expand on it.
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
If itโs not, why not?
The honest truth is that once most people learn what they need, they never go into the bbPress codex and make a page to share their knowledge.
Fixed! This changeset specifically is likely the one causing you problems.
The bbPress theme is inside the plugin and inherits your wordpress themes styling.
If you wish to change that then you need to copy the theme files out of the plugin and into your wordpress theme. The theme files are inside templates/default I believe.
Copy them out into your wordpress theme and then edit those files to get your preferred look, good luck!
Hello,
So I installed the bbpress plugin, and the forum seems to work, but I want the forum to appear as white, not black. My WordPress blog, which BBpress is installed as the plugin for, is black.
Is there not an easy way to have the forums be white and the blog black? Where/how do I change that?
Thanks
Bob
Nice one JJ,
ticket is here: https://bbpress.trac.wordpress.org/ticket/2185
Phew… glad that wasn’t just me going mad!
Happy you figured it out. s2Member and other capability manipulating plugins have a tendency to conflict with bbPress and the way it handles roles and capabilities. I think some fixes went into s2Member to improve this, but it’s possible there’s still more issues to work out.
Does the 2.3 beta fix this for you?
What plugins besides BuddyPress are you running? Is one of them conflicting?
The answer to my question about which template is being rendered (at least in my case) was `page.php`.
That’s `page.php` from your theme.
So if you, like me, want to do things to the main template in which the bbpress forums are housed, you can use `page.php`.
If you, like me, want to do things to that template ONLY for bbpress stuff, but not for other “pages” in your site, you can use the php function `is_bbpress()` in that template to render conditional html based on whether it is a bbpress page or not.
This seems like amazingly basic and obvious information that I was only able to discern by gritting my teeth and putting bbpress into the text editor and reading through A LOT of code. If this information is documented somewhere easy to find, please enlighten me so that i can perform the requisite face palm. If it’s not, why not?
This is untested by me, but digging through some more code, it looks like you might be able to create a custom home-base template for your bbpress forum by copying the original `page.php` into a new file and naming it any of:”
`’plugin-bbpress.php’,
‘bbpress.php’,
‘forums.php’,
‘forum.php’,
‘generic.php’`
You’re correct, `is_bbpress()` should be what you’re looking for.
looks like it might be `is_bbpress()` that i am looking for. will report back if that doesn’t work.
EDIT: yup, that was it.
using bbpress 2.2.4, wordpress 3.5.1
I want to make some conditional changes to my main template depending on whether it is rendering bbpress forums or the rest of the site.
something like:
` if (this_is_a_bbpress_page()) :
div class=”abc”
else :
div class=”xyz”
endif;`
Is there something like that this_is_a_bbpress_page() function?
Just to update on testing too, I have fully tested this now and can recreate it on all of my installs and a brand new install of BP 1.6.3, WP 3.5 and BBPress 2.2.4.
Admin can post @mentions freely, but regular BP members (assigned participant role) can’t without that error in the log appearing.
The @mention still works as it should but I can’t for the life of me see why it’s throwing that error.
I’ve tried it and get the same result on 3 separate servers now too. I have tried it with BP-Default and NO plugins except for BP and BBPress.
If you guys need me to test anything else at all, please shout up.
Should I create a ticket in TRAC?
I agree the lack of basic, getting started documentation for CURRENT bbpress is pretty frustrating. Just a basic roadmap of how the plugin works and which template and functions files are the key ones for making basic changes would be very helpful. A high-level technical overview of what is what and where.
For example, does anyone know which template is being rendered when I go to my-site.com/forums? More importantly, can anyone give me the rosetta stone so that I could figure something like that out myself at a glance without having to read through a ton of code?
@johnjamesjacoby Cheers JJ. I’ve just tested with bbpress2.3 beta 1 and I still get the same behaviour.
Admin can use @mentions and no syntax error appears in the error log.
As soon as a regular participant does, then they get this error:
`[29-Jan-2013 12:51:38 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘http://www.mysite.tv/members/admin/’ rel=’nofollow’>@admin mentio’ at line 1 for query SELECT ID FROM wp_posts WHERE post_type = ‘reply’ AND post_status != ‘trash’ AND post_author = 40 AND post_content = ‘Now testing @admin mention in a forum post.’ AND post_parent = ‘9865’ LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), call_user_func_array, bbp_template_redirect, do_action(‘bbp_template_redirect’), call_user_func_array, bbp_post_request, do_action(‘bbp_post_request’), call_user_func_array, bbp_new_reply_handler, bbp_check_for_duplicate`
Only happens with participants.
Can you replicate this in your error log at all?
I have read the whole ‘Roles and Capabilities in bbPress 2.2’ thread but still not sure if there is a way of adding new forum roles.
I’ve got groups of people answering members questions and I want them to be identified by their expertise (ie. Mentor, Advisor, …) to know how reliable is the answer.
Is it possible?
Thanks!
I have the same problem with the role ‘custom titles’. I am using the string swap plugin but need to add some more roles and can not see the way. Any idea?
I hope the silence wasn’t too deafening ๐
There will be an update to the vBulletin import tool released with the upcoming bbPress 2.3
You can also get the correct settings from your phpBB config file via FTP to your site or via your web host file manager for your phpBB install. /public_html/phpbbv3/config.php
`// phpBB 3.0.x auto-generated configuration file
// Do not change anything in this file!
$dbms = ‘mysqli’;
$dbhost = ”;
$dbport = ”;
$dbname = ‘my_phpbb_database_name’;
$dbuser = ‘my_database_user_name’;
$dbpasswd = ‘mypassword’;
$table_prefix = ‘phpbb_’;
$acm_type = ‘file’;
$load_extensions = ”;
@define(‘PHPBB_INSTALLED’, true);
// @define(‘DEBUG’, true);
// @define(‘DEBUG_EXTRA’, true);
`
Copy the $dbname, $dbuser, $dbpasswd & $table_prefix values from this file into the bbPress import settings
Its rather impressive to say the least, extremelly well integrated with your theme.
I particularly like this topic showing what an awesome bbPress topic looks like ๐
Experimental: Chianti Wine Tour Map
Cheers,
Stephen