Support

Home Forums Event Espresso Premium transitioning away from ee3 – some questions

transitioning away from ee3 – some questions

Posted: July 19, 2023 at 1:44 pm

Viewing 98 reply threads


mgregor

July 19, 2023 at 1:44 pm

hello. i completed the data migration process to ee5 and now i’m trying to get things looking and acting the way we had them with ee3. i have a few questions:

1. front page /elementor widget
on our ee3 site, the front page event list is created using an elementor (pro?) widget. is there such a thing for ee5? if not, is there a way to simplify the output with new shortcode variables so we get a simple list like this?

https://imgur.com/XQcSnpF

2. purchase > event tickets > all events
our ee3 site uses a more streamlined style for this event list as well. looking for advice or shortcode variables on how to get it closer in list display styles

https://imgur.com/l0ROIzJ

3. purchase > event tickets > webinars
one our ee3 site, if a category had no events upcoming, the content defaults to “No events available…” i cannot find any custom theme files or added functions that would do this.

https://imgur.com/s7to0Zy

4. attendee info
we have a couple password protected pages where we display our attendee contact info in simple numbered lists with Name, email address and the ticket type purchased with the shortcode:

[LISTATTENDEES event_identifier=”mothers-day-s-644db5508e04b” paid_only=”true”]

and on EE5 with the below shortcode i only see the attendee names.
[ESPRESSO_EVENT_ATTENDEES event_id=”6167″ paid_only=”true”]

5. the mysterious oxford comma function

lastly, in my hunt for custom ee3 functions i might be able to search the support forums for, i found that i have this in my ee3 setup. what the heck does it do and do i still need it?

/*
* EE allow comma in agreement
*/

add_filter ( 'the_content', 'who_cares_about_an_oxford_comma', 11 );

function who_cares_about_an_oxford_comma ( $content ) {
$base = '#(<span.*)\{comma}(.*</span>)#';
$replace = '$1,$2';
$new_content = "";
while (($new_content = preg_replace( $base, $replace, $content )) != $content) {
$content = $new_content;
}
return $new_content;
}

thank you. i’m sure i’ll have more questions, but these are today’s. 🙂

🙂 emily


Tony

  • Support Staff

July 19, 2023 at 4:05 pm

Hi there,

1. front page /elementor widget
on our ee3 site, the front page event list is created using an elementor (pro?) widget. is there such a thing for ee5? if not, is there a way to simplify the output with new shortcode variables so we get a simple list like this?

https://imgur.com/XQcSnpF

We don’t have shortcodes to output individual sections of the event content, depending on what yu are trying to do you will likely need your own custom widget outputting the events specifically how you need them via code.

2. purchase > event tickets > all events
our ee3 site uses a more streamlined style for this event list as well. looking for advice or shortcode variables on how to get it closer in list display styles

https://imgur.com/l0ROIzJ

What is purchase > event tickets > all tickets?

EE4+ integrates much more tightly with your sites theme than EE3 does, a lot of how the content is output is now controlled by the theme template files (we do not officially support page builders).

3. purchase > event tickets > webinars
one our ee3 site, if a category had no events upcoming, the content defaults to “No events available…” i cannot find any custom theme files or added functions that would do this.

https://imgur.com/s7to0Zy

How are the events output currently?

I assume using the ESPRESSO_EVENTS shortcode?

4. attendee info
we have a couple password protected pages where we display our attendee contact info in simple numbered lists with Name, email address and the ticket type purchased with the shortcode:

[LISTATTENDEES event_identifier=”mothers-day-s-644db5508e04b” paid_only=”true”]

and on EE5 with the below shortcode i only see the attendee names.
[ESPRESSO_EVENT_ATTENDEES event_id=”6167″ paid_only=”true”]

That’s all we output within EE4, for what you are trying to do you’ll likely need a custom shortcode. I say that because ESPRESSO_EVENT_ATTENDEES outputs the attendees (the ‘contacts’) and it sounds like what you want to output are registrations (which like the EE_Contact, EE_Ticket and EE_Transaction all together) and the details from those.

Can you add a screenshot fo the current output you use? (You can set the reply private so only EE staff can view it)

5. the mysterious oxford comma function

lastly, in my hunt for custom ee3 functions i might be able to search the support forums for, i found that i have this in my ee3 setup. what the heck does it do and do i still need it?

That’s from here: https://gist.github.com/sidharrell/71f01924d56d460c11a4

It’s not code I’ve written and from almost 10 years ago, but its basically checking for {comma} tags in the content and removing them.

I don’t think it’s something you’ll need, worst case you can reactivate it.


mgregor

July 20, 2023 at 11:10 am

This reply has been marked as private.


mgregor

July 20, 2023 at 11:12 am

This reply has been marked as private.


mgregor

July 21, 2023 at 6:34 am

i’ve sent some details privately and yes, the shortcodes you guessed are what i have used.


mgregor

July 25, 2023 at 7:36 am

hello? any response for me on my issues? i’m at my desk thursday and friday and would love to get some help making my event and attendee lists generating like i had them in ee3.


Tony

  • Support Staff

July 27, 2023 at 5:56 am

Hi there,

Apologies for the delay, working through customizations isn’t officially supported within our support license so setting time aside to check into this takes a little.

For the event list to look exactly like what you have already, you’ll need your own output for it and an example of creating a simple event list can be found here:

https://gist.github.com/joshfeck/6e33532c37a123bbf532

You could add that to your own shortcode and customise the output to suit from there.

If you want the output for the [ESPRESSO_EVENTS] shortcode to always look like the above, you could modify the template used for it, you start that by copying:

\event-espresso-core-reg\public\Espresso_Arabica_2014\content-espresso_events-shortcode.php

Into your theme (preferably a child theme) and then working through the various calls to the template parts to remove what you don’t need and replace the output created from what you do need with just the details you want.

We do have some options to reduce the details loading on the event lists if that helps, go to Event Espresso -> Events -> Templates (tab at the top of the event list).

There you’ll find a section for the event list pages, you can disable sections being added to the event lists there. Does that help get you close to the output you wanted?

The [ESPRESSO_EVENT_ATTENDEES] shortcode can be modified by copying:

\event-espresso-core-reg\public\Espresso_Arabica_2014\content-espresso_event_attendees.php

Into your child theme and modifying the details you want to output within that file. However, as mentioned that shortcode pulls in the ‘contacts’ for an event, not the registrations so this gets a little more complex when you want to start outputting ticket details.

