Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP Usernames Only – Plugin Announcements

  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    This thread will be used to list any major things you should know.
    If you have a general question, please create a new thread. Thanks!

    * As of BP 1.2.4 and version 0.53 of the plugin, core hacks from the previous versions are no longer needed!

    v0.54 released – fixes multiple replacement in activity updates (thanks to intimez for reporting)

Viewing 25 replies - 1 through 25 (of 44 total)
  • Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    @r-a-y,

    Any way to exclude the changes to the actual member’s profile page header? I liked how it showed the Real Name, followed by the @mentions username. Most of my members would want to show there real name in this one spot.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    For now, you can comment out line 17 in bp-usernames-only.php.
    If you uncomment this, I’m not sure where else display names will be re-enabled.

    Let me know!

    Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    That worked perfectly! I may be in the minority here, but I think this makes a lot of sense. It gives a logical place to actually show your real name and avoids the duplication of having username @username at the top of the profile page.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    I think this makes sense as well; I’m thinking of getting rid of this in the next point release.

    I just need to figure out if this filter I’m hooking into is used anywhere else in the default BP theme. Again let me know if you spot a display name!

    Off-topic: I feel sorry for the user who signed up as “username”! ;)

    Avatar of intimez
    intimez
    Participant

    @intimez

    @r-a-y

    You may want to edit the installation instruction on the plugin page
    from -> Change line 578 in /buddypress/bp-activity-templatetags.php
    to -> Change line 578 in /buddypress/bp-activity/bp-activity-templatetags.php

    same in the readme.txt of the plugin zip file which also includes ‘ (ticks that may confused those that copy/paste)

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    @intimez – Great catch. D’oh another stupid mistake on my part! Will do! Thanks.

    The ticks are needed to render the code tag properly for the readme.txt… I’ll see if there’s a better way.

    Maybe I should include these files to save everyone some headaches?

    Avatar of rossagrant
    rossagrant
    Participant

    @rossagrant

    Hey R-A-Y, great idea to include the files! For idiots like me it would be really handy!

    Avatar of intimez
    intimez
    Participant

    @intimez

    @gregfielding

    I would like to duplicate what you did to include the real name on their profile page but can’t find the bp-usernames-only.php – can you let me know where that is located?

    edit: doh! nevermind. bp-usernames-only.php is located in the plugin folder and not buddypress itself.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Looks like we have three votes (including me) to show the display name on the member’s profile page? Any objections?

    If not, I’ll add this to the next point release, as well as bundling the files so you can overwrite the core files.

    Also, intimez and gregfielding, when commenting out that line if you notice any display names on any other BP pages, please let me know.

    Sorry to ask the question but if you are a heavy plugin users, you will still see username across the site – YES ?

    Thanks

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    gibbyesl – I don’t understand your question. Can you rephrase it?

    sorry – now the site will only display the username the user wrote when signing up, with this plugin – yes
    so
    If you have lots of plugins on your site, there wont be occasions when they still display the profile name ?
    Thanks

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    The answer to your first question is “yes”. The answer to your second question is “maybe”. I think I’ve covered the majority of the display names, but if you encounter any from other BP plugins, let me know.

    Thanks

    I vote to show the display name on the member’s profile page as well! Thank you for sharing to comment out line 17 in bp-usernames-only.php, it worked perfectly!

    Avatar of rossagrant
    rossagrant
    Participant

    @rossagrant

    Looks like the replacement core.php file needs updating for 1.2.4 R-A-Y.

    With it installed on 1.2.4 no members show under the members tab.
    It displays the correct numbers in the tabs but actually shows no avatars etc.
    Check it out and let me know if it’s like that for you too.
    Cheers
    Ross :)

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    @rossagrant – You shouldn’t need the replacement files anymore!
    BP 1.2.4 included my patches ;) Undo any changes you may have done to the core in BP 1.2.4.

    Just tested and I do see avatars in the members directory.

    Avatar of rossagrant
    rossagrant
    Participant

    @rossagrant

    @r-a-y Works like a charm R-A-Y! Thank you!

    Avatar of rossagrant
    rossagrant
    Participant

    @rossagrant

    @r-a-y

    Hil,
    Just noticed that this plugin and Paul’s Welcome Pack plugin are incompatible as when the usernames only plugin is active NO names show under the Friends Pop down in Welcome pack.

    Any way to make them compatible?
    Thanks
    Ross :)

    I’ve sent this to Paul too.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    @rossagrant – uncomment line 61 in bp-usernames-only.php.

    If you uncomment this, Welcome Pack will use the member’s display name.

    I might get rid of this filter, because I just uncommented it and the members directory still appears to show the usernames. It’s probably because another filter I’m using is already taking care of this.

    Please let me know if you see any display names pop back up because of this.

    [EDIT]
    @DJPaul – It might be wise to remove the bp_member_name filter in your dpw_admin_settings_friends() function since the bp_member_name filter relies on the $members_template global, and your member loop makes no usage of it.

    Avatar of rossagrant
    rossagrant
    Participant

    @rossagrant

    @r-a-y I take it that it is this area of code

    /* MEMBER OVERRIDES


    */

    // used in member directory
    function ray_bp_member_username() {
    global $members_template;

    return $members_template->member->user_login;
    }
    add_filter( ‘bp_member_name’ , ‘ray_bp_member_username’ );

    How should it look after it’s edited? I’m still finding my feet here sorry,

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Avatar of rossagrant
    rossagrant
    Participant

    @rossagrant

    @r-a-y Great job on this usernames only plugin update r-a-y!

    Got a little request I wonder if you could help out with.
    Andy has released an awesome ‘BuddyPress Follow’ plugin which works seemlessly from what I can see so far. The only tiny thing that might need an input for the usernames only plugin is on a members profile page where the ‘follow’ button is seen it displays the users ‘First’ name rather than username. I know on the profile page we are using the members full name and I agree we should keep this like that but I think the follow button should display the username and not the first name. Makes it easier to know who we are following rather than having to think, ‘I’ll follow David, who is actually the username ‘Shadow’ or something.

    Is it something you can add or does Andy need to alter his plugin to do this?
    Let me know what you think.
    Thanks
    Ross :)

    Avatar of David Wood
    David Wood
    Participant

    @davidwood99

    hey guys – I’ve installed the plugin (buddypress 1.2.3 I think) and it DOES change display names to user names in forum posts, but in activity stream, notifications tab, and emails, the name just disappears.

    Any plans to fix this, or something I’m doing wrong?

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    @davidwood99 – The plugin requires the newest version of BP (v1.2.4.1), please upgrade both BuddyPress and the Usernames Only plugin.

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

You must be logged in to reply to this topic.