WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Events Calendar] Sidebar Widget Won't Install (5 posts)

  1. dglend
    Member
    Posted 4 years ago #

    Trying to activate the Widget in my sidebar and WordPress won't allow me to install the sidebar widget.

    I drag the Events Calendar widget across to my sidebar and it won't let me move the widget within the sidebar nor access the widget options through the drop down button.

    Anybody have this problem or know a solution

    http://wordpress.org/extend/plugins/events-calendar/

  2. bcarter@browserdoodle.com
    Member
    Posted 4 years ago #

    I am having the same problem. I can drag the sidebar widget over to the sidebar, but the options panel will not dropdown and when I refresh the page, it disappears from the sidebar widgets area.

  3. Matthewonsea
    Member
    Posted 4 years ago #

    I'm having the same trouble, but if you copy '<?php SidebarEventsList();?>' and paste it into your sidebar.php it will work. This is meant to be for themes that are not widget ready, so maybe this widget ain't sidebar ready.

  4. Matt
    Member
    Posted 4 years ago #

    Not sure about you guys, but the problem is not just with installing the widget for this plugin, but trying to do anything with any of the widgets once this plugin is installed. Once I activate the plugin in 2.8.4, I can no longer manage any widgets. It would be nice to get this fixed so this plugin is useful again...

  5. Matt
    Member
    Posted 4 years ago #

    Edit the events-calendar.php file, by replacing the function EventsCalendarINIT() with this:

    function EventsCalendarINIT() {
        $inadmin = FALSE;
        if (function_exists('is_admin')) {
            $inadmin = is_admin();
        }
        else {
            $inadmin = strstr($svr_uri, 'wp-admin');
        }
    
        if (!$inadmin) {
            wp_enqueue_script('jquerybgiframe', '/wp-content/plugins/events-calendar/js/jquery.bgiframe.js', array('jquery'), '2.1');
            wp_enqueue_script('jquerydimensions', '/wp-content/plugins/events-calendar/js/jquery.dimensions.js', array('jquery'), '1.0b2');
            wp_enqueue_script('jquerytooltip', '/wp-content/plugins/events-calendar/js/jquery.tooltip.min.js', array('jquery'), '1.3');
            wp_enqueue_script('thickbox');
        }
    
        // Always register both the widget and widget control objects
        // in case there are dependencies between the two.
         $widget = new EC_Widget();
         $management = new EC_Management();
         register_sidebar_widget(__('Events Calendar','events-calendar'), array(&$widget, 'display'));
         register_widget_control(__('Events Calendar','events-calendar'), array(&$management, 'widgetControl'));
    }

    Found in the plugin bug tracker here:
    http://tracker.wp-eventscalendar.com/view.php?id=79

Topic Closed

This topic has been closed to new replies.

About this Topic