Ah….found a fix for the above/last reply. I added the id of the page, so now the custom-bbpress.css only loads for bbpress and that page.
if (is_bbpress() || is_page( 209 ) ) :
Update: I had this in my functions:
if ( is_bbpress()) {
….etc.
But adding:
is_page()
Means that the custom-bbpress.css is going to load on all “pages”. A temporary solution, but not really the right solution.
I am using divi theme, I want to remove the default sidebar in forums page, so I create a new page name “forums”, and add some module and bbpress shortcode in it, but the forums page always look the same with default.
site link
Robin–thanks for the encouragement! muchly needed, I have been fighting with this forum section of my webpage, steady, for several weeks-literally..
I went back at it again today, re- did all my forums, cause I had somehow ( don’t know how it happened) deleted my page that held the forums.( but not the forums themselves) Because it was all scrambled I deleted everything and started over. I got almost everything in place, but now have ran into a new “snag” Don’t know what I am doing wrong…:-(
I made a new forum PAGE to hold all the forums in , and put the short code [bbp-forum-index] – in the main content section like I did before, only this time when I go to “visit site” the “holding page”won’t put my forums inside the page..
when I click on the menu bar to go to the forums this comes up–
Index of /forum
Parent Directory
cache/
Apache Server at theamericanquarterhorse.com Port 80
I can manually type in after the URL /forums
and the forums will come up manually..
Also, in the main sections that shows all the forums and topics for some reason 2 of them say there is 0 topics in them and that is not the case, I put several topics in the forums, an it shows on the backside there is a topic in there, but not on the topside…
Appreciate any advice
thanks!!
Oh yes about the pigs–here in my area the favorite is Landrace X Yorkshire. The local 4-H kids seem to do well with that cross. there is a few Berkshires around the country too..
Since I was helping a friend convert a phpbb2 board to phpbb3 I thought I’d take the time to also import the forums into bbpress (my preference).
I initially tried the import but could not get it to work and after looking on the forums saw that I was not alone.
To get the import to work I had to remap some fields in the phpbb conversion script and comment out some obsolete ones (took about 30 minutes.
If anyone needs to get your PHPBB3 users and forums converted in BBPress you can replace the phpBB.php file in wp-content\plugins\bbpress\includes\admin\converters to match the following updated code: https://gist.github.com/pixelnated/a7a9c41154cf64696ddd1c2e4f4327ed
simplest way would be to
create a page with a permalink of ‘forums’ (assuming that is what your forums are called in dashboard>settings>forums>forum root slug>forum root)
but with a title of whatever you want the forum page to be called
and just put this shortcode in it
[bbp-forum-index]
That should work
From @matevoun
Then, now :
1/ I think this is because i’ve installed bbPress Enable TinyMCE Visual Tab plugin, but i need this for uploading new media… 🙁
2/ Yes, tell me what can i do… 🙂
3/ Done ! Thank you ! I’ve installed your plugin. 😉
4/ I think this is a too little for texte + avatar.
How can i do now ?
Hope to read you soon…
1. As a test deactivate that plugin and see if it works without. If so re-enable and contact that plugins author
2. for the forum list
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/loop-single-forum.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/loop-single-forum.php
bbPress will now use this template instead of the original
and you can amend this
so change line 68
<span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>
amend 14 to whatever size you want
3. glad you like it
4. without knowing exactly what you want, I cannot suggest css changes – I suspect we will not fix this one
Wait … I forgot I didn’t install the 2.6 Beta of bbPress again. I now did and the conversion started, but it didn’t work out, here’s the log:
Import Finished
17: No threaded replies to import
16: No anonymous reply authors to import
WordPress-Datenbank-Fehler: [Unknown column 'posts.post_text' in 'field list']
SELECT convert(posts.post_id USING "utf8mb4") AS post_id,convert(topics.topic_id USING "utf8mb4") AS topic_id,convert(posts.forum_id USING "utf8mb4") AS forum_id,convert(posts.topic_id USING "utf8mb4") AS topic_id,convert(posts.poster_ip USING "utf8mb4") AS poster_ip,convert(posts.poster_id USING "utf8mb4") AS poster_id,convert(posts.post_username USING "utf8mb4") AS post_username,convert(posts.post_text USING "utf8mb4") AS post_text,convert(posts.post_time USING "utf8mb4") AS post_time FROM forum_posts AS posts LEFT JOIN forum_topics AS topics USING (topic_id) WHERE posts.post_id != topics.topic_first_post_id LIMIT 0, 100
15: No replies to import
14: No favorites to import
13: No topic subscriptions to import
12: No topic tags to import
11: No closed topics to close
10: Keine Super-Stickies zum Anheften vorhanden
9: Keine Stickies zum Anheften
8: No anonymous topic authors to import
WordPress-Datenbank-Fehler: [Unknown column 'topics.topic_posts_approved' in 'field list']
SELECT convert(topics.topic_id USING "utf8mb4") AS topic_id,convert(topics.topic_posts_approved USING "utf8mb4") AS topic_posts_approved,convert(topics.forum_id USING "utf8mb4") AS forum_id,convert(topics.topic_poster USING "utf8mb4") AS topic_poster,convert(topics.topic_first_poster_name USING "utf8mb4") AS topic_first_poster_name,convert(posts.poster_ip USING "utf8mb4") AS poster_ip,convert(posts.post_text USING "utf8mb4") AS post_text,convert(topics.topic_title USING "utf8mb4") AS topic_title,convert(topics.topic_status USING "utf8mb4") AS topic_status,convert(topics.topic_type USING "utf8mb4") AS topic_type,convert(topics.topic_time USING "utf8mb4") AS topic_time,convert(topics.topic_last_post_time USING "utf8mb4") AS topic_last_post_time FROM forum_topics AS topics INNER JOIN forum_posts AS posts USING (topic_id) WHERE posts.post_id = topics.topic_first_post_id LIMIT 0, 100
7: No topics to import
6: No forum subscriptions to import
5: No forum parents to import
WordPress-Datenbank-Fehler: [Unknown column 'forums.parent_id' in 'field list']
SELECT convert(forums.forum_id USING "utf8mb4") AS forum_id,convert(forums.parent_id USING "utf8mb4") AS parent_id,convert(forums.forum_topics_approved USING "utf8mb4") AS forum_topics_approved,convert(forums.forum_posts_approved USING "utf8mb4") AS forum_posts_approved,convert(forums.forum_name USING "utf8mb4") AS forum_name,convert(forums.forum_desc USING "utf8mb4") AS forum_desc,convert(forums.left_id USING "utf8mb4") AS left_id,convert(forums.forum_type USING "utf8mb4") AS forum_type,convert(forums.forum_status USING "utf8mb4") AS forum_status FROM forum_forums AS forums LIMIT 0, 100
4: No forums to import
3: Skipping password clean-up
2: Skipping user clean-up
WordPress-Datenbank-Fehler: [Specified key was too long; max key length is 1000 bytes]
CREATE TABLE oahfp_bbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default '0', meta_key varchar(191) null, meta_value varchar(191) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key(191), meta_value(191)) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci
1: Recreating sync-table
Continuing Import
Previously stopped at step 1 of 17
I appreciate any help!
Hopefully I got the right forum here.
I want to add a heading when on the “forums” archive home page of the bbpress forum. Right now I have this for jetpack’s portfolio…note this is just a snippet of my code:
if (is_post_type_archive()) :
echo '<h1 id="bts-page-title">' . __( 'WordPress Themes', 'bts' ) . '</h1>';
…but the bbpress forum header area is loading that title as well. I’ve tried so many variations and conditionals, none work. I did manage to get the “forum” titles to show for individual forums with:
elseif (is_bbpress('forum') ) :
echo '<h1 id="bts-page-title">' . __( 'Support Forum', 'bts' ) . '</h1>';
But does anyone have an idea how to get the conditional to show a custom header title for the bbpress home page?
Hello
If want to use that for only 1 forum where exactly di I have to put the ID in this code ?
Thanks a lot
Here’s the exact change in that code that was added for the next bbPress release
https://bbpress.trac.wordpress.org/changeset/6129/
Hello. I just started using a new forum with my bbpress.
bbpress – 2.5 14-6684
wp 4.9.4
The site is members.institutechiro.com
A user just forwarded me his email and it is full of code. Example.
<p class=”p1″><span class=”s1″>Great first week content.</span></p>
<p class=”p1″><span class=”s1″>I was interested to know that an intellectual generation has 33 integers; making me a 4th gen chiro.</span></p>
please help.
Thanks.
Simon
But i have a question it is correct solution? No performace issue ?
yes it has a performance issue, every line of code has a performance issue.
No idea by what you mean ‘is it the correct solution’ This is a help service for bbpress not a free bespoke website service. I have already gone beyond the usual to help you.
It is up to you to decide the balance of SEO against performance, not me.
this does that
add_filter( 'bbp_get_reply_content', 'rew_remove_code_tags', 10, 2 );
function rew_remove_code_tags ($content, $reply_id) {
if (!is_user_logged_in()) {
$content = preg_replace('~<code(.*?)</code>~Usi', "", $content);
}
return apply_filters( 'rew_remove_code_tags', $content, $reply_id );
}
Ok i find a solution i just change flag /i for flag /s
$content = preg_replace("/<code>.+?<\/code>/S", "", $content);
But i have a question it is correct solution? No performace issue ?
Thanks, but it work only if text between code is on one row. If someune post log test separated by rows, then didnt work properly.
Any idea how to fix ?
Hi Stephen,
Check out this: https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#26-creating-a-bbpress-specific-sidebar
Pascal.
Hello,
I have tried the info provided at the above referenced link. It sucessfully adds the sidebar option to the widgets area of the dashboard. but i still do not see a sidebar on the pages. I’m thinking it’s the coding in the second part. It states that it’s for the twenty-fifteen theme. I’m using Twenty-Seventeen. Any ideas?
Thanks,
Töm
We have WordPress version 4.9.4 and tried to install bbPress on our site yesterday. Our site is http://www.oen.org
I have successfully created a forum index using shortcode and populated one forum with a topic. However, when I click on the Forum name from the index, I get taken to a page that merely includes our nav menu and footer (see screenshots below). I cannot get to a page that displays the forum topics. Any ideas what might be going on?
Forum index:

Forum page:

lots of questions !
1. ◾Each time i push a picture, this code appears : “[Caption id=”xxxx” align=”aligncenter” width=”468″> xxxxxxxxxx (…) [/caption]“, but if i keep this, this will be printed online. I need to delete this caption insert for better visuals. Is it normal ?
I don’t know what you are doing to create the picture – please describe your steps
2. ◾The user avatar in forum list (for example) is smaller than it will be. Normal ?
yes that is normal. To amend it you would need to amedn a template. If you confirm that you have and know how to use FTP, I will give you some instructions
3. ◾Each post modification is notified under the post… But if i edit 15 times a post, it will be 15 rows about this modifications ?
if you install my style pack plugin
bbp style pack
then once activated go to
dashboard>settings>bbp Style Pack>topic/reply styling item 12 you can limit the number shown and if you go to
dashboard>settings>bbp Style Pack>topic/topic/reply form items 7 & 8 let you switch off this feature
4. ◾In responsive mode (mobile), the post height is mid-screen only… It’s difficult to read… any idea ?
I tried it – it seemed easy to read to me – please explain exactly what you want
it’s just that we are both writing amendments to the same code.
if you go to
dashboard>tools>bbp toolkit>information you will see a line saying
Change the separator between the subforums on the forum index page to
change that to newline and you should be good to go
Add this to your functions file
add_filter( 'bbp_get_reply_content', 'rew_remove_code_tags', 10, 2 );
function rew_remove_code_tags ($content, $reply_id) {
if (!is_user_logged_in()) {
$content = preg_replace("/<code>.+?<\/code>/i", "", $content);
}
return apply_filters( 'rew_remove_code_tags', $content, $reply_id );
}
Hi,
I try to acchieve to hide all content between code tags from public users. I want to show this content only for logged users. Any idea how to achieve this?
The main reason why I want to do this is that, between code tags sometime contain content like quotation which can impact my SEOrank because isnt unique.
Thanks
Hi,
i’ve got some visual problems :
- Each time i push a picture, this code appears : “[Caption id=”xxxx” align=”aligncenter” width=”468″> xxxxxxxxxx (…) [/caption]“, but if i keep this, this will be printed online. I need to delete this caption insert for better visuals. Is it normal ?
- The user avatar in forum list (for example) is smaller than it will be. Normal ?
- Each post modification is notified under the post… But if i edit 15 times a post, it will be 15 rows about this modifications ?
- In responsive mode (mobile), the post height is mid-screen only… It’s difficult to read… any idea ?
You can check this on our forum here :
-=> Forums Saint-Antonin
Thank you for your help.
Sorry for my English, i’m French. 🙂
WordPress version – 4.9.3
Theme – Generate Press Pro
bbPress version – 2.5.14
link to your site – nuatv.com
Simple WordPress Membership – 3.6.0
I use Simple WordPress Membership to secure member only pages on our site, including the BBPress Forum index. The Forum is on a protected page with the shortcode:
[bbp-forum-index]
The index page is listed in the WordPress pages.
However, if I open a forum post page like:
General discussion
this page does NOT appear in the list of WordPress pages and therefore I cannot apply access settings to the page.
Where ARE the various forum pages and how can I get to them to set access permissions? I want to restrict forum access to site members only.
Hey All,
So i’ve just installed the plugin. All working great, fab, thank you!
However, i’ve created some someforums BUT when I go to the actual forum front end i get this
Database Errors
Query Call Stack Component Error Code Error Message
SELECT SQL_CALC_FOUND_ROWS wasp_posts.ID
FROM wasp_posts
INNER JOIN wasp_postmeta
ON ( wasp_posts.ID = wasp_postmeta.post_id )
WHERE 1=1
AND wasp_posts.post_parent = 656
AND ((()))
AND ( wasp_postmeta.meta_key = ‘_bbp_last_active_time’ )
AND wasp_posts.post_type = ‘topic’
AND (wasp_posts.post_status = ‘publish’
OR wasp_posts.post_status = ‘closed’
OR wasp_posts.post_status = ‘private’
OR wasp_posts.post_status = ‘hidden’)
GROUP BY wasp_posts.ID
ORDER BY wasp_postmeta.meta_value DESC
LIMIT 0, 15
apply_filters(‘template_include’)
wp-includes/plugin.php:203
bbp_template_include()
wp-content/plugins/bbpress/includes/core/sub-actions.php:436
apply_filters(‘bbp_template_include’)
wp-includes/plugin.php:203
bbp_template_include_theme_compat()
wp-content/plugins/bbpress/includes/core/theme-compat.php:559
BBP_Shortcodes->display_forum()
wp-content/plugins/bbpress/includes/common/shortcodes.php:241
bbp_get_template_part()
wp-content/plugins/bbpress/includes/core/template-functions.php:43
bbp_locate_template()
wp-content/plugins/bbpress/includes/core/template-functions.php:105
load_template(‘~/wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php’)
wp-includes/template.php:690
bbp_has_topics()
wp-content/plugins/bbpress/includes/topics/template.php:203
WP_Query->__construct()
wp-includes/class-wp-query.php:3336
WP_Query->query()
wp-includes/class-wp-query.php:3230
WP_Query->get_posts()
wp-includes/class-wp-query.php:2821
Plugin: bbpress 1064 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 ‘))) AND ( wasp_postmeta.meta_key = ‘_bbp_last_active_time’ ) AND wasp_posts.’ at line 1