Support

Home Forums Event Espresso Premium Category Colors & featured images not working

Category Colors & featured images not working

Posted: August 15, 2013 at 6:13 pm

Viewing 11 reply threads


Michael Zschoche

August 15, 2013 at 6:13 pm

When I click the “include image in post” button nothing happens. There is a small ‘broken image”(?) icon that appears in the featured image area of the sidebar. But nothing else.

the color coding on events isn’t working. If you go to the calendar the events that are there should be displayed in 3 colors. I’m seeing them as white (with 1 of them randomly being the correct color).

Can we add a color coded category legend? Category links at the top calendar that is?
This is the link to the site: http://nzsch.com/~gatherhe/classes/
It is still in production


Dean

August 16, 2013 at 5:03 am

Hi Michael,

Regarding the broken image there could be a few different causes here. The first thing I would check is in the WordPress options and verify that the “image_default_link_type” is set to “file”. You can check this by going to yourdomainname.com/wp-admin/options.php and scrolling down to the “image_default_link_type” and it should say file in the option’s value field.

Regarding the calendar, do the events with no colouring have more than one category? The calendar will only show one category colour and it will choose that bottom most selected category as the display colour.

Can we add a color coded category legend? Sure just add one to the Page where the calendar shortcode is. Some people use HTML/CSS, some find it easier to just make an image in an art package.


Michael Zschoche

August 16, 2013 at 11:22 am

Thank you Dean,
My featured images work now thanks!
No my items not showing a color are in just one category…. What else could cause this?
As far as the color legend I know Ajax Event Calendar has a clickable legend by default that displays the different category colors and you can click on them at the top and only those will “light up” in the calendar. Do you have this feature?
Thanks!!!


Josh

  • Support Staff

August 16, 2013 at 3:13 pm

Hi Michael,

In order to troubleshoot this further we need to know a few things: Which events and which categories are not working? Which ones are? It looks to me like the one for Aug 10 is getting a custom background color and custom text color applied. You might try changing the colors a bit for the other categories and re-saving the category and the other events that are assigned to the other category.

With the color key, it’s not a feature that’s included with Event Espresso.


Michael Zschoche

August 16, 2013 at 4:07 pm

All events are working. The categories that are not working are all of them except “events” category. I tried editing the category colors & re saving. Also tried editing event & resaving to no avail.


Josh

  • Support Staff

August 19, 2013 at 7:53 am

Hi Michael,

Can you let us know what the shortcode is that is on the calendar page?


Michael Zschoche

August 19, 2013 at 10:52 am

[ESPRESSO_CALENDAR]


Josh

  • Support Staff

August 19, 2013 at 2:25 pm

Excellent. Can you try going into Event Espresso>Calendar settings and near the bottom of the settings page set Disable Attendee Limits? to Yes.


noah

August 19, 2013 at 6:24 pm

Josh,

I set Display Attendee Limits? to NO and Category colors work.
There is a warning on this setting: “Enabling this setting increases the amount (of) database queries and may break the calendar on some servers.”
How much memory would you recommend we have in order to be able to display attendee numbers? Or is it something else that is causing the problem.
Our current WP Memory Limit is below the recommended amount, but we are on a dev site and will (hopefully) increase that when we launch.
Thanks


Seth Shoultes

  • Support Staff

August 19, 2013 at 11:58 pm

I thinks it depends on if you are going to have large numbers of events displayed on your calendar and a few other factors such as thumbnail images in the calendar.

I would suggest starting at 64mb and working up from there as needed.


noah

August 20, 2013 at 8:19 am

I’m curious as to what would be a large number of events.
We have around 100 classes a month and are looking at adding waiting list classes for 40 or 50 of them. All of the classes have images, but not featured images that display on the calendar. The images do display with tooltip popups.
We would like to turn ‘Display Attendee Limits’ ON.
I’m guessing that this is a lot of events for the calendar, but would love to know your thoughts on memory. Or should we start with 64MB and work up from there?
Thank you


Josh

  • Support Staff

August 20, 2013 at 9:31 am

You can try 64 MB and go up from there. As an aside, we are working on altering the query that pulls in the attendee limits for the next version. You can squeeze some extra efficiency out of the current calendar add-on by changing a few lines of code in espresso-calendar.php starting at line 343:

$orig_attendee_limit = get_number_of_attendees_reg_limit($event->id, $type = 'num_attendees_slash_reg_limit');
$parse_limits = explode( '/', $orig_attendee_limit, 2 );
$num_completed = $parse_limits[0];
$reg_limit = $parse_limits[1];

you can change it to:

$num_completed = 0;
$a_sql = "SELECT SUM(quantity) quantity FROM " . EVENTS_ATTENDEE_TABLE . " WHERE event_id=%d AND (payment_status='Completed' OR payment_status='Pending' OR payment_status='Refund') ";
$wpdb->get_results( $wpdb->prepare( $a_sql, $event->id ), ARRAY_A);
if ($wpdb->num_rows > 0 && $wpdb->last_result[0]->quantity != NULL) {
    $num_completed = $wpdb->last_result[0]->quantity;
}
$reg_limit = $event->reg_limit;
Viewing 11 reply threads

The support post ‘Category Colors & featured images not working’ 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