how do i get a greeting for logged in uses by the time of day

I can see two very obvious flaws that might be holding you back. $t=date(“H”); gives you a formatted date as a string while if ($t<“12”) and else if ($t<“18”) are trying to do maths on words. Consider $t=(int)date(“H”); (force the answer to be a whole number) with if ($t<12) and else if ($t<18) which at … Read more

Tagging users in WordPress

WordPress has no multi-level user and group ownerships / permissions by default. So what you are asking for you need to implement on your own by extending the database and the program. You can then fine-grained control what users are allowed to do and what not. Like Zack suggested, this can be combined with custom … Read more

User ability to favorite or ‘like’ content

You might have already thought of this, but have you thought about a plugin. I was sure that the WPMU Dev guys did one that did a like (that wasn’t FB related) but I can’t find it (if you want to look it must be somewhere here but I’ve gone through it all and I … Read more

Custom style on profile options page

It works on a standard profile page (your profile / Profile) without other plugins installed. Other plugins may affect the overall result. I think code can be improved, if some one knows how please give it a go. function better_profile_page($buffer) { global $pagenow; if ($pagenow == ‘profile.php’ || $pagenow == ‘users.php’ || $pagenow == ‘user-edit.php’) … Read more

Importing Existing Users with Passwords

You can use wp_insert_user. Since your old database has passwords in base64, you can easily get the original password string using base64_decode. $new_user_data = array( ‘user_pass’ => ‘password’,//pass your decoded password string ‘user_login’ => ‘username’,//pass your username ‘user_email’ => ’email’, ‘first_name’ => ‘firstname’, ‘last_name’ => ‘lastname’, ‘role’ => ‘author’//if you want to specify a different … Read more