How to let user set password on registration

Its Not has hard as you think it is 🙂 Add the password fields to your form : password: <input type=”password” name=”pass1″ style=”width:250px; margin-bottom:3px;”><br /> repeat password: <input type=”password” name=”pass2″ style=”width:250px; margin-bottom:3px;”><br /> then in your if($_POST){ replace this line: $random_password = wp_generate_password( 12, false ); with this: $pass1 = $wpdb->escape($_REQUEST[‘pass1’]); $pass2 = $wpdb->escape($_REQUEST[‘pass2’]); if … Read more

How to set up User email verification after Signup?

You can use user_register hook add_action( ‘user_register’, ‘my_registration’, 10, 2 ); function my_registration( $user_id ) { // get user data $user_info = get_userdata($user_id); // create md5 code to verify later $code = md5(time()); // make it into a code to send it to user via email $string = array(‘id’=>$user_id, ‘code’=>$code); // create the activation code … Read more

How to change user`s avatar?

Avatars are meant to be controlled by the user, not by you. So yes, in a way, you’re being forced to use the Gravatar service. But remember, it gives the user the ability to use the same avatar anywhere, and you can always restrict the display of a gravatar based on content ratings (G, PG, … Read more

How to display the status of users (online – offline) in archive.php

It looks like you’re close on this one. Move this function: function is_user_online( $user_id ) { // get the online users list $logged_in_users = get_transient( ‘users_online’ ); // online, if (s)he is in the list and last activity was less than 15 minutes ago return isset( $logged_in_users[$user_id] ) && ( $logged_in_users[$user_id] > ( current_time( ‘timestamp’ … Read more

Is there an upper limit for users in WP?

For every scaling question you can look at wordpress.com and see how big they are. I do’t know the details but I think that with all the users of wordpress.com itself, akismet users and jetpack users, an estimate of 1M users can’t be totally wrong.. In addition so far as far as auttomatic people say … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)