Event Manager v2.7.1

Release Notes

  • fixed: using incorrect end ts for determining end date/time of event for addthisevent script
  • fixed: using date_add (a php 5.3 function) breaks usage for 5.2
  • I haven't been able to find a way of producing recurring events from the form (but, if I've been really stupid and missed something, please forgive me and point me in the right direction!).

    I am aware that adding a recurring event functionality is quite a bit of work.  But, as a possibly simpler solution, is there mileage in adding a button / menu option on the event like 'Duplicate Event' that uses all the information in the current event to produce a new form readily filled in with information ready to fill in the new date/time?  This would save a huge amount of work in copying sometimes long event details each time a repeat event is needed, but is relatively simple to code compared to recurring events.

    Just a suggestion for the next release!

    Thanks for a superb event plugin ... Here's hoping it will be adopted in the core!

  • How can I trigger an "event_calender" import manually?

  • @krischan from the plugin settings page. If there is no option, there probably are no events to import

  • that is strange, there is no option but I have definitely events in my event_calender (full branch from github). does it only import future events or also past ones?

  • Hi @Jeroen,

    I am having an issue with the markers on the map : they all appear only the first time i click on the "Onthemap" tab. If switch again to the list view then back to the map view there are no markers. 

    Do you know how to fix this?

    Any help might be useful. Thanks

  • Really a nice and complete event tools !!!

    Works nice with 1.8.19, and works nice also with my Custom Index Plugin.

    Thanks

  • Can someone clarify,  is difference between this event plugin and https://github.com/kevinjardine/Elgg-Event-Calendar/tree/full ?

    I know this plugin adds a map to listing view but could we run both plugins at the same time or will it conflict?

    Thanks.

  • @this_script_lover theoretically they could run next to each other, but they provide the same features, so that would not make any sence.

  • Now I would like to make some changes in order to show event pictures in "List" windows, close to the event date icon or ... It would make more attractive the event. 

    Can someone help  ?

    Marco

    Ps: plug-In does not work properly on new Elgg 1.9rc release. 

  • Hello, okay? 

    Please how do I change the date format to d-m-Y? 

    I noticed a bug in the tool, to create an event and export it to other calendars (gmail, outlook, yahoo) button is located opposite the main menu, the following images for consideration 

    Thank you.

     

     

    ERROR

     

     

     

  • Hi Jeroen.

    Event manager plugin installed on elgg 1.9.1 and displays the following message: 

    Deprecated in 1.8: Do not rely on $ vars ['url'] being available in views 

    Thank you very much for helping have the plugin working correctly in elgg1.9.1.

  • @marco thanks, the latest release here is not ready for Elgg 1.9 yet. But you can download a work in progress version (which works fine) from github.
     

  • Installed the new version indicated is working perfectly in elgg1.9.1. Thank you for your help and for developing this great plugin for elgg community. Congratulations.

  • Hello Jeroen, I performed some tests with the event plugin and found some unexpected situations. 
    I created an event and the address of the place I went to the latitude and longitude coordinates of the venue. At the marked location of the event has no address with street name and house number. 
    The icon pointed to an approximate location on the highway closer to the venue. Thus the exact location of the event is wrong and far from the real address. 
    The map does not correctly Mosta the marked location by entering latitude and longitude coordinates if you do not have a place with real address. 
    Thanks for your help. 
    The plugin is wonderful events.

  • Hallo,

    I want to put an event input form and a list of all events on a dashboard page. Can you give me some hints which functions I have to call ?

  • it is too slowly to open the events page 3 months later,  what need i do?

  • Hi @Jeroem, 

    I need to show events until the end_date by default. I´m trying tweaking the file:

    lib/functions.php  (function event_manager_search_events)

    ...but I can´t achieve to change the start_day condition to the end_day

    ¿This is the correct file / function I must modify?.

    Help please :) 

  • As I did this customization for Javier, below are the changes we did, for just in case that could be useful for other users. So, at file event_manager/lib/functions.php:

    replace

    if(!empty($options['start_day'])) {
        $entities_options['metadata_name_value_pairs'][] = array('name' => 'start_day', 'value' => $options['start_day'], 'operand' => '>=');
    }

    with

    $ev_joins = '';
    $ev_wheres = '';
                            
    if(!empty($options['start_day'])) {
        $ev_joins .= ' JOIN elgg_metadata n_eventman_1 on e.guid = n_eventman_1.entity_guid JOIN elgg_metastrings eventman_1_1 on n_eventman_1.name_id = eventman_1_1.id JOIN elgg_metastrings eventman_1_2 on n_eventman_1.value_id = eventman_1_2.id ';
        $ev_wheres .= '(eventman_1_1.string = \'start_day\' AND  ( (1 = 1) and n_eventman_1.enabled=\'yes\')) AND ';
        
        $ev_joins .= ' JOIN elgg_metadata n_eventman_2 on e.guid = n_eventman_2.entity_guid JOIN elgg_metastrings eventman_2_1 on n_eventman_2.name_id = eventman_2_1.id JOIN elgg_metastrings eventman_2_2 on n_eventman_2.value_id = eventman_2_2.id ';
        $ev_wheres .= '(eventman_2_1.string = \'end_ts\' AND ( (1 = 1) and n_eventman_2.enabled=\'yes\'))';            
     
        $entities_options['joins'] = $ev_joins;
        $entities_options['wheres'] = ' ('.$ev_wheres.') and (eventman_1_2.string >= '.$options['start_day'].' OR (eventman_2_2.string >= '.$options['start_day'].')) ';
    }

     

    and also replace

    if(!$options['past_events']) {
        // only show from current day or newer
        $entities_options['metadata_name_value_pairs'][] = array('name' => 'start_day', 'value' => mktime(0, 0, 1), 'operand' => '>=');
    }                       

    with

    if(!$options['past_events']) {
        // only show from current day or newer
        
        $ev_joins .= ' JOIN elgg_metadata n_eventman_3 on e.guid = n_eventman_3.entity_guid JOIN elgg_metastrings eventman_3_1 on n_eventman_3.name_id = eventman_3_1.id JOIN elgg_metastrings eventman_3_2 on n_eventman_3.value_id = eventman_3_2.id ';
        $ev_wheres .= '(eventman_3_1.string = \'start_day\' AND  ( (1 = 1) and n_eventman_3.enabled=\'yes\')) AND ';
        
        $ev_joins .= ' JOIN elgg_metadata n_eventman_4 on e.guid = n_eventman_4.entity_guid JOIN elgg_metastrings eventman_4_1 on n_eventman_4.name_id = eventman_4_1.id JOIN elgg_metastrings eventman_4_2 on n_eventman_4.value_id = eventman_4_2.id ';
        $ev_wheres .= '(eventman_4_1.string = \'end_ts\' AND ( (1 = 1) and n_eventman_4.enabled=\'yes\'))';            
     
        $entities_options['joins'] = $ev_joins;
        $entities_options['wheres'] = ' ('.$ev_wheres.') and (eventman_3_2.string >= '.mktime(0, 0, 1).' OR (eventman_4_2.string >= '.mktime(0, 0, 1).')) ';
    }

     

     

     

  • Please upgrade it to work with Elgg 1.9.4

  • Hi @Jeroem, 

    I´ve tweaked the file views/default/event_manager/event/view.php to do it mobile responsive and with full wide top icon image.

    I replaced the //event details code block (line 18 to 112) with:

        if($event->icontime){
            $event_details .= '<div><img class="elgg-image" style="width: 100%;" src="' . $event->getIcon('master') . '"></div>';
        $event_details .= "<div><p>&nbsp;</p></div>";
        }    
            
        if($description = $event->description){
        $event_details .= "<div class='elgg-grid clearfix'>";
            $event_details .= "<div class='elgg-col elgg-col-1of1'><label>" . elgg_echo('description') . ":</label></div><div class='elgg-col elgg-col-1of1'>" . elgg_view("output/longtext", array("value" => $description)) . '</div>';
        $event_details .= "</div><hr />";    
        } elseif($shortdescription = $event->shortdescription) {
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('description') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . elgg_view("output/longtext", array("value" => $shortdescription)) . '</div>';
        $event_details .= "</div><hr />";
        }    
            
        if($venue = $event->venue){
        $event_details .= "<div class='elgg-grid clearfix'>";    
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:venue') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . $venue . '</div>';
        $event_details .= "</div><hr />";
        }
        
        if($location = $event->getLocation()){
        $event_details .= "<div class='elgg-grid clearfix'>";    
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:location') . ":</label></div><div class='elgg-col elgg-col-1of2'>";
            $event_details .= '<a href="' . elgg_get_site_url() . 'events/event/route?from=' . $event->getLocation() . '" class="openRouteToEvent">' . $event->getLocation() . '</a>';
            $event_details .= "</div>";
        $event_details .= "</div><hr />";
        }
        
        $event_details .= "<div class='elgg-grid clearfix'>";    
        $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:start') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . date(EVENT_MANAGER_FORMAT_DATE_EVENTDAY, $event->start_day) . " ". date('H', $event->start_time) . ':' . date('i', $event->start_time) . '</div>';
        $event_details .= "</div><hr />";
                
        if ($event->end_ts) {
        $event_details .= "<div class='elgg-grid clearfix'>";
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:end') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . date(EVENT_MANAGER_FORMAT_DATE_EVENTDAY, $event->end_ts) . " ". date('H', $event->end_ts) . ':' . date('i', $event->end_ts) . '</div>';
        $event_details .= "</div><hr />";
        }
        
        // optional end day    
        if($organizer = $event->organizer){
        $event_details .= "<div class='elgg-grid clearfix'>";    
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:organizer') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . $organizer . '</div>';
        $event_details .= "</div><hr />";
        }
        
        
        if($max_attendees = $event->max_attendees){
        $event_details .= "<div class='elgg-grid clearfix'>";    
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:spots_left') . ":</label></div><div class='elgg-col elgg-col-1of2'>";
            
            $spots_left = ($max_attendees - $event->countAttendees());
            if($spots_left < 1) {
                $count_waitinglist = $event->countWaiters();
                if($count_waitinglist > 0){
                    $event_details .= elgg_echo('event_manager:full') . ', ' . $count_waitinglist . ' ';
                    if($count_waitinglist == 1) {
                        $event_details .= elgg_echo('event_manager:personwaitinglist');
                    } else {
                        $event_details .= elgg_echo('event_manager:peoplewaitinglist');
                    }
                } else {
                    $event_details .= elgg_echo('event_manager:full');
                }
            } else {
                $event_details .= $spots_left . " / " . $max_attendees;
            }
            
            $event_details .= '</div>';
        $event_details .= "</div><hr />";
        }
        
        //if($description = $event->description){
        //    $event_details .= '<tr><td><label>' . elgg_echo('description') . ':</label>' . elgg_view("output/longtext", array("value" => $description)) . '</td></tr>';
        //} elseif($shortdescription = $event->shortdescription) {
        //    $event_details .= '<tr><td><label>' . elgg_echo('description') . ':</label>' . elgg_view("output/longtext", array("value" => $shortdescription)) . '</td></tr>';
        //}
        
        if($website = $event->website){
        $event_details .= "<div class='elgg-grid clearfix'>";
            if (!preg_match('~^https?\://~i', $website)) {
                $website = "http://$website&quot;;
            }
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:website') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . elgg_view("output/url", array("value" => $website)) . '</div>';
        $event_details .= "</div><hr />";
        }
            
        if($contact_details = $event->contact_details){
        $event_details .= "<div class='elgg-grid clearfix'>";
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:contact_details') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . elgg_view("output/text", array("value" => $contact_details)) . '</div>';
        $event_details .= "</div><hr />";
        }
        
        if($twitter_hash = $event->twitter_hash){    
        $event_details .= "<div class='elgg-grid clearfix'>";    
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:twitter_hash') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . elgg_view("output/url", array("value" => "http://twitter.com/search?q=&quot; . urlencode($twitter_hash), "text" => elgg_view("output/text", array("value" => $twitter_hash)))) . '</div>';
        $event_details .= "</div><hr />";
        }
        
        if($fee = $event->fee){
        $event_details .= "<div class='elgg-grid clearfix'>";    
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:fee') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . elgg_view("output/text", array("value" => $fee)) . '</div>';
        $event_details .= "</div><hr />";
        }
            
        if($region = $event->region){
        $event_details .= "<div class='elgg-grid clearfix'>";        
        $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:region') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . $region . '</div>';
        $event_details .= "</div><hr />";
        }
        
        if($type = $event->event_type){
        $event_details .= "<div class='elgg-grid clearfix'>";    
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:type') . ":</label></div><div class='elgg-col elgg-col-1of2'>" . $type . '</div>';
        $event_details .= "</div><hr />";
        }
            
        if($files = $event->hasFiles()){
        $event_details .= "<div class='elgg-grid clearfix'>";    
            $user_path = 'events/' . $event->getGUID() . '/files/';
            
            $event_details .= "<div class='elgg-col elgg-col-1of2'><label>" . elgg_echo('event_manager:edit:form:files') . ":</label></div><div class='elgg-col elgg-col-1of2'>";
            $event_details .= "<div class='event-manager-event-files'>";
            foreach($files as $file){
                $event_details .= '<a href="' . elgg_get_site_url() . 'events/event/file/' . $event->getGUID() . '/'. $file->file . '">' . elgg_view_icon("download", "mrs") . $file->title . '</a><br />';
            }
            
            $event_details .= '</div>';
            $event_details .= '</div>';
        $event_details .= "</div><hr />";

    I wish this will be useful 

  • The only issue i have with event manager is that the next day they disappear from the events list and the only way to see them again is to search for past events even though they are not expired events yet. does anyone else have this issue?

     

    The issue is event disappears once it has started and becomes a past event, i changed the starting date and end date to same date and now they all show up in the all events tab. Made registration available until 1 day before event ends. It would be nice if events stayed active in the event list even though they have started.

     

    Using it on 1.9.4 without any other issues but this one.

  • Using Plain Vanilla and Fresh Install of Elgg 1.9.4 and this version of Event Manager.
    I am unable to type into the Location field - it does not accept any text, as if its read-only.
    I have entered correct Google API that works with Elgg 1.8.x - but here maps do not load
    As admin I also get the message "Deprecated in 1.8: Do not rely on $vars["url"] being available in views"


    Does Google Maps need API as of present?



    PS. RSVP options : Can "Not attending" "May come" be included as standard options?

  • Edit event registration form is not responding, is there a demo ? i am running 1.9.4, its installed and running, i created a event, but its  not so clear what to fill in the fields and how users can response or add to a event.

    Also the date, can we change this into mm-dd-yyy ?

  • @Digital Coin with the last @nikos's post your problem is solved.

  • @javier I tried that fix but it just breaks the whole site. using event manager on 1.9.4 works great besides this small issue.

Jeroen Dalsem

Owner of ColdTrick IT Solutions, developing social networking sites for the dutch market

Stats

  • Category: Events
  • License: GNU General Public License (GPL) version 2
  • Updated: 2019-3-20
  • Downloads: 26731
  • Recommendations: 98

Other Projects

View Jeroen Dalsem's plugins