Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact
You are here: Home

carcangium

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 21 total)
1 2 →
  • Author
    Posts
  • February 27, 2017 at 8:46 am in reply to: Registration #10296
    carcangium
    Participant

    What 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

    February 23, 2017 at 10:57 am in reply to: Registration #10268
    carcangium
    Participant

    I 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

    February 23, 2017 at 9:21 am in reply to: Registration #10266
    carcangium
    Participant

    My email is not being recognized!

    February 21, 2017 at 1:02 pm in reply to: Custom redirect after login #10231
    carcangium
    Participant

    There 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

    January 14, 2017 at 11:05 pm in reply to: Redirect after uploadinf user profile #9656
    carcangium
    Participant

    Yes I am.

    January 13, 2017 at 12:48 pm in reply to: Redirect after uploadinf user profile #9629
    carcangium
    Participant

    Basically 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

    January 13, 2017 at 12:38 pm in reply to: Redirect after uploadinf user profile #9628
    carcangium
    Participant

    this 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 #9001
    carcangium
    Participant

    Hi,

    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 #8794
    carcangium
    Participant

    Hi,

    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 #8778
    carcangium
    Participant

    Hi 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

    July 15, 2016 at 2:10 pm in reply to: Paying buttons #7468
    carcangium
    Participant

    What 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

    July 14, 2016 at 11:19 am in reply to: Paying buttons #7454
    carcangium
    Participant

    Will the transaction stored in the database if I am using a localhost ?

    July 9, 2016 at 12:09 pm in reply to: Paying buttons #7417
    carcangium
    Participant

    Hi,

    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

    July 8, 2016 at 4:04 pm in reply to: Paying buttons #7410
    carcangium
    Participant

    I 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

    July 8, 2016 at 1:46 pm in reply to: Login redirect add on #7409
    carcangium
    Participant

    I 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

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 21 total)
1 2 →
Next Page »

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy