• Resolved meganchampagne

    (@meganchampagne)


    Hello πŸ™‚

    I’m having some troubles. When using the form on the site, if the user enters a web page for the event, when you click event you get redirected to the web page entered, and the event is not actually submitted. Please advise.

    Also – I can’t seem to find the placeholder code to add this to the listing details.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter meganchampagne

    (@meganchampagne)

    Apologies.

    It does actually add the event … buuut when you click on the event (like to get to the details) it redirects to the website … thoughts anyone? I’d really appreciate the help πŸ™‚

    Thread Starter meganchampagne

    (@meganchampagne)

    Resolved. I editted the code and took that part out.

    If anyone else is wondering, in the plugin editor screen, I edited the file
    events-made-easy-frontend-submit/templates/form.php
    eve

    I removed
    <div class=”input”>
    <label for=”event_url”><?php _e(‘Event Web Page’,’events-made-easy-frontend-submit’); ?></label><br />
    <?php EMEFS::field(‘event_url’); ?>
    <?php EMEFS::error(‘event_url’); ?>
    </div>

    It worked for me, but just to be sure I copied the text that was just below this, so if I had to put it back I knew where it went. The above code is right ABOVE

    <h3><?php _e(‘Location Information’,’events-made-easy-frontend-submit’); ?></h3>

    I take no liability if this doesn’t work for you. It worked for me, and thought I’d share πŸ™‚

    Thread Starter meganchampagne

    (@meganchampagne)

    Resolved. I editted the code and took that part out.

    If anyone else is wondering, in the plugin editor screen, I edited the file
    events-made-easy-frontend-submit/templates/form.php
    eve

    I removed
    <div class=”input”>
    <label for=”event_url”><?php _e(‘Event Web Page’,’events-made-easy-frontend-submit’); ?></label>
    <?php EMEFS::field(‘event_url’); ?>
    <?php EMEFS::error(‘event_url’); ?>
    </div>

    It worked for me, but just to be sure I copied the text that was just below this, so if I had to put it back I knew where it went. The above code is right ABOVE

    <h3><?php _e(‘Location Information’,’events-made-easy-frontend-submit’); ?></h3>

    I take no liability if this doesn’t work for you. It worked for me, and thought I’d share πŸ™‚

    Plugin Author Franky

    (@liedekef)

    Hi πŸ™‚
    First of all: that’s expected behavior. When an url is entered, it is taken as the actual events page. There’s a setting in EME that lets you change that.
    Second: changing templates/form.php directly is not really recommended. See the FAQ section on where to put your modified template (it is meant for you to change it to your liking of course).

    In your below code (emefs.php, line 292-301), the success page from the settings should be made a priority, rather than the event_url.

    if ($event_id = eme_db_insert_event($emefs_event_data_compiled)) {
       if (is_user_logged_in() && $this->settings->options['auto_publish']!=STATUS_DRAFT) {
                         wp_redirect(html_entity_decode(eme_event_url(eme_get_event($event_id))));
    } elseif (!is_user_logged_in() && $this->settings->options['auto_publish']==STATUS_PUBLIC) {
                         wp_redirect(html_entity_decode(eme_event_url(eme_get_event($event_id))));
    } else {
      wp_redirect(get_permalink($this->settings->options['success_page']));
    }
    exit;
    }
    • This reply was modified 8 years, 9 months ago by wp ranger.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Event Web Page’ is closed to new replies.