Event List customization and Search filters

Home Forums Calendar Products Events Calendar PRO Event List customization and Search filters

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #70514
    elmalak
    Participant

    Hi,
    I am trying to achieve an ambitious customization of the Event Calendar Pro in my site here, http://thinkweb.ie/clients/emerald/events/

    I’ve done a lot of what’s required but I am currently stuck with the following 2 points;
    1. How to add more filters to the Search Bar on top?
    I’ve created a number of additional fields for each event, and want to be able to search those specific fields in the top search bar.

    2. List Comments besides the event in the List view as shown in the attached screenshot.
    https://dl.dropboxusercontent.com/u/10242392/find-event-sample.jpg

    I really hope you can guide me to perform those two remaining points as you’ve always been a great help for me.

    Many thanks.

    #70800
    Chris
    Participant

    To a register a new filter you’ll need to use this hook:
    http://docs.tri.be/Events-Calendar/source-function-tribe_events_get_filters.html#988-997

    You’ll need to examine the views/modules/bar.php file to see how to setup that array to pass in so you get what you need to display.

    Then you’ll need to hook into the views hook:
    http://docs.tri.be/Events-Calendar/source-function-tribe_events_get_filters.html#1006

    and also look again at bar to get the page to filter to what you need.

    As for comments,
    you’ll need to use the action into tribe_events_after_the_content in single-event.php in the loop template file. From there, you’ll need to use get_comments() and pass in an array using the global post’s $post->ID variable as the post_id, orderby oldest to newest, and query for only a single post. If get_comments is empty, display the no comments text, else display the latest comment, grab the avatar of the user with the last comment, and show use the tribe_get_event_link to show the link

    -Chris

    #70801
    Chris
    Participant

    You can get more info on get_comments here on the codex:
    http://codex.wordpress.org/Function_Reference/get_comments

    -Chris

    #70832
    elmalak
    Participant

    Hi Chris,
    Thank you for your follow up with my question here.

    I will read the WP documentation for further info about the comments, however, I am not sure I understand the other part about the Search filters.

    Any chance of giving me a sample code to use for that part?
    I tried the links you’ve posted but I am not sure how to use them!

    Much appreciated.

    #70880
    Chris
    Participant

    Hi there,
    Thanks for your follow-up. Admittedly, this is a bit outside the scope of support that we can provide here on the forums. While we are definitely able to help people with simple tweaks when they arise, writing this chunk of code is unfortunately a bigger task than we’ve got bandwidth and as a result the best we can offer up is to try and point you in the right direction towards docs and the themer’s guide. It might be worth looking for a freelance developer on WordPress’ Jobs board of Freelance Switch, if you’re in a pinch. Apologies that we couldn’t offer up more and thanks for your patience/support so far.

    -Chris

    #71027
    elmalak
    Participant

    Hi Chris,
    Thank you for your prompt response.
    I fully understand that and I appreciate it of course, however, I am not really looking for getting you to build it for me, I was just looking for a starter, just a sample code that I can build on, that’s all.
    So, if that sounds reasonable to you, I would love it if you would be willing to help me with it.

    If not, I’ll understand.

    Regards,
    elmalak

    #71625
    Chris
    Participant

    Hi there,
    Unfortunately even a sample is going to require a great deal of code and time to make 🙁

    -Chris

    #71891
    elmalak
    Participant

    Thanks Chris.
    I understand and appreciate your follow up.

    #71941
    Chris
    Participant

    Not a problem 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Event List customization and Search filters’ is closed to new replies.