How do you disable account activation in WPMU and then log the user in right away?

In a WPMU setup the account information is sent to the wp_signup table before being passed to the wp_users table. an easy fix for this is: function your_disable_activation( $user, $user_email, $key, $meta=”” ) { // Activate the user $user_id = wpmu_activate_signup( $key ); wp_set_auth_cookie( $user_id, true, is_ssl() ); wp_redirect( /*redirect to */ site_url() ); exit; … Read more

How to allow logged in users to post anonymously

In order to do what you are asking, there first needs to exist an anonymous user. Assuming this user exists, there are just a few steps: 1) modify the comment form to include the anonymous check box. 2) detect whether the box is checked. 3) if the box is checked, use the comment_save_pre filter to … Read more

User’s total comment count excluding comments on their own posts

I’m not aware of any WordPress functions that do this, so you can try to play with this kind of query (untested): function get_custom_user_comments_count( $uid ){ global $wpdb; $sql = “SELECT COUNT(*) as total  FROM {$wpdb->comments} as c   JOIN {$wpdb->posts} as p ON p.ID = c.comment_post_ID  WHERE c.comment_approved = ‘1’  AND p.post_status=”publish”   AND … Read more

Split Blog Into Two Sections?

My first thought was to create 2 main categories. Exclude one from the wordpress loop on index.php and then only show that category on a different page. The only problem with this method is that the users would have to make sure they are posting in the correct category. However if you used a plugin … Read more