Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Towhid

    (@cryptex_vinci)

    Hi @zioaxiom

    Can you please go to Ultimate Member > Settings > Appearance > Profile Menu
    Then make sure “Enable Profile Menu” is checked.

    Thanks

    Thread Starter zioaxiom

    (@zioaxiom)

    Hi Towhid,

    yes, it is. I already checked all the suggestion made in the past for this kind of issue (from other threads), but looking at your github history, it looks like some changes has been done from 2.0.53 in the profiles. I also tried to remove our custom profile template and replacing it with the new one provided with the plugin, but without luck. I also tried by disabling my theme and switching to TwentTwo, but nothing changes. Since 2.0.53, we are unable to show profile pages.

    Thanks

    Thread Starter zioaxiom

    (@zioaxiom)

    I’m making some progress on this issue. I’ve removed my custom profile template file and replaced it with the new one provided by the plugin, but nothing changed.

    So, I tried from scratch using the examples in the documentation and, well… it looks you have two examples in the same page and ONLY ONE actually works!

    This one works: https://gist.githubusercontent.com/denisbaranov/162fe5c96b65c693651388fdc4a7e08d/raw/0bc93bd7dd73eed3acc5a5c91483e05843b70d05/Ultimate%20Member%20-%20How%20to%20add%20a%20form%20to%20the%20extra%20tab,%20example

    This one not: https://gist.githubusercontent.com/nikitasinelnikov/a34f21bc7c6f0a22c4a9c58e05c7cda4/raw/4e858dc34e4ba72304b7c40650ab8936916d2a89/functions.php

    Now I’m about to refactor my custom profile tabs and see if I can get them to work with the new plugin version. I’ll keep you posted.

    Thread Starter zioaxiom

    (@zioaxiom)

    Ok, I found a workaround and PLEASE update your documentation, that is a disaster.

    If you are updating from 2.0.52 or lower, you need to ensure that your custom profile tabs has the following structure:

    1) Declare the custom tab function:

    function um_mycustomtab_add_tab( $tabs ) {
    
    	/**
    	 * You could set the default privacy for custom tab.
    	 * There are values for 'default_privacy' atribute:
    	 * 0 - Anyone,
    	 * 1 - Guests only,
    	 * 2 - Members only,
    	 * 3 - Only the owner
    	 */
    	$tabs[ 'mycustomtab' ] = array(
    		'name' => 'My Custom',
    		'icon' => 'um-faicon-pencil',
    		'default_privacy' => 2,
    	);
    
    	UM()->options()->options[ 'profile_tab_' . 'mycustomtab' ] = true;
    
    	return $tabs;
    }

    What changed: you NEED to have the default_privacy parameter AND the UM()->options()->option line.

    2) After declaring the function, you can now add the filter:
    add_filter( 'um_profile_tabs', 'um_mycustomtab_add_tab', 1000 );

    After that, you can add your custom tab content function and related filter.

    I hope this will help other users, but please fix your documentation.

    Bests.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘User profile page not showing since 2.0.52’ is closed to new replies.