Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable “edit” link and function on user´s page


  • juanm777
    Participant

    @juanm777

    Hello Everybody,

    I need to disable the ability for users to edit their profiles on their forum page but keep the other features; how may I disable that option?

    Thanks for your help!

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

  • Robin W
    Moderator

    @robin-w

    If you know enough to FTP a file, then

    find
    wp-content/plugins/bbpress/templates/default/bbpress/user-details.php

    transfer this to your pc and edit

    remove lines 72-76 ie these :

    <li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>">
    					<span class="bbp-user-edit-link">
    						<a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Edit', 'bbpress' ); ?></a>
    					</span>
    				</li>

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/user-details.php

    bbPress will now use this template instead of the original


    juanm777
    Participant

    @juanm777

    Thank you very much!

    It worked perfectly!

    Regards,


    Robin W
    Moderator

    @robin-w

    great – glad to have helped 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar