Home › Forums › Plugin Support › How to add an image upload for user profile pic on registration
Tagged: profile picture, upload
- This topic has 4 replies, 2 voices, and was last updated 11 years, 11 months ago by 
Support. 
- 
		AuthorPosts
 - 
		
			
				
November 25, 2013 at 5:14 pm #4489November 26, 2013 at 5:19 am #4494
Support
MemberHello, Are you running latest version of WP? Somehow UMP scripts are fails to load in your site. Please put following code to your functions.php (in current theme directory)
add_action( 'wp_enqueue_scripts', 'add_user_meta_scripts' ); function add_user_meta_scripts(){ global $userMeta; $userMeta->enqueueScripts( array( 'plugin-framework', 'user-meta', 'jquery-ui-all', 'fileuploader', 'wysiwyg', 'jquery-ui-datepicker', 'jquery-ui-slider', 'timepicker', 'validationEngine', 'password_strength', ) ); $userMeta->runLocalization(); }Thanks.
November 27, 2013 at 4:00 am #4495mchl9871
MemberHi
That hasn’t fixed it for me.
I am running WordPress 3.7.1, I have deactivated all other plugins. The plugin works when I use the 2013 theme, so it is likely an issue with my theme rather than with your plugin.
I have tried removing all other functions (except the one you suggest above) from my functions.php. I have also tried removing all other js. I still can’t get it to output the ‘qq-upload-button’ div in the html.
I have also tried renaming the function (and the callback in the add_action) to make sure it was unique. There is nothing in my theme’s css that targets any element with the same class or id as the upload buttons.
Are there minimum requirements for a theme? Or something in the settings that would stop it outputing the Upload button. I feel like I might have missed something.
Any help would be appreciated and thanks in advance.
Cheers
MichaelNovember 29, 2013 at 12:09 pm #4498mchl9871
MemberHi
Sorry to be a pain, but it has been a day or two, do you have a suggested solution?
Cheers
MichaelNovember 29, 2013 at 9:53 pm #4499Support
MemberHello, Your theme maybe prevent some action hooks to run. none of UMP related js or css files are appeared to added in your site. You can manually add them. http://codex.wordpress.org/Plugin_API/Action_Reference/wp_enqueue_scripts
Or you can send an email to “Contact Us” section with temp admin account if you want us to do it. Thanks.
 - 
		AuthorPosts
 
- You must be logged in to reply to this topic.
 
