• costerleone

    (@costerleone)


    Hi all,

    Im using UM and i have designed a cover photo for all the users.
    the cover photo is for everbody the same, but they have the option to change it.

    I dont want that the users can change the cover photo, they need just to use the original uploaded photo.

    Thx

Viewing 3 replies - 1 through 3 (of 3 total)
  • kerouac

    (@kerouac)

    Looks like you can just set that up by uploading a default cover photo:

    UM > Settings > Appearance > Profile >

    Use the ‘Default Cover Photo’ option.

    Thread Starter costerleone

    (@costerleone)

    Yes i have used the default cover photo option. But its still possible to change

    kerouac

    (@kerouac)

    You can probably edit the core file to remove the option, but you’d have to change it at every update.

    I think it’s in this file:

    ultimate-member/core/um-actions-profile.php

    and you’d get rid of this:

    <?php
    
    					if ( $ultimatemember->fields->editing ) {
    
    						$items = array(
    									'<a href="#" class="um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width">'.__('Change cover photo','ultimatemember').'</a>',
    									'<a href="#" class="um-reset-cover-photo" data-user_id="'.um_profile_id().'">'.__('Remove','ultimatemember').'</a>',
    									'<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
    						);
    
    						echo $ultimatemember->menu->new_ui( 'bc', 'div.um-cover', 'click', $items );
    
    					}
    				?>

    But I have cover photos disabled so this is just a guess.

    • This reply was modified 8 years ago by kerouac.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cover photo’ is closed to new replies.