greatkanishka
Forum Replies Created
-
Thanks Nikola!
Was really out of touch. I am happy to hear it.Yup!!
Done it Bro!! Thanks a ton.
Now for others who are not familiar with UNIX commands and get confused like me.1. Add, this to your wp-config file
define('MSUM_MANAGED_BLOGS', '12');
// blog ID, fresh IDs in each line2. Search for the function function msum_get_blog_list in multisite-user-management/ms-user-management.php and replace replace the following line of code
$blogs = $wpdb->get_results( $wpdb->prepare( "SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND archived = '0' AND spam = '0' AND deleted = '0' ORDER BY registered DESC", $wpdb->siteid ), ARRAY_A );
with this one
if ( defined('MSUM_MANAGED_BLOGS') ) $blogs = $wpdb->get_results( $wpdb->prepare( "SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND archived = '0' AND spam = '0' AND deleted = '0' AND blog_id IN (". MSUM_MANAGED_BLOGS .") ORDER BY registered DESC", $wpdb->siteid ), ARRAY_A ); else $blogs = $wpdb->get_results( $wpdb->prepare( "SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND archived = '0' AND spam = '0' AND deleted = '0' ORDER BY registered DESC", $wpdb->siteid ), ARRAY_A );
Thanks for your quick reply !
I am above average familiar with WP and PHP .. ??
lol !! learn from you guys he he..
Well , I am using cpanel to edit the file ..and I belive , i can do it now.
I can see that function you listed above. What I am doing after you kind reply is.
1. Add those blog id’s to my config file.
2. Replace the function by the one you gave above.I was just confusing with the unix server commands. Thats close book for me.
Thanks Buddy !! Will update you if everything works fine.@dmytro
I am sorry , but the instructions are not clear to me.
I get this code below and replace the ID’s by my own say 12 in my case.
define(‘MSUM_MANAGED_BLOGS’, ‘1’); ,now, where do i put this define element.
Secondly, can you please let me know, how have you yourself called the patch file. ?
help please