Forum Replies Created
-
AuthorPosts
-
carcangium
ParticipantWhat is it supposed to happen if is used an email already used by an admin?
Because we have tried registering a new user with same email of an existing admin user. The registration gets submitted successfully without returning any error. Then when we try logging in with the new user, it won’t work.
Regards
Marco
carcangium
ParticipantI have fixed it by modifying the code in “class.swpm-ajax.php”
You can see from the code below that I have commented out $table and $query and wrote my own so it’s now checking if the email and the user_name exists in wp_users instead:class SwpmAjax { public static function validate_email_ajax() { global $wpdb; $field_value = filter_input(INPUT_GET, 'fieldValue'); $field_id = filter_input(INPUT_GET, 'fieldId'); $member_id = filter_input(INPUT_GET, 'member_id'); if (!is_email($field_value)){ echo '[ "' . $field_id . '",false, "'.SwpmUtils::_('Invalid Email Address').'" ]' ; exit; } // $table = $wpdb->prefix . "swpm_members_tbl"; // $query = $wpdb->prepare("SELECT member_id FROM $table WHERE email = %s AND user_name != ''", $field_value); $table = $wpdb->prefix . "users"; $query = $wpdb->prepare("SELECT ID FROM $table WHERE email = %s AND user_login != ''", $field_value); $db_id = $wpdb->get_var($query) ; $exists = ($db_id > 0) && $db_id != $member_id; echo '[ "' . $field_id . (($exists) ? '",false, "χ '.SwpmUtils::_('Aready taken').'"]' : '",true, "√ Available"]'); exit; } public static function validate_user_name_ajax() { global $wpdb; $field_value = filter_input(INPUT_GET, 'fieldValue'); $field_id = filter_input(INPUT_GET, 'fieldId'); if (!SwpmMemberUtils::is_valid_user_name($field_value)){ echo '[ "' . $field_id . '",false,"χ '. SwpmUtils::_('Name contains invalid character'). '"]'; exit; } // $table = $wpdb->prefix . "swpm_members_tbl"; // $query = $wpdb->prepare("SELECT COUNT(*) FROM $table WHERE user_name = %s", $field_value); $table = $wpdb->prefix . "users"; $query = $wpdb->prepare("SELECT COUNT(*) FROM $table WHERE user_login = %s", $field_value); $exists = $wpdb->get_var($query) > 0; echo '[ "' . $field_id . (($exists) ? '",false,"χ '. SwpmUtils::_('Aready taken'). '"]' : '",true,"√ '.SwpmUtils::_('Available'). '"]'); exit; } }Many thanks
carcangium
ParticipantMy email is not being recognized!
carcangium
ParticipantThere was nothing wrong with the hook I was using but the issue was with the SESSION non being passed. I resolved the problem by using $_SERVER(‘HTTP_REFERER’) instead.
Thanks
carcangium
ParticipantYes I am.
carcangium
ParticipantBasically I would like to be able to update the profile as many time as I want when I am logged in. Although now if I upload the profile ones only the message “profile updated” shows and the forms dissapears.
Any suggestions?
Thanks
Marco
carcangium
Participantthis is what I have done but it is not redirecting.
add_action(‘swpm_front_end_profile_edited’,’do_front_end_profile_edited’);function do_front_end_profile_edited(){
$member_profile_url = get_permalink(124);
wp_redirect($member_profile_url);
exit;
}November 25, 2016 at 3:52 pm in reply to: Search functionality not working neither in front end or back end of website #9001carcangium
ParticipantHi,
It is very strange as I did not touch the code since more than a month and suddenly we had the error.
But I have managed to fix it by deleting the swpm-show-member-info and also had to delete another plugin that was causing issues.
Thanks for your help.
Marco
November 7, 2016 at 11:12 am in reply to: Customize admin notification of new member registration #8794carcangium
ParticipantHi,
Yes I have Form Builder add-on Version 4.2.6.
Thanks
November 4, 2016 at 9:38 am in reply to: Customize admin notification of new member registration #8778carcangium
ParticipantHi there,
I have put my custom reply in Admin Notification Email Body but I still receive the standard one saying: A new member has registered. The following email was sent to the member. ——-Member Email———-
What am I doing wrong?
Thanks in advance
carcangium
ParticipantWhat I mean is that I am still developing the site and testing all the functionalities. I have it in a localhost but not in a live server. If I make a transaction with Paypal would it be recorded in the database?
I hope I explained myself clearly this time.
Kind regards
Marco
carcangium
ParticipantWill the transaction stored in the database if I am using a localhost ?
carcangium
ParticipantHi,
I will test it first thing on Monday at work. For redirection I need the one after the existing user login not after new user registration. Your add-on is not working properly because It works only if I put a static url for each membership but what I need is to redirect the user to the page they were viewing and when I enable that feature still takes the static url in the membership level. I believe there is a hook for redirection after user login but I can’t find it anywhere.
Regards
Marco
carcangium
ParticipantI am trying to test the payment functionality using a sandbox account. the transaction successful but there is no record of it in the database.
Why is that? Does anyone have any idea how to test it?
Marco
carcangium
ParticipantI have done everything but it still does not work.
Is there a hook I can use? Just like the one I use for logout redirection “swpm_logout”.
Kind regards
MArco
-
AuthorPosts