This topic contains 29 reply and 3 voices, and was last updated by Tareq Hasan 6 years, 4 months ago
Viewing 15 Posts - 1 through 15 (of 29 total)
Author Posts
July 8, 2013 at 5:38 pm 5685
Tareq Hasan Hi, I've noticed a weird thing with WPUFP, I've created a registration form and checked the "similar page" in the form parameters, but when i register with this form, i'm not forwarded to the referer page . I've checked the code and saw the _wp_http_referer hidden field in form but it seems not to be well interpreted by WPUFP .. So ? Could check the code, but it would be interested for others thanks Francois
July 8, 2013 at 5:53 pm 5686
Mahi Mahi

Hello Francois,

can you please explain what did you mean by – “checked the “similar page” in the form parameters” ?

i just check and everything seems to be working without any issue.

From form’s settings option Redirect To which option did you choose ?

July 8, 2013 at 6:05 pm 5687
polykrom polykrom

Well,

When i go to my new WPUF Registration Form, in the parameters, i ‘ve 3 choices : same page, other page or custom url .. and when i take the same page option and register with my new form, i’m not forwarded to the original page :-/

thanks Mahi !

July 8, 2013 at 6:11 pm 5688
Mahi Mahi

It does ! It redirect you to same page with a successful message which you can set from form’s settings option !

and, if you again refresh the page it should show the registration form again !

July 8, 2013 at 6:16 pm 5689
polykrom polykrom

Nops Mahi, in my case it doesn’t :

My registration page URL is : */kifffeur/admin
The Form Hidden _wp_http_referer is : */kifffeur/admin

so ok … but when i submit the form, i’m forwarded to other weird page related to a post ? :-/

July 8, 2013 at 10:28 pm 5696
polykrom polykrom

MMmhhhh… I found a misconfiguration in my theme, but now i have the following page with no others infos :
ajax?msg=profile_update

that displays 0 …

??

July 9, 2013 at 12:02 am 5703
polykrom polykrom

Seems to be a jQuery version related issue.. but don’t see where it’s from…
Maybe an enqueue problem…
Wich version of jQuey is required by WPUF ?
i’ve tried different versions of jQuery without success

thanks !

July 9, 2013 at 2:54 am 5711
Tareq Hasan Tareq Hasan

Hey Francois, WPUF uses the same jQuery that comes with WordPress. Check if your theme or other plugin is enqueueing any lower or different version of jQuery.

You shouldn’t be worried on _wp_http_referer, it’s a security measure used to prevent CSRF attack using Nonces

July 9, 2013 at 3:27 am 5717
polykrom polykrom

Hi Tareq !

Thanks for your answer, but i’m not able to fix my issue…
My theme doesn’t include any of WPUF required javascript files …
I’ve tried to include it from my theme function, but i get lot of javascript issues.
So ? Don’t know why the enqueued WPUF files are disabled :-/

If you have any idea 😉

July 9, 2013 at 4:50 am 5720
Tareq Hasan Tareq Hasan

Check if your theme has <?php wp_head(); ?> in the header and <?php wp_footer(); ?> in the footer.

July 9, 2013 at 4:59 am 5721
polykrom polykrom

It’s the first thing i’ve done Tareq … All my Theme’s scripts are loaded correctly… The WPUF forms are correctly displayed … but nothing related to javascript…
Have uninstall and install WPFU several times, checked my code, debug with FF and WP debug mode… nothing.. :-/

July 9, 2013 at 7:14 am 5734
polykrom polykrom

mmmhh…

Still searching for solution…
Would it be do_shortcode related ? I need to include my Registration form from php and i see only that solution…

I think it could be the origin because shortcode is fired after header…

WHat do you think about it ?

July 9, 2013 at 8:04 am 5735
Mahi Mahi

What theme you are using ? what happens when you use a default theme ? Is site online ? Can i check it out ? you may reply privately.

July 9, 2013 at 11:53 am 5743
Tareq Hasan Tareq Hasan

The current version of the plugin loads only the scripts if the page has only the plugin shortcodes. So that might be the problem for you if you are using do_shortcode() manually.

July 9, 2013 at 1:08 pm 5745
polykrom polykrom

Yes Tareq… i think it’s the case… Will try to enqueue the required WPUF JS files in my own theme function, maybe it’ll work.
I don’t have yet a live version to show you the resulat, will keep you in touch with it.

Currently looking to implement my own custom OSM field 😉

cheers

July 9, 2013 at 7:36 pm 5763
polykrom polykrom

Back,

Well after a little coding, i’ve successfully added what is need by the do_shortcode() in my theme function :

`wp_enqueue_script(‘pupload-script’,home_url().’/wp-includes/js/plupload/plupload.js?ver=1.5.5′,array( ‘jquery’ ));
wp_enqueue_script(‘puploadhtml5-script’,home_url().’/wp-includes/js/plupload/plupload.html5.js?ver=1.5.5?ver=1.5.5′,array( ‘jquery’ ));
wp_enqueue_script(‘puploadflash-script’,home_url().’/wp-includes/js/plupload/plupload.flash.js?ver=1.5.5?ver=1.5.5′,array( ‘jquery’ ));
wp_enqueue_script(‘puploadsilver-script’,home_url().’/wp-includes/js/plupload/plupload.silverlight.js?ver=1.5.5?ver=1.5.5′,array( ‘jquery’ ));
wp_enqueue_script(‘puploadhtml4-script’,home_url().’/wp-includes/js/plupload/plupload.html4.js?ver=1.5.5?ver=1.5.5′,array( ‘jquery’ ));
wp_enqueue_script(‘handlers-script’,home_url().’/wp-includes/js/plupload/handlers.min.js?ver=1.5.5?ver=3.5.2′,array( ‘jquery’ ));
wp_enqueue_script(‘upload-script’,home_url().’/wp-content/plugins/wp-user-frontend-pro/js/upload.js?ver=3.5.2′,array( ‘jquery’ ));
wp_enqueue_script(‘jqueryui-script’,home_url().’/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.9.2′,array( ‘jquery’ ));
wp_enqueue_script(‘jqueryuidate-script’,home_url().’/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.9.2′,array( ‘jquery’ ));
wp_enqueue_script(‘jqueryuidateadd-script’,home_url().’/wp-content/plugins/wp-user-frontend-pro/js/jquery-ui-timepicker-addon.js?ver=3.5.2′,array( ‘jquery’ ));
wp_enqueue_script(‘front-end-script’,home_url().’/wp-content/plugins/wp-user-frontend-pro/js/frontend-form.js?ver=3.5.2′,array( ‘jquery’ ));`

I needed too to add the hardcoded WPUF JS code in page template :

<script type=&#039;text/javascript&#039;>
/* <![CDATA[ */
var pluploadL10n = {"queue_limit_exceeded":"Vous essayez d\u2019envoyer trop de fichiers \u00e0 la fois.","file_exceeds_size_limit":"%s d\u00e9passe la limite d\u2019envoi de ce site.","zero_byte_file":"Le fichier est vide. Merci d\u2019en essayer un autre.","invalid_filetype":"Ce type de fichier n\u2019est pas autoris\u00e9. Merci d\u2019en essayer un autre.","not_an_image":"Ce fichier n\u2019est pas une image. Merci d\u2019en envoyer un autre.","image_memory_exceeded":"M\u00e9moire d\u00e9pass\u00e9e. Veuillez r\u00e9essayer avec un fichier plus petit.","image_dimensions_exceeded":"Ce fichier est plus grand que la taille maximale. Merci d\u2019en envoyer un autre.","default_error":"Une erreur est survenue lors de l\u2019envoi. Veuillez r\u00e9essayer plus tard.","missing_upload_url":"Il y a une erreur de configuration. Veuillez contacter l\u2019administrateur de votre serveur.","upload_limit_exceeded":"Vous pouvez seulement envoyer 1 fichier.","http_error":"Erreur HTTP.","upload_failed":"L\u2019envoi a \u00e9chou\u00e9.","big_upload_failed":"Veuillez essayer de mettre ce fichier en ligne \u00e0 l\u2019aide de l\u2019%1$soutil du navigateur%2$s.","big_upload_queued":"%s d\u00e9passe la limite d\u2019envoi pour l\u2019outil de mise ne ligne multiple utilis\u00e9 avec votre navigateur.","io_error":"Erreur I\/O (Entr\u00e9es-Sorties).","security_error":"Erreur de s\u00e9curit\u00e9.","file_cancelled":"Fichier annul\u00e9.","upload_stopped":"L\u2019envoi est stopp\u00e9.","dismiss":"Fermer","crunching":"En cours de traitement\u2026","deleted":"d\u00e9plac\u00e9 dans la Corbeille.","error_uploading":"\u00ab %s \u00bb n\u2019a pas pu \u00eatre mis en ligne."};
/* ]]> */
</script>
<script type=&#039;text/javascript&#039;>
/* <![CDATA[ */
var wpuf_frontend_upload = {"confirmMsg":"Are you sure?","nonce":"16f3c8d2e1","ajaxurl":"http:\/\/lab.zenoob.com\/kifffle\/wp-admin\/admin-ajax.php","plupload":{"url":"http:\/\/lab.zenoob.com\/kifffle\/wp-admin\/admin-ajax.php?nonce=44cdfa6206","flash_swf_url":"http:\/\/lab.zenoob.com\/kifffle\/wp-includes\/js\/plupload\/plupload.flash.swf","filters":[{"title":"Fichiers autoris\u00e9s","extensions":"*"}],"multipart":true,"urlstream_upload":true}};
/* ]]> */
</script>
<script type=&#039;text/javascript&#039;>
/* <![CDATA[ */
var wpuf_frontend = {"ajaxurl":"http:\/\/lab.zenoob.com\/kifffle\/wp-admin\/admin-ajax.php","error_message":"Please fix the errors to proceed","nonce":"16f3c8d2e1"};
/* ]]> */
</script>

But seems this last part to make some weird things with form submission, sometimes it works, sometimes not .. i think it’s because the hard coded part is dynamic.

What do i have to change in this part in order for everything to work ?

Thanks

François

Viewing 15 Posts - 1 through 15 (of 29 total)