jurvrn
Forum Replies Created
-
angelo_nwl (@angelo_nwl)
I am a starting user and can not write such a code.
The fact is that the transfer of templates in the topic folder does not work!angelo_nwl (@angelo_nwl),
it does not work in a theme folder (to use templates) :-(.angelo_nwl (@angelo_nwl), I am sorry, but it does not work.
screen of code
If I delete this code in the file of plugin – it works. It turns out that the template transfer does not work in the theme folderangelo_nwl (@angelo_nwl),
If the code is used:
echo EM_Events::output($cell_data['events'],array('owner'=>get_current_user_id(),'format'=>get_option('dbem_full_calendar_event_format')));
that code:var_dump(array('owner'=>get_current_user_id())); var_dump(array_search (get_current_user_id(),array('owner'=>get_current_user_id())));
gives out the result:
array(1) { ["owner"]=> int(2) } string(5) "owner"
That is, we see that the user ID is determined and used when executing the code, but there is no result.
P.S. If using array(‘owner’=>”me”,… then the same
angelo_nwl (@angelo_nwl), this is what I needed!
Thank you very much for your high level plugin.
angelo_nwl (@angelo_nwl), many thanks for the support!
If I could use the change in the very template itself, I could substitute any value of an auxiliary user through the function
owner = get_current_user_id()
.
Shortcodes like [events_calendar full=1 owner=2] can not be dynamic.Good day, angelo_nwl (@angelo_nwl)
The code dont’t work ??
<?php echo EM_Events::output($cell_data[‘events’],array(‘owner’=>1,’format’=>get_option(‘dbem_full_calendar_event_format’))); ?>
angelo_nwl (@angelo_nwl)
If I put the shortcode [events_calendar full=1 owner=1/2/3…] into the page or widget – events are shown those added by the user with the number 1/2/3…
But I need the number to be determined automatically that user is logged on on the site.
It could be done in /wp-content/themes/easywp/plugins/events-manager/templates/calendar-full.php , but there does not workarray('owner'=>1,
… and useget_current_user_id
…$cur_user_id = get_current_user_id();
<?php echo EM_Events::output($cell_data[‘events’],array(‘owner’=>$cur_user_id,’format’=>get_option(‘dbem_full_calendar_event_format’))); ?>- This reply was modified 4 years ago by jurvrn.
Thank you, angelo_nwl (@angelo_nwl)!
Tell me more please – how to open this page in the pop-up window? (May I can be used frame?)angelo_nwl (@angelo_nwl) But other users still see these events on widgets
https://nimb.ws/H7zrjpThanks, angelo_nwl (@angelo_nwl) !
I made0:/d919180q.beget.tech/public_html/wp-content/themes/easywp/plugins/events-manager/templates/calendar-full.php
and replace
..... <ul> <?php echo EM_Events::output($cell_data['events'],array('owner'=>1,'format'=>get_option('dbem_full_calendar_event_format'))); ?> <?php if( $args['limit'] ......
but all users see events added by other users ??
Hi, Webnus (@webnus) My request is still relevant. With best wishes!
Hi, duivelkewilly (@desmetjozef)
of course logged-in users can post their own event. All events of users visible in the total general calendarMetagauss Support (@mgsupport)
Here is one way to do to users are able to see the their own events –use [em_events_own] or add option test option screen
duivelkewilly (@desmetjozef), i’m sorry with you – remains still – all events see all other users