Forum Replies Created
-
Solved by Dovydas with a new script.min.js file. Now it works perfectly! Thanks
I have the same issue when a try to reset all settings from Userpro fields tab.
I tried to reset the Userpro because in my case I cannot be able to let conditional fields to work.
Already tried to increase memory up to 512M,to change Php settings, regenerate htaccess, using the standard theme, disabling all other plug-ins.
No way to solve.
Of course I am using last Userpro release and last WordPress release too.
in reply to: HTTP ERROR 500Hello Corre,
I tried to add this code to my function.php theme’s file, but nothing happens…the file is not created… Any ideas, please? THANKS
global $userpro;
function after_registration_process($user_id) {
// get user info
$user_info = get_userdata($user_id);
$username = $user_info->user_login;
$display_name = $user_info->display_name;$myfile = fopen(“newfile.txt”, “w”) or die(“Unable to open file!”);
fwrite($myfile, $display_name);
fclose($myfile);}
add_action(‘userpro_after_new_registration’, ‘after_registration_process’);in reply to: hook to api connectHello, I am trying to use Hooks but I don’t understand how to do it.
Where should I place them, please?
Can you provide me a very basic working example, step-by-step, please?
Thanks for help!
Hello I am desperately trying to use Hooks, but I don’t understand how to do it.
I am trying to add hooks to “function.php” in my theme, but I don’t know the correct syntax.
Can you give me a very simple working example of this hook, please:
do_action(‘userpro_after_new_registration’, $user_id);
Sorry for my stupid question, but I am going mad.
Thanks
in reply to: hook to api connectHello,
can you expand more this, please?
Can you provide an example of how to validate pre form update, please? (just a working example, as you like)
Thanks
If you want to validate pre form update if user somehow passed validation in JS.
Hook to add_action(‘userpro_pre_profile_update’, ‘my_custom_hook’, 9999, 2);
Now you can do a my custom hook function to check $form[‘customfield’] etc… and compare the value etc then you’re allowed to update the profile according to wrong/valid number
These are two possible ways. You can also run the check/hook after profile update. These hooks can be found in user-functions.php file.
in reply to: Assistance needed for IBAN validationCan you reply my previous request, please?
It is odd, because for every type of fields that you can create you can see “Ajax Check Callback (Advanced)” textbox.
Why it is shown for all fields, if you can use it only for text inputs, please?
If meanwhile I would like to try to code Ajax Check Callbacks for Dropdown fields by myself, which files should I edit to add this feature, please?
in reply to: Dropdown ajax validationHello, is it possible to receive some guess or tips, some reply to my questions please?
in reply to: Dropdown ajax validationHello Gaz,
did you had time to write a guide about UserPro and S2member integration, please?
Thanks
in reply to: userpro conflicts with s2membersIt is odd, because for every type of fields that you can create you can see “Ajax Check Callback (Advanced)” textbox.
Why it is shown for all fields, if you can use it only for text inputs, please?
If meanwhile I would like to try to code Ajax Check Callbacks for Dropdown fields by myself, which files should I edit to add this feature, please?
Thanks
in reply to: Dropdown ajax validationAny news about this topic, please?
How did you solved, please?
Thanks
in reply to: Noindex and nofollow all users