• Hi please how I can add the login or signup link page in the submit event page when we are not logged

    Thanks !

    • This topic was modified 3 weeks, 6 days ago by James Huff.
    • This topic was modified 3 weeks, 6 days ago by James Huff. Reason: redundant link removed

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Create the directory wp-content/plugin-templates/events-manager/forms then copy the file wp-content/plugins/events-manager/templates/forms/event-editor.php to that directory then modify the copied version of the file. Then look for the place in the file where it says “You do not have the rights to manage this Event” and add replace it with a link for signup or login.

    Thread Starter nemrio

    (@nemrio)

    Thank you @joneiseman !

    Thread Starter nemrio

    (@nemrio)

    Hi @joneiseman , i did as you told me but I cannot see the links even I did updated the file directly event-editor.php inside the plugin without success I guess we look for a different phrase You must log in to view and manage your events. but I cannot find where it’s

    Thanks !

    Update it’s here

    em-template-tags.php: echo ‘

    ‘. apply_filters(’em_event_submission_login’, __(“You must log in to view and manage your events.”,’events-manager’)) . ”;

    do I apply the same rule for it ?

    • This reply was modified 3 weeks, 4 days ago by nemrio.
    Thread Starter nemrio

    (@nemrio)

    Update I was able to fix it for reference :

    add_filter('em_event_submission_login', 'custom_em_event_submission_login_message', 10, 1);

    function custom_em_event_submission_login_message($message) {
    // Check if the user is not logged in
    if (!is_user_logged_in()) {
    // Customize the message to include a login and registration link
    $login_url = esc_url(wp_login_url(get_permalink())); // Redirects back to current page after login
    $register_url = esc_url(wp_registration_url());

    // Build the message with login and registration links
    $message = __('You must log in to view and manage your events.', 'events-manager') . ' ';
    $message .= '<a href="' . $login_url . '">' . __('Log in here', 'events-manager') . '</a>.';

    // Only add a sign-up link if registration is enabled
    if (get_option('users_can_register')) {
    $message .= ' ' . sprintf(__('Don\'t have an account? <a href="%s">Sign up here</a>.', 'events-manager'), $register_url);
    }
    }
    return $message;
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.