cobrabb
Forum Replies Created
-
I dont need support!
I saw Your support to members…Did you solved? I can send older version to you!
Forum: Reviews
In reply to: [BuddyPress Featured Member] Good but has a bug with 3.6Forum: Plugins
In reply to: [Redirection] Missing argument 2 for wpdb::prepare()Store your original file!
Replace this code:
//check if the user is blog admin
function is_user_blog_admin($user_id,$blog_id){
global $wpdb;$meta_key=$wpdb->prefix.$blog_id.’_capabilities’;//..”_user_level”;
$role_sql=”SELECT user_id,meta_value FROM {$wpdb->usermeta} WHERE meta_key='”. $meta_key.”‘”;$role=$wpdb->get_results($wpdb->prepare($role_sql),ARRAY_A);
//clean the rolewith:
//check if the user is blog admin
function is_user_blog_admin( $user_id, $blog_id ) {
global $wpdb;$query = $wpdb->prepare( “SELECT user_id, meta_value FROM $wpdb->usermeta WHERE meta_key = %s”,
$wpdb->base_prefix . $blog_id . ‘_capabilities’
);$role = $wpdb->get_results( $query, ARRAY_A );
// clean the role
Forum: Plugins
In reply to: [Redirection] Missing argument 2 for wpdb::prepare()In your plugin directory find the file /limit-bogs-per-user.php, past code here.
From
//check if the user is blog admin” around line 105to
//clean the role
Forum: Plugins
In reply to: [Redirection] Missing argument 2 for wpdb::prepare()WordPress theme and Wp version?
Forum: Reviews
In reply to: [BuddyPress Featured Member] Good but has a bug with 3.6wp-includes/wp-db.php in line 992:
Replace this:
function prepare( $query, $args ) {
if ( is_null( $query ) )
return;With:
function prepare( $query, $args = null ) {
if ( is_null( $query ) )
return;It will fix wordpress 3.6 ??
Forum: Plugins
In reply to: [Redirection] Missing argument 2 for wpdb::prepare()wp-includes/wp-db.php in line 992:
Replace this:
function prepare( $query, $args ) {
if ( is_null( $query ) )
return;With:
function prepare( $query, $args = null ) {
if ( is_null( $query ) )
return;It will fix wordpress 3.6 ??