First of all Happy New Year to the whole bbPress community!
Right now I can access my Forum start page on two different Urls.
– https://www.ps4source.de/archiv/
– https://www.ps4source.de/forum/
How can I disable the default one (archiv)?
use this in your functions file and change the address to what you want
add_filter('bbp_get_do_not_reply_address','my_bbp_no_reply_email');
function no_reply_email(){
$email = 'noreply@yourdomain.com'; // any email you want
return $email;
}
you can change that default to email address as well with :
add_filter('bbp_subscription_to_email','my_bbp_subscription_to_email');
function my_bbp_subscription_to_email(){
$email = 'noreply@yourdomain.com'; // any email you want
return $email;
}
ok. solved. First, a bug: when editing the super-admin in a multisite site instance, there is no field for editing/assigning a forum role. That line is just missing on the Settings->Forums page. Second, I did find a reference to a bug from a year ago that said that one could assign/edit forum roles for individual users but not on the Edit All Users page. That still seems to be the case. And finally I did find the settings entry for assigning all visitors a default forum role. So using all 3 of those considerations, my problem is now solved. (A pain, though, for assigning the super-admin. You have to make the default role what you want his to be, then “visit the site”, then change the default role back to what you want it to be for others.)
This is the code
function bp_redirect($user)
$redirect_url = "";
if (defined('ICL_LANGUAGE_CODE')) {
switch (ICL_LANGUAGE_CODE) {
case 'fr':
$redirect_url = "https://volunteerteacher.org/fr/enregistrement-avec-succes/";
break;
default:
$redirect_url = 'https://volunteerteacher.org/registration-successful/"';
break;
}
bp_core_redirect($redirect_url);
}
return $redirect_url;
}
add_action('bp_core_signup_user', 'bp_redirect', 100, 1);
Hello,
I have a issue, I want to have a code who works like this:
If user registered on English version – redirect to custom English registered successfully page
If user registered on French version – redirect to custom French registered successfully page
So far I have made this below:
function bp_redirect($user)
$redirect_url = “”;
if (defined(‘ICL_LANGUAGE_CODE’)) {
switch (ICL_LANGUAGE_CODE) {
case ‘fr’:
$redirect_url = “https://mysite.com/fr/enregistrement-avec-succes/”;
break;
default:
$redirect_url = ‘https://mysite.com/registration-successful/”‘;
break;
}
bp_core_redirect($redirect_url);
}
return $redirect_url;
}
add_action(‘bp_core_signup_user’, ‘bp_redirect’, 100, 1);
Unfortunately it is not working and I do not know what do do more to make it work.
Language plugin is WPML the language pages are http://www.mysite.com/fr , http://www.mysite.com/es etc,
Please help me, I really need this script to be working.
Thank you so much
It’s available in the default theme. But my theme does not work.
I try to fix it for a long time. But still not fix it.
ok, something is preventing this.
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
I finally figured it out. No need to use the “Full Page Width” option or any other techniques found about the web. If you installed a bbPress forum and everything is set to its defaults. Just use the following…
Select “Customize”
Select “Additional CSS”
Add/Paste the following…
.bbpress #content-sidebar {
display: none;
}
#bbpress-forums {
margin-left: auto !important;
margin-right: auto !important;
width: 170% !important;
}
Forum link in first post is incorrect now. A redirect is being setup though as that is my old link to another forum I use to use. New forum link is, http://www.posemotion.com/forums
can only think that you have a conflict
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
bbpress only displays 2 levels, so when you click the 2nd level, you will get to see the lower down forums.
It is possible to code for lower levels, if you are happy with coding you’d be looking at
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
and some coding around bbp_list_forums()
to get a further loop
As for breadcrumb – yes by default you should have one , but themes can turn these off
hmm, apart from the standard elimination tests below, I can’t think of anything obvious
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
Hi,
Here are the ones that are tied to email/Buddypress/BBPress. I’m wondering–do new topic notifications work for approved topics on a clean BBPress install? I don’t think I can disable many plugins on this site since it’s getting a lot of traffic, but I could probably test it out on a different live site. I think it would have to be a live site or at least have an SMTP provider set up for the notification emails to go out.
Plugins
1. Buddypress
2. AsynCRONous bbPress Subscriptions (added because the default method of BCC’ing all subscribers created too many recipients for our SMTP provider)
3. bbP Toolkit
4. BP Profile Search
5. BBPress Moderation Tools (allows us to put all new topics into moderation, seems to use default BBPress actions for moderation)
6. Fix Forum Emails (fixes issue where HTML tags/entities show up in notification emails: https://bbpress.trac.wordpress.org/ticket/2865)
7. WordPress Mail Queue (queues/chunks all mail from wp_mail so we don’t go over SMTP provider limits)
8. Wordfence Security
You can try “bbPress WP tweaks” https://wordpress.org/plugins/bbpress-wp-tweaks/ plugin for adding forum sidebar. There you can select which wrapper to use for bbPress and which sidebar of your theme replace with bbpress sidebar. Try different wrappers to find one with sidebar because some themes do not have sidebar on page.php, which is in most cases default wrapper for bbpress.
ok, you’ll need to amend wp-content/plugins/bbpress/templates/default/bbpress/form-user-register.php
so
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/form-user-register.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/form-user-register.php
bbPress will now use this template instead of the original
and you can amend this
Hi there,
I tried to create a WPML multilingual which is going great so far with the bbPress Multilingual plugin. It is in English & French, the English works well (default language) but on the French side of the forum a user can not edit its own post.
The English link to edit the post is: http://mysite/forum/reply/2478/edit/
the French: http://mysite/forum/reply/2479/?lang=fr/edit/
The french one forwards to a 404 error page, but what is weird is that replying to a post contains also the “?lang=fr” parameter and it works fine.
Do you have any idea how to make the “Edit | Close | Stick | Merge | Trash | Spam | Reply” toolbar to work with different languages ?
I’d do two checks
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
ok, I’ve just loaded the code below (same as in the post above) to my test site and it enables the tinymce editor on my test site
//editor bbpress
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
$args['teeny'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
//clean html when copy and paste into forum
function bbp_tinymce_paste_plain_text( $plugins = array() ) {
$plugins[] = 'paste';
return $plugins;
}
add_filter( ‘bbp_get_tiny_mce_plugins’, ‘bbp_tinymce_paste_plain_text’ );
So I suggest you start by doing some further testing
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
plugins
If themes don’t pinpoint the problem, deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
Hi @louisgeorges
In fact you can do it 😎
1.- Copy the follow code and paste it in functions.php file (If you dont know about functions please read about it before do this):
//Restrict Topic and Replies Content For No-Registered Users
function pj_hla_logged_in_topics($have_posts){
if (!is_user_logged_in()){
$have_posts = null;
}
return $have_posts;
}
add_filter('bbp_has_replies', 'pj_hla_logged_in_topics');
With the above code your visitors (no registered users) will see only the topic title. The code locks topic content and all replies.
2.- After pasted the code, try open a topic so you will see a bbpress notice about “you dont have access to… etc something like that”. You need to find the file where is that notice, to edit it with anything you want, for example a link to the sign up page (Sorry, I dont remember the file name).
To show topics titles in your post or other pages you have 4 options:
1.- Add each URL in your blog post with the same topic title and link it to the topic (hard work but good if you like linkbuilding)
2.- Default bbpress shortcode: [bbp-single-topic id=$topic_id] – Display a single topic. eg. [bbp-single-topic id=4096] ( https://codex.bbpress.org/features/shortcodes/#topics )
3.- @robin-w plugin: http://www.rewweb.co.uk/bbpress-additional-shortcodes/
4.- Hire a developer to create a shortcode to show last topics or whatever about topics.
Hope this can help you!
Hello!
I have two questions
#1. How do you get attachments to show up even if the person is not logged in? For example, on this page: https://www.yorkregiontutoring.com/forums/topic/molarity/ It says “Attachments:
You must be logged in to view attached files.”
#2. I rewrote the copy on the register page by going here: /wp-content/plugins/buddypress/bp-themes/bp-default/registration/register.php but the old copy is still showing up here: https://www.yorkregiontutoring.com/register/ Any ideas?
Thank you very much!
Hello,
Does anyone know how i can do to create automatically subforums when a group (budypress) is created? By default bbpress creates one forum for the group, but i would like to be able to create automatically also some given subforums, so in this way, all the groups have the same structure.
I tired to ask for help in so many places, even here too, but no luck at all. Nobody replies. I tired to check hooks but I am lost.
Please I need help, could anyone give me some hint or help?
I will be very grateful.
Kind Regards
Ting
Let me start by saying that I did extensive searching for past 2 hours and are surprised to see all questions about the same issue getting brushed off. Some even instruct to remove the home link from breadcrumb just to hide an actual bug.
https://bbpress.org/forums/topic/breadcrumb-and-forum-index-issues/
bbPress breadcrumb forum root link issue
there are many more but I am allowed only 3 links. Google breadcrumb [bbp-forum-index]
Please take the issue as it is which is a bug confirmed by many.
1. Breadcrumbs forum home page link and the page that user has created are not in sync
2. When user creates the page with shortcode as instructed in Step 2 https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ or even Step 1
the default Forum Root archive is overriding that page instead other way around. The process should be same as selecting page for posts in WP but in BB is just complicated and not effective.
Use default theme, follow instructions in step 2 , when you done , go to your custom created forum page and change template. No changes. Now change the root in forum settings, redo permalinks go back to custom page and you will see the change.
Note that I have no custom overrides so it is not theme related.
Hello, I’ve noticed when creating a Group and selecting to allow to create a Forum for that Group it seems to load ALL the Group Forums on the Main Forum page. Meaning the more Forums users create for their Groups the more it just extends the size of the main forum page. Does that make sense?
I’ve created 8 demo Groups and selected include a Forum for each one, and now all 8 appear on the main forum page, ever increasing…
Is there a way to default it to only show 4 on the main page while also allowing it to change via user updates?
looks like something is erroring
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
Thank you Robin for the response.
1. My emails are setup to come from correct address like eg fred@mysite.com
2. Emails are going out from the wordpress for other activities except for “Subscribe” action.
3. Tried the “Asyncronous-bbpress-subscriptions” plugin to fix the email issue on the plugin – it dint work for me.
Is the email on subscription a default behavior of bbPress. Ideas to fix it is appreciated.
Thanks.