Would the registration CSV report for the event not be a better match for pulling those details in?


Tony

  • Support Staff

July 27, 2023 at 5:59 am

3. purchase > event tickets > webinars
one our ee3 site, if a category had no events upcoming, the content defaults to “No events available…” i cannot find any custom theme files or added functions that would do this.

When no events are found, EE will load your theme’s content-none.php template file, does your theme have that template file?


mgregor

July 27, 2023 at 8:20 am

ok great! this is clear to me at first read. i assume ee files don’t need their own directory in my child theme?

do you have a collection of code snippets somewhere to browse or search? my google fu was only getting really complicated examples like grid cards and animated toggles.


Tony

  • Support Staff

July 27, 2023 at 10:21 am

i assume ee files don’t need their own directory in my child theme?

No, just in root.

do you have a collection of code snippets somewhere to browse or search?

Not for what your are trying to do, we don’t have anything for front end customizations but:

https://github.com/eventespresso/ee-code-snippet-library/tree/master

I’ve created a bunch of gifts for various changes over the years. Those are:

https://gist.github.com/Pebblo


mgregor

August 7, 2023 at 6:32 am

getting back to this, trying to sort out the

> Would the registration CSV report for the event not be a better match for pulling those details in?

as long as the site owner can view the attendee details on a password protected browser page, it’s fine. any advice for that?


Tony

  • Support Staff

August 7, 2023 at 9:15 am

The registration CSV is from the admin rather than a front end page.

as long as the site owner can view the attendee details on a password protected browser page, it’s fine. any advice for that?

If a front-end output is the only option you want to use you’ll need either [ESPRESSO_EVENT_ATTENDEES] or a custom shortcode.


mgregor

August 8, 2023 at 6:36 am

yeah csv won’t work for us. so far i have this for the attendees…

<?php
/**
 * Content Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode
 *
 * @package Event Espresso
 * @subpackage templates
 * @since 4.6.29
 * @author Darren Ethier
 *
 * Template Args that are available in this template
 * @type EE_Attendee $contact
 * @type bool       $show_gravatar  whether to show gravatar or not.
 */

use EventEspresso\core\services\request\sanitizers\AllowedTags;

?> 
<?php do_action( 'AHEE__content-espresso_event_attendees__before', $contact, ); ?>
<li><?php echo wp_kses($contact->full_name(true) . '&nbsp;-&nbsp;' . $contact->email(true), AllowedTags::getAllowedTags()); ?> </li>
<?php do_action( 'AHEE__content-espresso_event_attendees__after', $contact, $show_gravatar ); ?>

<!--<br >-->

and that puts the email address on the page, but i’d like to print the event title above the lists, so i tried this in the loop template, but it doesn’t work. any suggestions?

<?php
/**
 * Loop Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode
 *
 * @package Event Espresso
 * @subpackage templates
 * @since 4.6.29
 * @author Darren Ethier
 *
 * Template Args that are available in this template (yarr!)
 * @type EE_Attendee[] $contacts
 * @type EE_Event   $event
 * @type EE_Datetime|null  $datetime  an EE_Datetime object will be available if the the datetime_id attribute is set in the shortcode and the id matches a valid datetime.
 * @type EE_Ticket|null  $ticket  an EE_Ticket object will be available if the the ticket_id attribute is set in the shortcode and the id matches a valid ticket.
 * @type bool       $show_gravatar  whether to show gravatar or not.
 */

$no_attendees_message =  apply_filters( 'FHEE__loop-espresso_attendees-shortcode__template__no_attendees_message', __('No Attendees Yet', 'event_espresso' ) );

?>
 
<div class="event-attendees">
    <?php do_action_ref_array(
        'AHEE__loop-espresso_event_attendees__before',
        array(
            $contacts,
            $event,
            $datetime,
            $ticket,
            $show_gravatar,
        )
    ); ?>
    <h3><?php echo get_the_title($event_id);?></h3>
	<?php if ( $contacts ) : ?>
		<ul class="event-attendees-list">
			<?php foreach( $contacts as $contact ) :
				EEH_Template::get_template_part( 'content', 'espresso_event_attendees', array( 
					'contact'       => $contact, 
					'event'         => $event,
					'datetime'      => $datetime,
					'ticket'        => $ticket,
					'show_gravatar' => $show_gravatar 
				) );
				endforeach; ?>
		</ul>
	<?php else : ?>
		<?php echo esc_html($no_attendees_message); ?>

	<?php endif; ?>
    <?php do_action_ref_array(
        'AHEE__loop-espresso_event_attendees__after',
        array(
            $contacts,
            $event,
            $datetime,
            $ticket,
            $show_gravatar,
        )
    ); ?>
</div>

the error i get is

Warning: Undefined variable $event_id in /home/dps2020/stage/wp-content/themes/generatepress_child/loop-espresso_event_attendees.php on line 34


Tony

  • Support Staff

August 8, 2023 at 7:12 am

In that template you have the EE_Event object in $event, so you can do something like:

<h3><?php echo $event->name();?></h3>


mgregor

August 9, 2023 at 7:18 am

ok great. that worked. thanks so much. i’m almost there.


mgregor

August 9, 2023 at 8:23 am

do you have similar advice for the ticket price and number of tickets left for one of my event shortcodes?


Tony

  • Support Staff

August 9, 2023 at 10:03 am

Sorry, which shortcode do you mean?


mgregor

August 9, 2023 at 11:01 am

[ESPRESSO_EVENTS]


mgregor

August 13, 2023 at 12:52 pm

ok. i’ve gotten my espresso events shortcode working to my liking.

but now the problem is the register button on the single events page is just reloading the event list page. i tried to submit two posts here on the issue, but they are not appearing in the forums. i moved the setup to the live server to install and test the payment connection, but i must not have the new authorize.net plugin set up properly. my critical pages are all there, i’ve added my api codes….

i noticed my forum posts weren’t added when i was trying to go back and edit the info with:

sometimes i see this error when loading the Event TIckets page

An error has occurred:
Direct access to the registration checkout page is not allowed.
InvalidCheckoutAccess – checkoutAccessIsInvalid – 75

thanks.


Rio

  • Support Staff

August 13, 2023 at 5:24 pm

Can you go to your EE Dashboard -> General Setting then click the Critical Pages.
Kindly send screenshot of what you see there.

also, if you can send us a video on how you get that error message, it would be helpful.

thanks.


mgregor

August 14, 2023 at 6:47 am

This reply has been marked as private.


mgregor

