je reponds à ceux qui utiliseraient ce plugin qui ne marche pas en l’etat.
A l’activation du plugin, dans l’interface pour insérer ses crédentials marketo, il faut bien appuyer sur “generate fiels” pour voir apparaitre les champs dans l’edition du formulaire
-pour les redirections:
fichier class-msync-public.php ->ligne 188-204 du code est commenté, on peut le décommenter pour les redirections ou laisser commenté et mettre ici son url à la place de l’url de google:
class-msync-public.php ->ligne 213-231 pour les messages d’erreurs
echo json_encode(array(‘result’ => ‘success’, ‘redirect’ => ‘https://….’));
-dossier public/partials /form -> pour toucher au formulaire
-enfin le plugin ne marche que pour l’admin,pour qu’il marche également pour l’utilisateur non-connecté, il faut rajouter les hooks “no_priv” pour l’appel à l’admin ajax : ajouter à la ligne 181
$this->loader->add_action(‘wp_ajax_nopriv_marketo_form_builder’, $this->plugin_admin, ‘generate_field_settings’);
$this->loader->add_action(‘wp_ajax_nopriv_msync_create_field’, $this->plugin_admin, ‘create_field’);
et à la ligne 205
$this->loader->add_action(‘wp_ajax_nopriv_submit_msync_form’, $plugin_public, ‘ajax_submit_form’);
avec ca en principe ca fonctionnera, si jamais ca peut aider qqn!!
english
**———————-**
i answer to those who would use this plugin: it doesn’t work by default.
To activate the plugin, in the admin page to inser your marketo credentials, we must press “generate fiefs” to see the fields in the form edition page.
then :
file class-msync-public.php -> 188-204 some lines are commented, you can comment out, or leave commented here and put your own URL instead of the google url:
class-msync-public.php -> 213-231 online for error messages
echo json_encode (array ( ‘result’ => ‘success’, ‘redirect’ => ‘http: // ….’));
public / partials / form -> to change the form
finally the plugin only works for the admin, to make it work for the logged-out user, you must add the hooks “no_priv” to the call to ajax admin: add at line 181
$ This-> loader-> add_action ( ‘wp_ajax_nopriv_marketo_form_builder’, $ this-> plugin_admin ‘generate_field_settings’);
$ This-> loader-> add_action ( ‘wp_ajax_nopriv_msync_create_field’, $ this-> plugin_admin ‘create_field’);
and on line 205
$ This-> loader-> add_action ( ‘wp_ajax_nopriv_submit_msync_form’ $ plugin_public ‘ajax_submit_form’);
normally with this is should work, if ever it can help somebody !!
]]>hello, i’m using your plugin, and i have some questions
i’m using a popup plugin, in witch the plugin msync seems to work
i ‘m using the msync widget in a page, and here it does’nt work at all
then with the working pop up, there is no thanks message, even if i build a special page and apply a redirection after form submission, it comes back to the home page wicth is totaly broken..(only top of the page appears).
do you know if you’re willing to improve the plugin or test it to know if it works??as it is the only one working with marketo it’s a pity it doesn’t work well..
I installed the plugin, provided all my credentials, synced the fields, and when I go to create a form, there is nothing listed in the template form fields meta box so I’m unable to create a form.
]]>