Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • atburi
    Participant

    @aburi

    Hey @johnjamesjacoby,

    It sounds like admins, by default, should have access to member’s ‘messages’ page.

    On my install (latest versions of everything), however, it populates the admin’s messages within the member’s profile template – not the member’s messages.

    Any chance you know what’s going on here?

    Thanks,
    Alex


    atburi
    Participant

    @aburi

    issue solve. Max_Width had to be defined to a larger size. (It was defaulting to 450px).

    // Define the avatar sizes
    define ( ‘BP_AVATAR_THUMB_WIDTH’, 60 );
    define ( ‘BP_AVATAR_THUMB_HEIGHT’, 60 );
    define ( ‘BP_AVATAR_FULL_WIDTH’, 350 );
    define ( ‘BP_AVATAR_FULL_HEIGHT’, 350 );
    define ( ‘BP_AVATAR_ORIGINAL_MAX_WIDTH’, 723 );


    atburi
    Participant

    @aburi

    It appears to have something to do with the user id being set in bp_has_members() and passed on to the other functions.

    If the displayed member does have friend connections and a user id is set in the bp_has_members() loop, then that ID gets passed to the bp_get_member_profile_data() and xprofile_get_field_data() functions that I’m using to retrieve profile field values after the loop.

    Funny this is, that the admin account’s profile values are populating everyone’s profile who has friended the admin account.

    Seems the problem is becoming more clear but still unsure how to solve it…


    atburi
    Participant

    @aburi

    Update:

    'user_id' => bp_displayed_user_id(),

    This works so far, and doesn’t use the global $bp;


    atburi
    Participant

    @aburi

    Thanks Hugo, all makes sense….

    I’ll leave it that and mark as resolved!


    atburi
    Participant

    @aburi

    Thanks for the response, @hnla

    Indeed, that works; just wasn’t sure how to properly code inside a php bracket like that.

    I’m running the member’s profile loop in the sidebar of the single post page, so this would be outside the single post content loop. However, also in the side bar I use the function:

    bp_core_get_userlink( $post->post_author ) )

    and that does work, so somehow it’s getting the correct member ID outside the loop?

    If I wanted to use $post->post_author to get the ID, would it look like:

    if ( bp_has_profile( $post->post_author ) ) : ?


    atburi
    Participant

    @aburi

    This worked 🙂

    <?php if ( bp_has_profile( array( 'user_id' => $user_id ) ) ) : ?>

    Is this the best solution?


    atburi
    Participant

    @aburi

    Hi 4ella,

    With my issue, I was getting the white screens on the backend. I forget how I fixed it, but it turned out to be a problem with my plugins/theme files and not with the latest versions of WP or BP. I would disable all your plugins one by one and see if that helps. If you are running a development version of your site offline, trying doing a fresh intall of WP and BP and adding your plugins one by one in there to see which one causes the problem.

    Good luck!


    atburi
    Participant

    @aburi

    Has anyone come up with a clear solution to this issue? It is a serious problem for people using WP/BP on commercial sites.

    It seems that the “BP Autologin on Activation” plugin works as posted above, but both users who posted about this plugin have had their accounts deleted, which is a bit worrisome as to the safety of the plugin.


    atburi
    Participant

    @aburi

    Thanks Mercime… going to read that now and let you know if it worked.


    atburi
    Participant

    @aburi

    anybody?


    atburi
    Participant

    @aburi

    @Andy Peatling

    Andy,

    where in my template files do I put that jQuery code to make it work ?

    Thanks


    atburi
    Participant

    @aburi

    @Dwenaus

    thanks for putting the effort in on this for all of us…

    I will definitely look forward to using it… I will have many groups so it will be essential to organize them.


    atburi
    Participant

    @aburi

    any help would be much appreciated …

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