Home › Forums › Calendar Products › Community Events › WordPress page i'ds for community event pages?
- This topic has 6 replies, 2 voices, and was last updated 12 years, 1 month ago by
Casey.
-
AuthorPosts
-
March 17, 2014 at 10:46 am #119858
benjamin1986
ParticipantHi,
I’ve purchase community events add-on, and its great. But is is possible to find the page i’ds of the default community event pages (http://suffolkcinemanetwork.org/events/community/add, http://suffolkcinemanetwork.org/events/community/list) or, do they even have page i’ds. I know how to find page i’ds for all other pages on my site but struggling with these 2, i’m guessing they work in a different way?
Anyway, reason is I’m restricting my community event submissions page to members only (i don’t want to confuse them with the wordpress backend interface, they are a varied bunch) and i want users to be able to view my ‘members only’ vertical menu on these two pages using the page id’s (if they have them)?
I hope this makes sense. Thanks. Ben
March 17, 2014 at 1:18 pm #119984Casey
ParticipantBen,
Thanks for getting in touch. The Community Add-on uses virtual pages for the Event Submission/Edit form, and the ‘My Events’ listing page, so they don’t have any WordPress page IDs. However, you can restrict access to members only by going to ‘Events->Settings->Community’ and making sure ‘Allow Anonymous’ submissions is turned off (screenshot) so that only logged-in users can submit events.We also have some conditional PHP tags for use in your theme:
- tribe_is_community_edit_event_page() – used for determining if the user is viewing the edit/submission form
- tribe_is_community_my_events_page() – used for determining if the user is view the ‘My Events’ listing page
Give those suggestions a try and let me know if you have further questions. Thanks! π
-Casey-
March 17, 2014 at 1:26 pm #120002benjamin1986
ParticipantHi,
Thanks for the speedy response, but not quite what i was after. I’m already restricting access to these pages using 2s member pro plugin.
Understand about the id’s, though this might be the case. The reason i wanted to use this is that the members menu should only be visible to members, and i was using the i’d’s to specify on the theme which pages it should display on. I guess i could try the reverse and possibily get the result im after (Tell the members menu to show on ALL pages and then use page id’s to add exceptions to this rule – omitting all public facing pages from this rule)
Slightly long way round, but hopefully might get the menu to display on the virtual pages – will let you know how this goes.
Thanks again. ben
March 17, 2014 at 1:29 pm #120006Casey
ParticipantThanks for the reply, Ben. I’ll leave this thread open, for the time being, if you have further questions. Thanks! π
-Casey-
March 25, 2014 at 5:56 am #122832Casey
ParticipantI just wanted to follow up and see if youβre all set here or if you still have further questions. Just let me know if you need further help or if I should go ahead and close out this thread. Thanks! π
-Casey-
March 25, 2014 at 6:00 am #122844benjamin1986
ParticipantHi,
Thanks, sorry for the delay.
I’ve managed to work around it, and find a decent enough solution. Turning off anonymous submissions will give me what i need as you decribed.March 25, 2014 at 6:09 am #122867Casey
ParticipantGreat! Thanks for confirming that this got you sorted. Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.
By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://wordpress.org/support/view/plugin-reviews/the-events-calendar?filter=5
Thanks in advance. π
Cheers,
Casey -
AuthorPosts
- The topic ‘WordPress page i'ds for community event pages?’ is closed to new replies.
