Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter mrppp

    (@mrppp)

    another example
    https://www.gigzone.co.uk/events/wickerman-festival/

    i think it is down to them listed as all day

    Plugin Support angelo_nwl

    (@angelo_nwl)

    try {is_long}content{/is_long} or {not_long}content{/not_long} then try nested conditional

    e.g.
    {is_long}
    {is_past}content{/is_past}
    {/is_long}

    also, to enable nested conditional placeholder try to add this snippet define('EM_CONDITIONAL_RECURSIONS',2); inside your wp-config.php

    Thread Starter mrppp

    (@mrppp)

    so replace in my formatting {is_past}content{/is_past} with

    {is_long}
    {is_past}content{/is_past}
    {/is_long}

    and add define('EM_CONDITIONAL_RECURSIONS',2); inside your wp-config.php

    is it ok to alter core WP as i was told not to?
    have set like this at moment

    <div style="float:right; margin:0px 0px 15px 15px;">#_LOCATIONMAP</div>
    <p>#_EVENTIMAGE<br />
    <strong>{is_past}<img src="https://www.gigzone.co.uk/finished.gif" alt="Event over logo">{/is_past}</strong><br />
    	<strong>Date/Time</strong><br/>
    	 #_EVENTDATES<br /><i>#_EVENTTIMES</i>
    </p>
    
    <p> #_EVENTGCALLINK</p>
    {has_location}
    <p>
    	<strong>Location</strong><br/>
    	#_LOCATIONLINK <br />
    	#_LOCATIONTOWN<br/>
     #_LOCATIONSTATE
    </p>
    {/has_location}
    
    <p><a href="#_ATT{Website}" rel="nofollow">#_ATT{Website}</a></p>
    <p>  #_ATT{Phone Number}<br />
       #_ATT{Contact Email}</p>
    <br style="clear:both" />
    #_EVENTNOTES
    {has_bookings}
    <h3>Bookings</h3>
    #_BOOKINGFORM
    {/has_bookings}

    Plugin Support angelo_nwl

    (@angelo_nwl)

    yes, that’s okay and that line is only for EM use.

    Thread Starter mrppp

    (@mrppp)

    <div style="float:right; margin:0px 0px 15px 15px;">#_LOCATIONMAP</div>
    <p>#_EVENTIMAGE<br />
    {is_long}{is_past}<img src="https://www.gigzone.co.uk/finished.gif" alt="Event over logo">{/is_past}{/is_long}<br />
    	<strong>Date/Time</strong><br/>
    	 #_EVENTDATES<br /><i>#_EVENTTIMES</i>
    </p>
    
    <p> #_EVENTGCALLINK</p>
    {has_location}
    <p>
    	<strong>Location</strong><br/>
    	#_LOCATIONLINK <br />
    	#_LOCATIONTOWN<br/>
     #_LOCATIONSTATE
    </p>
    {/has_location}
    
    <p><a href="#_ATT{Website}" rel="nofollow">#_ATT{Website}</a></p>
    <p>  #_ATT{Phone Number}<br />
       #_ATT{Contact Email}</p>
    <br style="clear:both" />
    #_EVENTNOTES
    {has_bookings}
    <h3>Bookings</h3>
    #_BOOKINGFORM
    {/has_bookings}
    Thread Starter mrppp

    (@mrppp)

    trying
    {not_long}content{/not_long}
    but all day event shows as passed event
    https://www.gigzone.co.uk/events/music-and-cider-festival/
    but two day event seems ok
    https://www.gigzone.co.uk/events/wickerman-festival/

    seems the single day event listed as all day is the issue if i give an event a time it is ok
    https://whatsoninberkshire.co.uk/events/pixie-party/

    Thread Starter mrppp

    (@mrppp)

    also noticed long past events show as current no passed image inserted
    https://www.gigzone.co.uk/events/henley-royal-regatta/

    Thread Starter mrppp

    (@mrppp)

    So i have
    define(‘EM_CONDITIONAL_RECURSIONS’,2); inside wp-config.php

    My event format is

    <div style="float:right; margin:0px 0px 15px 15px;">#_LOCATIONMAP</div>
    <p>#_EVENTIMAGE<br />
    {not_long}{is_past}<img src="https://www.gigzone.co.uk/finished.gif" alt="Event over logo">{/is_past}{/not_long}<br />

    It appears all events passed or future that are over two or more days are same i.e {is_past}being ignored, single events with all day time get listed as past event on day of event

    HOW can i remove the all day option ?

    Thread Starter mrppp

    (@mrppp)

    example past event over several days
    https://whatsoninberkshire.co.uk/events/reading-summer-fair/

    past event on single day
    https://whatsoninberkshire.co.uk/events/groove-manoova/

    Changed all day to a time today and that is ok now
    https://whatsoninberkshire.co.uk/events/pixie-party/

    but if i set to all day shows as finished

    Plugin Support angelo_nwl

    (@angelo_nwl)

    can I know what what are you trying to do with {not_long} ? this is since the definition of not_long at https://wp-events-plugin.com/documentation/conditional-placeholders/ is

    *event does not last longer than one day (i.e. same day events).

    Thread Starter mrppp

    (@mrppp)

    well i have tried `{is_long}
    {is_past}content{/is_past}
    {/is_long}`

    but results are not as good as using {not_long}
    Using {is_long} makes any current event over more than one day a past event. i.e if event is on 29/7/13 and 30/7/13, on 30/7/13 event will show as finished, using {not_long} prevents any event over more than one day showing as finished.
    However any single day event with times set as ALL DAY show as finished on day of event

    Also using `{is_long}
    {is_past}content{/is_past}
    {/is_long}` makes single events that have past not show as finished
    EXAMPLES OF BOTH
    look here at past event over more than one day, and past event single day
    https://www.gigzone.co.uk/

    using {not_long}

    https://whatsoninberkshire.co.uk/

    Thread Starter mrppp

    (@mrppp)

    would this work
    define(‘EM_CONDITIONAL_RECURSIONS’,3);

    {is_long}{not_long}
    {is_past}content{/is_past}
    {/is_long}{/not_long}

    Thread Starter mrppp

    (@mrppp)

    set as `<div style=”float:right; margin:0px 0px 15px 15px;”>#_LOCATIONMAP</div>
    <p>#_EVENTIMAGE<br />
    {is_long}{is_past}<img src=”https://www.gigzone.co.uk/finished.gif&#8221; alt=”Event over logo”>{/is_past}{/is_long}
    {not_long}{is_past}<img src=”https://www.gigzone.co.uk/finished.gif&#8221; alt=”Event over logo”>{/is_past}{/not_long}<br />`
    on this site now https://www.gigzone.co.uk/

    Thread Starter mrppp

    (@mrppp)

    Hiya,

    I don’t see a two day event on your site that covers today so can’t see this in action.

    However, I think in this case you might need to create a custom conditional placeholder to suit your particular needs. Those two placeholders don’t really cater for this situation, hence why you’re struggling to get the result you desire.

    Cheers

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Event finished’ is closed to new replies.