adzay
Forum Replies Created
-
Hi Agelonwl, I tried really hard, but I couldnt find any where that determined where the ‘Event categories’ showed, so that I could edit it to be ‘Location categories’. Are you willing to guide me with a line in that I should look at?
@daedalon , Glad to see my minimal php knowledge helped someone out. ??
Funny enough, i worked that out but I just cant figure out a way to have one universal search form with a check box to choose whether it is a “event search” or “Location search” to decide whether to redirect the user to Locations List or Events list… If I find it I will also post.
I just had a thought about this. Does the original code that Melon made mean that whenever you enter in your postcode, it will ALWAYS give you results within a predefined radius?
Btw Marcus, as you are currently making a search form with add geozipping. Can your team please be active on the following thread
It will be really helpful.
Hi Daedsalon, what you are saying is right, but I am just gratefull the plugin has all the features it currently has, so Im going to be patient.
Below is what i used for my dedicated locations search page
<?php $counties = $_GET['country']; $region = $_GET['region']; $town = $_GET['town']; $state = $_GET['state']; $search = $_GET['em_search']; $args['page'] = (!empty($_REQUEST['pno']) && is_numeric($_REQUEST['pno']) )? $_REQUEST['pno'] : 1; $args['offset'] = ($args['page']-1)*$args['limit']; $args['pagination'] = true; $args['scope'] = 'future'; $args['country'] = $counties; $args['state'] = $state; $args['town'] = $town; $args['region'] = $region; $args['search'] = $search; $args['format'] = '<div> your format </div>
and then
echo EM_Locations::output(apply_filters('em_content_locations_args', $args));
Never mind I found it ??
https://wp-events-plugin.com/tutorials/create-your-own-event-scope/
Alan604 ..I think you make it into a scope ( the link above) and then add it to the EM_EVENTS::output.
Then you need to create form fields.. one with the name “postcode”. I haven’t figured out where you put in the radius yet though.
( It may not work though. I’m not good at php I only learn through trial and error lol)
Marcus, was you able to try this out. Are there any caveats that I should worry about. I’m at work at the moment but eager to try it out when I get home.
Hi Marcus,
I want to implement this into the Events-Search form.
Which document in Events manager website will tell me how to use filters for searching?Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Field NamesOh wow I figured it out. I used
get_post_custom_values
to list the field names and found that your fields have a ‘_’ at the begining.So for example it wasn’t “location_town” it was “_location_town”. It works with the plugin.
Thanks
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Field NamesIt does..Which is strange. Every custom field ( Made with Advanced custom field, doubt that is relevant though) in the locations/events post type is filled in easily by the form. Even the Title, description and Thumbnail.
What doesn’t work are the following:
Locations Post type:
Location Address
Location Town
Location region etcEvents Post type:
Event date start/end
Event start/end time
and locations fieldsThe above fields do not work.
I found on the plugin support site that someone used this method to set the post title with success.
$_POST['frm_wp_post']['102=post_title'] = $_POST['item_meta'][102]
with “$_POST[‘item_meta’][102]” being the value of the form field.
Do you know how I can change this so it can target one of the event manager fields such as Location_town, Event_start_date etc?
I attempted the following with no Luck:
$_POST['location_town'] = $_POST['item_meta'][102]
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Field NamesHi sorry.
Basically, If i was to make a form input field ( with the plugin) and call the form field: “colour”, there is an option that allows me to select that field, and then link it to my already created custom field “Color_attribute” etc. So when someone selects a colour in the form on the front end, that custom field is filled in for the post.
It works perfectly well for custom fields ( That I made myself). The form is even able to fill in the title, description and thumbnail.
It does not work for the core event manager fields such as ” Date to”, ” Start time”, “location address”. Which is what I would like. Are they technically ‘custom fields’?
I already asked on the Formidable plugin forum if there is a php option form me to assign the custom fields, so I can have an opportunity to use “$EM_Location->location_town”.
They told me to come back to you with the question in the first post. ??
here is a link to the “create a post” function the plugin has ( I do not expect you to read all, but just to get a quick Idea)
Hi Marcus,
How do I activate the locations search feature?
Hi angelonwl.
I want to show an image over my events thumbnails that say “finished” when there are in the past.
What can I call in an if function as “true” to decide whether to show a container or not.
e.g
<?php if( past attribute, true) ?>
I also wanted this. So Ill comment so I can be added to the feed.
Dang, thanks for telling me that. That was the main reason why I wanted to purchase the pro version today ( I will soon though, when my site is ready to make booking payments).
I’ve seen on other posts you guys have been a bit reluctant on teaching people about hooks ( I know its a burden to teach people things online) .But seeing as learning is my only option, is there any chance of you guys dropping ONE example of a Full hook ( not just “em_booking_validate”) for a field. I just need One example piece of code then Ill know where to go.
Computes code below.
if( ! empty( $_REQUEST['company'] ) ){ $EM_Booking->booking_meta['registration']['company'] = wp_kses( $_REQUEST['company'], array() ); }
It doesn’t help me because it doesn’t mention em_booking_add at all. If i can have a repost of that code including em_booking_add, I’m definitely sure how to apply it to em_event_save.
All will be good. ??
Thanks
Please tell me if you think I should make this into a new post.
Hi Marcus,
That’s unfortunate, because I need it to give my users the ability to create events/Locations. The issues that others had, were there any workarounds?