Riccardo

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 55 total)
  • Author
    Posts
  • in reply to: Search will not find events out of current month… #1160805
    Riccardo
    Participant

    This is HUGE FAIL from an architectural perspective! I am very upset, I felt like an idiot when the customer showed to me that the search is limited to the current month…. I wonder why the dev. team did not even think about this limitation, in an era where full blown text-search applies everywhere in our life. Thumbs down! Please forward my thoughts to the design team!
    Is there any custom search that returns a raw list of events for a given keyword?

    • This reply was modified 7 years, 7 months ago by Riccardo.
    in reply to: Search will not find events out of current month… #1160400
    Riccardo
    Participant

    I came into this thread … it seems this is an unsupported feature….. How can it be the calendar is being limited to month search! Of course you may want search all calendar! Is there any workaround?

    in reply to: Fatal error accessing admin with PHP7 #1159148
    Riccardo
    Participant

    Thank you Nico, I am glad to hear from you that PHP 7 is definitely supported, as the plugin is publicly advertised as “5.x or greater” compatible.

    Now as soon as possible I will be setting up a staging site so you may test as you like the problem. Until then let’s leave this ticket open!

    Thanks

    in reply to: Countdown widget not skipping to next event #1157485
    Riccardo
    Participant

    Thanks for clarifying Andras. The behaviour is not useful in my case because once the event begin date is expired it should be more relevant to immediately show the next upcoming.

    Cheers! 🙂

    in reply to: Countdown widget not skipping to next event #1156998
    Riccardo
    Participant

    I have fixed the problem creating a custom shortcode, however I’d like to understand why the widget won’t work as (I) expected. It should be that once the event is expired it will skip to the next upcoming automatically, otherwise users are forced to manually update the widget… crazy!

    Now,as stated here function tribe_get_events will return also events started earlier than the supplied date, I had to loop in the next (6 for me) events to verify if the start date is equal or greater than the requested start date.

    Seems strange to me really, both the widget behaviour and the tribe_get_events …..

    function my_event_countdown($atts, $content = null) {
            $date = new DateTime('tomorrow');
            $result = $date->format('Y-m-d H:i:s');
            $events = tribe_get_events( array(
             'eventDisplay' => 'list',
             'posts_per_page' => 6,
             'start_date' => date( $result )
             ) );
       
            foreach ( $events as $post ) {
                setup_postdata( $post );
                if(substr($post->EventStartDate,0,10) >= substr($result,0,10 )) {
                    break;
                }   
            
            }
            $a = '[tribe_event_countdown id="'.$post->ID.'"]';
    
            return do_shortcode($a);
    }
    
    add_shortcode( 'next_countdown','my_event_countdown');
    • This reply was modified 7 years, 8 months ago by Riccardo.
    in reply to: Debugging faulty Ajax loading/navigation #1156292
    Riccardo
    Participant

    Hoooorrrraaaayyyy!!!!!

    I have narrowed down the problem! This is the offending code in my child’s theme function.php

    if (is_user_logged_in()){
        if (in_array( 'parent', (array) $acorn_user->roles )){
                  show_admin_bar(false);
                  add_action('admin_init', 'no_mo_dashboard'); 
            }else{
                show_admin_bar(true);
            }
    }
    
    // ********* parent cannot access dashboard 
    function no_mo_dashboard() {
         wp_redirect(home_url()); // STOPS AJAX LOADING EVERYWHERE!!!!
     }

    Now I have found a snippet that doeas a similar function:

    add_action( 'init', 'blockusers_init' );
    function blockusers_init() {
    if ( is_admin() && ! current_user_can( 'administrator' ) &&
    ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
    wp_redirect( home_url() );
    exit;
    }
    }

    Where there’s a test on Ajax…… Did I miss something? Why was my code blocking Ajax?

    • This reply was modified 7 years, 8 months ago by Riccardo.
    in reply to: Debugging faulty Ajax loading/navigation #1156089
    Riccardo
    Participant

    Brook! Once I thought that the problem was theme related, I have made another test, disabling the child theme (I am using a Child theme), and it works on all browsers.

    So it is something in my child theme’s code that is spoiling Ajax navigation.
    The strange part is that although I have activated again my child theme and renamed functions.php (this disables loading my custom js, shouldn’t it?) and style.css, the problem is there again.

    There must be something elsewhere (I am using other customized php templates in the child theme) but I would bet there are no big modifications in there. Basically the large amount of customizations is made in functions.php, css and javascript files….

    in reply to: Skipping first event in event list #1151247
    Riccardo
    Participant

    Tah-dah, Nico! This is a very elegant solution! Thanks, working perfectly!

    in reply to: Using widgets in the dashboard! #1151122
    Riccardo
    Participant

    You are my hero!

    Isn’t it lovely: http://prntscr.com/c4zdyq

    in reply to: Events Countdown Widget on next event #1150945
    Riccardo
    Participant

    You could say “if only people would read…”

    Now I see:

    Type: Choose whether you want the widget to countdown to the next upcoming event or to a specific event. If you select the Next Event option, then the widget will automatically start counting down to the next scheduled event once the first one has been reached.

    Thanks Geoff!

    • This reply was modified 7 years, 8 months ago by Riccardo.
    Riccardo
    Participant

    Since I have applied the suggested solution, when debugging is enabled I get the following warning in the page headers:

    Notice: Undefined index: post_type in /home/ric965/public_html/me-about.me/wp-content/themes/eduma-child/functions.php on line 326

    The offending line seems to be:

     if ( $query->query_vars['post_type'] == TribeEvents::POSTTYPE &&
            !is_tax(Tribe__Events__Main::TAXONOMY) &&
            empty( $query->query_vars['suppress_filters'] ) ) {

    Any idea?

    in reply to: Event Tooltip clipped #1150281
    Riccardo
    Participant

    Hello Cliff, thanks for replying.

    I didn’t understand how we could help you any further on this topic. It sounds like you’re asking the same question.

    Yes, I am asking again as the previous questions was unanswered, as I was told that the problem was due to theme constraints (menu height), however the picture I’ve sent today shows clearly that also when the menu is hidden the tooltip will be clipped away.

    And, yes, the tooltips do use JavaScript, but, no, we cannot provide you code customizations for what you’re asking (custom positioning).

    More than a custom positioning, I believe this is a “good sense” positioning, and as the code is written in javascript, there are tons of samples out there to take in account viewport size and position to place the tooltip accordingly without clipping.

    Is the Javascript code themed, in other words, customizable in my child theme?

    Riccardo
    Participant

    Works perfectly, thanks!

    Riccardo
    Participant

    Thanks

    in reply to: Calendar title centering #1149911
    Riccardo
    Participant

    Thanks!

Viewing 15 posts - 1 through 15 (of 55 total)