Migrating WordPress users into Disqus

Update If you’re running a big site, you may be able to take advantage of the Disqus Single Sign-On System! Original Post No but… WordPress comments can be imported into Disqus using WordPress’ WXR export format! Disqus has a doc on WXR importing. The WXR format includes the users’ email addresses, which is fantastic because … Read more

Different back-end language for different users?

We could try to filter the WPLANG option locale (see e.g. this approach from the related list here on the right by @brasofilo, that’s based on this one by @toscho ): /** * Override locale settings for the current (non-admin) user */ is_admin() && add_filter( ‘locale’, function( $locale ) { // Modify locale for non-admins … Read more

How to limit users to one comment per post

// Check if user has previously commented the post. global $current_user, $post; if ( ! is_user_logged_in() ) { // Show the comment form if the user is not logged in. comment_form(); } else { // The user is logged in… // Get the comments for the logged in user. $usercomment = get_comments( array ( ‘user_id’ … Read more

Disallowing Users of a Custom Role from Deleting or Adding Administrators?

Hi @NetConstructor: I think this is what you need. Note that I didn’t include the full setup of your ‘website_owner’ role, just the addition of a new capability called ‘manage_administrators’. Also, I only attempted to remove the “Delete” link from any users that don’t have the ‘manage_administrators’ capability (which you’ll need to add to the … Read more

How to do get_users() with multiple meta_keys

As it mentions in the Codex page for get_users, it works the same as a WP_Query meta_query, see that page for full arguments list and examples. $args = array( ‘meta_query’ => array( array( ‘key’ => ‘some_key’, ‘value’ => ‘foo’, ‘compare’ => ‘=’ ), array( ‘key’ => ‘another_key’, ‘value’ => array( ‘bar’, ‘baz’ ) ‘compare’ => … Read more

how to use joomla password format in wordpress?

First of all you need to find out which hashing algorithm has been used on the Joomla site to store the passwords. Joomla – different to Worpdress – ships with a variety of hashing algorithms. If you have found out how the hashes have been generated, you can port the hashing function over into wordpress … Read more