Today I changed theme to GeneratePress. Under the “Forums” Page, I changed Content No Sidebar & Full Width Content. Still the Forums page will NOT remove the sidebar. When originally installing bbPress, I created a Forums page with the slug “forums” and that is how its communicating. From there as a diagnostic step, I created another page named Forums2 and added the shortcode to display the forums index. That page would NOT displat it full width (no sidebar) no matter what I tried. Any help would be awesome.
To avoid this problem you can simply replace <?php if ( bbp_allow_topic_tags() ) : ?> with <?php if ( bbp_allow_topic_tags() && current_user_can( 'moderate' ) ) : ?> in your child-theme’s form-reply.php file.
This would prevent any non-moderator from gaining access to the topic-tags designation of the parent topic while adding/editing replies.
Still feels kinda hacky. But, whatever works.
Try this code. Put it on the function.php
/* Hide SideBar in bbPress Profiles and Topics*/
function disable_all_widgets( $sidebars_widgets ) {
if ( function_exists('is_bbpress') ) {
if (is_bbpress()) {
$sidebars_widgets = array(false);
remove_all_actions('bp_register_widgets');
unregister_sidebar( 'bp_core_widgets' );
}
}
return $sidebars_widgets;
}
add_filter('sidebars_widgets', 'disable_all_widgets', 1, 1);
You don’t say if You want the full-width to all pages or only to topics, forums, or profiles.
Regards,
It could be done with css or by altering template or code.
In any case it would require some custom coding in quite a lot of places.
Beyond any free help I can offer – sorry !
this code will change it
li.bbp-forum-freshness, li.bbp-topic-freshness {
text-align: left;
}
Thx Robin. Just added some lines of code to the theme’s css file. Working perfectly now.
Line 471 of your theme’s style.ccs has
http://www.revelation-online.de/wp-content/themes/mh-magazine/style.css
img {
height: auto;
max-width: 100%;
vertical-align: bottom;
}
Thevertical-align: bottom; is causing the issue
one best way.ive done with my forum. All other ways are not working
-Update phpbb to the latest version
-use the BBpress Alpha 2.6
-import the data from phpbb
-do the fixes down under in separatly ( run sql in 5 steps, begin with the first)
/* Get all posts with wrong author and correspondent right author from translator table */
create table TMP_ORPHANS as
select
wp_posts.ID,
wp_posts.post_author,
wp_bbp_converter_translator.value_id real_author,
IFNULL(wp_posts.post_date, NULL) post_date,
IFNULL(wp_posts.post_date_gmt, NULL) post_date_gmt,
wp_posts.post_content,
CASE
WHEN wp_posts.post_type = 'reply'
THEN (SELECT tmposts.post_title from wp_posts as tmposts where tmposts.id = wp_posts.post_parent)
ELSE wp_posts.post_title
END post_title,
wp_posts.post_excerpt,
wp_posts.post_status,
wp_posts.comment_status,
wp_posts.ping_status,
wp_posts.post_password,
wp_posts.post_name,
wp_posts.to_ping,
wp_posts.pinged,
IFNULL(wp_posts.post_modified, NULL) post_modified,
IFNULL(wp_posts.post_modified_gmt, NULL) post_modified_gmt,
wp_posts.post_content_filtered,
wp_posts.post_parent,
wp_posts.guid,
wp_posts.menu_order,
wp_posts.post_type,
wp_posts.post_mime_type,
wp_posts.comment_count,
( select wp_postmeta.meta_value
from wp_postmeta
where
wp_postmeta.meta_key = '_bbp_author_ip' and
wp_postmeta.post_id = wp_posts.id
) user_ip
from wp_posts
left join wp_users on wp_posts.post_author = wp_users.id
left join wp_bbp_converter_translator on wp_posts.post_author = wp_bbp_converter_translator.meta_value
where
wp_posts.post_type in ('forum', 'reply', 'topic') and
(wp_users.id is null or
wp_users.id = 1) and
wp_bbp_converter_translator.value_type = 'user' and
wp_bbp_converter_translator.meta_key = '_bbp_old_user_id';
/* Do this to be able to create indexes later – some may not work */
ALTER TABLE TMP_ORPHANS modify column post_date datetime default NULL;
ALTER TABLE TMP_ORPHANS modify column post_date_gmt datetime default NULL;
ALTER TABLE TMP_ORPHANS modify column post_modified datetime default NULL;
ALTER TABLE TMP_ORPHANS modify column post_modified_gmt datetime default NULL;
ALTER TABLE TMP_ORPHANS modify column user_ip varchar(40);
ALTER TABLE TMP_ORPHANS modify column post_title varchar(255);
/* we create indexes to speed up the update process */
ALTER TABLE TMP_ORPHANS ADD INDEX(post_date);
ALTER TABLE TMP_ORPHANS ADD INDEX(post_author);
ALTER TABLE TMP_ORPHANS ADD INDEX(real_author);
ALTER TABLE TMP_ORPHANS ADD INDEX(user_ip);
ALTER TABLE TMP_ORPHANS ADD INDEX(post_title);
/* Revert bad authors to good authors */
UPDATE
wp_posts INNER JOIN TMP_ORPHANS
ON wp_posts.id = TMP_ORPHANS.id
set wp_posts.post_author = TMP_ORPHANS.real_author
where wp_posts.post_type in ('reply', 'topic') ;
/* Drop TMP table */
DROP TABLE TMP_ORPHANS;
The result is a compleet database with the good relation between post and author
Also, I just learnt that if your themes header.php contains lang="en" that will cause issues, see https://bbpress.org/forums/topic/unable-to-change-language/#post-179361
I found out that because in the header.php in my theme, the <html> tag has an attribute of lang="en" that overrode WordPress language options. I removed this and it works. Thanks for your reply anyway!
When you downloaded those files what options did you select?
You need to select All current to get the “current strings”
p.s. I’ve also just made a request to have bbPress “stable” language packs generated, once this is complete you should be able to download the translations directly from the WordPress updates dashboard, just as you get the translations for WordPress itself.
Keep an eye out for Finnish to show up in the API here
Hi,
I am using bbPress to create a forum for a customer. I use WordPress 4.6.1 and bbPress 2.5.11.
I downloaded the .mo and .po files in my language (Finnish) from this link, changed the file names into:
bbpress-fi_FI.mo and bbpress-fi_FI.po, and moved them to wp-content/languages/bbpress
Eventhough my wordpress site language is Finnish and I have those mo and po file in the folder, the bbpress forum is still in English.
When I do not use the shortcode the response box appears underneath the respective reply, but once posted the comment is not nested.
Hello,
I am using the shortcode to display a single topic. When a user tries to reply to a reply to the topic, they are directed to the bottom of the page.
I want to nest replies to topics, so that users can respond directly to another user’s response. Is this possible?
I tried the js file revision suggest here but it did not create the desired effect (replying to a user’s reply is still not possible, only replies to the topic).
Thank you for the help.
Valerie
I activated topic and reply subscriptions today, and the very first email I got was a bounce. I had written a response to someone else’s thread, and apparently, instead of sending it from my usual sending address (as specified in PostMAN SMTP: mail@domain.org) to my admin address (as specified in my profile: m@domain.org), it was sent from and to (!) this weird address: noreply@sudomain.domain.org (case is bbpress on one subdomain site of a MS network). Since I do not receive emails adressed to my subdomain, it was bounced to mail@domain.org.
Using this noreply@ does not make any sense to me, neither for sender, nor for recipient. Can anyone help? bbpress does not allow me to set a sending address, it just defined and used it. That is not good, since my SMTP plugin must have the last word in this. We all know that sending emails via PHPmailer/webserver (default WP behaviour) is unprofessional. And anyway, to send a notification to anywhere else than my profile email does not make sense. This looks very much like a bug, doesn’t it?
WP 4.6.1 (MS install w/subdomains), bbpress 2.5.11, PostMan SMTP 1.7.2, ~40 other plugins
Excerpt from PostMan SMTP’s log (with EDITS):
X-Mailer: Postman SMTP 1.7.2 for WordPress (https://wordpress.org/plugins/postman-smtp/)
From: SITE NAME <noreply@de.DOMAIN.org>
Sender: mail@DOMAIN.org
To: noreply@de.DOMAIN.org
Hi, I am not an expert so I ask you this question.
I need to increase font-size in bbpress forum in my wordpress site. I installed the plugin Simple Custom Css and add this code
#bbpress-forums .bbp-topic-content,
#bbpress-forums .bbp-reply-content {
font-size: 14px;
}
Nothing happened. Then I changed adding a line
#bbpress-forums .bbp-topic-content,
#bbpress-forums .bbp-reply-content {
display: list-item !important;
font-size: 14px;
}
Now it works, in the Staging Copy of the site. Can you confirm this is a correct code? Or this code can generate any unexpected issue somewhere?
Thanks!
I found a way of adding some custom html to some user using their profile url:
<?php
$actual_link = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
if($actual_link == 'ProfileLinkHere'){
echo 'HTML HERE';
}
?>
Ok please pardon the dumb question as i am new to bbpress. Ok so i have created a site and have created a page called “forum”. I am using the ultimatum theme framework and i am also using beaverbuilder as a page builder. So i made the layout like a wanted it and added the “[bbp-forum-index]” shortcode. The problem is when you click on a forum it goes to the topic list page and the whole template i was using is gone. Is there a quick fix to this? any help would be greatly appreciated! the page in topic was as follows!
Forum
Hmmm… Instead of my testing this I’ll let you:
What about a word without a hyphen? Does discussiontopic work?
I can’t remember if there is a limitation like this or not, I’ll dig around some more and find out for sure later 🙂
MAke sure you don’t also have any posts, pages, or items in the trash that also use that same discussion-topic slug
Interested in a solution for this as well. I would like AJAX Tags, and Tags required. An existing plugin recommendation would be great, or if anyone wants to do some code mod, I’m game to test it out 😉
Hello! How I can add captcha to bbpress ? I don’t find information about it
How I can add google captcha and I want add my own bbcode and assign button in editor.
I don’t know how can add my own profile pages for users too 🙁
When I can read about it ?
OK, this is weird. I’m able to front-end edit forums –but only at the root level.
For example, if my structure is /forums/forum/first-level-forum/second-level-forum/third-level-forum/ I’m able to edit first-level-forums only (with /forums/forum/first-level-forum/edit/). Any attempt to add /edit/ to any second or third level forums results in a 404.
I’ve tried bringing my second and third level forums urls to root level like /forums/forum/second-level-forum/edit but that also gives a 404–unless, of course, I actually move the forums to the first level.
Is this a configuration issue that can be fixed? I’ve tried both pretty and unpretty permalinks and the problem persists using ?forum=second-level-forum&edit=1. But, once again, it works with ?forum=first-level-forum&edit=1.
Adding the wait_timeout above doubled the run time to maybe 6 minutes, but still hangs after ~ 6 minutes.
Per stackoverflow.com/questions/18253934/set-maximum-execution-time-in-mysql-php , adding the following to to the beginning of converter.php did not help:
ini_set('max_execution_time', 0);
Ah…