geeklimit
Forum Replies Created
-
I had this same problem. I changed the SQL statement from:
//Create the SQL statement and execute $sql = " SELECT $fields FROM $locations_table LEFT JOIN $events_table ON {$locations_table}.location_id={$events_table}.location_id $where GROUP BY {$locations_table}.location_id $orderby_sql $limit $offset ";
to
//Create the SQL statement and execute $sql = " SELECT $fields FROM $locations_table GROUP BY {$locations_table}.location_id $orderby_sql $limit $offset ";
This breaks the “My Locations” functionality, but at least it fixes the ‘All Locations’ list to show all locations, not just the locations currently attached to an event.
I’d love to get the ‘My Locations’ functionality back, but the duplicate locations created by people because they couldn’t see the ghost locations were a bigger problem.
It should be https://domain.com/events.ics
This file doesn’t exist, it seems to be dynamically generated when requested.
lol, glad to hear it. I’m relying on my PHP skills from 10 years ago – it’s been a while since I did any programming at all. I’m also not familiar with the way WordPress or Events Manager works.
So… I agree it’s probably easily implementable, but it’s going to take me forever, and I’m sure it’ll be a kludgy mess. I might have to wait until this functionality comes out in a future release, unless anyonce can advise how to modify em-ical.php?
I think only a modification of templates/ical.php is needed here. If no &event_id=#_EVENTID is appended to the iCal URL, it will default to serving up what it is now – a Calendar iCal file with all events
If an event ID is supplied, templates/ical.php takes this input and only supplies the information for that event. I don’t think the type needs to change, it’s still VEVENT.
It’s so hard because I know this wouldn’t be a big deal to do but I’m so darn rusty! (and wasn’t that good to begin with)
Glad to hear it’s coming soon. I’m getting a little bogged down trying to implement.
I don’t have a ton of experience in PHP, but here’s the idea of where I’m at: I know I can get a https://domain.com/?ical link that is a subsciption to all events. No problem there, plenty of plugins that do this for EM.
Basically I think I want to extend ical.php (?), so I can send a link with the booking email that is something like:
<a href="https://domain.com/?ical&event_id=#_EVENTID> Click here to add " #_NAME " to your Calendar </a>
The key result being: domain.com/?ical&event_id=1 of course, which would propulate the iCal with only one event, and mark it up as an event and not a calendar.
Does this make sense? I fear my PHP abilites are not up to this task, but I’m trying to implement this.
I don’t have this file.
Can Events Manager have an iCal file for each event?
I’d like to link to it in the Booking Confirmation email as a ‘Add to My Calendar’ link.