WordPress.org

Support

Support » Plugins and Hacks » Edit AUTHOR PROFILE outside administration panel

Edit AUTHOR PROFILE outside administration panel

  • Do you think it’s possible to edit the author profile outside the admin panel? (/wp-admin)…
    Instead of being redirected to the panel… users/authors are redirected to editprofile.php or some other /folder.
    This is brain-racking for me since I have little or no background in programming.
    But so far, so good, I was able modify wp-register.php (register.php) to include the ff. (required and optional fields): description, yim, first name and last name. It works well, of course. I can see the data submitted on the panel. But what I want to achieve here is for the profile to be EDITED OUTSIDE THE PANEL. How is it possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Not sure, I am using this thing

    http://wordpress.org/support/topic/34752 well trying to atleast, would work well in combination with what your trying to achieve.

    I’m sure someone who knew how to code properly could play around with the profile.php file that is used…

    Yes, I’m trying. If I get to figure out how to make a plugin/hack for this, maybe I could contribute something to creators of this really great CMS.
    Regarding that topic you posted, I think it’s easy to DISPLAY the author’s information, picture and everything. The GET_AUTHOR image hack works well, but it does not have an UPLOAD IMAGE function. You have to FTP. I’m also trying to figure out HOW to allow users/authors to upload their image via web browser.

    Here’s another thing I hope some CODERS out there would help me out with.

    As I said, register.php works well. It’s the validation errors that annoy me.

    This is the preview of the site’s registration page:
    http://i21.photobucket.com/albums/b296/sikatzonline/registerpage.jpg

    This is the UGLY error you get:

    Is there a way to change the
    die {‘message’

    to return a error_message.php instead?


    if ( !get_settings('users_can_register') )
    $action = 'disabled';

    header( 'Content-Type: ' . get_bloginfo('html_type') . '; charset=' . get_bloginfo('charset') );

    switch($action) {

    case 'register':

    $user_login = $_POST['user_login'];
    $user_email = $_POST['user_email'];

    /* checking that username has been typed */
    if ($user_login == '') {
    die (__('ERROR: Please enter a username.'));
    }

    /* checking e-mail address */
    if ($user_email == '') {
    die (__('ERROR: Please type your e-mail address.'));
    } else if (!is_email($user_email)) {
    die (__('ERROR: The email address isn’t correct.'));
    }

    /* checking the username isn't already used by another user */
    $result = $wpdb->get_results("SELECT user_login FROM $wpdb->users WHERE user_login = '$user_login'");
    if (count($result) >= 1) {
    die (__('ERROR: This username is already registered, please choose another one.'));
    }

    I have tried inserting those form validation statements on the last case ‘register’ which is a WRONG move. How do we improve the wp-register.php to display the error messages on HTML format?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edit AUTHOR PROFILE outside administration panel’ is closed to new replies.
Skip to toolbar