WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] list of attendees (42 posts)

  1. pesiiin
    Member
    Posted 2 years ago #

    Hi, which is the best way to list attendees on single event page ? I try use #_ATTENDEES this way:
    [ Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    but no attendie there.
    thanx a lot

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

  2. agelonwl
    Member
    Posted 2 years ago #

    tried it (#_ATTENDEES) and seems to be working fine, place it in EM Settings > Formats/Layouts > Default single event format ?

  3. pesiiin
    Member
    Posted 2 years ago #

    yes as I paste code (now I see it was too long) so just last few lines:

    {has_bookings}
    <h3>Bookings</h3>
    #_BOOKINGFORM
    {/has_bookings}
    <h3>Attendee list</h3>
    #_ATTENDEES

    can You show me how it looks on some demo page ?

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    here's what's on the demo page - http://pastebin.com/mKPcdVmv

  5. pesiiin
    Member
    Posted 2 years ago #

    thanx Mark, but nothing to do with my guestion. I need to see all attendees under each event (using as RSVP of team players to sport match, so coach needs to know who'll be there). If I use `<h3>Attendee list</h3>
    #_ATTENDEES` I did not see anything under <h3>Attendee list</h3> even if I book myself to event like a test player of the match.

  6. agelonwl
    Member
    Posted 2 years ago #

    looks @ http://shareimage.org/images/nacvyc96yer4ffya02q6.png

    Also, can you try it on default theme or turn-on WP_DEBUG?

  7. pesiiin
    Member
    Posted 2 years ago #

    exactly what I need. I install test wp and use default theme. after booking I see there avatar (on my site I dont use avatars, maybe its reason I cant see anything). how can I switch from avatars to the list from Your picture ?

  8. agelonwl
    Member
    Posted 2 years ago #

    here's the code (shared by @Shonu); use the template file @ placeholders/attendees.php and copy these codes to it

    For more instructions:
    http://wp-events-plugin.com/documentation/using-template-files/


    [ 86 lines of code moderated. For more than 10 lines of code please use pastebin.com instead. ]

  9. pesiiin
    Member
    Posted 2 years ago #

    thanx, working fine

  10. harsha52
    Member
    Posted 2 years ago #

    Hi All,

    I am unable to follow this as i am using "BuddyPress Default 1.5.5 by the BuddyPress team" Theme

    i am unable to find the this path "wp-content/themes/theme/plugins/" as mentioned in below path.

    http://wpem-site.s3.amazonaws.com/wp-content/uploads/2011/04/template-folder-theme.png

    Please help i am stumped :(

    Thanks
    Harsha

  11. agelonwl
    Member
    Posted 2 years ago #

    @harsha52

    how about bp-themes\bp-default\plugins\events-manager ?

    Note: you have to create folders for plugins\events-manager inside bp-themes\bp-default

  12. harsha52
    Member
    Posted 2 years ago #

    Thanks for the quick reply agelonwl,

    Let me try this method right now.

    Thanks
    Harsha.

  13. harsha52
    Member
    Posted 2 years ago #

    Hi agelonwl,

    It worked absolutely fine, But i do not want Avatars to be displayed there
    i have used "[event event=26]#_ATTENDEES[/event]" placeholders in the event page. If i remove "[event event=26]#_ATTENDEES[/event]" this nothing display's. Can you please help me.

    Thanks
    Harsha

  14. agelonwl
    Member
    Posted 2 years ago #

    did you try my previous post, on how to modify the template attendees.php ?

  15. harsha52
    Member
    Posted 2 years ago #

    i am sorry which is your previous post ??

    Did you mean this ?

    "@harsha52

    how about bp-themes\bp-default\plugins\events-manager ?

    Note: you have to create folders for plugins\events-manager inside bp-themes\bp-default" if yes, yeah i tried it displayed like "http://wowdesigns.in/projects/headstart_test/Log.PNG" i do not want the avatars there.

    if not can you please be more clear which is your previous post ?

    Thanks
    Harsha.

  16. agelonwl
    Member
    Posted 2 years ago #

    my post above your first post plus "@harsha52"

    Note: if you already tried it, comment out line get_avatar($EM_Person->ID, 50); in your attendees.php

  17. harsha52
    Member
    Posted 2 years ago #

    Yup i followed that,

    But it is displaying like this http://wowdesigns.in/projects/headstart_test/Log.PNG, i do not want Avatars there.

    Thanks a lot again
    Harsha

  18. agelonwl
    Member
    Posted 2 years ago #

    can you paste your code snippet? also, did you try to remove or comment out the original template file?

  19. harsha52
    Member
    Posted 2 years ago #

    This is what i placed in "events-manager/placeholders/attendees.php" i want the Avatars to be displayed next to name.
    not above the table.

    [ 105 lines of code morderated. For more than 10 lines of code please use pastebin.com ]

    Thank you
    Harsha

  20. agelonwl
    Member
    Posted 2 years ago #

    remove or comment this lines

    $people = array();
    foreach($EM_Event->get_bookings() as $EM_Booking){
    	if($EM_Booking->status == 1){
    		$people[$EM_Booking->person->ID] = $EM_Booking->person;
    	}
    }
    ?>
    <ul class="event-attendees">
    	<?php foreach($people as $EM_Person): ?>
    
    <li><?php echo get_avatar($EM_Person->ID, 50); ?></li>
    	<?php endforeach; ?>

    then find this line

    $row = array(
                   $userName,

    change to

    $row = array(
                   $userName.' '.get_avatar($isCurrentUser, 50) , // change the style as needed
  21. harsha52
    Member
    Posted 2 years ago #

    Thanks agelonwl,
    It was a great help form you it means a lot, but the Avatars is not displaying there it displays like this http://wowdesigns.in/projects/headstart_test/Bug2.PNG :(, And the Avatars are not clickable is it something that i have to do with the links ?? I am sorry i dono any thing about coding part it will be a great help form your end if this clear.

    Thanks a ton
    Harsha.

  22. harsha52
    Member
    Posted 2 years ago #

    @ All,

    Avatars of the attendees are not clickable, my requirement is on click of the avatars of the Attendees it should take to the attendees(user) profile.

    Avatars is displayed like this(Click on the below link) now :(
    http://wowdesigns.in/projects/headstart_test/Bug2.PNG

    Can any one please help me how to resolve this issue ?

    Thanks
    Harsha.

  23. agelonwl
    Member
    Posted 2 years ago #

    @harsha52

    you can try this link http://wordpress.org/support/topic/what-is-the-users-profile-link-and-where-to-find-it?replies=3 ; basically, you need to add something like <a href="">get_avatar($isCurrentUser, 50)</a>

  24. harsha52
    Member
    Posted 2 years ago #

    Hi agelonwl,

    I was waiting for your reply since 14 hours, anyways thanks for that
    i will try this right now

    Thanks again
    Harsha.

  25. harsha52
    Member
    Posted 2 years ago #

    Hi agelonwl,

    Again i am stumped :(

    I tried using a anchor tag, and referred(href) to the user profile, it is still not working do not know why is this happening, Unable to figure out where i am going wrong.

    Please help

    Thanks
    Harsha

  26. agelonwl
    Member
    Posted 2 years ago #

    can you paste that part of the code?

  27. harsha52
    Member
    Posted 2 years ago #

    This is my code

    [ 103 lines of code moderated. For more than 10 lines of code please use pastebin.com instead. ]

    Please help me, The avatar should display and on click of avatars it should navigate to the user profile.

    Thanks
    Harsha.

  28. agelonwl
    Member
    Posted 2 years ago #

    I'll try this one and update you.

  29. harsha52
    Member
    Posted 2 years ago #

    Sure

    Thanks
    Harsha.

  30. lazyazian
    Member
    Posted 2 years ago #

    I would love to have avatars displayed and clickable to bring me to the user's profile too. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic