Edit Profile Issue
-
Hello,
First, thanks for a great plugin. It works wonders.I’m running into a few issues on the edit profile page, perhaps someone can help.
First:
I have a tabbed widget in my sidebar — On the edit page they are no longer tabbed it displays all the content (that should be tabbed) on one long list.Second:
I’ve spent some time looking for a way to edit the user avatar on the front end.
WP User Avatar – Works great for me as it has everything that i need.When combined with WPUF there’s a problem — i cant seem to get the edit image link to work. When pressed the button does nothing.
Semi-Solution:
All issues on the edit profile page are fixed when i remove the following script from your plugin:** * Enqueues Styles and Scripts when the shortcodes are used only * * @uses has_shortcode() * @since 0.2 */ function enqueue_scripts() { $path = plugins_url('', __FILE__ ); //for multisite upload limit filter if ( is_multisite() ) { require_once ABSPATH . '/wp-admin/includes/ms.php'; } require_once ABSPATH . '/wp-admin/includes/template.php'; wp_enqueue_style( 'wpuf', $path . '/css/wpuf.css' ); if ( wpuf_has_shortcode( 'wpuf_addpost' ) || wpuf_has_shortcode( 'wpuf_edit' ) ) { wp_enqueue_script( 'plupload-handlers' ); } wp_enqueue_script( 'wpuf', $path . '/js/wpuf.js', array('jquery') ); $posting_msg = wpuf_get_option( 'updating_label', 'wpuf_labels' ); $feat_img_enabled = ( wpuf_get_option( 'enable_featured_image', 'wpuf_frontend_posting' ) == 'yes') ? true : false; wp_localize_script( 'wpuf', 'wpuf', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'postingMsg' => $posting_msg, 'confirmMsg' => __( 'Are you sure?', 'wpuf' ), 'nonce' => wp_create_nonce( 'wpuf_nonce' ), 'featEnabled' => $feat_img_enabled, 'plupload' => array( 'runtimes' => 'html5,silverlight,flash,html4', 'browse_button' => 'wpuf-ft-upload-pickfiles', 'container' => 'wpuf-ft-upload-container', 'file_data_name' => 'wpuf_featured_img', 'max_file_size' => wp_max_upload_size() . 'b', 'url' => admin_url( 'admin-ajax.php' ) . '?action=wpuf_featured_img&nonce=' . wp_create_nonce( 'wpuf_featured_img' ), 'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ), 'silverlight_xap_url' => includes_url( 'js/plupload/plupload.silverlight.xap' ), 'filters' => array(array('title' => __( 'Allowed Files' ), 'extensions' => '*')), 'multipart' => true, 'urlstream_upload' => true, ) ) ); }
The issue with removing this script is that it breaks the “upload featured image” option on the the add post page.
I see that it calls for this script if the page contains a shortcode that contains “wpuf_edit”. (the page shortcode is wpuf_editprofile)
I figure that maybe if i changed the shortcode for the edit profile page to something that doesnt contain “wpuf_edit” that might solve my problem. I changed it to “wpuf_updateprofile” and nothing… same problem.
I’m all out of ideas at this point, please help.
website: clutchpop.com
- The topic ‘Edit Profile Issue’ is closed to new replies.