freakzone89
Forum Replies Created
-
Forum: Plugins
In reply to: [EP Admin Messages] ".ep-config.json" does not contain valid JSON.Another issue is, that the plugin can’t deal with “?,?,ü” letters. So i replaced them in the texts and it works.
Forum: Plugins
In reply to: [EP Admin Messages] ".ep-config.json" does not contain valid JSON.got it!
it seems to be the arrangement. i inserted it this way:
{ "messages": [ { "message": "This message is visible on all screens, for all users.", "location": "post_type:event, post_type:post" } ] }
and all works fine
Forum: Plugins
In reply to: [EP Admin Messages] ".ep-config.json" does not contain valid JSON.i tried another piece of code and added
{ "messages": [ { "message": "Test.", "user_role": "admin", "location": "dashboard" }, ] }
and now it’s also:
EP Admin Messages: Config file “.ep-config.json” does not contain valid JSON.
Forum: Plugins
In reply to: [EP Admin Messages] ".ep-config.json" does not contain valid JSON.as i added this code, it works!
Forum: Plugins
In reply to: [Contact Form 7] Creating custom fields not possibleI don’t know what happened, but now it works ?? And i didn’t do anything!
Cheers
oh yeah!
this is how it works, thank you phil! instead of
echo do_shortcode('[events_list category="8"]') ;
i used
echo EM_Events::output( array('category'=>8)) ;
cheers
i want to show a group of events that belongs to a certain event-category. for example users with role “h1” should only see events from category 8 and users with role “d2” should only see events from category 7 and so on.
so i need the code to only show events from a certain category.hope that’s the information you need.
yes, it does work. but it doesn’t fulfill the need of showing a seperate category of events.
i first tried this, to prove that the combination of the if statements work, and it does!
if ( user_role_check( 'd1' )): echo 'd1' ; elseif ( user_role_check( 'd2' )): echo 'd2'; elseif ( user_role_check( 'h1' )): echo 'h1'; elseif ( user_role_check( 'h2' )): echo 'h2'; elseif ( user_role_check( 'admin' )): echo 'admin; endif;
now i tried it Marcus’ way and changed it to:
if ( user_role_check( 'd1' )): echo 'd1' ; elseif ( user_role_check( 'd2' )): echo 'd2'; elseif ( user_role_check( 'h1' )): echo 'h1'; elseif ( user_role_check( 'h2' )): echo 'h2'; elseif ( user_role_check( 'admin' )): echo do_shortcode('[events_list]'); endif;
and it doesn’t work. i just changed the admin position as i’m working as an admin and to minimize the potential error sources. i think the code is also positioned the right way.
any other ideas?
cheers
i tried it but it doesn’t work!
is it also possible to add
<?php if (current_user_can(‘subscriber’)) { ?> xyz <?php } ?>
and then a filter using $EM_Event->event_owner instead of xyz? sorry for my dumb questions but i’m in the dark about coding
Hey Phil,
yes that’s true and it works fine. But my problem is another one: I want only members of the by restrictions chosen role to see the events they are allowed to join at the events-overview, not at the single event page itself.
Hope i made it clear now.
Cheers