Skip to:
Content
Pages
Categories
Search
Top
Bottom

URL Link for User to Edit Their Profile

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

  • ehong33234
    Participant

    @ehong33234

    bump


    Sloppy Buns
    Participant

    @diggories

    I love BBpress but this is so annoying I have searched here and googled it but there just isn’t anything anywhere that shows how to place a simple link to the BBpress users profile in your menu or on a page, this must be possible as it is the most basic need for a forum.

    Is there anyone that can shed some lite on this for us poor mortals that have exhausted all avenues ??

    Thanks in advance


    lwyndham
    Participant

    @lwyndham

    +1

    I’m am using the plugin “Tabbed Login Widget” which I would like to modify so that user profile page points to the BBpress profile instead on the WP profile page.

    But I do not know what URL to use?


    lwyndham
    Participant

    @lwyndham

    I have just managed to solve this issue by using:
    bbp_get_user_profile_url( get_current_user_id() )

    Those looking to create a simple link to the profile could use:
    <?php echo bbp_get_user_profile_url( get_current_user_id() ); ?>


    nicolasroberge
    Participant

    @nicolasroberge

    test


    Sloppy Buns
    Participant

    @diggories

    @lwyndham thanks for the heads up, where did you place this code?


    lwyndham
    Participant

    @lwyndham

    @diggories

    I edited the file plugin file called tabbed-login.php.

    At line 176 edit the <div class=”userinfo”> so that it now reads…

    		<div class="userinfo">
    			<p><?php _e('You are logged in as ', 'tabbed-login'); ?> <strong><?php echo $user_identity; ?></strong></p>
    			<p>
    				<a href="<?php echo wp_logout_url($current_url); ?>"><?php _e('Log out', 'tabbed-login'); ?></a> | 
    				<?php if (current_user_can('manage_options')) { 
    					echo '<a href="' . admin_url() . '">' . __('Admin', 'tabbed-login') . '</a>'; } else { 
    					echo '<a href="' . bbp_get_user_profile_url( get_current_user_id() ) . '">' . __('Profile', 'tabbed-login') . '</a>'; } 
    					// Updated using bbp_get_user_profile_url( get_current_user_id() to link to BBPress profile page instead of the WP profile page
    					?>							
    			</p>
    		</div>

    Hope this helps!


    iengagecoaching
    Participant

    @iengagecoaching

    @diggories looks like what I am trying to do. Where do I find this file to edit?

    It doesn’t seam to be in this list. http://screencast.com/t/pCguMW3U1t

    Any help would be great.

    Thanks
    Mark


    lwyndham
    Participant

    @lwyndham

    You need to edit the file called tabbed-login.php found in the Tabbed Login Widget plugin not the Bbpress plugin.


    iengagecoaching
    Participant

    @iengagecoaching

    @diggories still isn’t working? 🙁

    When I hover over the link, it reads http://www.domain.com/wp-admin/profile.php

    Any suggestions?

    Thanks
    Mark


    iengagecoaching
    Participant

    @iengagecoaching

    OK, it turns out I had to deactivate every plugin to be able to edit the files.

    So now upon hover, I get the following which is in the screen shot here http://screencast.com/t/xOYhhbbc5TUG

    I have searched the file for this random ‘-‘ and can not find what is causing this. Any idea?

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