WordPress.org

Ready to get started?Download WordPress

Forums

Ban User By IP
Plugin doesn't allow for user choice of table prefix (2 posts)

  1. nbquidditch
    Member
    Posted 2 years ago #

    Only part of the plugin caters for table prefixes other than wp_.

    Function bubi_check_banned_ip should contain code something like:

    $table_name = $wpdb->prefix . "bubi_table";
    $bubi_tables = $wpdb->get_results("SELECT * FROM $table_name .....

    otherwise it generates an error if the user has used a different prefix than wp_ in the table wp_bubi_table.

    (Note this is covered in other functions but not the above example.

    Regards

    Will

    http://wordpress.org/extend/plugins/ban-user-by-ip/

  2. danycode
    Member
    Plugin Contributor

    Posted 2 years ago #

    Thanks for the tip. i've just fixed the problem with version 1.03

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.