• milauskas

    (@milauskas)


    I’ve installed EO, created some events and a venue and put the shortcode [eo_fullcalendar] in the page I want the calendar to show up on.

    First, when I load the page, all I get is the “loading” text with spinning circle but the calendar doesn’t load.

    I’ve tried the shortcode [eo_calendar] and the small calendar does appear.

    Also, I’ve looked at the EO demo and my popups in calendar view look nothing like the ones in the demo. Instead of the event’s title and some descriptive text like in the demo popups, when I click an event in Calendar View it’s got a “Event Details” tab at the top, in the body of the popup are Start:, End:, Organizer and “this event reoccurs every…” There are edit event, break this series and delete this occurrance links at the bottom.

    Can anyone help? I’m lost!

    http://wordpress.org/extend/plugins/event-organiser/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    The front-end (full) calendar is different from the admin calendar.

    As for calendar not loading, this is possibly a javasript issue. Have you tried the steps indicated in the FAQ?

    Thread Starter milauskas

    (@milauskas)

    I don’t know what to look for as far as the AJAX response in my browser’s console. Sorry, I’ve never done that. I’ve only looked at the HTML in Firebug.

    I did swap out my theme for Twenty Twelve and the calendar showed up, but I don’t know what I’d be looking for in my files.

    At least I’m getting closer.

    Plugin Author Stephen Harris

    (@stephenharris)

    Can you post a link to your site, I’ll take a look.

    Thread Starter milauskas

    (@milauskas)

    Sure, it’s http://encinochamber.org/events/events-calendar/

    All the other things seem to be working (e.g., widget in sidebar, individual event pages, etc.)

    Plugin Author Stephen Harris

    (@stephenharris)

    Looks like an error in scripts.js of your theme. I can’t see the ajax request being fired, so its probable that that error is preventing it from initiating the it.

    The error, on line 75, is that swfobject is not defined.

    Try editing that to wrap it inside a ‘is defined?’ conditinoal:

    if( swfobject page_name != 'undefined'){
        swfobject.switchOffAutoHideShow();
        swfobject.registerObject("art-flash-object", "9.0.0", "<?php echo get_bloginfo('template_url') . '/' ?>expressInstall.swf");
    }

    Is this your theme? If not, if you can let me know where you got it from I can contact the developer so other users to get this problem…

    Plugin Author Stephen Harris

    (@stephenharris)

    Also, this

    ....<?php echo get_bloginfo('template_url')....

    should ideally be achieved using wp_localise_script() to contain the url inside a javascript variable.

    Thread Starter milauskas

    (@milauskas)

    Okay. Thanks!

    Yes, this is a theme I built (I used Artisteer and customized it).

    BTW I did see the swf object thing in Chrome Dev Tools but I didn’t know what to make of it.

    I’ll take a look at scripts.js. I see the ….<?php echo get_bloginfo(‘template_url’)…. are you saying replace it with this?

    ….<?php wp_localise_script()….

    Forgive my limited php.

    Thread Starter milauskas

    (@milauskas)

    Forgot to ask, can I copy and past my script.js here?

    Thread Starter milauskas

    (@milauskas)

    Here’s the code in question (well, part of it):

    jQuery(function () {
    swfobject.switchOffAutoHideShow();
    swfobject.registerObject(“art-flash-object”, “9.0.0”, “<?php echo get_bloginfo(‘template_url’) . ‘/’ ?>expressInstall.swf”);
    });

    However Dreamweaver tells me I have a syntax error if I alter it like so:

    jQuery(function () {
    if( swfobject page_name != ‘undefined’){
    swfobject.switchOffAutoHideShow();
    swfobject.registerObject(“art-flash-object”, “9.0.0”, “<?php echo get_bloginfo(‘template_url’) . ‘/’ ?>expressInstall.swf”);
    }
    });

    Thread Starter milauskas

    (@milauskas)

    Hi Stephen,

    Any ideas?

    I just commented out the whole block of code for the swfobject in script.js, but that had no effect.

    Plugin Author Stephen Harris

    (@stephenharris)

    I’m not sure – where is the syntax error?

    If you’re not sure how/why to use wp_localise_script(), see this post by Pippin: http://pippinsplugins.com/making-php-variables-available-to-your-js/

    It allows you to avoid printing javascript to the page directly and so you can enqueue your scripts entirely through the wp_enqueue_script() framework.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Not getting things to work (calendar doesn't load)’ is closed to new replies.