ralphonz
Forum Replies Created
-
Forum: Plugins
In reply to: Uploading Images in Widget FormHi,
I’m working on a widget plugin and want to have an upload form in the widget to add images for the slide show.
using this:
//functions to laod the scripts and styles for the admin
function adminScripts() {
wp_enqueue_script(‘media-upload’);
wp_enqueue_script(‘thickbox’);
wp_register_script(‘my-upload’, WP_PLUGIN_URL.’/’.str_replace(basename( __FILE__),””,plugin_basename(__FILE__)) .’/js/my-upload.js’, array(‘jquery’,’media-upload’,’thickbox’));
wp_enqueue_script(‘my-upload’);
}
function adminStyles() {
wp_enqueue_style(‘thickbox’);
}
//add the admin scripts
add_action(‘admin_print_scripts’, ‘adminScripts’);
add_action(‘admin_print_styles’, ‘adminStyles’);but the only script that seems to get loaded is my-upload. Any idea why? I also have the error “ReferenceError: Can’t find variable: jQuery” for load-scripts.php which is odd because jquery is loaded?
It seems thickbox and media-upload aren’t loaded on the widgets page so how do I do it?
Forum: Fixing WordPress
In reply to: Quick Tabs – embed tabs inside page/post content just in few clicksThanks for a great plugin Shahnur!
There’s a few things not working properly in the admin section –
- The tab groups created in the backend don’t have names, every group created is just called “0” no matter what I type in when adding a group?
- The WYSIWYG editor in the create a tab page is different from the one everywhere else in my wordpress backend. I use the TinyMCE Advanced plugin. The add tabs button works great in the edit page and edit post screens though ??
- The manage tabs screen should show what groups a tab belongs to. Sometimes I need to make two different tabs with the same name/title but belonging to different groups.
The plugin is ok as it is for me or another developer but would be very confusing for my clients to use because of these issues.
Sorry to be picky and thanks for all the work so far! I hope we can expect these things in a future release.
Forum: Plugins
In reply to: [Plugin: CMS Dashboard] Conflict with WP-cufonI too get this error, any solution anyone??