August 14, 2023 at 6:56 am

also… when you’re in there, you’ll see the default event list in the admin shows all our dates and sorts them by on sale date. is there a function i can add to show only upcoming events sorted by date of the event on default view?


mgregor

August 14, 2023 at 6:59 am

This reply has been marked as private.


mgregor

August 15, 2023 at 7:08 am

oh nice… searched around for this yesterday but didn’t find the admin sort solution until today.

https://eventespresso.com/topic/event-status-filter-combo-to-view-active-upcoming-events-at-once-in-admin/

// change default event view in admin
add_filter( 
  'FHEE__Events_Admin_Page__get_events__query_params', 
  'jf_ee_change_event_list_default_query_params', 
  10, 
  2 
);
function jf_ee_change_event_list_default_query_params( 
    array $params, $req_data 
) {
  if ( ! array_key_exists( 'active_status', $req_data ) ) {
    $params[0]['Datetime.DTT_EVT_end'] = array( 
        '>',
        current_time( 'mysql', true ) 
    );
    $params['order_by'] = 'Datetime.DTT_EVT_start';
    $params['order'] = 'asc';
  }
  return $params;
}


mgregor

August 15, 2023 at 7:14 am

This reply has been marked as private.


mgregor

August 16, 2023 at 5:19 am

hello? any thoughts on the authorize issue? we are unable to sell events currently. if your new plugin doesn’t work, is there a way to connect ee with the authorize setup that works with our woocommerce and bookly offerings? i’m at my desk all day today. thanks for your help.


mgregor

August 16, 2023 at 5:19 am

hello? any thoughts on the authorize issue? we are unable to sell events currently. if your new plugin doesn’t work, is there a way to connect ee with the authorize setup that works with our woocommerce and bookly offerings? i’m at my desk all day today. thanks for your help.


mgregor

August 16, 2023 at 9:17 am

i double checked, and the website server is running php 8. just fyi in case it’s thelpful.


mgregor

August 17, 2023 at 5:02 am

please respond. the site owner is getting frustrated that her events next week will be affected. is there anything you can advise? is there anything i can provide? credentials? screenshots?


mgregor

August 17, 2023 at 7:11 am

i noticed the error i’m getting has changed slightly after fiddling with the authorize api settings.


An error has occurred:
Direct access to the registration checkout page is not allowed.
InvalidCheckoutAccess - checkoutAccessIsInvalid - 76

the error number went from 75 to 76.


mgregor

August 17, 2023 at 7:21 am

also, this link is dead (from the authorize sim settings tab)


mgregor

August 17, 2023 at 7:22 am

https://support.authorize.net/authkb/index?page=content&id=A405


mgregor

August 17, 2023 at 7:59 am

maybe the shortcode i wrangled isn’t passing something properly? you can see we are desperate to find a solution.

<?php 
global $post;
$event_class = has_excerpt( $post->ID ) ? ' has-excerpt' : '';
$event_class = apply_filters( 'FHEE__content_espresso_events__event_class', $event_class );

do_action( 'AHEE_event_details_before_post', $post ); ?>

<section id="post-<?php the_ID(); ?>" <?php post_class( $event_class ); ?>>
	<div class="container py-10">
		
		<div class="events">
			<?php
			$paged = get_query_var('paged') ? get_query_var('paged') : 1;
			$atts = array(
				'paged' => $paged,
				'title' => NULL,
				'limit' => 100,
				'css_class' => NULL,
				'show_expired' => FALSE,
				'month' => NULL,
				'category_slug' => NULL,
				'order_by' => 'start_date',
				'sort' => 'ASC'
			);
			// run the query
			global $wp_query;
			$wp_query = new EventEspresso\core\domain\services\wp_queries\EventListQuery($atts);
			if (have_posts()) : while (have_posts()) : the_post();
			?>
			<article id="post-<?php the_ID(); ?>" <?php post_class( $event_class ); ?>>

						<!-- Title -->
						<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
						<?php do_action('AHEE_event_details_after_the_event_title', $post); ?>

						<!-- Meta Wrapper -->
						<div class="custom-event-wrapper">

							<!-- Date & Time -->
							<div class="custom-date-time">
								<?php espresso_event_date(); ?>
							</div>

							<!-- Ticket Form -->
							<div class="custom-ticket-form">
								<?php espresso_ticket_selector(); ?>
							</div>
						
							<!-- Button -->
							<div class="custom-ticket-button">
								<a class="button" href="<?php the_permalink(); ?>">View Details</a>
							</div>

						</div>
			</article>
			<?php
				endwhile;
			else : echo '<li>No Upcoming Events</li>';
			endif;
			// now reset the query and postdata
			wp_reset_query();
			wp_reset_postdata();
			?>
		</div>

	</div>
</section>
	<!-- #post -->
	<?php do_action('AHEE_event_details_after_post', $post);

i also tried enabling debug and enabling test transactions but no errors are thrown, it still just reloads the event listings page.

thanks.


mgregor

August 17, 2023 at 8:11 am

This reply has been marked as private.


mgregor

August 20, 2023 at 12:46 pm

i still am not connected with ee to authorize. we are now considering other options to sell our events.

i noticed on the troubleshooting page for the authorize plugin it mentions another plugin called Authorize.net Accept and it says i can “Download Authorize.net Accept from your EventEspresso.com account page” but i only have access to the SIM plugin. where do i download that plugin?

https://eventespresso.com/wiki/authorize-net-sim-payment-gateway/#troubleshooting


mgregor

August 22, 2023 at 6:54 am

hello? is ANYONE at eventespresso going to respond? is there something obvious we are missing? i’ve tried to provide as many details as i can that would help. this site has been powered by eventespresso for more than a decade, we like the software, but if we can’t get authorize working with it, we will likely move everything to a booking software that uses the woo checkout without issue.


mgregor

August 23, 2023 at 5:40 am

i see that someone has finally watched the video i provided EIGHT DAYS AGO. hopefully resolution is on the way. if you need anything from me, i’m in the office today, but out until monday after that.


mgregor

August 28, 2023 at 8:22 am

i am back in the office. why is no one from EE communicating on this matter?


Tony

  • Support Staff

September 7, 2023 at 6:56 am

Hi there,

Firtly, my apologies! Your thread wasn’t showing on my support queue so I missed your replies. Janice sent over your email enquiry and I found it from there. MY sincerest apologies!

I’ve replied directly via email but will add details here as I’m not sure which one you are monitoring.

