Forum Replies Created

Viewing 15 Topics - 1 through 15 (of 21 total)
Author Posts
July 11, 2013 at 12:30 pm in reply to: Registration Form _wp_http_referer 5871
polykrom polykrom

Ok !

It works but not investigate more, just added

 if ( $form_id == '3648' ) {
        $url = get_author_posts_url( get_current_user_id() );
        $response['redirect_to'] = $url;
    }

in update_profile function

πŸ˜‰ so thanks Tareq !

July 11, 2013 at 12:16 pm in reply to: Registration Form _wp_http_referer 5870
polykrom polykrom

MMhhh…
Try your code ‘as is’ and doesn’t seem to work, maybe i miss something.

Have to investigate more, but that’s a good way to begin !

πŸ˜‰

July 11, 2013 at 11:19 am in reply to: Registration Form _wp_http_referer 5868
polykrom polykrom

Wooow thanks so Lot !

Again and again i didn’t imagine that kind of support from you !
I really appreciate it πŸ™‚

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 5:52 am in reply to: Registration Form _wp_http_referer 5860
polykrom polykrom This reply has been marked as private.
July 10, 2013 at 12:34 am in reply to: Registration Form _wp_http_referer 5817
polykrom polykrom

Well, i’ll be happy when i found the solution to the latest issue with JS … :-/

July 9, 2013 at 11:34 pm in reply to: Registration Form _wp_http_referer 5807
polykrom polykrom

Nothing new for the JS Script Issue …

I’ve finally successfully enqueued all the scripts neeeded by WPFU in order for do_shortcode to work …
Here it si the function to include in the main theme function :

add_action( ‘wp_enqueue_scripts’, ‘add_my_scripts’);


function add_my_scripts() {
if ( !is_admin() ) { 
    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-ui-datepicker'));
    wp_enqueue_script( 'jquery-ui-autocomplete' );
    wp_enqueue_script( 'jquery-ui-slider' );
    

    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','plupload-handlers' ));  
    wp_enqueue_script('upload-script',home_url().'/wp-content/plugins/wp-user-frontend-pro/js/upload.js?ver=3.5.2',array( 'jquery', 'plupload-handlers' ));

   

    wp_localize_script( 'front-end-script', 'wpuf_frontend', array(
        'ajaxurl' => admin_url( 'admin-ajax.php' ),
        'error_message' => __( 'Please fix the errors to proceed', 'wpuf' ),
        'nonce' => wp_create_nonce( 'wpuf_nonce' )
    ) );
  

    wp_localize_script( 'upload-script', 'wpuf_frontend_upload', array(
        'confirmMsg' => __( 'Are you sure?', 'wpuf' ),
        'nonce' => wp_create_nonce( 'wpuf_nonce' ),
        'ajaxurl' => admin_url( 'admin-ajax.php' ),
        'plupload' => array(
            'url' => admin_url( 'admin-ajax.php' ) . '?nonce=' . wp_create_nonce( 'wpuf_featured_img' ),
            'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
            'filters' => array(array('title' => __( 'Allowed Files' ), 'extensions' => '*')),
            'multipart' => true,
            'urlstream_upload' => true,
        )
    ) );

  }
}
July 9, 2013 at 10:29 pm in reply to: Registration Form _wp_http_referer 5801
polykrom polykrom

Nops Tareq… i’ve checked it and nothing special else the 0 displayed on the top.
Think it’s also parameter related but wich one ?

July 9, 2013 at 9:14 pm in reply to: Registration Form _wp_http_referer 5783
polykrom polykrom

Mmhh .. Yes.. it helps a little more !

maybe would it be better to support do_shortcode() or to implement a “select templates” or “select pages” as you told…

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 7:36 pm in reply to: Registration Form _wp_http_referer 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

July 9, 2013 at 1:08 pm in reply to: Registration Form _wp_http_referer 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:14 am in reply to: Registration Form _wp_http_referer 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 4:59 am in reply to: Registration Form _wp_http_referer 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 3:27 am in reply to: Registration Form _wp_http_referer 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 12:02 am in reply to: Registration Form _wp_http_referer 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 8, 2013 at 10:28 pm in reply to: Registration Form _wp_http_referer 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 …

??

Viewing 15 Topics - 1 through 15 (of 21 total)