Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Aliendex

    (@aliendex)

    You can change the string inside the birthday-emails.php located in /wp-content/plugins/birthday-emails

    This is the part of the code you need to find and check:

    /***************************************************************************************
     * This function sends a Notification email about the birthday wishes just sent if the option is selected in the admin options page.
     ***************************************************************************************/
    if ( ! function_exists( 'cjl_bdemail_sendNotification' ) ) {
        function cjl_bdemail_sendNotification($displayName)
        {
            $options = get_option('cjl_bdemail_settings');
            $fromName = $options['cjl_bdemail_text_field_From_Name'];
            $fromEmail = $options['cjl_bdemail_text_field_From_Email'];
            $headers = [];
            if ($fromEmail) $headers[] = "From: " . 'WebMaster @ ' . get_bloginfo('name') . " <$fromEmail>";
            if ($fromEmail) $headers[] = "Reply-to: $fromEmail";
            $headers[] = 'Content-type: text/plain; charset=utf-8';
            $headers = implode("\r\n", $headers);
            $checked = '';
            if (array_key_exists('cjl_bdemail_checkbox_Notify_YesNo', $options)) {
                if ($options['cjl_bdemail_checkbox_Notify_YesNo']) {
                    $checked = isset($options['cjl_bdemail_text_field_Notification_Email']) ? esc_attr($options['cjl_bdemail_text_field_Notification_Email']) : '';
                }
            }
            if ($checked) {
                wp_mail($checked, __('Notification of Birthday Email Sent', 'birthday-emails'), __('A birthday email was sent to ','birthday-emails') . $displayName . '.', $headers);
            }
        }
    }

    To be specifical, change 'Notification of Birthday Email Sent' and 'A birthday email was sent to ' to whatever text you want to display.

    I will also like to have a custom page in the settings to change the behaviour and the look of the notifications.

    Also, multiple email can be added for notification, you need to use the comma for each email in the “Email Address for Notification” field

    • This reply was modified 6 years ago by Aliendex.
    Thread Starter Aliendex

    (@aliendex)

    A booking (and the booking from) is always linked to a specific event. You can not say “Hey some day I will be there”. If you do not book a specific event there is absolutely no way of knowing when they will attend.

    I was meaning that i don’t want to show the event in the events list. Maybe with some conditional?
    The fact that this event isn’t really correlate with a date and a place is just because it isn’t.
    It’s like a “subscribe” button, without any consequence to the users.
    This way I can manage in the back-end who is really an official member.

    You don’t! Loggin in is the correct and only way to link a user to a booking. Not logging in means they are not verified and anyone could book in their name.
    Not logging in = no user linking. Simple.

    As stated before, i don’t know why (if I’m an Administrator) I can log-in in the front-end as an user and link it to a booking, but I can’t simply do that in my back-end in the Events > Bookings page with the simplicity of a button to integrate users in an event.

    In Events > Settings > Formatting> Events List Page you can define your 100% custom layout. All you need is basic knowledge of HTML and CSS.

    Done, thank you

Viewing 2 replies - 1 through 2 (of 2 total)