I’d like to log into the site to take a deeper look at this, if that’s ok can you send temp login details over using this form:

https://eventespresso.com/send-login-details/

Looking over the site it looks like the Registration Checkout critical page isn’t set up correctly.

Create a new page (call it ‘Registration checkout’, the name doesn’t actually matter but I’ll use that for the example)

On that page add JUST the [ESPRESSO_CHECKOUT] shortcode and publish he page

In Event Espresso -> General Settings -> Critical Pages.

Select that Registration Checkout page and save.

Let me know once that has been complete and I’ll retest.

If you can send login details over using the above I’ll check into this further.


Tony

  • Support Staff

September 7, 2023 at 7:18 am

This reply has been marked as private.


mgregor

September 7, 2023 at 1:10 pm

This reply has been marked as private.


Tony

  • Support Staff

September 7, 2023 at 5:08 pm

Thank you.

So the issue with your registration was indeed due to the Registration checkout page being incorrect, I’ve created a new standard page called ‘registration checkout’ which holds just the [ESPRESSO_CHECKOUT] shortcode on.

The registrations are now working as expected from the ticket selector.

Using Auth.net SIM you’ll need to set/update the referrer/rely response URLs within your Auth.net account.

Right now its showing:

The following errors have occurred.
(14) The referrer, relay response or receipt link URL is invalid.

Auth.net have some docs available for this here:

https://support.authorize.net/knowledgebase/Knowledgearticle/?code=000001570

Or you could switch over to using Auth.net Accept (which is the most recent integration method we use):

https://eventespresso.com/product/eea-authorizenet-accept/


mgregor

September 13, 2023 at 7:17 am

it looks like the new Auth.net Accept plugin will cost us extra? is that true or am i just missing where to download it?

https://imgur.com/a/T98R7CO


mgregor

September 13, 2023 at 8:04 am

i’ve gotten the thank you page hooked up. the checkout integration is kinda ugly and awkward, does the Accept plugin allow the cc details to be added on a page that is on our website, and not do the ‘sending you to authorize’ and ‘don’t forget to come back here’ dances?


Tony

  • Support Staff

September 13, 2023 at 8:52 am

it looks like the new Auth.net Accept plugin will cost us extra? is that true or am i just missing where to download it?

You have an EE3 license which means we give you access to EE3 and we also give you access to EE4 with the equivalent addons.

There is no Accept payment method for EE3 so it wont be included within the EE3 license, which means yes, you can either purchase it separately or switch over to the EE4 everything license (which includes all EE4 add-ons).

i’ve gotten the thank you page hooked up. the checkout integration is kinda ugly and awkward

It depends what you find ulgy and awkward, some of that output is based on your theme.

does the Accept plugin allow the cc details to be added on a page that is on our website, and not do the ‘sending you to authorize’ and ‘don’t forget to come back here’ dances?

Hosting the payment fields on your own server greatly increases your PCI compliance requirements so the dancing around here and there is actually much ‘safer’ option for you/the site admin (it makes very little difference to us, the integrations are after similar in how they need to be made but the liability for issues/breaches then lies on you).

However, the Accept payment method uses an iFrame to display the payment fields from Auth.net on your page. Its similar to the payment form being on your server but the fields are actually hosted on Auth.net.


mgregor

September 13, 2023 at 10:22 am

none of the cc form page is based on my theme. the page where you enter your card details is a blank canvas page hosted by authorize.and has lots of fields we don’t need.

is there a video somewhere of the Accept plugin in action? i saw the video on the product page, but it doesn’t really show us what the solution offers… we want a very simplified checkout with no unncessary warning boxes or url bounces.


Tony

  • Support Staff

September 13, 2023 at 10:47 am

none of the cc form page is based on my theme. the page where you enter your card details is a blank canvas page hosted by authorize.and has lots of fields we don’t need.

That’s why I mentioned above that it depends on the output, you didn’t specify what fields/sections/output etc

I’ve just checked the site and your using the Auth.net SIM integration so it’s the Auth.net checkout form you are referring to and yes, none of that is from your theme.

is there a video somewhere of the Accept plugin in action? i saw the video on the product page, but it doesn’t really show us what the solution offers… we want a very simplified checkout with no unncessary warning boxes or url bounces.

No, but here’s a quick snapshot from one of my test sites:

https://monosnap.com/file/BNNXgW5iA1Lsq1N5vLxPJCt94B6WOz

I have sandbox/debug mode enabled so the test shown above where you see my mouse move, isn’t shown in live mode.

There’s an option within the payment method to set if the Billing address is required or not. Thats all shown within the page, no redirects, however the fields ARE from within an iFrame so you don’t have all kinds of control over the styling there.


mgregor

September 13, 2023 at 11:44 am

ok. that will probably work for us.

is there a way to add registrants to the events that we took while ee was offline?


mgregor

September 13, 2023 at 11:52 am

This reply has been marked as private.


Tony

  • Support Staff

September 13, 2023 at 11:52 am

Go to Event Espresso -> Events -> {hover over event} -> Registrations

That will list the registrations for the event, at the top of the page should be an Add new registration button, click that and a ticket selector will display within the admin for the event.

Is thay what you are looking for?


mgregor

September 13, 2023 at 11:54 am

oh! it was way at the top. i totally missed it. thanks.

🙂


Tony

  • Support Staff

September 13, 2023 at 12:23 pm

but every tab is showing the full list….

Hmmm, I’ll need to check into this.

Using Elementor correct? Just in text/shortcode elements?


mgregor

September 13, 2023 at 12:34 pm

the shortcodes are placed in the tab widget items, in plain text


mgregor

September 13, 2023 at 12:34 pm

(yes, elementor) 🙂


mgregor

September 15, 2023 at 9:59 am

This reply has been marked as private.


mgregor

September 15, 2023 at 2:34 pm

unsure if you are in there messing around or if something drastic just happened that deleted my theme, child theme and the event grid plugin i used to make my front page event list. let me know because i’d like to put it back the way it was asap. we are selling tickets for an event monday.


mgregor

September 16, 2023 at 1:05 pm

putting this back together…

i have confirmed that even with my child theme and the ee grid plugin deactivated we are still unable to save any custom email templates. please let me know how to overcome that.

while today’s modifications have kept the event category shortcodes in tact, i’m not quite where i want to be.

i’ve gotten the items i want in our ESPRESSO_EVENTS shortcode showing, but cannot for the life of me get the details and button all on one line. it seems like a hard coded “clear: both” on the ticket selector grid is hampering me.

