• Resolved chemdata

    (@chemdata)


    Have a WP site using bbpress and bbp style pack. I have created a button to call profile with the bbp style pack. When clicked on I get the following image:
    <img src="http://goodfellows.us/images/wpbbpprofile.png" alt="" />
    I would like to remove the link at the bottom called “Edit” which brings up the profile for the logged in user. In other words I do not want the user to have access to their profile. How can I accomplish this. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Robin W

    (@robin-w)

    ok, the quickest way would be to put this in custom css tab

    .bbp-user-edit-link {
    display : none;
    }
    

    BUT anyone who knows css , knows how to operate inspection tools in web-browsers, and knows that you are using bbopress and knows that bbpress should show a link there can turn it back on for themselves in the browser, but that would be very few !!

    alternate is to change the profile template – do you know how to edit and transfer files to and from your browser?

    Thread Starter chemdata

    (@chemdata)

    Thanks for quick answer.

    Sorry for the double entry. I messed up first time and image was not visible and not seeing the edit feature ergo the second post.

    I do know how to edit and transfer files to and from browser.

    • This reply was modified 9 years ago by chemdata.
    Plugin Author Robin W

    (@robin-w)

    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

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

    copy this to your pc, and edit as follows :

    around line 63 (depends on which version of bbpress you are using) you’ll find

    <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 _e( 'Edit', 'bbpress' ); ?></a>
    	</span>
    </li>

    remove this and save the file

    then put this file 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

    Thread Starter chemdata

    (@chemdata)

    First thank you very much for all your help.

    I did use the code you sent but had to modify it using !important to
    .bbp-user-edit-link {
    display : none;
    }
    and placed it in my style.css file of my child theme. And it works.

    Thanks also for the fix to the user-detail.php file. I mad the changes and will be using it shortly.

    I am marking this post as resolved.

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

The topic ‘Eliminate Profile Access’ is closed to new replies.