Code

Discussion on Stachethemes Event Calendar - WordPress Events Calendar Plugin

Discussion on Stachethemes Event Calendar - WordPress Events Calendar Plugin

Cart 6,872 sales
Recently Updated

Stachethemes supports this item

Supported

This author's response time can be up to 2 business days.

2757 comments found.

The fas fa-map-marker-alt icon shows in the admin but not in the front end. Nay idea why this could be?

It is possible the front-end loads different version of font-awesome that does not support fa-map-marker-alt icon. Make sure you have only one font-awesome library loaded and it is version 5+

Installed the plugin ‘Better Font Awesome’ and allowed for Font Awesome v4 CSS shim to support legacy icons and it worked. My Font Awesome version was 5.15.4

With the Buddypress integration is it possible for users to submit their events from their profile page?

Hi,

I am afraid not. You will have to set up a page on the front-end. The next version of the calendar will have profile calendar page.

hi, i bought the plugin 2 times. Unfortunately, the second license is not accepted. What now

I have to move the page. How can I deactivate the theme and reactivate it on the new domain

i got it

Hello.

Is it possible for the admin to set a fee for placing an event on the calendar? Is it possible for the admin to set up flexible pricing for the client, depending on the number of days of the event he adds? Is it possible to assign special prices for event additions on weekends or holidays? Is it possible for the admin to set up different restrictions for the client on the event hosting tab? For example, exclude the possibility of adding an event to certain categories, exclude the possibility of adding an endless event, etc.? Is it possible to post a calendar of events only from a certain category or Location(s) or Organizer? Is there a risk of conflict with this template? https://themeforest.net/item/houzez-real-estate-wordpress-theme/15752549

Thank you. I will be grateful for the answers.

Hi,

I am afraid it’s not possible to charge for events yet.

Thank you for the answer. It would be great if the admin could sell packages (number) of events that the user can create in the calendar.

It will be implemented at some point in the future

Hi, is there a hook that I can use to enable html in the short description? If I add a line break, it’s ignored and removed.

Hi,

Currently no. The next version will allow it.

Hi, when live importing from an ICS, can I assign categories to the events? I mean when creating the event in Google Calendar, is there any text I can use so that when the ICS is imported, it assigns categories to the events? Thanks!

Hi,

You can use this hook to import categories from ics.

Place it in your theme or child-theme functions.php file


/**
 * STEC MOD: Imports categories from the ics file 
 * Note tags are treated as categories
 */
add_filter('stec_before_import_event', function ($data) {

    if (false === isset($data['ics_event']) || !$data['ics_event']) {
        return $data;
    }

    $ics_event      =  $data['ics_event'];
    $event_post     =& $data['event_post'];
    $has_categories = true;

    if (
        false === isset($ics_event->categories_array) ||
        false === is_array($ics_event->categories_array) ||
        false === isset($ics_event->categories_array[1])
    ) {
        $has_categories = false;
    }

    // No categories found in this event
    if (false === $has_categories) {
        return $data;
    }

    $categories_array = $has_categories ? explode(',', $ics_event->categories_array[1]) : array();
    $categories_ids   = array();

    foreach ($categories_array as $category_name) {

        // Check if category exists
        $category_exists = \Stachethemes\Stec\Categories::get_category_by_name($category_name);

        if ($category_exists) {
            // Get existing category id
            $categories_ids[] = $category_exists->get_id();
        } else {
            // Create the category if it does not exist
            $new_category = new \Stachethemes\Stec\Category();
            $new_category->set_title($category_name);

            $new_category_id = $new_category->insert_category();

            if (false === is_wp_error($new_category_id) && is_int($new_category_id)) {
                $categories_array[] = $new_category_id;
            }
        }
    }

    $event_post->set_categories($categories_ids);

    // Read more fix...
    $event_post->set_link(false);

    return $data;
});

