database tables

16 views
Skip to first unread message

Andre Dublin

unread,
Jun 14, 2011, 5:25:58 PM6/14/11
to event...@googlegroups.com
Hey I'm back.

I wanted to find out where does eventpress or bpcp store the data in the database.

What I'm doing is writing a function that will email the administrator when an event has been submitted for approval and I will pick up on that post status and send an email.

Kunal Bhalla

unread,
Jun 15, 2011, 2:19:19 AM6/15/11
to event...@googlegroups.com
Have a look at how bpcp/controller.php generates activities for posts
being created/updated. The one in the release is slightly
incorrect—but this has been corrected in the trunk, which you can grab
here: https://github.com/kunalb/BuddyPress-Custom-Posts/blob/master/controller.php
(create_post_activity and edit_post_activity).

One of the advantages (I think) of eventpress is that it doesn't
create any new tables. Registrations are posts of type ep_reg, events
are posts of type ep_event. All registrations for a post are children
of that event, with the author of the registration as the person who
registered.

Kunal

Andre Dublin

unread,
Jun 15, 2011, 9:31:24 AM6/15/11
to event...@googlegroups.com
So the events are a custom post type, awesome thank you so much, I couldn't find the post type by searching the code but with this query I get all the events.

SELECT * FROM wp_posts WHERE post_type = 'ep_event'


Kunal Bhalla

unread,
Jun 15, 2011, 11:23:48 AM6/15/11
to event...@googlegroups.com
Ah. Doesn't `query_posts( Array( 'post_type' => 'ep_event' ) );` work?

Kunal

Reply all
Reply to author
Forward
0 new messages