Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi Vince,

    If you click the Edit/View link you’ll see the user info.

    Thread Starter vince_

    (@vince_)

    Hi,

    Yes you’re right. I have added a Name to my user and it appears now. Is there a way to display the username instead of the name ?
    Maybe if I change something in the class files it could do the trick.

    Thanks a lot Caimin,

    Vincent

    Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    sorry, but at the moment this isn’t possible. also, am wondering that your my-bookings page is set as Manage bookings page instead of My bookings page at Events > Settings > Pages > Other Pages ?

    Thread Starter vince_

    (@vince_)

    Hi Angelo,

    I am not sure if my problem was clear.
    Here is a screenshot of what I’d like to change :

    username.jpg

    Is it really impossible to display the username instead of the Name ?

    I don’t undertand your question very well. I have done a few modifications to the plugin templates …

    Thank you ! Vince

    Are you talking about the listing inside admin?

    Thread Starter vince_

    (@vince_)

    yes, that one.

    Thread Starter vince_

    (@vince_)

    I don’t favorise the use of my user’s real name in my web site. I’d like to show the username.

    Sorry Vince, I’m confused. If the list is in admin it wouldn’t be on your website(?) Maybe I misunderstand something…

    Thread Starter vince_

    (@vince_)

    The list isn’t in admin. It’s the list that is displayed when I click on :

    https://myurl.com/members/vince/events/my-bookings/

    (and when I am logged as vince)

    Sorry for the confusion, Vincent

    Plugin Support angelo_nwl

    (@angelo_nwl)

    hmm, I found something you can try though I haven’t tried this yet;

    you can hook into em_person_get_name filter

    e.g.

    function my_em_mod_change_username($name,$EM_Person){
     $name = $EM_Person->user_name;
     return $name;
    }
    add_filter('em_person_get_name','my_em_mod_change_username',10,2);

    *paste in your theme functions.php

    Thread Starter vince_

    (@vince_)

    It’s not working but something happens. The name “Vinh Phap” disappears. When I put : $EM_Person->ID
    It works and shows the user ID. Maybe I’m not far …

    Thread Starter vince_

    (@vince_)

    function my_em_mod_change_username($name,$EM_Person){
     $user_info = get_userdata($EM_Person->ID);
     $name = $user_info->user_login;
     return $name;
    }
    add_filter('em_person_get_name','my_em_mod_change_username',10,2);

    It’s working this way !

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Events – My Booking, doesn't show the name of bookers’ is closed to new replies.