Posted: August 22, 2012 at 5:44 pm
|
I am attempting to integrate the this plugin and add-ons into an existing wordpress installation. The trouble seems to be with the “insert image” functions in all areas of the plugin itself. I can open the box and select an image, but upon clicking the “insert into” it just goes blank and nothing happens. I have traced this down to being a conflict with the theme itself which is: Era – Visual Performance. I can gain the ability to upload an image by temporarily switching themes, but that’s not exactly a viable option. My question is, has anyone else ever experienced this? Any ideas of where to start looking in the theme or possible mods to the plugin would be much appreciated. Everything else works geat, and I’d hate to see it all come down to something like this 😉 Thanks in advance
|
Hi Yuri, I can recommend running the theme-check plugin, it will probably point you to where the theme isn’t using WordPress coding standards: http://wordpress.org/extend/plugins/theme-check/ It sounds like it might be running some of its JavaScript in the Event Espresso admin pages, so if you’re viewing the event editor in the admin, try checking the page in Firebug/web inspector for scripts loading from the theme. Then you can re-factor the theme so these do not load on any of the admin pages (except for the theme’s options pages if they’re required there of course.) |
|
|
Thanks for the reply, but still no resolution yet. I’ve been through the admin with firebug a few times now and disabled every external script called by the theme leaving just the basic WP essentials, but still no joy. That insert image box just hangs there and doesn’t do anything. ThemeChecker revealed a number of things that the original developer left behind, but nothing that looked like it would interfere with the plugin function. It’s really starting to feel like a square peg in a round hole, and I’m not sure where to turn next. I hate the thought of abandoning the project as I already have quite a bit of time invested and still unable to get it running properly with this theme. Any other ideas or assistance would be greatly appreciated. Thanks |
What happens if you remove/comment out all javascript in the theme? More than likely the theme author is using a version of jQuery that is not being run in noConflict mode and, hence, causing conflicts with other jQuery that is being run according to WP standards. http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers |
|
|
Thanks for those tips!! I’m getting closer!! The offending JS file in this theme is meta-box.js JS Code:
The file calling it is metabox-class.php with this:
I can make the plugin function properly when I comment it out. Is there a better option to make it compatible? Thank goodness a light at the end of the tunnel maybe. |
I’m looking at this and wondering if this could be the problem since it’s also using Thickbox:
You may be able to just remove that function (maybe) but you’ll probably break whatever theme functionality that’s trying to add. |
|
|
OK, narrowing in further. It wasn’t the Thickbox function in the script. Looks like this function is the one causing the problem: JS Code:
Any ideas?? I have yet to figure out this functions purpose. Commenting only this out seems to work, but I’m not sure where else it might be needed. Might just have to run with it and see what happens. |
I’d just run with it and see what happens. It will either come up eventually and you’ll say “oh that’s what that did” and then can deal with it then, or you won’t, and won’t even notice it’s gone. All this stuff has to do with adding screenshots to things (posts, I’m assuming) which may or may not be something you’re even using. |
|
The support post ‘Insert Image not working’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.