AsynCRONous bbPress Subscriptions
Per default, bbPress is sending subscription notification emails as one email with a bunch of BCCs. There are various reasons why it would make more sense to send individual emails. This plugin does that, quietly in the background via WP cron, without slowing down page load times. Also increases notification performance and reduces database load on large sites. Translations by @mauriciogarofalo and @mechter Defaults If you don’t customize this plugin, this is what you’ll get: Sends mails from "MyBlog " (with your Blog’s name and admin email) Sends mail to "Markus " (with the name being the user’s display name on the forums, not their username) Subject and Message have more user friendly defaults, use the available filters (see below) to make them your own. Customization You can install and activate this plugin and it just works, but you have full control over the details if you want to. Below are some filters and code snippets that help you do what you want. If you’re new to working directly with code, please see the example at the bottom of this page. Available filters bbp_subscription_email_from( $from ) // $from can be a string or array('name'=>string, 'address'=>string) bbp_subscription_email_recipients( $recipients ) // $recipients is array of array('name'=>string, 'address'=>string) bbp_subscription_email_headers( $headers ) bbp_forum_subscription_email_subject( $subject, $forum_id, $topic_id ) bbp_forum_subscription_email_message( $message, $forum_id, $topic_id ) bbp_topic_subscription_email_subject( $subject, $forum_id, $topic_id, $reply_id ) bbp_topic_subscription_email_message( $message, $forum_id, $topic_id, $reply_id ) bbp_bounce_address( $bounce_address ) bbp_subscription_disable_async( false ) bbp_forum_subscription_disable_async( false ) bbp_topic_subscription_disable_async( false ) bbp_forum_subscription_notify_author( false ) bbp_topic_subscription_notify_author( false ) Helpful Snippets Here are some pointers to get the data you might want in your notifications: $blog_name = get_bloginfo( 'name' ); $forum_title = bbp_get_forum_title( $forum_id ); $topic_author_user_id = bbp_get_topic_author_id( $topic_id ); $topic_author_display_name = bbp_get_topic_author_display_name( $topic_id ); $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES ); $topic_content = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES ); $topic_url = get_permalink( $topic_id ); $reply_author_user_id = bbp_get_reply_author_id( $reply_id ); $reply_author_display_name = bbp_get_topic_author_display_name( $reply_id ); $reply_content = strip_tags( bbp_get_reply_content( $reply_id ) ); $reply_url = bbp_get_reply_url( $reply_id ); // note that it's not get_permalink() Example To have a nice subject line for new topic notifications, add this to your theme’s functions.php. If your theme does not have this file, you can simply create it and it will be loaded automatically. Note how the example is basically just one of the filters above, mixed with some of the snippets and a return statement. It’s that simple. add_filter( 'bbp_forum_subscription_email_subject', function( $subject, $forum_id, $topic_id ) { $blog_name = get_bloginfo( 'name' ); $topic_author_display_name = bbp_get_topic_author_display_name( $topic_id ); $topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES ); return "[$blog_name] $topic_author_display_name created a new topic: $topic_title"; }, 10, 3); // first is priority (10 is default and just fine), second is number of arguments your filter expects
Top keywords
- topic34×5.91%
- id28×4.87%
- bbp24×4.17%
- subscription14×2.43%
- author13×2.26%
- forum13×2.26%
- name13×2.26%
- reply13×2.26%
- topic id12×2.09%
- email10×1.74%
- id topic10×1.74%
- display8×1.39%
bbPress Members Only
bbPress Members Only is a bbpress plugin that restricts your bbpress to logged in/registered members only. Only logged in users can view your forums, non members can only open a few specified pages which you setting in our plugin back end. Logged in users have full access on your bbPress site. Check Demos bbPress Members Only is a simple & quick & light bbPress Members Only solution, it allows you to make your bbPress site only viewable to logged in member users. It is super easy to use, just activate the plugin, follow detailed guide of each option to finish a little setting work in admin panel, the plugin will protect your bbPress and wordpress. But if you do not setting it in back end, it works well too, it is admin friendly and super easy to use. You can setting which pages on your site will open to guest very quickly: The plugin is very easy to use Home page of your site is always be opened to non member users. Login page will always be opened to non member users. Register page will always be opened to non member users. Lost Password page will always be opened to non member users. Forums Archive / Forums Homepage will always be opened to non member users. In backend “bbPress Members Only Setting” menu -> Option Panel, you can setting “Register Page URL(or redirect url)”, “Opened Page URLs” “Register Page URL(or redirect url)” will opened to non member users always. “Opened Page URLs” will opened to non member users always, you can add unlimited Opened Page. When guest users try to view any other pages on your site, they can not can view content, they will be redirected to the URL which you setting in “Register Page URL”. bbPress Members Only supported HTTPS abd HTTP, we will detect HTTPS and HTTP automatically. bbPress members only plugin support WordPress too, if you disable bbPress on your site, our plugin will detect it and support wordpress members only automatically Option to only protect bbPress pages Any feature request is welcome to requst at plugin support page Pro Version Features Pro Version Detailed Feature List Login redirect based on user roles, each user roles have options for redirect to the smae page before login, referrers … and so on Restricts your bbPress forums based on user roles. Restricts your bbPress topics based on user roles. Restricts your bbPress replies based on user roles. Options to enable / disable restriction of your bbPress Topics, bbPress Replies, WordPress Pages / Posts. In bbPress Topic editor, bbPress reply editor, post / page editor, you can choose setting it as a members only page based on user roles. Restricts your bbPress forums to Logged in/Registered members only, you can choose which sub forum will open to guest user, or which sub forum will only opened to logged in users Restricts your bbPress topics to Logged in/Registered members only. Restricts your bbPress replies to Logged in/Registered members only. Restricts important content in a wordpress post to Logged in/Registered members only. Supported https and websocket Enable page level protect, when you edit a post, you can choose setting it as a members only page or not. By this way, you do not need enter page URLs to Opened Pages Panel always Options to Only Protect My bbPress Pages, so other section on your wordpress site will be open to the guest users, so you can only restrict your bbPress section, but open wordpress section to your guests, for example, blog, faq, ticket, store… and so on. …… Just $12, you will have a powerful bbPress Members Only Pro plugin, Unlimited Download, Lifetime Upgrades, Ticket Support More amazing features is be developing, also there are many feature in To-Do lists, if you hope more features, contact us and any feature request is welcome.