gleanreport
Forum Replies Created
-
That works! Thank you so much.
That is fantastic, thank you. It now looks great.
I am also using the following for an RSS feed: _EVENTDATES #_EVENTTIMES #_EVENTLOCATION #_LOCATIONNAME #_EVENTEXCERPT{0.1, } #_EVENTADDTOCALENDAR
In MailChimp it adds the following – ie all spelt out:
Add To Calendar Download ICS Google Calendar iCalendar Office 365 Outlook Live
Any suggestions on how to improve this?
And the iCalendar doesn’t have a link, while the others do.. Any suggestions of why this may be?
Fantastic! This works a treat.
I also used #_EVENTADDTOCALENDAR in the Events list page: https://www.gleanreport.com/wellington/
Is there a way to make the text black instead of white for the Add to Calendar on this page?
Thank you!
I’m using the following code in Settings -> Single event page format
{has_location}
Location
#_EVENTLOCATION #_LOCATIONLINK{/has_location}
Add to calendar: #_EVENTWEBCALLINK
_EVENTNOTES
{has_bookings}
Bookings
_BOOKINGFORM
{/has_bookings}
Although I’m not sure now why I have the Bookings section…
{is_newpost}*NEW*{/is_newpost} still not working following upgrade with the following code, can anyone assist?
add_filter( 'em_events_build_sql_conditions', 'my_em_scope_conditions',1,2); function my_em_scope_conditions($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='newposts' ){ $start_date = date('Y-m-d H:i:s',strtotime("-2 days", current_time('timestamp'))); $conditions['scope'] = " ( event_date_modified >= '$start_date') OR ( event_date_created >= '$start_date')"; } return $conditions; } add_filter( 'em_get_scopes','my_em_scopes',1,1); function my_em_scopes($scopes){ $my_scopes = array( 'newposts' => 'New Posts' ); return $scopes + $my_scopes; } add_action('em_event_output_condition', 'my_em_styles_event_output_condition', 1, 4); function my_em_styles_event_output_condition($replacement, $condition, $match, $EM_Event){ if( is_object($EM_Event) && preg_match('/^is_newpost$/',$condition, $matches) ){ if( strtotime($EM_Event->event_date_created) >= strtotime("-3 days", current_time('timestamp'))){ $replacement = preg_replace("/\{\/?$condition\}/", '', $match); }else{ $replacement = ''; } } return $replacement; }Thanks Events Manager – the problem appears to be fixed in the latest version upgrade. Great work!
Thanks David, I tried your suggestion, and yes, removing all of the #_EVENTLOCATION placeholders fixes the Fatal Error. However I need the information from the #_EVENTLOCATION shortcode on my website for the events list and events pages to make sense.
At the moment I’m using the current version of Events Manager to enter events but rolling back to version 5.9.8.1 to avoid the Fatal Error on the website.
Thankfully the RSS feed still seems to be getting the #_EVENTLOCATION information.
A fix to this would be great!