bmd91
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Have two wordpress sites on one localhostThe live site is bostinno.com
Forum: Localhost Installs
In reply to: Have two wordpress sites on one localhostNope it’s definitely from wordpress.org
Forum: Localhost Installs
In reply to: Have two wordpress sites on one localhostUnder tagline is email address. There’s no inputs for a URL anywhere on the general settings page
Forum: Localhost Installs
In reply to: Have two wordpress sites on one localhostNo in mine I only have Site Title, Tagline, E-mail Address, Timezone, Date Format etc. No url inputs at all
Forum: Localhost Installs
In reply to: Have two wordpress sites on one localhostIn the General settings I don’t have a site url category? Does this mean I’m not an admin? Because I know I have site-wide admin privileges and am set as an administrator in wp_usermeta
Forum: Localhost Installs
In reply to: Have two wordpress sites on one localhostA folder called wordpress. So file structure is htdocs/wordpress/*All WP Files* but when I navigate in the browser I only type in /localhost/ and site loads
Forum: Localhost Installs
In reply to: Have two wordpress sites on one localhostBecause when I go to my browser and go to /localhost/ the installed site comes up and if I go to /localhost/wordpress/ it 404s. I’m not currently navigating to a sub-folder of localhost when I go to the site in a browser
Forum: Localhost Installs
In reply to: Have two wordpress sites on one localhostBut how would I navigate to it if the one now is setup to /localhost/ ? Sorry, thanks
Forum: Localhost Installs
In reply to: Have two wordpress sites on one localhostAs in reinstall the current site in htdocs/wordpress/ to htdocs/wordpress/site1 and then install the second site in htdocs/wordpress/site2 ?
Forum: Plugins
In reply to: Force Password Change First Time LoginHi,
I’m trying to redirect users the first time they login so they can change passwords to a cleaner one than what they receive in the register email. In functions.php I have://redirect on first login function redirect_password_profile_update($user_id, $old_user_data) { $user = new WP_User( $user_id ); if( $user->data->user_pass != $old_user_data->user_pass) { //password has changed update_metadata("user",$user_id,"changed_password",true); } } add_action("profile_update", "redirect_password_profile_update", 10, 2); function redirect_password_login_redirect($redirect_to, $url_redirect_to = '', $user = null) { if( isset($user->ID) ) { $changed_password = get_metadata("user", $user->ID, "changed_password",true); if( $changed_password != true ) { return get_bloginfo('url') . "/wp-content/themes/xchange12/change-password.php/"; } else { return $redirect_to; } } } add_filter('login_redirect', 'redirect_password_login_redirect',10,3); function redirect_password_password_reset( $user ) { //password has been reset to a random one. so the changed_password meta data should be reset as well if( isset($user->ID) ) { delete_metadata("user", $user->ID, "changed_password"); } }And in change-password.php I have:
<form action="" type="POST"> <label>Password</label> <input type="password" name="new_pass" id="new_pass"> <input type="submit" value="Submit"> </form> <?php require(ABSPATH.'/wp-load.php'); $new_pass = $_POST['new_pass']; $user_id = get_current_user_id(); $user_login = get_userdata($user_id); $user_login = $user_login->user_login; wp_update_user(array('ID' => $user_id, 'user_pass' => $new_pass)); wp_redirect(home_url());Can anyone tell me why this is not working? It updates the database with a blank value in the user_pass section and upon hitting submit i get the error message: Warning: get_object_vars() expects parameter 1 to be object, null given in /Applications/MAMP/htdocs/wordpress/xchange/wp-includes/user.php on line 1404
and it does not redirect
Thank you in advance
[ Please do not bump, that’s not permitted here. ]
Forum: Networking WordPress
In reply to: No Network Setup under Tools TabWow thanks!
Forum: Networking WordPress
In reply to: No Network Setup under Tools TabSo how do I go about getting the xchange site on the first installation in localhost? So that I can delete the second one
Forum: Networking WordPress
In reply to: No Network Setup under Tools TabYa sorry ignore that. It was from before I tried to reinstall multisite. Now I have two sites. One at localhost and one at localhost/xchange. But I still have wordpress installations for both. Also, under the ‘My Sites’ tab I have Network Admin and Bostinno (which is the site under localhost). Why is my xchange site not appearing under ‘My Sites’ tab? Is it supposed to show up there? If I go to ‘Network Admin’->’Sites’ it shows up as ‘/xchange/’ underneath my first site, which appears as ‘/’.
Thanks again
Forum: Networking WordPress
In reply to: No Network Setup under Tools Tab[Note to above] Because right now I have a wordpress installation in each folder but I want just one with the three sites running off of it
Forum: Networking WordPress
In reply to: No Network Setup under Tools TabBasically what my ultimate goal entails is instead of having the sites localhost (which is the bostinno site), localhost/xchange and localhost/hollenberg to have localhost/bostinno,localhost/xchange and localhost/hollenberg all on one network