Will

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 40 total)
  • Author
    Posts
  • in reply to: Mini Calendar: Click month, display events from that month #30056
    Will
    Participant

    Oops, I just realized I could have made my link more elegant in tribe-mini.php. Here’s a new snippi: http://snippi.com/s/v7r5ose

    in reply to: Mini Calendar: Click month, display events from that month #30055
    Will
    Participant

    Well, I took the easy way out and replaced the function calling the grid in gridview.php with the loop in list.php.

    The downside to this is that now if I make a change in one, I need to make a change in the other. Kind of aggravating. I’d love to know if there’s a way to reroute the page back to list.php if the year and month are in the uri.

    in reply to: Mini Calendar: Click month, display events from that month #30054
    Will
    Participant

    OK, added the link around the date: http://snippi.com/s/nmua7u4 –note that you’ll need to update your styles a bit as well to make this look right.

    Beyond this, all I can think to do now is to completely blowout the gridview.php file and rewrite it with my own query, mimicking the customizations I’ve done to the list.php file. OR, write a jquery function that hides all the months except the current one, except that I’d also then need to tie into the next and previous ajax functions and reset that function. Argh…

    in reply to: Change starting month in table-mini.php #30052
    Will
    Participant

    I’m all sorted here.

    in reply to: Change starting month in table-mini.php #29968
    Will
    Participant

    OK fixed it. Forgot the query_vars…
    http://pastebin.com/N2zbKRcM

    in reply to: Change starting month in table-mini.php #29967
    Will
    Participant

    EDIT: crap, for some reason this isn’t actually working, as the mini calendar isn’t actually showing any events that should be displayed on the days of this month that has events, until I click back a month, then click forward a month. So for now, ignore that pastebin until I comment back.

    in reply to: Change starting month in table-mini.php #29966
    Will
    Participant

    Actually: don’t worry about it. For anyone who is using Advanced Custom Fields with the “Options” page, this is now set up to grab a custom date field from the options page called “Mini Calendar Default Month Display” and use that date as the default mini calendar start date. If no option exists, or if the current date is gte current date, it shows the current month instead.
    http://pastebin.com/0YKGPzbE

    in reply to: Change starting month in table-mini.php #29965
    Will
    Participant

    Actually, Jason, question for you: did pasting your code in drop some punctuation? I’m looking at it and I’m not quite understanding how the code can work with an open paranthesis and no closing one. Mind pasting in the complete set of code for this?

    in reply to: Change starting month in table-mini.php #29962
    Will
    Participant

    Jason and Barry–thank you so much for this, perfect.

    Will
    Participant

    Hey Barry,
    Hope you don’t mind, but I updated your pastebin function to a function (and a filter) that allow for the organizer ID to be returned based on the organizer’s string name.

    http://pastebin.com/sp5U5Hry

    Usage: if you have an organizer named “Will Lanni”:
    $org_id = get_organizer_id_by_title(“Will Lanni”);

    Will
    Participant

    No worries, not a deal-breaker for me. I noticed that where the default values actually do work is when adding a new event. I don’t remember anything in the settings explicitly saying “This will only work when creating a new event”, but it may be there and I just missed it. 🙂

    in reply to: Organizer Archive Page (similar to Venue Archive Page) #29545
    Will
    Participant

    Yep, somewhere near the register_post_type function I’m sure is an ability to “update_post_type” or something to that effect. I’ll give it a read/search.

    in reply to: Organizer Archive Page (similar to Venue Archive Page) #29538
    Will
    Participant

    At some point elsewhere on the web I found a function someone posted to filter or adjust the Organizer Post Type. I’ll search for that again—I’d prefer to alter the plugin code as little as possible—but it would definitely help to enable the archives for Organizer, as that is a direct request from my client and a major piece of the functionality of this site. Worst case scenario is I just build my own wp_query on a page, that will work just fine too.

    Will
    Participant

    ooooh that looks pretty good. I’m going to take tonight off as two weeks straight of 16 hour days is wearing me down, but I’ll check back on Sat to let you know how it goes. Thanks so much for your help!!

    in reply to: Show events for an organizer #29459
    Will
    Participant

    Ooooh this may help me a bit. Let me try to understand this… Venues have single pages that list out their upcoming events. Is this basically a similar bit of functionality to mimic that?

Viewing 15 posts - 16 through 30 (of 40 total)