Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 26 total)

  • sawyerh
    Participant

    @sawyerh

    You want to edit forums/forums-loop.php

    Find the <tr> under

    <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>

    and add

    <tr class="<?php bp_the_topic_css_class() ?><?php if(bp_get_the_topic_poster_id() == bp_loggedin_user_id()){echo '-topic-author topic-author';} ?>">


    sawyerh
    Participant

    @sawyerh

    Thanks Paul, I actually tried that and wasn’t able to get it to work. However I got this one to work:

    if(bp_get_the_topic_poster_id() == bp_loggedin_user_id())


    sawyerh
    Participant

    @sawyerh

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


    sawyerh
    Participant

    @sawyerh

    AH, believe I found the problem. Seems to be a conflict with the jquery dropdown menu plugin: http://www.phpinterviewquestion.com/jquery-dropdown-menu-plugin

    Any ideas how to fix this conflict? I kind of need that plugin active.

    Thanks


    sawyerh
    Participant

    @sawyerh

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


    sawyerh
    Participant

    @sawyerh

    Note: new members who sign up do not experience this problem.


    sawyerh
    Participant

    @sawyerh

    @etiviti: Here is a screenshot of the tables for topics: http://img535.yfrog.com/img535/6128/mysqlscreen.jpg


    sawyerh
    Participant

    @sawyerh

    as for the bbpress stuff – some last_poster names are also stored in the topic/posts tables – double check that.

    I’m not sure what you mean by this. I accessed the mySQL database via phpMyAdmin and am looking at the topic tables. What should I change to solve the problem?

    Thanks


    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

    Why would a user have a @ in their username?!

    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 memberships sign up to have access to the website, the plugin automatically assigns the username as the person’s email address.


    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/


    sawyerh
    Participant

    @sawyerh

    @intimez, I don’t believe so. I am still able to create a user with a username as an email address. Also, I am using a plugin that manages my membership which automatically creates the username and sets it as the user’s email address, so I have no control over that unfortunately


    sawyerh
    Participant

    @sawyerh

    @DJPaul – Yup, it has been known for about 3 months: https://trac.buddypress.org/ticket/1356

    I found a solution here: http://danpolant.com/how-to-use-email-addresses-as-usernames-in-buddypress/

    You have to edit wp-includes/pluggable.php


    sawyerh
    Participant

    @sawyerh

    Update:

    It seems to only take effect on new activity. However, the links in the forum topics are still going to the wrong page.


    sawyerh
    Participant

    @sawyerh

    Hi Guys,

    Still haven’t been able to find a solution to this problem and would love to figure this out.

    Here’s an update on the what’s working and what is not:

    The initial problem was the username wasn’t being displayed at the end of the member’s links which was causing the links to redirect to the homepage. This problem was sitewide EXCEPT when on the forum topics (weird). By adding define( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', true ); to /wp-content/plugins/bp-custom.php, I was able to get the username to display at the end of the member’s links inside the Member’s list, but by doing so, it is now causing the problem to occur on member’s links on forum topics. The problem is also still occurring in the activity streams.

    Any help?

    Thanks!


    sawyerh
    Participant

    @sawyerh

    Even when I replace bp_the_topic_post_poster_link with bp_member_permalink() on the forum topic, it still doesn’t have the username at the end of the link. Weird??

    The problem also still exists in the activity stream.


    sawyerh
    Participant

    @sawyerh

    @etiviti – Yup, I’m using BP 1.2 on WP 1.9.2 – I did what r-a-y said:

    define( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', true );

    But now have another issue (see above :])


    sawyerh
    Participant

    @sawyerh

    @r-a-y: This did take care of the issue with the bp_member_permalink() but now the bp_the_topic_post_poster_link is messed up :( Any idea why this would have changed that function’s link?


    sawyerh
    Participant

    @sawyerh

    I found where the bp_member_permalink() function is created, although I’m not sure how to edit it to display the user’s username instead of display name:

    Here’s the code:

    function bp_member_permalink() {

    echo bp_get_member_permalink();

    }

    function bp_get_member_permalink() {

    global $members_template;

    return apply_filters( 'bp_get_member_permalink', bp_core_get_user_domain( $members_template->member->id, $members_template->member->user_nicename, $members_template->member->user_login ) );

    }

    function bp_member_link() { echo bp_get_member_permalink(); }

    function bp_get_member_link() { return bp_get_member_permalink(); }


    sawyerh
    Participant

    @sawyerh

    To clarify: the bp_member_permalink() is displaying the member’s links as http://www.link.com/members/First Last

    and I need it to display the link as http://www.link.com/members/username


    sawyerh
    Participant

    @sawyerh

    Any other ideas? Thanks.


    sawyerh
    Participant

    @sawyerh

    Still looking for an answer, any help is appreciated. Thanks


    sawyerh
    Participant

    @sawyerh

    @dpolant, still doesn’t work. It does move the Alphabetical option to the top, however it doesn’t actually cause any re-ordering.


    sawyerh
    Participant

    @sawyerh

    Hm, I think we’re getting closer. I’m not sure how I would implement the above code?

    Thanks for your help so far, I really appreciate it.


    sawyerh
    Participant

    @sawyerh

    Dwenaus, I tried your first method of creating a custom-code.php file and placing it in the wp-content/plugins folder, however it didn’t seem to work. Any other ideas besides the child theme?

Viewing 25 replies - 1 through 25 (of 26 total)
Skip to toolbar