isn’t there a way to call the ticket prices (and number of available tickets) without the whole ticket selector table?

trying to get here:
https://imgur.com/l0ROIzJ


mgregor

September 16, 2023 at 1:18 pm

my shortcode content:

add_filter( 'FHEE__content_espresso_events__template_loaded', '__return_true' );

global $post;
$event_class = has_excerpt( $post->ID ) ? ' has-excerpt' : '';
$event_class = apply_filters( 'FHEE__content_espresso_events__event_class', $event_class );
?>
<?php do_action( 'AHEE_event_details_before_post', $post ); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $event_class ); ?>>

<?php if ( is_single() ) : ?>

	<div id="espresso-event-header-dv-<?php echo esc_attr($post->ID);?>" class="espresso-event-header-dv">
		<?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
		<?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
	</div>

	<div class="espresso-event-wrapper-dv">
		<?php //the_content(); ?>
		<?php //espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?>
		<?php //espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>
		<?php //espresso_get_template_part( 'content', 'espresso_events-details' ); ?>
		<?php //espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>
		<footer class="event-meta">
			<?php do_action( 'AHEE_event_details_footer_top', $post ); ?>
			<?php do_action( 'AHEE_event_details_footer_bottom', $post ); ?>
		</footer>
	</div>

<?php elseif ( is_archive() ) : ?>

	<div id="espresso-event-list-header-dv-<?php echo esc_attr($post->ID); ?>" class="espresso-event-header-dv">
		<?php //espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
		<?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>	
		<?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>
	</div>

	<div class="espresso-event-list-wrapper-dv">
		<?php //espresso_event_content_or_excerpt(); ?>
		<?php espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?>
		<?php //espresso_get_template_part( 'content', 'espresso_events-details' ); ?>	
		<?php //espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>
		<?php espresso_view_details_btn( $post ); ?>
<?php endif; ?>

</article>
<!-- #post -->
<?php do_action( 'AHEE_event_details_after_post', $post );

my css:

body.page-id-679 div.event-datetimes ul.ee-event-datetimes-ul.ee-event-datetimes-ul--small li.ee-event-datetimes-li {display: inherit;}

body.page-id-679 .ee-event-datetimes-ul {justify-content: inherit;}

body.page-id-679  article.espresso_events div.espresso-event-list-wrapper-dv div.event-content div.event-datetimes ul.ee-event-datetimes-ul.ee-event-datetimes-ul--small li.ee-event-datetimes-li {display: none;}

body.page-id-679 div.espresso-event-header-dv header.event-header h2.entry-title a.ee-event-header-lnk {
font-family: 'Rokkitt', serif;
color: #6b1a69;
font-size: 1.5rem;}

body.page-id-679 th {
    display: none;
}
body.page-id-679 .tkt-slctr-tbl, 
body.page-id-679 .tkt-slctr-tbl th, 
body.page-id-679 .tkt-slctr-tbl tr, 
body.page-id-679 .tkt-slctr-tbl td {
    border: none;
    border-width: 0px;
    border-collapse: collapse;
}

body.page-id-679 div.event-tickets form div.tkt-slctr-tbl-wrap-dv table.tkt-slctr-tbl tbody tr.tckt-slctr-tbl-tr.ticket-on-sale.ee-ticket-general-admission td.tckt-slctr-tbl-td-name, 
body.page-id-679 table.tkt-slctr-tbl tbody tr.tckt-slctr-tbl-tr.ticket-on-sale.ee-ticket-general-admission td.tckt-slctr-tbl-td-qty.cntr, 
body.page-id-679 article.status-sold_out p.no-ticket-selector-msg, 
body.page-id-679 article.status-sold_out tr.tckt-slctr-tbl-tr.ticket-sales-sold-out.lt-grey-text.ee-ticket-general-admission, 
body.page-id-679  div.event-tickets form div div.ticket-selector-submit-btn-wrap   {display: none;}

body.page-id-679 div.event-tickets form div.tkt-slctr-tbl-wrap-dv table.tkt-slctr-tbl tbody tr td {display: inline;}

