Jonah

Forum Replies Created

Viewing 15 posts - 3,436 through 3,450 (of 4,001 total)
  • Author
    Posts
  • in reply to: Calendar import not working as expected #16744
    Jonah
    Participant

    Hi Dan,

    On line 279 of /wp-content/plugins/events-calendar-pro/events-calendar-pro.php you’ll find the function used to generate the Google cal link. And on line 164 of /wp-content/plugins/events-calendar-pro/template-tags.php you’ll find a filter for the tribe_get_gcal_link() function which calls the other function. Hopefully that points you in the right direction but let me know if you have any questions.

    Regards,
    Jonah

    in reply to: Indexation of thousands pages #16742
    Jonah
    Participant

    Hey John, you should be able to modify Joey’s code like so to no-index single day pages:

    add_action('wp_head','tribe_dont_index_single_events');
    function tribe_dont_index_single_events() {
    if ( is_singular() || tribe_is_day() && get_post_type() == TribeEvents::POSTTYPE )
    echo '';
    }

    in reply to: List view on a page #16707
    Jonah
    Participant

    Hi Richard,

    You’ll want to find where the_title() is called in your theme. It may be in page.php or header.php – look there first.

    When you find the_title(), try replacing it with the following code:

    if(tribe_is_month()) {

    echo 'Calendar Grid';

    } else if(tribe_is_event() && !tribe_is_day() && !is_single()) {

    echo 'Event List';

    } else if(tribe_is_event() && !tribe_is_day() && is_single()) {

    echo 'Single Event';

    } else if(tribe_is_day()) {

    echo 'Single Day';

    } else {

    the_title();

    }

    Try that first.

    in reply to: event calendar kills business directory #16706
    Jonah
    Participant

    Hi Allan, as Rob mentioned The Events Calendar w/PRO plugins should work fine (aside from the recurring events bug) with permalinks set to their default. What is the issue you have with the plugin when permalinks are set to the default?

    When permalinks are set to the default you’ll need to access the event pages like so:

    http://www.yoururl.com/?post_type=tribe_events&eventDisplay=month (grid/calendar view)
    http://www.yoururl.com/?post_type=tribe_events (list view)

    So, you’ll need to modify your navigation to point to these URL’s and not the pages like you have now. Hopefully that helps… Let me know if you have any other questions.

    in reply to: "Calendar Of Events" title change #16705
    Jonah
    Participant

    Hi Peter, not really. You can include custom PHP files in functions.php but you still need to edit functions.php to include the include 🙂 I usually include files in functions.php like so:

    require_once('library/sidebar.php');

    And the directory you put files in and the name of the include can be anything you want.

    in reply to: Default Events Template #16687
    Jonah
    Participant

    Hi Kylie, you should be able to just target your footer and elements within in your CSS like normal. If you want to specifically target footer elements on the event pages you should be able to target them with the dynamic body classes we have in place for the various events pages like so:

    .events-gridview #footer {
    width: 960px;
    }

    .events-list #footer {
    width: 960px;
    }

    etc…

    Does that help?

    in reply to: Too many versions for WordPress, I think. #16680
    Jonah
    Participant

    Hi Thomas, it looks like you still have old versions of the plugin CSS and templates. Any of the pre 2.0 overrides you had done (CSS and template files in an ‘events’ folder in your theme) will need to be updated or you can just get rid of the overrides and this will allow the plugin to use all the new templates and CSS automatically. You might want to try that first as I’m sure it will resolve a lot of the styling issues you’re seeing. You can do this by simply renaming the ‘events’ folder to ‘events-old’ or something like that. And then you can go through piecemeal and bring back whatever customizations you had with the old CSS and templates.

    I hope that helps but let me know if you have questions.

    in reply to: Event List display shows "Venue" twice #16671
    Jonah
    Participant

    Hey Dmytro, have you tried the obvious troubleshooting steps – disabling all other plugins and reverting to the Twenty Eleven theme to rule out plugin/theme issues?

    in reply to: Event List display shows "Venue" twice #16662
    Jonah
    Participant

    Hi Yazmin, I just logged into your site and see that you’re running version 2.0.2 of the base plugin and 2.0.1 of the PRO plugin. Before we go any further can you please update both of these because there are many bug fixes which may likely resolve these issues. Please follow the standard upgrade procedure by backing up your site fully beforehand and then run the upgrade.

    Let me know if this resolves the issue or if it’s still a problem and I’ll take another look.

    Thanks,
    Jonah

    in reply to: Default Events Template #16652
    Jonah
    Participant

    Hi Kylie, got a link I can take a look at?

    in reply to: Category description at the top of the calendar. #16651
    Jonah
    Participant

    … do wrap it in proper PHP tags as necessary too 🙂

    in reply to: Category description at the top of the calendar. #16650
    Jonah
    Participant

    Hi Alan,

    All you have to do is put:

    echo term_description();

    in your gridview.php file – first make a copy from /wp-content/plugins/the-events-calendar/views/gridview.php and place in an ‘events’ folder in your theme.

    I hope that helps!

    in reply to: Turn off auto-scrolling on google maps #16649
    Jonah
    Participant

    Hi Robert, not sure about the answer to this one either. I’ll need to ask one of the other devs. Stay tuned.

    in reply to: Custom Date/Time on Event Page #16648
    Jonah
    Participant

    Hi Patti, this should do it: https://gist.github.com/2026688 – just copy that in single.php for the whole date/time block that’s there now. Make sure you’re overriding single.php too by placing a copy in an ‘events’ folder in your theme 🙂

    You’ll notice in the code that it will first check to see if the start time/end time are different and if they are, then it uses the first block of code displaying the event date and start time/end time like you wanted. Otherwise, if the times are equal (i.e. not set), then it will just display the date.

    If you need to tweak the date/time any more, the PHP date() reference is great: http://php.net/manual/en/function.date.php

    in reply to: hover balloons in calendar view, turn off? #16646
    Jonah
    Participant

    Hi Lynn,

    Yep you can do this and it’s not too bad of a modification but will involve diving into some code 🙂

    First fire up your functions.php file and paste in the following: https://gist.github.com/2026611

    Those two actions will first remove the default events.js file and then register a new custom events.js that we’re about to create.

    Next, find /wp-content/plugins/the-events-calendar/resources/events.js and place a copy of it in an ‘events’ folder in your theme.

    Finally, you’ll want to comment or remove out lines 8-26. Probably easiest just to remove those lines since you can always reference the original core file as a backup.

    Also, if you want to remove the popups for the mini sidebar calendar just remove lines 28-46 in events.js and that will do it.

    One thing to note with this approach is that as there are changes to the scripting in the plugin, there may be things that will end up not working in the future. Because you are deregistering the events.js file the plugin supplies and if there are changes to this necessary for functionality, you won’t get those unless you know where to look 😉

    I hope that helps and let me know if you have any questions.

Viewing 15 posts - 3,436 through 3,450 (of 4,001 total)