Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_the_topic_post_poster_link() displays wrong link


  • sawyerh
    Participant

    @sawyerh

    I am running BP 1.2.1 and WP 1.9.2

    I want my member’s links to their profile to end in members/username however the link displayed by

    bp_the_topic_post_poster_link()

    looks like members/FIRST LAST

    I have the BP_ENABLE_USERNAME_COMPATIBILITY_MODE defined as true and all of the other member links work except for the member links in single forum topics.

    Any ideas?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • That function uses bp_core_get_username() which does check for BP_ENABLE_USERNAME_COMPATIBILITY_MODE. What sort of links do you get? Can you show a “working link” from somewhere else and a “broken link” please?


    sawyerh
    Participant

    @sawyerh

    Hey DJPaul,

    I forgot to mention a key detail, when BP_ENABLE_USERNAME_COMPATIBILITY_MODE is not defined, the

    bp_the_topic_post_poster_link() displays the link correctly but all of the other links do not.

    Here is an incorrect link that redirects back to the homepage:

    http://mysite.com/members/Leanna%20Regaletta/

    Here is the correct format that takes the user to the profile:

    http://mysite.com/members/amazingcool@mail.com/


    peterverkooijen
    Participant

    @peterverkooijen

    Having the member’s email address in their profile link looks like a very bad idea. How did that happen?


    sawyerh
    Participant

    @sawyerh

    Having the member’s email address in their profile link looks like a very bad idea. How did that happen

    Wasn’t my decision to do it that way and I had actually not planned on it, hence the urgent need to have had it fixed.

    The website is using a plugin that manages paid memberships. When the member sign up to have access to the website, the plugin automatically assigns the username as the person’s email address.


    sawyerh
    Participant

    @sawyerh

    Seems to be working now for new members who post. Only the old members are effected.


    sawyerh
    Participant

    @sawyerh

    I take back my previous post, the links are still not working. :(

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘bp_the_topic_post_poster_link() displays wrong link’ is closed to new replies.
Skip to toolbar