Author | Posts |
---|---|
July 9, 2013 at 8:43 pm 5774 | |
You could add all the plupload library with a single line: You don’t need to hardcode them. As you need the scripts in all pages, may be remove the logic from the plugin by editing if ( wpuf_has_shortcode( 'wpuf_form' ) || wpuf_has_shortcode( 'wpuf_edit' ) || wpuf_has_shortcode( 'wpuf_profile' ) ) { I think it’ll be a good idea to give an option to enable/disable the script loading on every page or specific pages, hmm. | |
July 9, 2013 at 9:14 pm 5783 | |
Mmhh .. Yes.. it helps a little more ! maybe would it be better to support So, now everything seems ok apart one form (a registration form that only upload one image without others fields) .. The upload works well but redirects to /wp-admin/admin-ajax.php?msg=profile_update and display 0 … Is it ajax related or something like that ? | |
July 9, 2013 at 10:06 pm 5798 | |
I suspect it’s not getting some JS variables and can’t make the request properly. The url misses an | |
July 9, 2013 at 10:29 pm 5801 | |
Nops Tareq… i’ve checked it and nothing special else the 0 displayed on the top. | |
July 9, 2013 at 11:34 pm 5807 | |
Nothing new for the JS Script Issue … I’ve finally successfully enqueued all the scripts neeeded by WPFU in order for add_action( ‘wp_enqueue_scripts’, ‘add_my_scripts’);
| |
July 10, 2013 at 12:01 am 5813 | |
Nice to know you made it. You could just edit the plugin and remove the | |
July 10, 2013 at 12:34 am 5817 | |
Well, i’ll be happy when i found the solution to the latest issue with JS … :-/ | |
July 11, 2013 at 5:38 am 5858 | |
If your site is in a live site, I could see by myself? | |
July 11, 2013 at 5:52 am 5860 | |
This reply has been marked as private. | |
July 11, 2013 at 6:20 am 5861 | |
The problem is, you are using the form in the authors profile page. To redirect to the same page, WPUF tries get the current page ID, in your case it’s not a page. Thats why it gets 0 as page ID and can’t generate an URL to be redirected. So here is the solution, I think you’ll understand whats going on: if ( $form_id == ‘3648’ ) { return $response; add_filter( ‘wpuf_update_profile_resp’, ‘wpufe_profile_redirect’ ); | |
July 11, 2013 at 11:19 am 5868 | |
Wooow thanks so Lot ! Again and again i didn’t imagine that kind of support from you ! I think also that it would be usefull for WTUF to have the option to be implemented everywhere we need in a WP theme … so, i launch the idea 😉 Keep the good work guys ! cheers ! | |
July 11, 2013 at 12:16 pm 5870 | |
MMhhh… Have to investigate more, but that’s a good way to begin ! 😉 | |
July 11, 2013 at 12:30 pm 5871 | |
Ok ! It works but not investigate more, just added
in 😉 so thanks Tareq ! | |
July 11, 2013 at 1:29 pm 5872 | |
Oh, I missed the parameter number in the |