YesPapa
Forum Replies Created
-
Ok. Thank you. Perhaps somebody can show me the way.
Ok. In fact I want to order by name the groups list when creating an event and when affecting the event to a group?
Your code seems to order the events list, no?
I test this code but it don’t work :
$EM_Events = EM_Events::get( array('group'=>'this','scope'=>'future', 'limit' => 0, 'order'=>'ASC', 'orderby'=>'event_name') );
Here is the list I want to order : https://2.1m.yt/iaNQ3h.png
Thank you.
Try to play with the attributes but don’t work :
<?php /* @var $EM_Event EM_Event */ $people = array(); $EM_Bookings = $EM_Event->get_bookings(); if( count($EM_Bookings->bookings) > 0 ){ ?> <ul class="event-attendees"> <?php $guest_bookings = get_option('dbem_bookings_registration_disable'); $guest_booking_user = get_option('dbem_bookings_registration_user'); foreach( $EM_Bookings as $EM_Booking){ if($EM_Booking->booking_status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){ $people[] = $EM_Booking->get_person()->ID; echo '<li>'.bp_core_get_userlink($EM_Booking->get_person()->ID, $no_anchor = true/false, $just_link = true/false).'</li>'; }elseif($EM_Booking->booking_status == 1 && $guest_bookings && $EM_Booking->get_person()->ID == $guest_booking_user ){ echo '<li>'.bp_core_get_userlink($EM_Booking->get_person()->ID, $no_anchor = true/false, $just_link = true/false).'</li>'; } } ?> </ul> <?php }
Hi,
Sorry I don’t know why but the script don’t work. Any link on the user avatar!?
And I have another question : Is there a way to add the user name when passing over the image (like buddypress)?
Thank you.
Ok. I find the file but I can’t see where I can change how to sort by alphabetical order the groups list. Could you help me?
Thank you.
any idea of how to do this? could it by default in events manager?
Thank you. I look at it.
Ok. Sorry, all is right. I made some mistakes.
Hi,
I don’t see how to exactly write this code.
In the “events-list.php”, where put the code “$args[‘group’] = ‘my’;”:
$args = apply_filters('em_content_events_args', $args); if( get_option('dbem_css_evlist') ) echo "<div class='css-events-list'>"; echo EM_Events::output( $args ); if( get_option('dbem_css_evlist') ) echo "</div>";
Did I have to modify other files to hide events private groups.
Thank you @caimin_nwl .
I want to hide this groups in the events list and in the events widget.
I see this thread but I don’t know how to do it :
hereIf somebody knows.
Thank you.
Ok. I test on my developement website and it’s working. On my product website it isn’t working! Any idea?
$types[] = 'event';
can be different on the two websites?
Thank you.
Hi @calmin_nwl,
I test the new version and it seems to be OK for me. Thank you very much for your efforts.
I will test it much more the next week.
Thank you again.
And with logged users, in my case.
For me, it is on the front-end.
Thank you.
Can give you an access to my sand box website if you want?