Support » Plugin: Theme My Login » [Plugin: Theme My Login] Theme my login and user photo conflict?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    The CSS file for the userphoto plugin is not being loaded on the front-end profile page. You will need to do this manually using your theme’s functions.php file. Add the following:

    function load_user_photo_css() {
        if ( is_page( 'login' ) && is_user_logged_in() )
            wp_enqueue_style( 'user-photo', plugins_url( 'user-photo/admin.css' ) );
    }
    add_action( 'wp_head', 'load_user_photo_css' );

    Nope, still not working, Jeff. At least not for me.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Is the CSS file being loaded?

    No.

    I tried cleaning out the loading functions from the plugin file to avoid any conflicts. Still no good.

    Hi,
    It still isn’t working for me either, but I don’t know how to tell if the style sheet is being loaded or not.
    Thanks for your help on this.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    I will play around with “User Photo” today and see what I can figure out.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    The issue has been found and resolved in the trunk as of [286066]. However, if you wish to fix it for your current version, open up the file “theme-my-login/modules/themed-profiles/includes/template-functions.php”. Look for the following at the beginning of the file:

    function wdbj_tml_themed_profiles_display() {
    	global $current_user, $action, $redirect, $profile, $user_id, $wp_http_referer;

    And simply add $profileuser to the global list, as follows:

    function wdbj_tml_themed_profiles_display() {
    	global $profileuser, $current_user, $action, $redirect, $profile, $user_id, $wp_http_referer;

    User photo will now work with themed profiles.

    If the author of “User Photo” is reading this, you should add $profileuser as a parameter to userphoto_display_selector_fieldset(), instead of declaring it globally, as it is passed into the hook precisely for this reason.

    Jeff, still no good.

    But I do need to confirm one thing. Your last hack stands alone, or do I still need to load the css in my functions file as you mentioned earlier?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    I’ve confirmed myself that this fix works. Without the CSS.

    Thanks for your efforts, Jeff.

    I’ve uninstalled User Photo and reinstalled it. Still no good.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Did you edit the file as I said?

    For sure, Jeff.

    The edit was made exactly as you indicated. And a fresh install of the User Photo plugin. No other edits made.

    I’m interested to hear if fiobb has better results.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Give me admin access to your site and I’ll take a look.

    Works for me, thanks very much!!!

    Great to hear it’s working now.

    In the meantime, I’ve just written a leaner user photo upload plugin.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Plugin: Theme My Login] Theme my login and user photo conflict?’ is closed to new replies.