article.status-sold_out a.ee-event-header-lnk:before {content: 'SOLD OUT'; color: #ff0000;}

ul.ee-event-datetimes-ul--small li.ee-event-datetimes-li {
  width: auto;
}


mgregor

September 18, 2023 at 6:15 am

a friend is helping me sort the layout issues with some javascript.

since the authorize issue has been fixed but our email templates are still not saving, and we need to keep our sales open, maybe it’s better to moce your troubleshooting that on staging environment. i can create one for you if it’s needed.


mgregor

September 19, 2023 at 7:31 am

any word on this issue?

https://www.loom.com/share/efda9c8b2eb64f2aa3636ca7851a3106?sid=15ffe889-61f2-4155-bceb-7ac56f15c9db


mgregor

September 19, 2023 at 8:49 am

This reply has been marked as private.


Tony

  • Support Staff

September 19, 2023 at 8:56 am

unsure if you are in there messing around or if something drastic just happened that deleted my theme, child theme and the event grid plugin i used to make my front page event list. let me know because i’d like to put it back the way it was asap. we are selling tickets for an event monday.

Hmm, this is not something I have done, at least not intentionally.

Does anyone else have access to the server?

I’m glad you’ve fixed it either way but will need to be extra careful moving forward to make sure I note what I’m working on/have worked on.

(I’m pretty careful when working on remote sites, I’m not saying accidents don’t happen but I try to reduce the chances of this happening as much as possible and for the above to happen I’d have to have been working on all three of those items, which I haven’t been).

i’ve gotten the items i want in our ESPRESSO_EVENTS shortcode showing, but cannot for the life of me get the details and button all on one line. it seems like a hard coded “clear: both” on the ticket selector grid is hampering me.

Which page are you referring to here, I’ll check it out now.

isn’t there a way to call the ticket prices (and number of available tickets) without the whole ticket selector table?

It’s possible, but we may not have a template tag to do it how you are wanting it output.

Using our model system you can pull pretty much any data you want from EE but the vents cover multiple use cases so setups differ so much.

For example, using multiple datetimes each with their own price…. which ticket should EE pull as the ‘default’ ticket to display?

my shortcode content:

Yeah, so you don’t want to be calling the ticket selector for that and likely don’t want the content-espresso_events-tickets.php template file to be used there.

You’re going to need to roll your own template output.

a friend is helping me sort the layout issues with some javascript.

Huh? In what way?

maybe it’s better to moce your troubleshooting that on staging environment. i can create one for you if it’s needed.

Sure, I prefer working on staging rather than live as long as the issue can be produced there.


mgregor

September 19, 2023 at 9:04 am

This reply has been marked as private.


Tony

  • Support Staff

September 19, 2023 at 9:05 am

any word on this issue?

OK, so the message template issue is something I can reproduce, that’s an issue with the event editor page and something we will push an update to fix.

However, I have a workaround for you to be able to use custom templates. The issue with the event editor is creating the custom template, but you can still select one that has been created (the editor just does it one step for you).

Go to Event Espresso -> Messages -> Default Message Templates.

In your example you used Registration Approved, so I’ll go with that for my example, but this works with any.

Find Registration Approved in the list (that list is your ‘Global’, Aka ‘Default’ templates).

You’ll have something like this: https://monosnap.com/file/ApISMDpSwnAwn7mIBd6cbQuY8bFkUu

In the actions column the icon, is to create a custom message template for that message type.

Click that… it will create the custom message template and take you to the page to edit it. Give it a meaningful name, description, edit something within the content if you’d like and save.

Now, on the event editor (if you have it open, refresh).

Rather than clicking to create a new custom template, select the template you just created in the dropdown for that message template. You can also edit the template by clicking the edit button now.

(The issue with the editor is the ajax request (the request triggering the spinner) which calls the function to create the custom message template, doing the above means you no longer call that ajax request… but we’ll get that fixed in the next update to Event Espresso either way)

Side note – do NOT disable the global message templates to select a custom one. When editing a template, you are edit the template used by any event selected to use it, by default the global/default template is used by all events. So if you disable the global template you are not disabling it just for that event, you are disabling all events that do not have a custom template set on it.


Tony

  • Support Staff

September 19, 2023 at 9:17 am

i have no idea what i did to fix the event category shortcodes.

Do you have object caching enabled?

We’ve been running into issues with Object Caching recently, we haven’t changed how our queries run so either something within WP_Query has changed, or something within the Object caching plugin.

Object caching is basically a way of saving the results from a query and rather than getting the results from the database, you just get that saved ‘object’ back.

So EE says (in plain readable English) for your first shortcode:

"SELECT all EVENTS within CATEGORY 1"

Object Caching says “Save those results in $query_object_1 for X time in case something else wants those events as well”

Then EE says:

"SELECT all EVENTS within CATEGORY 2"

Object caching jumps in and says “Hey! Thats the same as earlier, send $query_object_1 back to that request, they can use those and we don’t need to hit the database again”….

Except, those are the same and should be different events.

This means your queries all end up displaying the same events because the object being passed back (to save hitting the database) is the same.


mgregor

September 19, 2023 at 9:51 am

i do not think we have object cacheing enabled anywhere. i recently enabled op cache on my hosting account.


mgregor

September 19, 2023 at 10:07 am

This reply has been marked as private.


Tony

  • Support Staff

September 19, 2023 at 11:33 am

i recently enabled op cache on my hosting account.

Hmm not really the same, but try disabling it and see if it makes any difference.

why do ‘espresso notices’ divs appear on my other archives?

Those place holders are used to display messages from EE, for example if of your archive posts contained an EE shortcode (such as the [ESPRESSO_TICKET_SELECTOR]) shortode) it would need those additional div to show details of the request. You can use EE shortcodes anywhere and short of processing ALL of your posts on every request to check for an EE shortcode prior to loading the page we can’t know where they have been used, so add the notices div a the start of the loop.


mgregor

September 20, 2023 at 6:33 am

there are no EE shortcodes on our press page. if you insert it, there should be no space held empty for the notices. i could see that you’d want these notices on an events archive and other event pages, but it should not insert itself in an unrelated archive, especially not in such a way that it distorts the layout with no content.


mgregor

September 20, 2023 at 6:39 am

i checked. disabling the op cache, does not change the (currently working) behavior of the shortcodes in the tabs.


Tony

  • Support Staff

September 20, 2023 at 7:40 am

there are no EE shortcodes on our press page.

Short of processing every post displayed on that page, how would EE know that before loading the content? Our shortcodes can be used anywhere, so the placeholders need to be there incase the shortcode is processed.

if you insert it, there should be no space held empty for the notices.

Blank space? Unless your theme is using n-th child selectors that are getting mixed up because of the extra content, there shouldn’t be any space.

Can you link me to the page?

i could see that you’d want these notices on an events archive and other event pages, but it should not insert itself in an unrelated archive,

Define unrelated.

Literally any of those ‘unrelated’ posts could contain an EE ticket selector shortcode and short of pre-processing every post content on every page, we don’t know that beforehand.

especially not in such a way that it distorts the layout with no content.

Our default styles should distort anything, can you linke to the page so I can take a look, please?


mgregor

September 20, 2023 at 8:12 am

This reply has been marked as private.


Tony

  • Support Staff

September 21, 2023 at 7:48 am

Hmm ok. So elemntor is using a grid applied to all elements and that’s including those placeholders.

Can I add some debug code to the staging site? We have some checks for an EE page within the code to output those placeholders that I would have thought would have prevented them being adding on those outputs although I could be mistaken (I’ve requested feedback from our senior dev but it will be quicker to just output the values and see what is being processed on that page).

If that’s ok you can send the details over using this form:

https://eventespresso.com/send-login-details/


mgregor

September 21, 2023 at 8:01 am

yes. do you need ftp?


Tony

  • Support Staff

September 21, 2023 at 8:17 am

Yes, please.


Tony

  • Support Staff

September 21, 2023 at 1:45 pm

Ok, so the conditions I mentioned above are bypassed when a ‘legacy’ shortcode is in use which on your site is currently the [ESPRESSO_GRID_TEMPLATE] shortcode.

I’ve opened an internal discussion on this but for not I’ve added a snippet to your site which prevents the placeholders from being added to any other archive than the espresso_events archive, that’s currently within your child themes functions.php file at the end of the file.


mgregor

September 23, 2023 at 7:59 am

thank you. i’ve added that to our live site.


Rio

  • Support Staff

September 24, 2023 at 8:05 pm

Thank you, If you need anything, feel free to reach us again.

thanks


mgregor

September 25, 2023 at 7:11 am

what is the trick to getting shortcodes to let go of the cache? the shortcode i created for our front page does not update an event date change on hard refresh.


Tony

  • Support Staff

September 25, 2023 at 10:56 am

