Nicolas Lemoine
Forum Replies Created
-
This is now fixed with 0.4
Forum: Plugins
In reply to: [WP Better Emails] Has anyone tested this on PHP 7.3?I (finally) just released an update that should fix bugs.
@ivijanstefan The plugin is on Github, anyone can contribute. Fork it and make a pull request instead of calling me “irresponsible”. Then create a popular WordPress plugin and see by yourself how rewarding is to maintain a plugin in the WP world (complaining impolite emails, support questions that have nothing to do with the plugin’s scope, etc.).
Forum: Plugins
In reply to: [Loco Translate] Add an action when a translation is savedHi Tim,
Thanks for considering my request!
Forum: Plugins
In reply to: [Loco Translate] Add an action when a translation is savedThanks a lot for the fast feedback and the workaround! I’ll test this and will keep an eye on LocoTranslate updates.
Forum: Plugins
In reply to: [WP Better Emails] Separate 'from' and ‘reply to’ fields in settingsThanks for your feedback. I have no spare time right now to make any changes. I’ll think about it in a future release.
Forum: Plugins
In reply to: [WP Better Emails] email only going as plain textHi SooBahkDo,
Thanks for the complete feedback. I’ll have look at it today and keep you updated.
Forum: Plugins
In reply to: [WP Better Emails] wp_mail()Hi,
The email has to be plain text to be wrapped by the template. You can set any headers, just don’t use “text/html” but “text/plain” instead.
Forum: Plugins
In reply to: [WP Better Emails] Template is not used at all despite %content% in templateHi norus,
The emails look like text only but it’s HTML. See in the code you posted:
add_filter('wp_mail_content_type',create_function('', 'return "text/html"; '));
Unfortunately, they use
create_function
to set the email format which is a very bad idea as it creates an anonymous function that can’t be removed withremove_filter
.I’ll think about adding a “force templating” to match such cases.
Forum: Plugins
In reply to: [WP Better Emails] WPML cooperation or work with the internal translationsHi,
Here are some ways I thought to translate strings in template.
Using the custom template tags:
add_filter('wpbe_tags', function( $tags ) { // Set the current language, fallback to english by default $lang = defined('ICL_LANGUAGE_CODE') ? ICL_LANGUAGE_CODE : 'en'; // Set a translations array $translations = array( 'footer.email_sent_on' => array( 'en' => 'Email sent on', 'fr' => 'Email envoyé le', ), 'footer.mention' => array( 'en' => 'Please only print this email if necessary', 'fr' => 'N’imprimez cet email que si nécessaire', ), ); // Create new tags $tags['footer.email_sent_on'] = $translations['footer.email_sent_on'][$lang]; $tags['footer.mention'] = $translations['footer.mention'][$lang]; return $tags; }
You should then be able to use tags such as %footer.mention% and %footer.email_sent_on% in your template. They will be translated.
Using the templates tags and the translation files:
add_filter('wpbe_tags', function( $tags ) { // Create new tags $tags['footer.email_sent_on'] = __('Sent on', 'theme_text_domain'); $tags['footer.mention'] = __('Please only print this email if necessary', 'theme_text_domain'); return $tags; }
Probably cleaner. If you don’t have a translation file, create one and load it manually.
Forum: Reviews
In reply to: [WP Better Emails] Semplice e pulitoThere is no issue with Contact Form 7.
https://www.ads-software.com/support/topic/plugin-wp-better-emails-conflict-with-contact-7-plugin?replies=8Hi Garrett,
Thanks for the suggestion, I thought about this checkbox too. I’ll do it in the next release.
Cheers.
Forum: Reviews
In reply to: [WP Better Emails] editor non motiver- Je vous ai toujours répondu, malgré votre fran?ais à la limite du compréhensible. Un conseil : renseignez-vous sur un truc qui s’appelle la ponctuation. Entre autres. Vous pourrez ensuite enchainer avec le reste (la syntaxe, la grammaire, l’orthographe).
- Je n’ai pas le pouvoir de vous bannir, je ne suis pas gestionnaire des forums WordPress. Je ne suis donc pas responsable de ce qui vous arrive. Mais si vous régissez ainsi, je n’en suis guère surpris.
- Je trouve votre réaction bien ingrate pour un sujet qui se trouve hors périmètre de mon plugin et malgré l’assistance que je vous ai pourtant fournie.
- Ce plugin est gratuit, développé et supporté sur mon temps libre. Je n’ai aucune obligation de vous fournir un quelconque support.
Forum: Plugins
In reply to: [WP Better Emails] Setting frim name and from email dynamicallySorry, maybe I wasn’t clear enough.
You said you wished to set a dynamic sender name/email but what is the factor/parameter used to decide what values should be used?
Forum: Plugins
In reply to: [WP Better Emails] date formatHi,
Sorry, I can’t figure out how this can be possible. The code that generate the date is pretty straightforward:
date_i18n( get_option( 'date_format' ) )
And should reflect the date format used in general settings.
Try creating your own tag:
add_filter('wpbe_tags', function( $tags ) { $tags['my_date'] = date_i18n('d m y'); return $tags; }
And use %my_date% in your template.
N.
Forum: Plugins
In reply to: [WP Better Emails] Password reset link not workingFixed on the last release.
N.