Skip to content

FAQ

This plugin is almost right for me, but there’s this feature I desperately need. Can you add it?

If I need the feature myself for a website I am working on, I am definitely going to code it. If not, I might add it sooner of later. If you really need this feature you can offer to sponsor the plugin development. This way we make a deal, and you can be sure I’ll implement the feature in a specific amount of time.

I enabled the Google Maps integration, but instead of the map there is a green background. What should I do?

I call that Green Screen of DeathTM, but it’s quite easy to fix your issue. If you see that green background, your theme has a little problem that should be fixed. Open the header.php page of your theme; if your theme hasn’t any header.php page, just open the index.php page and/or any page containing the <head> section of the html code. Make sure that the page contains a line with wp_head(); inside php tags.
If your page(s) doesn’t contain such line, add it just before the line containing </head>. Now everything should work right.
For curiosity’s sake, wp_head(); is an action hook, that is a function call allowing plugins to insert their stuff in WordPress pages; if you’re a theme maker, you should make sure to include wp_head() and all the necessary hooks in your theme, inside php tags.

The same accounts for footer.php and the function call wp_footer();. Add wp_footer(); just before the </body>-tag (see the footer.php file in the standard Twenty Ten theme).

Now, to make things easier, I added an option “Always include JS in header?” which can help you here as well, if you’re unable to make the change to the theme footer.php file.

My calendar doesn’t advance to the next or previous month?

See the answer above concerning the google maps problem.

How do I resize the single events map? Or change the font color or any style of the balloon? Or any other style element?

See the documentation, section “Concerning the layout: CSS”

Can I further customise the event page?

Sure, you can do that by editing the page and changing its template. For heavy customisation, you can use the some of the plugin’s own conditional tags, described in the “Conditional Template Tags” section in the documentation.

How does Events Made Easy work?

When installed, Events Made Easy creates a special “Events” page. This page is used for the dynamic content of the events. All the events actually link to this page, which gets rendered differently for each event.

Are events posts?

Events aren’t posts. They are stored in a different table and have no relationship whatsoever with posts.

Why aren’t events posts?

I decided to treat events as a separate class because my priority was the usability of the user interface in the administration; I wanted the users to have a simple, straightforward way of inserting the events, without confusing them with posts. I wanted to make my own simple event form.
If you need to treat events like posts, you should use one of the other excellent events plugin.

Is Events Made Easy available in my language?

At this stage, Events Made Easy is available in English, (parts of it in) Italian Spanish, German and some other languages. Yet, the plugin is fully localisable; I will welcome any translator willing to add a translation of Events Made Easy into his mother tongue into this package.

How to simplify ‘Insert New Event’ admin panel?

Just use the wordpress “Screen options” on than panel to hide the fields not wanted.

How to add a “Add to Google Calendar” link to an event

Add the following to the single event format (on one line):

<a target="_blank" href="http://www.google.com/calendar/event?action=TEMPLATE
&text=#URL_NAME
&dates=#_{Ymd}T#H#_{i}00/#@_{Ymd}T#@H#@_{i}00
&sprop=#URL_EVENTPAGEURL
&location=#URL_ADDRESS,#URL_TOWN
&details=#URL_LOCATION"
>Add to Google Calendar</a>

A small discount code example

Say you want to give a discount if more than 1 place is booked, then put the following in your theme functions.php (for a single-price-category event):

add_action('eme_insert_rsvp_action', 'my_eme_discount_function',20,1);
function my_eme_discount_function($booking) {
   global $wpdb;
   $bookings_table = $wpdb->prefix.BOOKINGS_TBNAME;
   $where = array();
   $fields = array();

   $event_id = $booking['event_id'];

   if ($event_id == 5) {        /* put in the event_id that needs processing */
      //echo 'EVENT ID='.$event_id .' Booking_id = '.$booking['booking_id'];

      $seats=$booking['booking_seats'];
      $price=$booking['booking_price'];

      // more than 2 seats, then the price is 25 per seat
      if ($seats> 1)
          $price = 25;

      $fields['booking_price'] = $price;
      $where['booking_id'] = $booking['booking_id'];
      $wpdb->update($bookings_table, $fields, $where);
   }
   return;
}

A small booking form evaluation code example

Say you want to limit bookings to 1 for everybody (logged in or not), you could make a comparison based on the entered name and email values:


add_filter(‘eme_eval_booking_filter’,’do_my_stuff’);
function do_my_stuff($event) {
    $event_id=$event['event_id';
    $already_registered=0;

    // only do a specific event
    if ($event_id != 5) return;

    // get all attendees
    $attendees = eme_get_attendees_for($event_id);
    foreach ( $attendees as $attendee ) {
       // $attendee['person_email'], $attendee['person_name']
       $bookerEmail = eme_sanitize_html(stripslashes_deep($_POST['bookerEmail']));
       $bookerName = eme_sanitize_html(stripslashes_deep($_POST['bookerName']));
       if ($bookerEmail == $attendee['person_email'] && $bookerName == $attendee['person_name'])
          $already_registered=1;
    }

    if (!$already_registered) {
       // eval is success
       return array(0=>1,1=>'');
    } else {
       // bad form entry
       return array(0=>0,1=>'Already registered');
    }
}

How to add more currencies to the list?

Put something like this in your theme functions.php to add e.g. “Ghanaian Cedi”:

function my_eme_add_currencies($currencies){
   $currencies['GHS'] = ‘Ghanaian Cedi’;
   return $currencies;
}
add_filter(‘eme_add_currencies’,'my_eme_add_currencies’);

How to remove all EME-related tables and settings?

Go into the settings of EME and check the option “Delete all EME data when uninstalling?”.
Then deactivate (and reactivate if wanted) EME.
This setting will delete all old tables and settings concerning EME, so you’ll start with a empty events manager after reactivation then.

How to generate correct headers for a facebook-sharing plugin

Go into the settings of EME, tab “Other” and define these extra html headers:

<meta property="og:type" content="article" />
<meta property="og:title" content="#_NAME"/>
<meta property="og:url" content="#_EVENTPAGEURL"/>
<meta property="og:image" content="#_EVENTIMAGEURL"/>
<meta property="og:description" content="#_EXCERPT" />

Then a plugin like Add-To-Any should work just fine.
Warning: some plugins (SEO or sharing) create their own og-tags, these would then interfere with the ones you created here, make sure that you either disable the event page in the settings of those plugins, or add filters/remove actions to your theme functions.php to prevent this. One example is for Jetpack:

// remove jetpack open graph tags
remove_action('wp_head','jetpack_og_tags');

Also use the facebook debugging tools for debugging facebook issues.

How to redirect automatically to paypal after successful booking

Go into the settings of EME, tab “Payments” and add this to the setting “Payment form header format”:

<script type="text/javascript">
jQuery(document).ready( function($) {
$( "#paypal_form" ).submit();
});
</script>