kpilars
Forum Replies Created
-
ok, thanks. I’ll try to template everything then ??
ok, great thanks.
Hey,
hmm, i did not make myself clear.
When the user is creating an event there is option for providing location where the event will take place. And even if user role is having rights that NOT allowed to see others locations, dropdown for choosing location is populated with every place registered in system by any user. There are all of them. I’d like to limit this dropdown to locations which were created by the user setting the event. So user sees only locations which was made by him/her.
The icing on this cake will be when my user will see also locations created by admin. So admin add a place and users creating event sees their places only and admin’s.I was designed for approval i’m on it right about now..
Joanina,
Frontend is almost done. I’ll send it over today to Marcus and yess, help will be appreciated ??Marcus
Someone is me ?? I have, as poedit showing, 23% done. I was not sending earlier while getting to know logic of plugin and what it is want to say to the user so locally was bit faster.
I’m sending this to you right now. Please let us know when it will be on glotpress.
cheers ??Hi Marcus,
So…
I’m in the middle of translating “events manager” to polish. I’m afraid if something will change in future release of your plugin it will affect main language file. True/false ? Should i translate entire file and send it over ?Marcus,
i read, so i think reading with understanding im much more important ??thanks anyway ??
Hello angelo_nwl,
That’s working! Thank You very much.
I feel stupid now ?? You linked documentation. I’ve been there but i thought that location attributes praragraph are for location. But title of document clearly state: EVENT! search attributes! silly /me.Thank you that was what i needed.
or (array(‘location_town’=>’London’)); like you said, prints same thing
Marcus,
With your first hint, I used that too with no luck.
Moreover when i did:
$events = EM_Events::get(array(‘location_city’=>’London’));
and print_r the $events there is no information about the city in any of EM_Event Object. Heres first one: https://pastebin.com/wCGRgM5R
Is my settings for events no good?I have latest Events Manager and lastest released WP.
Hi philipjohn,
As i read in documentation of a plugin, these two functions are almost equal. One (get) just getting something , whereas (output) do first (get) then do pretty formatted output in addition. So both works basicly the same.
I also chceck that in my enviroment now and thats correct.i have another idea to make it by wp query but i have no clue how to get it
With meta query i can ask for:
array(
‘key’ => ‘_location_id’,
‘value’ => ‘2’
)How can i ask about the values of _location_id which have London in their sql table in location_town ?
Marcus,
https://wp-events-plugin.com/documentation/event-search-attributes/
On this page i did not found ‘location_city’ option for EM_Events. Are you sure there is an opition for that ? or maybe i did something wrong ?Looking good so far it this query ?? :
<?php echo EM_Events::output(array(‘search’=>’London’)); ?>
But i belieive at some point i may damage the results ??Hello Marcus,
I did
<?php echo EM_Events::output(array(‘location_city’=>’London’)); ?>Where London is a name of the city where location of the event is and
this query gves me every future event sorted by date no matter where location is.
It not cut results to the events placed in locations where the city is London.Ok, i did it by adding line below in my single-event somewhere before first shortcode question about part of event information
<?php $content=get_the_content_with_formatting(); ?>
so, is still get information after content is processed but it could happening anywhere in file so ..
i know, sorry, but all polish people with ability to use english and interested in this plugin are sitting here ?? so my target is here