Support » Plugin: Simple Membership » User ID

  • Resolved The Dro

    (@desaad37)


    How can I call the User ID that matches the member ID? I am able to pull the members ID by using:

    $member_id = SwpmMemberUtils::get_logged_in_members_id();

    however, how do I call on the actual User ID based on the member and not who is currently logged in?

    For example, on the members directory page, I would like to display the user ID instead of the member ID next to the name.

    -dro

    • This topic was modified 6 months, 2 weeks ago by The Dro.
    • This topic was modified 6 months, 2 weeks ago by The Dro.
Viewing 7 replies - 1 through 7 (of 7 total)
  • or instead, is it possible to pull a custom field into the members directory page? I created one for nickname since you guys do not allow to pull from the nickname in the users meta table. I would like to display the custom form field for Nickname that I created as the display name for our users. I am okay with modifying the core plugin code even though I understand I will not be able to update it without it removing my changes. Is there someone in support I can speak with about this?

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, please check the following documentation. You might find what you are looking for.

    Kind regards

    The documentation shows the display for this on the listing page but I need this to work for the members directory page. The documentation did not show this unless i missed it. please link me directly to the article because i was unable to locate it.

    I am able to get the ID of the users and I am able to get the ID of the members, but I am unable to use the custom field or the wp nickname field on the members page. I know this is possible and I would like to speak to the developers about properly implementing this. Displaying the username for the world to see or any other personal information is NOT secure and I would like to work with you guys to maybe help make it a bit more secure.

    • This reply was modified 6 months, 2 weeks ago by The Dro.

    I was able to get this working for my site by changing the Company Name field to NickName. I updated it in the database and the code and now I am able to display it and call for the profile field to be edited in the edit profile page. I highly suggest you use this in your next update. if you would like help with adding it correctly to the code I can help with that as well so users don’t have to change the company name field as i did.

    • This reply was modified 6 months, 2 weeks ago by The Dro.
    • This reply was modified 6 months, 2 weeks ago by The Dro.
    • This reply was modified 6 months, 2 weeks ago by The Dro.
    Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for your suggestion. I have submitted a message to the developers to investigate further your commemoration.

    Kind regards

    • This reply was modified 6 months, 2 weeks ago by mbrsolution.
    Plugin Author wp.insider

    (@wpinsider-1)

    Thank you. You can use the contact form on our site to send the modifications you made. I will take a look and see what we can do.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘User ID’ is closed to new replies.