jorditost

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: Change the order of the Additional Fields #898280
    jorditost
    Participant

    I’ve seen there was already a ticket on UserVoice. I share it here so as others can vote, if they also need it 🙂
    https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/3893590-sorting-for-additional-fields

    in reply to: Change the order of the Additional Fields #898275
    jorditost
    Participant

    Hi Geoff! 🙂
    Thanks for your reply, I will share it on the UserVoice page. The solution you propose is good for the front-end, but it would be also nice to configure the order manually in the admin, so as the items appear in the correct order in the event’s edit page (in the admin).
    Thanks again for your support.
    Cheers!
    Jordi

    in reply to: Merging list and week views #744835
    jorditost
    Participant

    Hi Brian,
    Sorry for my late reply. It took me a while to figure it out how to solve it and to finish the project.
    Thanks for your response. The notices from the developer helped but it didn’t give much extra information. In fact, I could take this conclusions digging into the source code.
    Fortunately, I could solve my problem. I just forgot to use a single line of code in the loop to load the event information.

    $event = tribe_events_week_get_event(); 
    

    Now it only returns the hourly events, since it is not possible to set the loop to return both, but for me is enough since I don’t need all-day events in my site.
    When I have more time I’ll try to do it the proper way and create a new view from scratch. I hope till then is the new documentation site online and I’ll be glad to share this code with you so as more people with the same needs can use it.

    in reply to: Adding a custom filter #743483
    jorditost
    Participant

    I got the solution. I post here the code since it seems other people had the same question and there was no clear answer.

    Inside my theme’s folder I created a new php file for my new filter inside the filters folder. In my case on:

    filters/TribeEventsFilter_LocationCity.php
    

    You can base the behaviour of your new filter on the predefined filters in the plugin (for example, libs/filters/TribeEventsFilter_Category.php)

    And then, I just added a new intance of the new class in my functions.php file this way:

    new TribeEventsFilter_LocationCity( __( 'City', 'tribe-events-filter-view' ), 'city' );
    

    (as it is done in the initialize_filters() function in lib/tribe-filter-view.class.php)

    I didn’t have to use the tribe_events_all_filters_array filter at all as it was pointed in other threads. Now I can add my new filter in the Filter tab of the plugin’s settings page.

    Please correct me if if there is a better practice 😉

    in reply to: tribe events calendar links and qtranslate plugin #739620
    jorditost
    Participant

    This may also help:

    // Translate view navigation links
    add_filter(‘tribe_get_day_link’, ‘qtrans_convertURL’); // Day links
    add_filter(‘tribe_get_last_week_permalink’, ‘qtrans_convertURL’); // Last Week
    add_filter(‘tribe_get_next_week_permalink’, ‘qtrans_convertURL’); // Next Week
    add_filter(‘tribe_get_previous_month_link’, ‘qtrans_convertURL’); // Last Month
    add_filter(‘tribe_get_next_month_link’, ‘qtrans_convertURL’); // Next Month

    in reply to: Calendar week starts on Monday #738231
    jorditost
    Participant

    Hi Jonah,
    It seems that this option is not working properly on the “Week of” filter of the Week view. Any ideas how to fix that?
    Thanks!

    in reply to: Merging list and week views #717955
    jorditost
    Participant

    Hi Rob, thanks for your reply! I’m glad you like my new focus. I also hope point it with your help in the right direction. After doing it and if you want it, I can give you the source code of the new view. Maybe there are some other users that could reuse it.

    in reply to: Merging list and week views #709379
    jorditost
    Participant

    Hi Rob,
    Thanks for your reply! I appreciate your support. Sorry if I sounded kind of upset in my last comment. I don’t want a refund of your plugin. I find it pretty good and the very best option between alls plugins and for my needs.
    I think I couldn’t express myself the right way in my first post, since in my the title I suggest merging the list and week views, what according to your terms would be a customization. Because of this and following Brian’s suggestions, I took a look to your Agenda View tutorial and the docs (I already did that before asking here). In one hand, I expected more information in the tutorial about how to build a new view, like which functions, template tags, hooks or filters do I need to register the new view, etc. In another hand, I could only find in the docs the list of parameters of each function and the return values but no information about how to use them or further information about what is doing it. Because of this, I tried to “reformulate” my question in this thread.
    As I explained before, I need a week view that lists all posts and not show them like in a calendar grid. In terms of template tags, I have to use the same functions to retrieve the posts, but I somehow, this functions in the loop are not working as I expect, and I in the docs I cannot find the answer about how they work, what do they need to work and what will they provide me. I know I need a customization and I will implement it, I don’t want a hands-on support from you and code it for me, but at least some more information about the functions and template tags I am using. For example, I am using this functions:
    tribe_events_week_set_loop_type( ‘hourly’ );
    tribe_events_week_get_hourly()
    But the loop is not working properly. My support question there is, what is concretely doing the tribe_events_week_set_loop_type( ‘hourly’ ) function and what does it mean for the loop, and what will tribe_events_week_get_hourly() return?
    I would really appreciate just some more information about the function. The rest I’ll do myself 😉
    Thanks again!

    in reply to: Merging list and week views #708317
    jorditost
    Participant

    This reply is private.

    in reply to: Merging list and week views #703667
    jorditost
    Participant

    Hi again Brian,
    Here a link to the repo:
    https://github.com/jorditost/week-list-view
    I couldn’t manage to create the view from scratch using the Agenda View example, so this should be placed inside the theme’s tribe-events folder.
    Thanks in advance for our support!
    Jordi

    in reply to: Merging list and week views #703552
    jorditost
    Participant

    Hi Brian,
    I checked the Agenda View Plugin and the video tutorial and unfortunately it doesn’t give any clear instruction about how to set up a view. Which functions / hooks are necessary to register a new view, for example?
    I think that there is a lack of information in the documentation and resources about template tags, etc. More information and examples (and maybe in a text tutorial and not a video tutorial) would be great for developers working with your plugin and extensions. At least for them who purchased the PRO extension (like me).
    I think the forum is a good place to discuss it, since it may help other people working with the plugin. Maybe a section for developers would be a good idea.
    I’m preparing a GitHub repository with my code.
    Thanks for your time!
    Jordi

    in reply to: Merging list and week views #699351
    jorditost
    Participant

    Hi Brian,
    Thanks for your response. Here you can see the events page with the my “week” view:
    http://contemporaryfoodlab.com/test/en/events/
    I understand this is a deep customization. I would appreciate some help with the (right) template tags and a better understanding of them (specially the “week ones”), since in the docs they are not so deep explained.
    Thanks again!

    in reply to: Merging list and week views #698204
    jorditost
    Participant

    Hi, could overwrite the week and month templates and show the events in a list with AJAX loading when navigating. Although the month view works fine, I have though 2 problems with the week view:
    1. When a day has more than one event. The first event is shown repeated. For example, if I have 3 events in a day, the first event is listed 3 times. I think here the problem is the “tribe_events_week_get_hourly()” function. There is no function that retrieves all events for a week day?
    2. The AJAX navigation is not working well. When I click to “Next Week” or “Previous Week”, the events list is loaded well, but no event information is retreaved. That means, if a day has 3 events, I get 3 list elements but the_title() or other WordPress template functions are not working.

    Anyone can helps to solve it?

    in reply to: AJAX loading not working #694412
    jorditost
    Participant

    I had commented the “tribe_events_before_html()” function in the default-template.php file. Problem resolved!

Viewing 14 posts - 1 through 14 (of 14 total)