I’m not sure how ‘duplicator’ works but if it sync’s the database it should be fine to sync bbPress’ forums, topics and replies as they WordPress ‘Custom Post Types’, topic tags are a taxonomy and users are users.
So presuming Duplicator is copying/replication WordPress’ posts and pages which are stored in wp_posts and wp_postmeta adding support for bbPress should ‘just work’ if Duplicator supports custom post types.
Do Bluehost implement any plugins that override WordPress site or home URL’s?
If your site URL and home URL’s are http://www.example.com I am trying to work out where they are getting box557.bluehost.com from to make that the email address that is being used.
Glad your working, sorry I didn’t get to suggest using a call back earlier 😉
Did try using the included callback_reply_to first?
https://bbpress.trac.wordpress.org/browser/trunk/src/includes/admin/converter.php#L1342
Presume you’ve been through the guides
Step by step guide to setting up a bbPress forum – Part 1
for members only forums set these as private, and only logged in users will see them.
Hello everyone,
i have problem with bbpress doesnt work in my theme.My theme is https://wordpress.org/themes/semicolon.Bbpress in my theme doesnt work.Specifically, are not seeing some things from buddypress.In default theme it works.
I dont know why? Do you any solution? I tried this solution.http://codex.bbpress.org/theme-compatibility/. But doesnt work for me.
Iam unhappy.Why is this so difficult.I excepted ,that is be easy,but isnt.
I do not understand it at all.
Please help me.Thank you very much!
So I was recently given control over my volunteer organizations website after our last webmaster did not follow instructions or help with development.
I’m having some difficulty adjusting to using WordPress, I need to add a Members only forums for the organizations members. the rest of the page needs to be free and open to the public. I will manually add the users in with their emails and assign a generic password that they later can change. I only want them to be able to log into the webpage and not wordpress. I dont want people registering either since it will be done manually.
this is the website http://mnemshonorguard.org/
Im no good at code reading or changing.
I tried using BBPress but wasn’t getting anywhere at all. looking for help the correct application and step by step guide if at all possible,
Many Thanks
bbpress uses the wordpress function
https://codex.wordpress.org/Function_Reference/get_avatar
to get the avatar, so you probably need to poke into how wordpress does this.
So where do we put this code, some might ask?: This is a plugin, so we can create a file like /wp-content/plugins/empty-anonymous-replies-in-bbpress/empty-anonymous-replies-in-bbpress.php. Then we visit the plugin section in the backend and activate it. This code should also work from the functions.php file in the current theme directory. I hope this helps the users, that aren’t sure what to do with this code.
you make a .php file copying the entire code they published
or copy after
/**
* Plugin Name: Empty Anonymous Replies in BBPress
* Plugin URI: http://wordpress.stackexchange.com/a/133420/26350
*/
and add that code to functions.php if you hopefully have a child theme
Can’t figure it out, here’s te portion of code that It’s not working:
$_POST[‘bbp-forums-role’] = “keymaster”;
bbp_profile_update_role();
For example, I only want to update actual bbpress logged in user role with “keymaster” role.
Maybe I’m not using bbp_profile_update_role() in the right way. 🙁
How do I enable real anonymous posting in bbpress? I found this code on http://wordpress.stackexchange.com/questions/131550/how-do-i-set-up-real-anonymous-posting-in-bbpress-forums But I’m too much of a noob to implement it. Between which lines should i paste the code to enable anonymous posting? The comment underneath is trying to be helpfull! But how do I create a working plug-in file?
I think the solution is really easy for anyone familiar with php. Between which lines should I paste the code provided on the site mentioned above? Any answers will be greatly appreciated. Thank you very much! A very big n00b
Where do I have to add that code? I just tried adding it in my functions.php, but that doesn’t seem to work. I’m also working locally, using Bitnami.
Probably disable wpMandrill for bbPress notifications would be the quickest way and let WordPress’ send the emails as BCC is fully supported.
You can try the following plugin that I whipped up, I have only tested it on a local install and works for me…
https://gist.github.com/ntwb/d45948672dbf5fd580c9
That said, if you already have custom functions using the wpMandrill mandrill_payload filter in another plugin or functions.php file then updating the relevant section of that for bbPress would be the suggested route. I’m also not sure how this will affect any other templates or custom configurations you may be using either via the wpMandrill plugin config options or any options you have set in your Mandrill API/Setup/Config. (As stated, I’ve only just fired up wpMandrill to have a a quick look for the first time a couple of hours ago)
A third reason was that we were not accurately removing the http:// / https:// which could result in domains like https://sssseanwes.com/ removing all the s’s becoming eanwes.com 🙁
@shazahm1,
There are two reasons why the email fails
– www was appended in front of the domain name.
– The email address is enclosed with angle brackets
For me the www issue didn’t happened but it was because of the second issue.
Once I removed the angled brackets it worked for me through wpmandrill. But you will get a bounce email if that email doesn’t exist.
To actually find whether the email went through or not, check the api logs from the mandrill dashboard. Even though you are getting a bounce email, the emails might have gone to all your subscribers who are added in bcc.
It was is not working on a page where i added bbpress forum shortcode. It works everywhere else, like posts, forum root etc.
@evildon, You’re right. not sure why I copied the code without that
Here is the working code:
function ntwb_bbp_bp_pm() {
if(function_exists('bp_send_private_message_link') && is_user_logged_in() ) {
global $bp;
if ($bp->loggedin_user->id !== bbp_get_reply_author_id()){
$user = get_userdata( bbp_get_reply_author_id() );
if ( !empty( $user->user_nicename ) ) {
$user_nicename = $user->user_nicename;
}
$compose = bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . $user_nicename;
?>
<div class="forum-pm"><a href="<?php echo $compose ?>" title="Private Message">Private Message</a></div>
<?php
}
}
}
add_action( 'bbp_theme_after_reply_author_details', 'ntwb_bbp_bp_pm' );
@shpitzyl
The final code seems to be not working. Still getting the blank username in the compose window.
I think you need to have a href on the a tag there to work?
If any one can solve this that would be great.
Thanks
Another twist for those of us that use Mandrill — $do_not_reply is used for both the to address and the from address. In order to get around Mandrill requiring the from address being legit and on file I first had to change $do_not_reply to be my main Mandrill address, which in turn addressed every single email to my actual email address instead of one that is intended to go nowhere.
I made another edit and customized the From address in $headers and all is well, but it’d be great to have both be separate filters for cases like this where the from address needs to be legit.
The solution lies in : wp-content/plugins/bbpress/includes/common/functions.php
Currently it is this : $do_not_reply = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
Needs to be: $do_not_reply = '<noreply@' . str_replace("www.","",ltrim( get_home_url(), '^(http|https)://' )) . '>';
I got this issue on my server w the latest bbPress update. I believe the most recent ticket will fix it in the next update, but this is what we did internally and it’s working.
@netweb
Yes, I did both. 2618.4.diff would not affect me though. I did verify the email address was correct in the Mandrill dashboard, noreply@connections-pro.com, but they were still being rejected.
I made sure to deactivate two plugins I’m using to make sure they were not inferring just incase they need to be updated to work correctly with the bcc change.
Those plugins were:
https://wordpress.org/plugins/bbpress-custom-reply-notifications/
https://wordpress.org/plugins/bbpress-new-topic-notifications/
I saw that both @jchristopher and @sudar mention they had to hardcode an email address that wpMandrill knows about. I’m wondering if I need to use one of the new filters to change the noreply address to a real valid address for wpMandrill to send the email without rejecting it. If I could figure out what they did to resolve their issue, but use a filter instead of hard coding it, that seems like it would solve my problem in a update safe way.
For now I’m still using the functions.php file from 2.5.3 (I have 2.5.4 installed).
What I mean by previous method is, in 2.5.4, notifications are sent as a “group” bcc was as in 2.5.3 it was one email per notification (right?).
I just added that code to custom css file. Doesn’t work.
Thinking on this some more, as it is a client site I presume it has it’s own domain name.
Is the clients domain name being used for the notifications with 2.5.1?
eg noreply@example.com
As you pointed out above that both the site URL and home URL use www and your emails are showing using the Bluehost’s subdomain box557.bluehost.com so is your site and home URL’s http://www.box557.bluehost.com?
And for completeness did your last test use changeset r5409 and 2618.4.diff?
yes, start with
bbp additional shortcodes
This list the last 5 topics across all the forums, and your friend should be able to crack it open
the end function
function rw_display_topic_index_query( $args = array() ) {
global $show ;
$args['author'] = 0;
$args['show_stickies'] = true;
$args['order'] = 'DESC';
$args['posts_per_page'] = $show ;
return $args;
}
just needs an extra parameter to get the right forum,
If you get him to also look at
wp-content/plugins/bbpress/includes/common/shortcodes
he’ll find some useful code to do that