WordPress.org

Ready to get started?Download WordPress

Forums

Edit AUTHOR PROFILE outside administration panel (6 posts)

  1. sikatzonline
    Member
    Posted 8 years ago #

    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?

  2. fatalcure
    Member
    Posted 8 years ago #

    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.

  3. fatalcure
    Member
    Posted 8 years ago #

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

  4. sikatzonline
    Member
    Posted 8 years ago #

    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.

  5. sikatzonline
    Member
    Posted 8 years ago #

    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:

    http://i21.photobucket.com/albums/b296/sikatzonline/ugly_error_message.jpg

    Is there a way to change the
    die {'message'

    to return a error_message.php instead?

  6. sikatzonline
    Member
    Posted 8 years ago #


    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags