WordPress.org

Ready to get started?Download WordPress

Forums

redirect author link on comments reply (4 posts)

  1. bjstone906
    Member
    Posted 1 year ago #

    When you're logged in and go to leave a comment it says 'Logged in as 'user'. Log Out?' I would like the word 'user' to link to the users bbpress profile thats set up instead of the wordpress profile in the backend.

    site: http://retreadwerks.com/wordpressNew/

    I know very little about php and how to make it work but I'm good with html and css.

  2. cdukes
    Member
    Posted 1 year ago #

    You'll have to change the url in the widget code (or copy the code into a new widget).

    Alternatively, you could use some jQuery to rewrite the URL when the page loads. It's an easier solution, though not as elegant.

  3. bjstone906
    Member
    Posted 1 year ago #

    Thanks Cooper, I've gone through the code a bit and nothing looks like a url link. They all seem to be pulling some function or another. Any suggestions on what else to look for and/or in what file?

  4. bjstone906
    Member
    Posted 1 year ago #

    I've found where the code lives! Now I don't know how to change it to point to the bbpress profile. I've tried changing the href to href="http://retreadwerks.com/forums/users/%1$s" but thats not working either. I dont know what bbpress users for its profile url but I'll keep looking.

    In the meantime does anyone have any suggestions?

    <?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_option('siteurl') . '/forums/users/', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php esc_attr_e('Log out of this account'); ?>"><?php _e('Log out ยป'); ?></a>

Topic Closed

This topic has been closed to new replies.

About this Topic