The shortcode ‘cant’ clear the cache itself, you will need to purge the cache for the page to update, usually, you’ll have an option to do this within the plugin you are using (usually they add a section to the admin bar).


mgregor

September 25, 2023 at 4:42 pm

that’s really weird because we have no cache plugin on the site. the issue is with our event in early october. on the front page it says he’s on the 5th and on the other pages it correctly says the 4th after it was changed. but the front page one stays as 10/5. i’ll check tomorrow and see if the host cache has affected it.


Rio

  • Support Staff

September 25, 2023 at 5:49 pm

Awesome. You have to check your 3 cache.
1. Site Cache – Installed wordpress plugin
2. Browser cache – It leaves on your local machine
3. Serve Cache – This is on your hosting, or if you’re using CDN, Cloudflare or similar tool.

thanks.


mgregor

September 26, 2023 at 6:12 am

1. i have no cache plugins.
2. shows incorrectly on never-visited browsers with hard refresh
3. i have confirmed with dreamhost there is no server side cache

some images to peruse

this is the shortcode i am using to create the front page list. is something in the code causing it?

<?php
// Options
$reg_button_text = $button_text ?? __( 'Register Now!', 'event_espresso' );
$alt_button_text = $alt_button_text ?? __( 'View Details', 'event_espresso' );
$default_image   = $default_image ?? ( EE_GRID_TEMPLATE_URL .'images/default.jpg' );
$date_format     = get_option( 'date_format' ) ?: 'Y-m-D';

if ( have_posts() ) {
	echo '<div id="ee5-simple-list"><ul>';
	// Start the Loop.
	while ( have_posts() ) {
		// Setup the post.
		the_post();

		$post = get_post();

		if ( isset( $post->EE_Event ) ) {
			$datetime = $post->EE_Event->get_first_related( 'Datetime' )->get_datetime( 'DTT_EVT_start' );

			$event_url  = $post->EE_Event->external_url();
			$event_name = $post->EE_Event->name() ?: $post->post_title;

			if ( $event_url ) {
				// Event "view details"
				$button_text = $alt_button_text;
			} else {
				// Event "register now"
				$event_url   = $post->EE_Event->get_permalink();
				$button_text = $reg_button_text;
			}

			$image_url = $post->EE_Event->feature_image_url() ?: $default_image;

			echo '<li>';
				// if ( $image_url ) {
				//     echo '<img src="' . esc_url( $image_url ) . '">';
				// }

				echo '<h3> <a class="ee5-event-title" href="' . esc_url( $event_url ) . '">' . esc_html( $event_name ) . '</a> - <span class="date-time">' . esc_html( date_i18n( $date_format, strtotime( $datetime ), true ) ) . '</span> </h3>';
			echo '</li>';
		} else {
			// Post isn't event, do something?
		}
	}
	echo '</ul> </div>';
} else {
	// If no posts for loop (404), include the "No posts found" template.
	espresso_get_template_part( 'content', 'none' );
}

i use this for the template instead of the actual grid layout provided by a plugin i found on github.

https://github.com/eventespresso/eea-events-grid-view-template/blob/master/espresso-grid-template.php

what is causing this?


mgregor

September 26, 2023 at 6:13 am

This reply has been marked as private.


Tony

  • Support Staff

September 26, 2023 at 6:36 am

The only time I see this is when caching is enabled, object caching enabled at all?

Can you set the account you created previously to be an Administrator account on the site please, I’d like to take a look within Event Espresso -> Maintenance -> System information but can’t view that section with the current capabilities.

Event Espresso itself doesn’t cache the requests for the above, your code is using:

$datetime = $post->EE_Event->get_first_related( 'Datetime' )->get_datetime( 'DTT_EVT_start' );

Looking on the EE outputs, that’s outputting the correct details so I’m guessing object caching is enabled somewhere and the above is getting a cached object rather than the new results.


mgregor

September 26, 2023 at 6:51 am

no object cache that i’ve installed. dreamhost says no. i’ve upped your rights to admin on the live site again.


Tony

  • Support Staff

September 26, 2023 at 7:03 am

Hmm, strange!

Try changing the limit value set on the shortcode to something else, say 5, then switch it back again.

Same then?


mgregor

September 26, 2023 at 8:18 am

i have done this previously, as mentioned in my images.

https://imgur.com/5POqgsC

but i just set it to 5 and now still see 10/5 on the main page as you can see on the live site.


mgregor

September 26, 2023 at 8:19 am

switching back to 7 did not bring the correct date in either.


mgregor

September 27, 2023 at 6:27 am

today it’s still showing the wrong date in my shortcode. is there something in the code that’s causing it?


mgregor

September 27, 2023 at 6:38 am

here’s a weird thing i discovered this morning. if i change the event date to 10/3, the shortcode updates the date to 10/4, but the ee pages show 10/3.

something is not right. help!


Tony

  • Support Staff

September 27, 2023 at 7:05 am

Oh, yeah you’re using DTT_EVT_start directly and that’s stored in UTC.

Rather than pulling the datetime start value directly, then passing it to date_i18n(), let EE handle this for you within the EE_Datetime class.

So use:

$datetime = $post->EE_Event->get_first_related( 'Datetime' );

Then swap this:

esc_html( date_i18n( $date_format, strtotime( $datetime ), true ) )

For $datetime->get_i18n_datetime( 'DTT_EVT_start' )

get_i18n_datetime() accepts 2 arguments, $field_name in this case DTT_EVT_start and $date_format which can be passed as a second param but if not it will use the sites default format.


mgregor

September 27, 2023 at 8:08 am

sorry… i don’t seem to be able to get it working. when i use this, it breaks my page…. what did i miss?

<?php
// Options
$reg_button_text = $button_text ?? __( 'Register Now!', 'event_espresso' );
$alt_button_text = $alt_button_text ?? __( 'View Details', 'event_espresso' );
$default_image   = $default_image ?? ( EE_GRID_TEMPLATE_URL .'images/default.jpg' );
$datetime = $post->EE_Event->get_first_related( 'Datetime' );

if ( have_posts() ) {
	echo '<div id="ee5-simple-list"><ul>';
	// Start the Loop.
	while ( have_posts() ) {
		// Setup the post.
		the_post();

		$post = get_post();

		if ( isset( $post->EE_Event ) ) {
			$datetime = $post->EE_Event->get_first_related( 'Datetime' )->get_datetime( 'DTT_EVT_start' );

			$event_url  = $post->EE_Event->external_url();
			$event_name = $post->EE_Event->name() ?: $post->post_title;

			if ( $event_url ) {
				// Event "view details"
				$button_text = $alt_button_text;
			} else {
				// Event "register now"
				$event_url   = $post->EE_Event->get_permalink();
				$button_text = $reg_button_text;
			}

			$image_url = $post->EE_Event->feature_image_url() ?: $default_image;

			echo '<li>';
				// if ( $image_url ) {
				//     echo '<img src="' . esc_url( $image_url ) . '">';
				// }

				echo '<h3> <a class="ee5-event-title" href="' . esc_url( $event_url ) . '">' . esc_html( $event_name ) . '</a> - <span class="date-time">' . $datetime->get_i18n_datetime( 'DTT_EVT_start' ) . '</span> </h3>';
			echo '</li>';
		} else {
			// Post isn't event, do something?
		}
	}
	echo '</ul> </div>';
} else {
	// If no posts for loop (404), include the "No posts found" template.
	espresso_get_template_part( 'content', 'none' );
}


mgregor

September 27, 2023 at 9:03 am

This reply has been marked as private.


Tony

  • Support Staff

September 27, 2023 at 9:43 am

You have changed line 6 to be:

$datetime = $post->EE_Event->get_first_related( 'Datetime' );

Thats outside of the loop so $post hasn’t been set.

Remove that line.

Line 18:

$datetime = $post->EE_Event->get_first_related( 'Datetime' )->get_datetime( 'DTT_EVT_start' );

Needs to be changed to:

$datetime = $post->EE_Event->get_first_related( 'Datetime' );


mgregor

September 27, 2023 at 9:48 am

This reply has been marked as private.


Tony

  • Support Staff

September 27, 2023 at 10:03 am

I need the code to see what change you’ve made.

From thay error I don’t think you’ve changed line 18 to what I posted above.


mgregor

September 27, 2023 at 10:22 am

<?php
// Options eeversion
$reg_button_text = $button_text ?? __( 'Register Now!', 'event_espresso' );
$alt_button_text = $alt_button_text ?? __( 'View Details', 'event_espresso' );
$default_image   = $default_image ?? ( EE_GRID_TEMPLATE_URL .'images/default.jpg' );
// $datetime = $post->EE_Event->get_first_related( 'Datetime' );

if ( have_posts() ) {
	echo '<div id="ee5-simple-list"><ul>';
	// Start the Loop.
	while ( have_posts() ) {
		// Setup the post.
		the_post();

		$post = get_post();

		if ( isset( $post->EE_Event ) ) {
			$datetime = $post->EE_Event->get_first_related( 'Datetime' )->get_datetime( 'DTT_EVT_start' );

			$event_url  = $post->EE_Event->external_url();
			$event_name = $post->EE_Event->name() ?: $post->post_title;

			if ( $event_url ) {
				// Event "view details"
				$button_text = $alt_button_text;
			} else {
				// Event "register now"
				$event_url   = $post->EE_Event->get_permalink();
				$button_text = $reg_button_text;
			}

			$image_url = $post->EE_Event->feature_image_url() ?: $default_image;

			echo '<li>';
				// if ( $image_url ) {
				//     echo '<img src="' . esc_url( $image_url ) . '">';
				// }

				echo '<h3> <a class="ee5-event-title" href="' . esc_url( $event_url ) . '">' . esc_html( $event_name ) . '</a> - <span class="date-time">' . $datetime->get_i18n_datetime( 'DTT_EVT_start' ) . '</span> </h3>';
			echo '</li>';
		} else {
			// Post isn't event, do something?
		}
	}
	echo '</ul> </div>';
} else {
	// If no posts for loop (404), include the "No posts found" template.
	espresso_get_template_part( 'content', 'none' );
}


mgregor

September 27, 2023 at 10:26 am

OH! i think it’s working now with this.

<?php
// Options eeversion
$reg_button_text = $button_text ?? __( 'Register Now!', 'event_espresso' );
$alt_button_text = $alt_button_text ?? __( 'View Details', 'event_espresso' );
$default_image   = $default_image ?? ( EE_GRID_TEMPLATE_URL .'images/default.jpg' );
// $datetime = $post->EE_Event->get_first_related( 'Datetime' );

if ( have_posts() ) {
	echo '<div id="ee5-simple-list"><ul>';
	// Start the Loop.
	while ( have_posts() ) {
		// Setup the post.
		the_post();

		$post = get_post();

		if ( isset( $post->EE_Event ) ) {
			$datetime = $post->EE_Event->get_first_related( 'Datetime' );

			$event_url  = $post->EE_Event->external_url();
			$event_name = $post->EE_Event->name() ?: $post->post_title;

			if ( $event_url ) {
				// Event "view details"
				$button_text = $alt_button_text;
			} else {
				// Event "register now"
				$event_url   = $post->EE_Event->get_permalink();
				$button_text = $reg_button_text;
			}

			$image_url = $post->EE_Event->feature_image_url() ?: $default_image;

			echo '<li>';
				// if ( $image_url ) {
				//     echo '<img src="' . esc_url( $image_url ) . '">';
				// }

				echo '<h3> <a class="ee5-event-title" href="' . esc_url( $event_url ) . '">' . esc_html( $event_name ) . '</a> - <span class="date-time">' . $datetime->get_i18n_datetime( 'DTT_EVT_start' ) . '</span> </h3>';
			echo '</li>';
		} else {
			// Post isn't event, do something?
		}
	}
	echo '</ul> </div>';
} else {
	// If no posts for loop (404), include the "No posts found" template.
	espresso_get_template_part( 'content', 'none' );
}

please please please build some sort of shortcode builder for those of us who aren’t php afficionados. lol. thanks.


Tony

  • Support Staff

September 27, 2023 at 10:39 am

A shortcode builder? Can you expand on that?


mgregor

September 27, 2023 at 11:11 am

an interface that allows me to build this type of thing or my event tickets page from choices of event data.

the best example i can show you is something akin to dynamic.ooo’s condition generator. https://www.dynamic.ooo/conditions-generator/

i could see the choices being along the lines of

Type of output (table, li, span?)
ID of the event (would then show all the variations of things you might want to list based on the event id data)
– dates, times, costs, details, images, whatever
option for output
– automatic inserts a shortcode at best or… like the .ooo example, gives you a snippet to start with or add to a plugin, etc.

as you see… i am way more of an ideas gal than a dev. 🙂

Viewing 98 reply threads

The support post ‘transitioning away from ee3 – some questions’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso