Forum Replies Created

Viewing 15 replies - 16 through 30 (of 183 total)
  • Plugin Author Markus Echterhoff

    (@mechter)

    This is a good news, bad news type of situation. The bad news is that I’m not currently developing or even testing this plugin anymore. I have moved on from bbPress because even with loads of plugins such as this one, it simply didn’t fulfill my expectations for a modern forum software. The good news is that your issues seem to be sharing a common feature: They don’t seem wholly deterministic, indicating that this plugin isn’t at fault and the problem can be fixed without having to modify the plugin’s code. I would suspect the issue lies with caching or WPCron. Try disabling caching plugins and see if the problem persists. If it does, try changing WPCron behavior, either alternative WPCron or real Cron. You can find instructions in this plugins FAQ (at the bottom of the description on the plugin page, after customization and snippets).

    Plugin Author Markus Echterhoff

    (@mechter)

    You’re welcome, and thanks for your suggestions. However, there are currently no plans for adding additional functionality to this plugin. Feel free to fork the code though and improve upon it.

    Plugin Author Markus Echterhoff

    (@mechter)

    Hi evo, try searching the web for “wordpress add shortcode to menu”. I found both a plugin and code examples that do exactly what you are looking for.

    Plugin Author Markus Echterhoff

    (@mechter)

    Alright, I’m marking this as resolved then. If you change your mind and can provide me with temporary access to your WordPress files and Dashboard, I’d be happy to take a look and help you figure out why this isn’t working as expected.

    Plugin Author Markus Echterhoff

    (@mechter)

    If the email is not being sent at all, it might be a WP Cron issue.

    Please verify that WP Cron is running properly and hasn’t been disabled in wp-config.php.

    Try opening the page /wp-cron.php of your web site in your browser and try if that gets any stuck emails sent.

    Also, have you tried the tip in the FAQ at the bottom of the plugin description? (adding define('ALTERNATE_WP_CRON', true); to your wp-config.php)

    Plugin Author Markus Echterhoff

    (@mechter)

    It looks like the website you need help with is running bbPress 2.5.14, which should be perfectly compatible. Please try the troubleshooting hints I’ve posted and let me know if you find anything.

    Plugin Author Markus Echterhoff

    (@mechter)

    This is weird. Yes, the user should indeed receive an email, and using WP Mail SMTP should work just fine. Let’s see.. which version of bbPress are you using? Also, could you please try the following: Deactivate my plugin, go to a forum or topic your test user has subscribed to and create a post. Verify that the email is being sent as expected. Then activate my plugin again, post to the same place as before and see if you receive another mail or not. If it does not seem to work, use a plugin to log your WordPress emails to verify that the email is indeed not being sent, rather than getting lost along the way. If no email is being sent, maybe WP Cron is not running?

    Plugin Author Markus Echterhoff

    (@mechter)

    Glad I could help. Thanks for your friendly review. ??

    Plugin Author Markus Echterhoff

    (@mechter)

    *MIME version, not type.

    Plugin Author Markus Echterhoff

    (@mechter)

    Sorry about that. The code was untested. The number of filter arguments was missing and also I discovered that the MIME type was added a second time by WordPress, so I removed that part. Here is a tested version that works for me:

    add_filter( 'bbp_subscription_email_headers', function( $headers ) {
    	$headers []= 'Content-Type: text/html; charset=UTF-8';
    	return $headers;
    } );
    
    add_filter( 'bbp_forum_subscription_email_message', function( $message, $forum_id, $topic_id ) {
    	$topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
    	$topic_author_display_name = bbp_get_topic_author_display_name( $topic_id );
    	$topic_url = get_permalink( $topic_id );
    	$topic_content = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES );
    
    	return sprintf( '<p>%s posted new topic <a href="%s">%s</a></p><p>%s</p>', $topic_author_display_name, $topic_url, $topic_title, $topic_content );
    }, 10, 3 );
    
    add_filter( 'bbp_topic_subscription_email_message', function( $message, $forum_id, $topic_id, $reply_id ) {
    	$reply_author_display_name = bbp_get_reply_author_display_name( $reply_id );
    	$reply_url = bbp_get_reply_url( $reply_id );
    	$reply_content = wp_specialchars_decode( strip_tags( bbp_get_reply_content( $reply_id ) ), ENT_QUOTES );
    
    	return sprintf( '<p>%s replied:</p><p>%s</p><p><a href="%s">Read Online</a></p>', $reply_author_display_name, $reply_content, $reply_url );
    }, 10, 4 );
    Plugin Author Markus Echterhoff

    (@mechter)

    Sure. In the above example code, the message filters return an html string. That string could also be loaded from a template by using php output buffers like so:

    ob_start();
    include( get_stylesheet_directory() . '/email_templates/new_topic_message.html' );
    $ob = ob_get_clean();
    

    Then you simply replace any tokens in the template with author name, content etc and return the result.

    Plugin Author Markus Echterhoff

    (@mechter)

    Hi @wpturk, try something like this (e.g. added to your theme’s functions.php):

    add_filter( 'bbp_subscription_email_headers', function( $headers ) {
    	array_push( $headers, 'MIME-Version: 1.0', 'Content-Type: text/html; charset=UTF-8' );
    	return $headers;
    } );
    
    add_filter( 'bbp_forum_subscription_email_message', function( $message, $forum_id, $topic_id ) {
    	$topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
    	$topic_author_display_name = bbp_get_topic_author_display_name( $topic_id );
    	$topic_url = get_permalink( $topic_id );
    	$topic_content = wp_specialchars_decode( strip_tags( bbp_get_topic_content( $topic_id ) ), ENT_QUOTES );
    	
    	return sprintf( '<p>%s posted new topic <a href="%s">%s</a></p><p>%s</p>', $topic_author_display_name, $topic_url, $topic_title, $topic_content );
    } );		
    
    add_filter( 'bbp_topic_subscription_email_message', function( $message, $forum_id, $topic_id, $reply_id ) {
    	$reply_author_display_name = bbp_get_reply_author_display_name( $reply_id );
    	$reply_url = bbp_get_reply_url( $reply_id );
    	$reply_content = wp_specialchars_decode( strip_tags( bbp_get_reply_content( $reply_id ) ), ENT_QUOTES );
    	
    	return sprintf( '<p>%s replied:</p><p>%s</p><p><a href="%s">Read Online</a></p>', $reply_author_display_name, $reply_content, $reply_url );
    } );
    
    Plugin Author Markus Echterhoff

    (@mechter)

    I’ve added the filter hook and released it as version 1.4 but since the filter provided an option to substitute your own help content rather than making changes to the default html (which might change without notice), the semantics felt off.

    I have since released version 1.5 which replaces the filter with an action hook. You can now provide your custom help content by unhooking the default action and substituting your own, e.g.

    remove_action( 'bbpmd_help_content', 'bbpmd_display_help_content' );
    add_action( 'bbpmd_help_content', function() { echo 'hi'; } );
    Plugin Author Markus Echterhoff

    (@mechter)

    Hey, sorry it took me so long to reply. I forgot to subscribe to this support forum and just stumbled upon your post.

    If I understand correctly, you are looking for a way to replace the contents of the help tab that is a bit cleaner than unhooking bbpmd_after_editor and replacing it with custom code.

    How about a bbpmd_help_content filter to accompany the existing bbpmd_help_title – would that do the trick?

    Plugin Author Markus Echterhoff

    (@mechter)

    Glad I could help. Also, thanks for your kind review.

    Marking as resolved.

Viewing 15 replies - 16 through 30 (of 183 total)