Forum Replies Created
-
In reply to: New topic emails bug on sublevel domains
Since installing 2.5.10 of the BBPress Plugin the corresponding function improved a bit. The function which creates the noreply sender sits in includes/common/functions.php and reads
function bbp_get_do_not_reply_address() { $sitename = strtolower( $_SERVER['SERVER_NAME'] ); if ( substr( $sitename, 0, 4 ) === 'www.' ) { $sitename = substr( $sitename, 4 ); } return apply_filters( 'bbp_get_do_not_reply_address', 'noreply@' . $sitename ); }
In my case the domain is something like subdomain.domain.de
The above function creates the noreply address noreply@subdomain.domain.de
Correct would be (in my case) noreply@subdomain.deIMHO the function could create the sender by parsing the $sitename from right to left (TLD DOT DOMAIN until DOT or //). I was too lazy and just added my specific case
function bbp_get_do_not_reply_address() { $sitename = strtolower( $_SERVER['SERVER_NAME'] ); if ( substr( $sitename, 0, 4 ) === 'www.' ) { $sitename = substr( $sitename, 4 ); } else if ( substr( $sitename, 0, 10 ) === 'subdomain.' ) { $sitename = substr( $sitename, 10 );} return apply_filters( 'bbp_get_do_not_reply_address', 'noreply@' . $sitename ); }
I read a lot about these email notification problems and think this is a real pain in the a..
On my systemwp: 4.0.1
bbpress: 2.5.4
wp-url: subdomain.domain.comEverytime an email is about to be sent I get an error message from my server like <noreply@ubdomain.domain.com>… Deferred: Connection refused by ubdomain.doamain.com.
You might have seen that the subdomain is being put into the email sender and the first letter of it is killed. In my opinion the sender should be noreply@domain.com instead of noreply@ubdomain.schule.com.
Any idea how to fix this?
Thanks,
Ingo
Thanks, Fee. As of WordPress 4.0 the problem still exists, so I commented out the
//$private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post ); //$title = sprintf( $private_title_format, $title );
in wp-includes/post-template.php to get rid of the private: in front of private tagged forums which I use.
In reply to: User data integration bbPress 2.5.4 WordPress 4.0Argh! Thanks for the hint. Didn’t got that as I didn’t expected it to work out of the box.