WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] More user details (13 posts)

  1. bkng
    Member
    Posted 2 years ago #

    In the user detail page in the events manager i would like to show some more (custom) user information.
    Anyone any idea how to show a few user fiels extra on this page.
    Newby and ammateur to PHP and SQL so im hoping for a not to difficult answer.

    Thanx in advance

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    you'd need to know PHP

  3. bkng
    Member
    Posted 2 years ago #

    Very helpful. Did it take you long to come up with that answer?

  4. agelonwl
    Member
    Posted 2 years ago #

    can you give some example of that user info? you can use placeholder at settings > formats/layouts > events format > Default single event format OR http://wordpress.org/support/topic/events-manager-eventslocation-pages-cant-get-sidebar?replies=20

    http://wp-events-plugin.com/documentation/placeholders/

  5. bkng
    Member
    Posted 2 years ago #

    HI and thanx for your response. What im talking about is that on the personal details page with an event you can see the name of a person who made a reservation as well as his email adress and his phone number. The correspondiong code for showing this is in em-person.php:

    <td><?php echo get_avatar($this->ID); ?></td>
    <td style="padding-left:10px; vertical-align: top;">
    <?php _e('Name','dbem'); ?> : &page=events-manager-bookings&person_id=<?php echo $this->ID; ?>"><?php echo $this->get_name() ?>

    <?php _e('Email','dbem'); ?> : <?php echo $this->user_email; ?>

    <?php _e('Phone','dbem'); ?> : <?php echo $this->phone; ?>
    </td>

    Now what i want is that i have a few custom (personal) fields in the database that i ask of people when registrating on my (Buddypress) site.
    These (2) custom fields are in the database in the bp_xprofile_fields.

    So the question is how can i show the contents of these 2 fields direct below the personal details of a person with a reservation.

    Hope yo can help me.

  6. agelonwl
    Member
    Posted 2 years ago #

  7. bkng
    Member
    Posted 2 years ago #

    Hi and thank you. I dont think that post is gonna help.

    I think my problem can be fixed verry simply but i dont know were to start.

    On the personal details page in the event manager it now shows the fields:

    [avatar]
    Name
    Email
    Telefone

    The only thing i want to show extra are 2 bp "extra fields".
    Doesnt sound to difficult does it :-)

    I so hope someone out there can help me.

    Thanx in advance,
    Bert

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    Very helpful. Did it take you long to come up with that answer?

    Yes, very. I'll try and spend more of my spare time on your question next time.....

  9. bkng
    Member
    Posted 1 year ago #

    I posted this question in an original topic as i noticed that that topic was "resolved". So this could be a double post in wich case im sorry.

    I think my problem can be fixed verry simply but i dont know were to start.

    On the personal details page in the event manager it now shows the fields:

    [avatar]
    Name
    Email
    Telefone

    The only thing i want to show extra are 2 bp "extra fields".
    Doesnt sound to difficult does it :-)

    I so hope someone out there can help me.

    Thanx in advance,
    Bert

    http://wordpress.org/extend/plugins/events-manager/

  10. rokib.dev
    Member
    Posted 1 year ago #

    Hi bkng did you able to solve the issue, i'm also facing similar issue...

  11. agelonwl
    Member
    Posted 1 year ago #

  12. rokib.dev
    Member
    Posted 1 year ago #

    Hi @agelonwl

    thanks for your replay, i already modify events-manager/classes/em-booking.php, events-manager/templates/forms/bookingform/booking-fields.php and events-manager/classes/em-person.php file but i didnt able to retrieve custom information of user on wp admin "Personal Details" table.

    rokib.dev

  13. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    in em-person.php there's a filter called - em_person_display_summary

    you need to override that and use similar methods to obtain the custom information such as

    get_metadata('user', $EM_Person->ID, 'dbem_phone', true)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.