Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rkwynn

    (@rkwynn)

    found answer NM thanks

    Thread Starter rkwynn

    (@rkwynn)

    I am currently using ‘WPFront User Role Editor’ but it does not let me define what plugins a user can or cannot use

    Thread Starter rkwynn

    (@rkwynn)

    Nevermind found this by murphy.wong

    you need to update the sml.php file as below:

    /*
    $exists = mysql_query(“SELECT * FROM “.$wpdb->prefix.”sml where sml_email like ‘”.$wpdb->escape($email).”‘ limit 1″);
    if (mysql_num_rows($exists)<1) {
    $wpdb->query(“insert into “.$wpdb->prefix.”sml (sml_name, sml_email) values (‘”.$wpdb->escape($name).”‘, ‘”.$wpdb->escape($email).”‘)”);
    }
    */
    $exists = $wpdb->get_row(“SELECT * FROM “.$wpdb->prefix.”sml where sml_email like ‘”.$wpdb->escape($email).”‘ limit 1″);
    if (!$exists) {
    $wpdb->query(“insert into “.$wpdb->prefix.”sml (sml_name, sml_email) values (‘”.$wpdb->escape($name).”‘, ‘”.$wpdb->escape($email).”‘)”);
    }

    located around line 278
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)