Forum Replies Created
-
AuthorPosts
-
December 4, 2017 at 9:46 pm in reply to: Community event page refreshes on clicking add ticket #1398347
Gurdeep Sandhu
ParticipantHi, you can go head and close the thread, it seems like its working.
I dont know how or why :=)
December 1, 2017 at 11:18 pm in reply to: Community event page refreshes on clicking add ticket #1397098Gurdeep Sandhu
ParticipantI have done it.
November 30, 2017 at 11:19 pm in reply to: Community event page refreshes on clicking add ticket #1396360Gurdeep Sandhu
ParticipantThis reply is private.
November 29, 2017 at 12:33 pm in reply to: Community event page refreshes on clicking add ticket #1395196Gurdeep Sandhu
ParticipantThis reply is private.
Gurdeep Sandhu
ParticipantHi, its on the admin side if one tries to add event, this text comes.
Gurdeep Sandhu
ParticipantThanks Barry,
It is the most beautiful feature of the community plugin. To manage the
attendee and sales report on the front end. Only if it works 😉Gurdeep Sandhu
ParticipantIt would have been better to open the form in the same page. Anyway This issue has been resolved. Thanks !!!
Gurdeep Sandhu
ParticipantNo this Issue has not been resolved, i think this has not been touched even.
Gurdeep Sandhu
ParticipantOnly roles in the array can see the form
<?php $user = wp_get_current_user(); $allowed_roles = array('contributor', 'administrator'); if( array_intersect($allowed_roles, $user->roles ) ) { //stuff here for allowed roles } else { header("Location: https://www.yoursite.com"); die(); } ?>Gurdeep Sandhu
ParticipantHei Jamie, And this is not a new feature request. It is the hooks in the the calender event product which are not working. Even if i Deny this for a particular role. This is a bug.
Here is Tribe recommendation
All denied for customer role : but still can add/delete/edit events.
edit_tribe_events edit_tribe_events
edit_tribe_events
edit_others_tribe_events
edit_others_tribe_events edit_others_tribe_events
publish_tribe_events publish_tribe_events publish_tribe_events
read_private_tribe_events
read_private_tribe_events read_private_tribe_events
delete_tribe_events delete_tribe_events
delete_tribe_events
delete_private_tribe_events delete_private_tribe_events delete_private_tribe_events
delete_published_tribe_events delete_published_tribe_events delete_published_tribe_events
delete_others_tribe_events
delete_others_tribe_events delete_others_tribe_events
edit_private_tribe_events edit_private_tribe_events edit_private_tribe_events
edit_published_tribe_eventsThanks
GurdeepGurdeep Sandhu
ParticipantI don’t know what is going om at Tribe. Product is fine, but their are bugs inn community event and community tickets. I am waiting for them to fix for last one and half month.
Its looks like community event and community tickets are not high on priority.
Gurdeep Sandhu
ParticipantHei Jamie, this is a crude code. just for one role. Kind of overriding the bug. some people have more then one role.
This should be in the core of community event plugin, other plugin like membership (recommended by Tribe )or user role editor are not working with the community plugin and restricting the roles to add events.
Gurdeep Sandhu
ParticipantI made this very crude code, but it works on my site, use it at your own risk.
Copy this file /wp-content/plugins/the-events-calendar-community-events/src/views/community/edit-event.php
copy this to [your-theme]/tribe-events/community/edit-event.php
And then copy this code at line 24 or 25 after ?>
Change the name of yoursite.com to your site. subscriber wonæt get access to add event form.
code :
<?php $user = wp_get_current_user(); if ( in_array( 'subscriber', (array) $user->roles ) ) { header("Location: https://www.yoursite.com"); die(); } ?>Gurdeep Sandhu
ParticipantHi Leopoldo, i am just a client like you. Don.t have any other solution.
And i tested it as you said i have the same problem. its very bad.
Gurdeep Sandhu
ParticipantUse this free plugin and remove the permission for all the other roles.
-
AuthorPosts
