leopardo956
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Plugins
In reply to: [BadgeOS] Problems with emails related to NominationsFixed #2 by changing line 712 in submission-actions.php (function badgeos_set_submission_status_nomination_denied) from
$email = $args[ 'user_data' ]->user_email;
to
$email = $args[ 'from_user_data' ]->user_email;
Now the nominator receives an email when a nomination is denied.
Forum: Networking WordPress
In reply to: How to create a list of all multi-sites or blogs within one siteGlad it helped. Thanks for building upon it.
Forum: Networking WordPress
In reply to: How to create a list of all multi-sites or blogs within one siteHere’s a function that works with version 3.1
function get_all_sites() { global $wpdb; // Query all blogs from multi-site install $blogs = $wpdb->get_results("SELECT blog_id,domain,path FROM wp_blogs where blog_id > 1 ORDER BY path"); // Start unordered list echo '<ul>'; // For each blog search for blog name in respective options table foreach( $blogs as $blog ) { // Query for name from options table $blogname = $wpdb->get_results("SELECT option_value FROM wp_".$blog->blog_id ."_options WHERE option_name='blogname' "); foreach( $blogname as $name ) { // Create bullet with name linked to blog home pag echo '<li>'; echo '<a href="https://'; echo $blog->domain; echo $blog -> path; echo '">'; echo $name->option_value; echo '</a></li>'; } } // End unordered list echo '</ul>'; }
You might need to change the https:// or the database name based on your settings.
Forum: Networking WordPress
In reply to: wp-activate.php does not work in multi-user siteYou are awesome! Thanks for the help!
Forum: Networking WordPress
In reply to: wp-activate.php does not work in multi-user siteI’m having the same exact problem. I’m running version 3.1. I’m trying to create a rewrite rule on the server for this problem. Anyone know of tutorials for IIS rewrites?
Viewing 5 replies - 1 through 5 (of 5 total)