Forums

EventPress
EventPress (18 posts)

  1. vousagency
    Member
    Posted 1 year ago #

    I'm using WordPress 3.0.1 and the EventPress plugin.
    I would like to know, how to display the date of an events in the "upcoming events" widget. can you help me?
    http://wordpress.org/extend/plugins/eventpress/

  2. kunalb
    Member
    Posted 1 year ago #

    Hi -- at the moment there's no easy way to do this. I'll try to see if I can push some options into this widget about which fields to display in the 0.1.2 release (can't promise, though).

  3. picard102
    Member
    Posted 1 year ago #

    Is there any sort of documentation for this plugin? Beyond how to activate it in the plugin manager I mean.

  4. kunalb
    Member
    Posted 1 year ago #

    There's a fairly decent amount of internal documentation if you want to look into the code. However, there's no external documentation atm.

  5. picard102
    Member
    Posted 1 year ago #

    Is there anything out there as far as even doing simple things like displaying a list of events? I've googled for articles about it, but I didn't find anything other then announcements about the plugin.

  6. kunalb
    Member
    Posted 1 year ago #

    EP is a relatively young plugin. My first priority is to make it (and the corresponding BuddyPress Custom Posts) completely stable with automated testing (considering the feature list, manually testing it in WordPress, then in BuddyPress is extremely painful) , then add docs for BPCP for developers to be able to extend it, and then move on to EventPress documentation.

    As for an events list, if you don't have pretty permalinks a http://myurl.com/?post_type=ep_event or if you do have pretty permalinks http://myurl.com/events/ will display a complete list. A page is also created automatically for a calendar and an events list, but not published by default. So you can publish those pages if you want to be able to add them to the menu by default.

  7. picard102
    Member
    Posted 1 year ago #

    What I'm trying to accomplish is two things. The first is to display the next event upcoming in a featured area with the date and time as well as a permalink to the events page.

    Secondly I'm trying to display a list of upcoming events only by date with the title of the link being the date.

    Not sure if either of these are possible, but from what I gather it should be, and I've been able to do some rudimentary displaying of the events title and permalink. But do you have any suggestions on how to tackle these two problems?

  8. kunalb
    Member
    Posted 1 year ago #

    The best way would be to do a custom post type query -- events are stored with the type ep_event, with registrations being stored as ep_reg.

    So just do a query_posts( Array( 'post_type' => 'ep_event' ) ) and you can use the standard template tags within the loop; wp specific tags are in views/wp-tags.php and the name should more or less tell you what each tag is for; if you still need to dig deeper into the post type metadata (which you probably shouldn't have to), then the dates, etc. are stored in _ep_<type name>. This bit is carried out in controllers/wp.php -- so you can see exactly what is being saved where in case you want to specifically query for it.

  9. picard102
    Member
    Posted 1 year ago #

    Sorry if I'm being a pain. But hopefully this all helps anyone else trying to do something similar.

    What I've been using was

    <?php query_posts( Array(
    'post_type' => 'ep_event',
    'orderby' => 'meta_value',
    'meta_key' => '_ep_start',
    'order' => 'DESC',
    'showposts' => 6
    ) );?>

    But it shows past events and I only want upcoming events displayed in that query. I also can't suss out how to get another query to only display the next upcoming event only.

    Also, I looked into the date tags, but I'm not sure how too change the structure of the date format displayed. I think I figured out how to display the machine readable date, but not a custom format for it.
    I want to have F l and S separately wrapped in a sup tag.

  10. kunalb
    Member
    Posted 1 year ago #

    So this will show only all events that have starting date in descending order. To show only upcoming events, you'll have to compare the string with the current date, so something like

    $query_posts( Array(
    'post_type' => 'ep_event',
    'meta_key' => '_ep_start',
    'order' => 'DESC',
    'orderby' => 'meta_value',
    'meta_compare' => '>=',
    'meta_value' => time()
    ) );

    worked fine for me -- it only show events with start dates higher than right now.

    As for date tags, they currently display the date/time based on your blog settings; to really get fine grained control I'd suggest rolling your own template tags to get_post_meta( $postid, '_ep_start', true ) and then displaying them using PHPs date function, or date_i18n if internationalization is an issue for you.

  11. kunalb
    Member
    Posted 1 year ago #

    Also to just get the next upcoming event, you could order them in ascending order, compare with >= time() to get only upcoming events, and limit results to a single event.

    That would just show the next event in the list.

  12. picard102
    Member
    Posted 1 year ago #

    <?php echo date("F j", get_post_meta($post->ID, '_ep_start', true));?>

    This works for formatting the dates if anyone else needs this.

  13. Ray Mannion
    Member
    Posted 1 year ago #

    Just want to say thank you. THANK YOU! I pray you continue to enhance this one as I believe it to be one of the most desirable plugins to have. When I saw "Triple J"'s name on it, I knew it would be solid and I am not disappointed.

    This is working really nicely in my buddypress site http://OneontaWellness.com although still in development, this will give me what I need to manage events.

  14. kunalb
    Member
    Posted 1 year ago #

    Thanks. Passed on the link to JJJ too ;). Your site looks good -- you might want to over-ride the following styles, though. To match your colour scheme.

    [CSS moderated as per the Forum Rules.]

  15. DOgi
    Member
    Posted 1 year ago #

    kunalb, I think you hasn't got alert about:
    http://wordpress.org/support/topic/plugin-eventpress-events-for-group
    Please look at that...

  16. kunalb
    Member
    Posted 1 year ago #

    Hmm ... true. Didn't get any mail for that post, which is strange. Looking into it now.

  17. andre.maciel
    Member
    Posted 1 year ago #

    Hi Kunalb,

    Thanks for this great job! I need your help and probably it will be something easy for you.

    On my website, the Events List is not showing properly. The description of the event is showing up on the top of the details (date/time/venue) : http://redevirtu.com.br/escola/events/

    I really don't know what happened. I even tried to edit the "themes/bp/assets/css/events.css". right now it looks like this:

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

    Thank you a lot! Congrats for your job!
    Cheers!
    André

  18. kunalb
    Member
    Posted 1 year ago #

    I've replied to this post on the eventpress google group.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags