Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 4 months, 2 weeks ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

Member ID number in profile URL

  • This topic has 3 replies, 2 voices, and was last updated 6 years, 12 months ago by Basem Aly.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 31, 2018 at 10:41 am #6496
    Basem Aly
    Participant

    Hello. I’m not precisely sure how member profile URL’s are generated. When I click on a user’s profile I get the URL https://commons.pratt.edu/members/xxxxxxx/profile/ where ‘xxxxxx’ is their internal school ID number. We’re not allowed to expose this number, even for internal audiences. Is there a way to mask or replace that ID? It’s not an internal wordpress User ID, but it seems to be pulling from our central LDAP database. Is there a way to replace or obscure that portion of the URL when viewing user profiles?

    May 31, 2018 at 3:55 pm #6497
    Basem Aly
    Participant

    After digging around a bit, I realized that some users are identified by their username, while others are identified by their ID number. I’m not sure what’s causing the difference. It seems their user profiles have the same type of information. However, when I try to look at my user, for example, I can only access my profile using my ID number but not my username in the URL.

    THIS WORKS- https://commons.pratt.edu/members/IDNUMBER/
    THIS DOESN’T- https://commons.pratt.edu/members/USERNAME/

    Any ideas on where I might look? Thank you.

    May 31, 2018 at 6:02 pm #6499
    Ray
    Keymaster

    In your LDAP setup, you probably synced the LDAP user ID to the user_login and user_nicename DB fields in the wp_users table.

    If you want BuddyPress to use something else for the profile URL, you can set the username in the user_nicename DB field and BuddyPress will use that for the user profile URL.

    Keep in mind that this might break whatever custom configurations you might have on your install.

    If you’d rather not mess with altering the data in the user DB columns, you can also filter 'bp_core_get_user_domain' and 'bp_core_set_uri_globals_member_slug'.

    View this ticket for more info:
    https://buddypress.trac.wordpress.org/ticket/6694

    June 4, 2018 at 9:46 am #6500
    Basem Aly
    Participant

    Thank you, Ray. That was extremely helpful. I fixed it with a MySQL query.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register