• Hello,

    I am having problems with the amazing listevent plugin(http://wordpress.org/extend/plugins/wplistcal/installation/)

    Everything except the image upload/media upload works.
    When i add an event and i want to try to upload an image the thickbox is not there, it sits for half at the bottom of the page. You can only see the right half of the popup box.

    I don’t have this issue with making a regular post. I the source i notice the plugin loads
    thickbox/thickbox.js?ver=3.1-20091124'>

    and the regular editor

    <script type='text/javascript' src='http://www.city2go.net/blog/wp-admin/load-scripts.php?c=1&load=hoverIntent,common,jquery-color,suggest,wp-ajax-response,wp-lists,jquery-ui-core,jquery-ui-sortable,postbox,post,thickbox,media-upload,word-count,jquery-ui-resizable,admin-comments,schedule,autosave&ver=xx'></script>

    I think this is the loading function of the plugin

    function wplc_editor_init() {
    		wp_admin_css('thickbox');
    		wp_print_scripts('editor');
    		add_thickbox();
    		wp_print_scripts('media-upload');
    		wp_print_scripts('jquery');
    		wp_print_scripts('jquery-ui-core');
    		wp_print_scripts('jquery-ui-tabs');
    		if(function_exists('wp_tiny_mce')) wp_tiny_mce();
    	}

    Any tips??

Viewing 3 replies - 1 through 3 (of 3 total)
  • I realize that this thread is 3 months old, but I was having the same trouble today and I think I have it figured out now. I wouldn’t have been able to do it if you hadn’t narrowed down the problem DDT.
    It looked like the thickbox css wasn’t being loaded on the wplistcal page (where you add or edit an event). So, I did some searching and added
    do_action('admin_print_styles');
    to the end of the wplc_editor_init() function, and it worked. The stylesheet was loaded from the “do action” function and then the thickbox worked perfectly.

    So my wplc_editor_init function now looks like this:

    function wplc_editor_init() {
    		wp_admin_css('thickbox');
    		wp_print_scripts('editor');
    		add_thickbox();
    		wp_print_scripts('media-upload');
    		wp_print_scripts('jquery');
    		wp_print_scripts('jquery-ui-core');
    		wp_print_scripts('jquery-ui-tabs');
    		if(function_exists('wp_tiny_mce')) wp_tiny_mce();
                    do_action('admin_print_styles');
    	}

    I’m not sure that this is the proper way to fix the problem, but it works! I also don’t know if this is an issue with the wplistcal plugin itself, or if there is a conflict with other plugins or something. I think I am going to try to contact the wplistcal author about it though.

    I had searched in vain for an answer to this issue. Maybe I just wasn’t Googling the right terms, but I wasted a couple of hours trying to figure this out. Just came back to work on it some more, saw this post & tried the edit suggested. Worked like a charm.

    Thank you : )

    So close. I added the code as indicated. Now the image browser opens but after I click “insert image” the box turns white and nothing. I’m going to try turning off plugins at some point when I have the time. Frustrating though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is add_thickbox() still valid???’ is closed to new replies.