I already coded a private bbPress Plugin, that extends it to something like Mailman.
It just periodically catches mails to @forum.domain.tld via IMAP and adds a new reply to the topic with the Mail content (quotation skipped).
The notification is tweaked: the Reply-To header is replaced by reply-[topic-id]@forum.domain.tld, so the user can easily reply to the topic. But this is currently done by completely replacing the bbp_notify_topic_subscribers function with my own one (including the original content, just replacing the Reply-To).
All calls to bbp_subscription_mail_headers and bbp_subscription_from_email or bbp_subscription_to_email are just called with $headers or the address itself. As of 1.5.6 the Reply-To is no longer set by bbPress.
Will there be a way to include the topic-id (preferred in header altering) in upcoming releases? Or maybe a solution by bbPress itself to respond to notification Mails?
you can configure the noreply email simply with:
add_filter('bbp_get_do_not_reply_address','my_bbp_no_reply_email');
function no_reply_email(){
$email = 'noreply@yourdomain.com';
return $email;
}
bbPress uses BCC for sending subscription emails and the noreply email is used as to field. This is for better hardware (cpu and memory) usage as if you were to loop each user subscribed to content it would be troublesome.
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;
}
I hope this helps.
@katootje Robin forgot he already had this type of functionality in one of his other plugins.
bbp additional shortcodes
@casnbug
its definitely something wrong with the freshness link just cant tell if a code snippet could be affecting the code or what.
you can go through the basic troubleshooting for general issues by following this post
Before Posting
@digitalninjaza
this should do what your talking about
function rk_topic_description() {
echo bbp_topic_excerpt();
}
add_action('bbp_theme_after_topic_title','rk_topic_description');
use the bbpress stats widget or shortcode [bbp-stats] in a page
for just all topics it would placing these in a template.
these come the template content-statistics.php which you could copy into child theme into a folder called bbpress and customize.
<?php echo esc_html( $stats['topic_count'] ); ?>
for just replies it would be
<?php echo esc_html( $stats['reply_count'] ); ?>
i think this would require making a bbpress.php file from a copy of the page.php file and then make sure the sidebar is still there.
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
if you need help it would be helpful to also contact your theme author about this.
i don’t now where to insert the code you told and also thanks for your help
alright do you know what FTP is?? or how to upload files through your hosts file manager??
because you would bascially just copy that file from here
https://github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout/
and put it into your child theme (if you have a child theme) and put it into a folder called bbpress.
Then you would have to create categories for every forum you have for it to have this effect like phpbb has.
if you need a better explanation on certain things please just ask and i will try to help you.
Hello:
I just changed my theme. Now i am running the eleven 40 pro with Genesis. The problem is that i do lost all the buttons in my html and visual editor of my forums.
Any idea how to bring them back? I tried https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/ bur it doesn´t work. I also tried https://codex.bbpress.org/enable-visual-editor/ but no rusults.
Help please?
I just installed bbPress version 2.5.6 on WordPress 4.1.1 on a local development server (XAMPP).
After activiting the plugin, if I visit any frontend page on my site I get an error appear right after the Admin Bar.
Warning: in_array() expects parameter 2 to be array, null given in localhost\wp-content\plugins\bbpress\includes\common\functions.php on line 1446
I did some searching and found many people have a conflict with NextGen Gallery, however I don’t have that plugin installed.
I can confirm this error still happens with 2015 theme.
The thing is that im new in wordpress this is my webpage http://www.wuichy.com and i don’t now where to insert the code you told and also thanks for your help
sorry without spending a large amount of time and code, best I can come up with.
yes, just create a topic, no forums, and then create a page with the following shortcode
[bbp-single-topic id=$topic_id]
That way you’ll just have a page with that one topic.
ok, so is it the same with plugins disabled and default theme as per
Before Posting
and how is your forums page constructed – eg shortcodes, bbpress.php file etc.
I am looking for a shortcode or code (so I can make my own shortcode) to add the latest x topics from a specific forum. Like the recent topic widgets does. But in this case I can’t use the widget – so I am looking for a code to get the output of that widget somewhere in the text. I hope that is possible. I looked at the shortcodes on the website, but none of them is useful in my case.
It needs to say show x recent topics of forum with ID=… and then only give the titles with link
I got in contact with @shanhard but basically copied most of my code from wp-content/plugins/bbpress/includes/common/widgets.php
ok I think you need to strip this down and rebuild
I’d suggest that you create a test site
https://codex.bbpress.org/creating-a-test-site/
then on the test site
disable all plugins except bbpress AND switch to a default theme such as twentyten
Then if this doesn’t fix, go into
tools forums and reset forums to delete all the data
Then uninstall and reinstall bbpress.
Then prove that this set-up ie a default theme with no other plugins, just bbpress, works by creating topics, and checking the backend shows forum etc.
You should then have a working site
next add you theme back and check again
Then you can add plugins one at a time to find out what is wrong,testing each time that it still works.
If it all re-builds ok, then you can do the same reset and re-install to fix the live site
Lots of work, but until you get to a stripped down working site, you’ll probably not make progress.
either install this
https://wordpress.org/support/plugin/bbp-style-pack
or if you’re into php/css, download the plugin and crack open /css/styles.php which has the codes documented within it
I enabled the “add media” button in bbpress through bbpress-enable-tinymce-visual-tab plugin(by enabling “Fancy editor media upload”), and i can see the button in the forum, however i got error when trying to upload a picture:
“You don’t have permission to attach files to this post.”
the site role is Author while the forum role is Participant.
I can add media if in wordpress, and I can also add media if the user is changed from participant to Keymaster.
the code is in ajax-actions.php, however, if i remove it i got “HTTP error.”
if ( isset( $_REQUEST['post_id'] ) ) {
$post_id = $_REQUEST['post_id'];
if ( ! current_user_can( 'edit_post', $post_id ) ) {
echo wp_json_encode( array(
'success' => false,
'data' => array(
'message' => __( "You don't have permission to attach files to this post." ),
'filename' => $_FILES['async-upload']['name'],
)
) );
wp_die();
}
@danajoy2008
alright as long as the favorite/subscribe links are black then grayish on hover in Firefox , then my code is working fine.
as for your cache issue make sure to contact other support to help you will this.
your hosting support and also wordpress.org support should help.
Support Forums
and maybe installing the CCleaner program on your CPU will help remove some of chromes internet cache.
And if you figure out a configuration for the cache function on your site , make sure the setting have it to not having any Admin user and logged in user not have cache since this is usually recommended.
@robkk
I surely did flush the cache, and I confirmed with my host that it’s the only caching function on my site at present.
Now here’s the crazy thing: When I have the website open in Chrome, I see the links in blue AND the Favorite/Subscribe buttons in blue. But when I open the site in Firefox, only the links in the posts are blue (as I wanted it to be).
I’m thinking this is an issue with me now. Your code seems to be totally brilliant and working just fine; my laptop obviously hates me.
Thank you again so much for all of your help. You really are awesome at this!
I put the code you posted into my CSS just below the other code you gave me, but the Favorite and Subscribe buttons are still blue for me. I think I hit put a return in between the two — was that the right thing to do?