• Hi there! I’m using the plugin, “Theme-My-Login”, and want to edit the profile page it shows. I edited user-edit.php, but that only changes the admin’s profile page. Does anyone know how to edit the one shown by the plugin?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Keep in mind that editing a core file will be lost upon upgrade of the plugin. I intend to implement the remaining features of Register Plus into Theme My Login very soon. This includes adding extra fields to registration/user profile.

    However, with that said and done, as of version 1.3, you would need to edit the main file “theme-my-login/theme-my-login.php”. Look for the function print_profile_form() at line 190.

    Hey Jeff:

    I am using TML version 5.1.4 and WordPress 3.0.

    I also would like to edit the look and feel of the TML profile page. I’ve read responses on this forum where you mention that the TML profile page is based on Page.php. I’m not exactly sure how that works, but is there a way to make the profile page based on some custom page file? I would like to make use of a simple profile page where my users can change their email address, and/or passwords. Hope this isn’t a tough one, and thanks for all your help as always.

    As of version 5.1.4, no, there is not. However, version 6 (coming soon) will open up this possibility.

    Yeah man keep at it. Your plugin is already awesome, but adding this capability will push it up there with the best of the best WordPress plugins, which, I guess, would make also place you amongst the best and hardest working plugin developers. Great work.

    Hi there! I’m using the plug-in, “Theme-My-Login” too , and I have slightly modified some code to have more fields in the register form. like “name” “company” etc… I’ve modified the “template-functions.php” to accomplish that .
    Like this :

    ….
    $user_name = isset($_POST[‘user_name’]) ? $_POST[‘user_name’] : ”;
    $user_city = isset($_POST[‘user_city’]) ? $_POST[‘user_city’] : ”;


    and this



    <p>
    <label for=”user_name-<?php echo $current_instance[‘instance_id’]; ?>”><?php _e(‘ФИО’, ‘theme-my-login’) ?></label>
    <input type=”text” name=”user_name” id=”user_name-<?php echo $current_instance[‘instance_id’]; ?>” class=”input” value=”<?php echo esc_attr(stripslashes($user_name)); ?>” size=”75″ />
    </p>

    <p>
    <label for=”user_city-<?php echo $current_instance[‘instance_id’]; ?>”><?php _e(‘Город’, ‘theme-my-login’) ?></label>
    <input type=”text” name=”user_city” id=”user_city-<?php echo $current_instance[‘instance_id’]; ?>” class=”input” value=”<?php echo esc_attr(stripslashes($user_city)); ?>” size=”75″ />
    </p>


    So, I’ve modified the register form, and some code in “pluggable-functions.php” which is for sending email notification to admin.
    Like these:



    $user_name = stripslashes($user->user_name);
    $user_city = stripslashes($user->user_city);

    and this


    $message .= sprintf(__(‘ФИО: %s’, ‘theme-my-login’), $user_name) . “\r\n\r\n”;
    $message .= sprintf(__(‘Город: %s’, ‘theme-my-login’), $user_city) . “\r\n\r\n”;

    But the content of new fields does not appear in new user notification. There are only names of my new fields in the email “new user notification” to admin

    My question is, how and what else do I need to modify to see the content of new fields in admin’s new user notification ?

    Thank you in advance

    Keep in mind that editing the core files is not a good idea as all customizations will be lost upon upgrade.

    I understand that, but what should I do whith my problem ? How can I get the content of new fields in admin’s new user notification ? For now I can get only the names of these filds in admin’s mail.

    TML allows the use of any user meta in the user e-mails. So, for instance, if you have a meta value called user_city, using %user_city% in the e-mail should work.

    Are we talking about email, that is emailed to blog’s admin, when new user is registered ?
    Once again. My problem is, that, when new user is registered (and the user wrote some info into the fields of register form, like “Name” “City” “Company” “Telephone” etc.) blog’s admin gets the email, and there is no info in that email? except default “Login” and “E-mail”
    ɪ would be happy if you would point me in the right direction

    Use Theme My Login 6.0 Beta 3 in which you can customize the e-mails to the admin and use the variables as I mentioned.

    Thank you for you reply!
    Can I add the custom fields in that version of your plugin ?

    It doesn’t have an interface to add fields. However, with the templating system, you can easily add fields to the form. You would just need to add some code to make it save the input.

    Hi Guys,
    Im new to this and was wondering if someone could help, the themed profile bit when trying to login as a user is not working its coming up with a 500 error..?? could anyone help with this??
    Not had the plugin in long so just trying to get the hang of things…And just to add i think this is an amazing plugin and very easy to use.

    Cheers

    @dvv1: You should start your own thread.

    Hi Guys, I’ve tried using the theme my profile plugin to them my profile page but it doesn’t work, the shortcode causes some weird error in the page it’s inserted in. Anyone know how to remedy this?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Edit Theme-My-Login Profile Page’ is closed to new replies.