Thanks! The code says: “Note tags are treated as categories”. Whay do you mean by that? If I have “Personal” “Very Important” and “Random” categories. How would I assign those from Google?

Disregard this. The code was originally made to import tags as categories too but this part of the code is removed here.

reset license to be installed in new domain

Send me your activation key to stachethemes@gmail.com

Hey, the tabelle view is nice with the graphic. but when i click in the single event, the graphic is tooo big. where can i change this? :)

i sent now :) thanks!

Go to Dashboard -> STEC -> Fonts & Colors -> Custom style tab and add this css:

:root {
  --stec-ar: calc(1200 / 628);
}
.stec-layout-single-media-content,
.stec-layout-event-inner-intro-media-content,
.stec-layout-grid-event-image {
   height:0 !important;
   padding-top: calc( 100% / var(--stec-ar) ) !important;
}

amazing support! <3

hey, is there no auto update? i only have 3.2.6 :) thanks!

Download the new version from Codecanyon.

Install the new calendar over your current installation and click “Replace current with uploaded” when prompted.

Hello, Pre-Sales question. Theres front end submission, is there the ability to have someone create an account as an organizer and have them create their own tickets for the events? like a community calendar for the organizer with the existing functionality of selling tickets? or does that need to be done by admin?

Hi,

If you have Elementor builder installed it’s possible to add “Tickets” element which adds option to create new or add existing tickets to an event via the submit form. However note the tickets can only be edited later via the admin panel.

Wondering what will take to reorganize or customize the event page templates. For example, I am interested in changing the order of certain components, like moving the Add to Cart Button higher up on the screen/page or moving the countdown timer to the bottom of the page… that sort of thing.

Hi,

It’s possible to reorganize the event single page template via Elementor builder if you have it installed.

Otherwise you will have to create file single-stec_event.php in your theme or child theme folder and write a template from scratch.

Divi theme support? That would be amazing…

The plugin works with Divi, however you can’t customize the layout with their builder if that’s what you mean.

I installed the WPML plugin and all is relatively good but the Single Page is removing the WPML Menu language switcher (a flag) and I can’t figure out why. Only in that page, nowhere else. Any Ideas?

Open private ticket at https://stachethemes.ticksy.com/tickets/ because I may need to debug this on your website.

Can the events load faster? Is there a way to skip the loading intro? it is not really necessary and wastes valuable time.

Go to Dashboard -> STEC -> General -> Misc and turn off “Ajax Events” option.

Fantastic, thanks!

When you import events using the native tool, how do you select to which calendar they should go to? Where do they go by default? and can you move events from one calendar to another?

So you can not batch import multiple events into a specific calendar, you have to do it one by one. Maybe for the wishlist?

You can batch import events to a selected calendar.

Go to Dashboard -> STEC -> Import Events. The top right corner has green button “Switch Calendar”.

Select the calendar where you want to place your events from there.

So it has, thank you!

Hi! A pre-sale-question: I saw, you can set keywords. Is the function of that keywords like common Tags? I need that the events appears on a result page by tags as well as the posts.

short add: Maybe I found the answer yet?: https://stachethemes.ticksy.com//ticket/2992377/ Do the keywords are also counted in the normal tag cloud common with all tags from all posts?

Hi,

The keywords are used by the search function of the calendar.

The keywords are not searchable by default from the WordPress search form unless an extra filter is added to the ‘pre_get_posts’ hook.

Hi. I submitted a ticket about 2 weeks ago while my support was still active but I never received a response. Here is the URL: https://stachethemes.ticksy.com/ticket/3217846 I believe it is set to Private though. I couldn’t reply to it to ask for an update since my support has ended.

I’m fine with renewing the support if we can get some core issues looked at that have been asked about a few months ago.

Thank you.

Hi, I received your reply on the ticket, but I’m not able to respond there any more unfortunately. While I do appreciate the refund sentiment, I don’t think that will be necessary as we’ve still made use of the calendar for a few months. We would just need some of those other features mentioned to keep going. I’m not sure what the timeline is like for that (if you’re able to spare any additional details?)

These two hooks will disable RSVP if the event date is greater than 14 days from now:

add_action('wp_footer', function () {

    if (false === wp_script_is('stec-js')) {
        return false;
    }

    ?>
    <script type="text/javascript">

        (function($) {

            const DAYS_LIMIT = 14;

            $(function() {

                $.stecExtend(function(m) {

                    m.$instance.on('onEventToggleOpen', function(e, data) {

                        let $container = data.$container;
                        let repeatOffset = parseInt(data.repeatOffset, 10);
                        let event = data.event;
                        let now = moment();
                        let eventDate = moment.tz(event.start_date, event.timezone).add(repeatOffset, 'seconds');
                        let daysDiff = eventDate.diff(now, 'days', true);

                        if (daysDiff > DAYS_LIMIT) {

                            $container.find('.stec-layout-event-inner-intro-rsvp').hide();
                            $container.find('.stec-layout-event-inner-intro-attendance').hide();
                            $container.find('.stec-layout-event-inner-attendance-invited').hide();

                            let $externalLink = $container.find('.stec-layout-event-inner-intro-external-link');

                            if ($externalLink.is(':hidden')) {
                                $externalLink.parents('.stec-layout-event-inner-intro-section').first().hide();
                            }
                        }
                    });
                });
            });
        })(window.jQuery);
    </script>
<?php
});

add_action('stec_single_wp_head', function($event) {

    $DAYS_LIMIT = 14;

    $repeat_offset = (int) get_query_var('stec_repeat_offset', 0);
    $now = new DateTime('now', new DateTimeZone($event->get_timezone()));
    $event_date = new DateTime($event->get_start_date('Y-m-d H:i:s', $repeat_offset), new DateTimeZone($event->get_timezone()));
    $diff_days = (int) $now->diff($event_date)->d;
    if ($diff_days > $DAYS_LIMIT) {
        $event->set_rsvp(0);
    }
});

Place the hooks in your child-theme functions.php file.

Hello..pre-sale question. Does this support WooCommerce variable products yet??

Hi,

Products – yes. Tickets – not yet.

RSVP, so if this is enabled anyone can spam the site with RSVP, can this not be set with permissions per user roles..

Seems strange this isn’t as standard? for at least be given a choice to set viewable by registered users or the whole world to spam.. Just saying..

Hi,

does your calender plugin has an ready-to-go integration with calendly, so booked appointments are also automatically on this calender? if not: do you plan in the near feature such stuff?

Hi,

No, we don’t have any specific integration for Calendly.

If Calendly has option to export events to .ics format or has webcal url for accessing ics events it will be possible to import them to Stachethemes Event Calendar.

I’m pretty certain it must have this option since it is a standard file format for importing/exporting events content.

Does it have multilingual support? Polylang?

WPML.

It could also be made to display certain calendars depending on the current language setting.

How? could you point me to the documentation, please?

Place this hook in your theme or child-theme functions.php file:

add_action('stachethemes_ec_atts', function ($atts) {

    /**
     * CONFIG
     */
    $SETTINGS = array(
        'en_US'  => '1,2,3',  // if locale is en_US show calendars with ids 1, 2 and 3,
        'de_DE'  => '4,5,6',  // if locale is de_DE show calendars with ids 4, 5 and 6

        // ... and so on
    );
    // end of config

    if (false === is_array($atts) || !$atts || false === isset($atts['cal'])) {

        $current_locale = get_locale();

        if (isset($SETTINGS[$current_locale])) {
            $atts['cal'] = $SETTINGS[$current_locale];
        }

    }

    return $atts;
});

in the settings you need to specify locale and associate calendar ids.

e.g.

'en_US' => '1,2,3' 

where 1,2,3 are the calendar id numbers.

The calendar id numbers are visible in the admin ( STEC -> Calendars )

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey