Events Made Easy › Forums › How do I … › Create Event Hosts that Can Set Name, Time, etc
- This topic has 7 replies, 2 voices, and was last updated 9 years, 4 months ago by Anonymous.
-
AuthorPosts
-
Wed 1 Jul 2015 at 20:33 #54593AnonymousInactive
My group is attempting to set up a reoccurring event (Happy Hour) every Friday. I woould to create an event that has the following attributes:
1. Reoccuring (no problem)
2. A WP user can register for the event as the host. I would like them to be able to the event’s #_LOCATIONNAME, #_ADDRESS, #_STARTTIME, and #_ENDTIME (start end time are not critical). A typical registration would like “John Smith, 123 Maple St, 5:30PM, 7:30PM”.
3. If the event is already booked (hosted), then to diplay the above information. If it happens to be the host viewing the event, then display something to the effect of ‘You have alreadyd registered to host this event.’ (this part is no problem so long as I can do #2. however, if I have to approach #2 differently, then I would need help displaying the info)I’ve tried dozens of different approaches, none of them worked. Most of them were centered around the idea of a having a 1 seat event but then not being able to display the 1 booking to everyone. (I didn’t list all my failures because it would fill pages). I read through documentation and cannot see how to do this. Any help would be greatly appreciated.
Wed 1 Jul 2015 at 23:24 #54595FrankyKeymasterNumber 2 is not very clear to me. But I think you’re looking for conditional tags:
http://www.e-dynamics.be/wordpress/?cat=24
and check for the value of #_RESERVEDSPACES and/or #_IS_REGISTERED:[eme_if tag='#_IS_REGISTERED' value='1'] You have already registered to host this event [/eme_if] [eme_if tag='#_IS_REGISTERED' value='0'] [eme_if2 tag='#_RESERVEDSPACES' gt='0'] This event is hosted [/eme_if2] [/eme_if]
Thu 2 Jul 2015 at 15:07 #54598AnonymousInactiveFranky – You responded to #3. The real question comes with #2.
#2 (reworded). I want any authenticated user to be able to sign up as a host for an event. When they do, they can set the event’s location, address, start time and end time (#_LOCATIONNAME, #_ADDRESS, #_STARTTIME, and #_ENDTIME). However, it seems as if the tags are set by the event creation in the WP dashboard and are NOT available in the booking form.
The goal is to have a reoccuring event (every Fri). The group of users can click any event and choose to register to host it. If the event is already booked/hosted, the users would instead see the details (ie, John Smith’s House, 123 Maple St, 530-730).
Thu 2 Jul 2015 at 23:20 #54599FrankyKeymasterSorry, but the location and time are part of the event before the booking, not after …
You could try to use custom form fields though, and show the booking info to others.Fri 3 Jul 2015 at 03:14 #54600AnonymousInactiveI did attempt that route…created the fields MyLocation and MyAddress (Field{1) and Field{2} respectively). Hiding the booking form is easy enough using #_RESERVEDSPACES = 0. However, I could not figure out how to display the custom fields — and I have no idea how to access that info.
Can you tell me what the syntax would look like? Within the booking form, Field{1} refers to a new entry in the table. Instead, I want to access Field{1} for the one seat that is booked. I don’t know if there is a way to use the BookingID — and if there is, I don’t know how to find the BookingID that I want (it’s not just as simple as saying the first booking is BookingID=1).
Fri 3 Jul 2015 at 16:57 #54602FrankyKeymasterSince it is only one person that can do the booking, use [eme_bookings] with a template that shows the answers per person. Normally #_FIELD{xx} also works in showing the info per booking, see this: http://www.e-dynamics.be/wordpress/?cat=27
Fri 3 Jul 2015 at 21:11 #54603AnonymousInactivegreat — thanks. For anyone intersted, the solution I came up with is below (I’m sure there are much cleaner ways to do it)….
For the event, I set the ‘Single Event Format’ AND the ‘Registration Form Format’ to tmpHappyHour. I also set the ‘Cancel Registration Form Format’ to tmpCancelHost (I did this because I only want to show the cancel button).
tmpHappyHour
[eme_if tag='#_IS_LOGGED_IN' value='0']
[eme_if2 tag='#_AVAILABLESPACES' value='1']
No one has volunteered to host the event. If you wish to host this event, please login first (click Login at the top of the page – it will prompt you to create an ID if you don’t already have one).You are NOT logged in. [/eme_if2]
[eme_if2 tag='#_AVAILABLESPACES' value='0']
[eme_bookings id=#_EVENTID template_id=7][/eme_if2]
[/eme_if][eme_if tag='#_IS_LOGGED_IN' value='1']
[eme_if2 tag='#_AVAILABLESPACES' value='0']
[eme_bookings id=#_EVENTID template_id=7] [/eme_if2]
[eme_if2 tag='#_IS_REGISTERED' value='1'] <BR><BR>You have already registered to host this event. In order to cancel, use the button below.<BR><BR>
[eme_delete_booking_form id=#_EVENTID]
[/eme_if2]
[eme_if2 tag='#_AVAILABLESPACES' value='1']
[eme_if3 tag='#_IS_REGISTERED' value='0'] If you would like to host the event, please fill out the below info (ie, John Smith’s | 1234 Jericho Drive).
<table class=’eme-rsvp-form’>
<tr><th scope=’row’>Name*:</th><td>#_NAME</td></tr>
<tr><th scope=’row’>E-Mail*:</th><td>#_EMAIL</td></tr>
<tr><th scope=’row’>Address*:</th><td>#_ADDRESS1</td></tr>
<tr><th scope=’row’>Location (ie, Smith’s House)*:</th><td>#_FIELD{1}</td></tr>
<tr><th scope=’row’>Address (ie, 1234 Jericho Dr)*:</th><td>#_FIELD{2}</td></tr>
<tr><th scope=’row’>Hosting? (1=Yes):</th><td>#_SEATS</td></tr>
</td></tr>
#_CAPTCHAHTML{<tr><th scope=’row’>Please fill in the code displayed here:</th><td>#_CAPTCHA</td></tr>}
</table>
#_SUBMIT
[/eme_if3]
[/eme_if2]
[/eme_if]tmpHostInfo (template id=7)
<p>#_STARTDATE – #_STARTTIME</p><B>Location:</B> #_FIELD{1}<BR>
<B>Address:</B> #_FIELD{2}<BR>
<BR>
Send email to the host.<BR>
<BR>
Add this event to your calendar. #_ICALLINKtempCancelHost
<div id=”myform” style=”display: none;”>
<table class=’eme-rsvp-form’>
<tr><th scope=’row’>Name*:</th><td height=”1″>#_NAME</td></tr>
<tr><th scope=’row’>E-Mail*:</th><td height=”1″>#_EMAIL</td></tr>
#_CAPTCHAHTML{<tr><th scope=’row’>Please fill in the code displayed here:</th><td>#_CAPTCHA</td></tr>}
</table>
</div>
#_SUBMITFri 3 Jul 2015 at 23:17 #54604AnonymousInactiveJust an update, because the above doesn’t work after all!!!
IMPORTANT – I had to leave the ‘Single Event Format’ blank or else everything would breaker once the event was booked. Also, I had to have the number of spaces be greater than 1 (even though I only want one booking). It appears that if you have 1 space, and it is booked, the plugin will not show the Registration Form (makes sense). However, if there is anything in the ‘Single Event Format’ when there is no bookings, then the Registration Form gets hidden and all you see i s’No Responses Yet.’ Therefore, I had to keep the Registration Form visible all the time (by increasing the # of seat to > 1) and put all the code in there.
Anyways, I have ‘Registration Form Format’ set to tmpHappyHour, ‘Spaces’=10
tmpHappyHour — (I had to use the tag #_RESERVEDSPACES instead of #_AVAILABLESPACES
[eme_if tag='#_IS_LOGGED_IN' value='0']
[eme_if2 tag='#_RESERVEDSPACES' value='0']
No one has volunteered to host the event. If you wish to host this event, please login first (click Login at the top of the page – it will prompt you to create an ID if you don’t already have one).You are NOT logged in. [/eme_if2]
[eme_if2 tag='#_RESERVEDSPACES' value>='0']
[eme_bookings id=#_EVENTID template_id=7][/eme_if2]
[/eme_if][eme_if tag='#_IS_LOGGED_IN' value='1']
[eme_if2 tag='#_RESERVEDSPACES' value>='0']
[eme_bookings id=#_EVENTID template_id=7] [/eme_if2]
[eme_if2 tag='#_IS_REGISTERED' value='1'] <BR><BR>You have already registered to host this event. In order to cancel, use the button below.<BR><BR>
[eme_delete_booking_form id=#_EVENTID]
[/eme_if2]
[eme_if2 tag='#_RESERVEDSPACES' value='0']
[eme_if3 tag='#_IS_REGISTERED' value='0'] If you would like to host the event, please fill out the below info (ie, John Smith’s | 1234 Jericho Drive).
<table class=’eme-rsvp-form’>
<tr><th scope=’row’>Name*:</th><td>#_NAME</td></tr>
<tr><th scope=’row’>E-Mail*:</th><td>#_EMAIL</td></tr>
<tr><th scope=’row’>Address*:</th><td>#_ADDRESS1</td></tr>
<tr><th scope=’row’>Location (ie, Smith’s House)*:</th><td>#_FIELD{1}</td></tr>
<tr><th scope=’row’>Address (ie, 1234 Jericho Dr)*:</th><td>#_FIELD{2}</td></tr>
<tr><th scope=’row’>Hosting? (1=Yes):</th><td>#_SEATS</td></tr>
</td></tr>
#_CAPTCHAHTML{<tr><th scope=’row’>Please fill in the code displayed here:</th><td>#_CAPTCHA</td></tr>}
</table>
#_SUBMIT
[/eme_if3]
[/eme_if2]
[/eme_if] -
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.