Forum Replies Created
-
AuthorPosts
-
February 29, 2012 at 2:32 pm in reply to: Calendar Drop Down Menu Showing Last Month Instead of Current Month. #15948
Jonah
ParticipantHi Dan, no problem. Ok, have you tried deactivating all other plugins to see if this helps?
Jonah
ParticipantOf course, the templates are all fully editable. What you would want to do is override: /wp-content/plugins/the-events-calendar/views/table.php – place a copy of that in an ‘events’ folder in your theme. Then open the file up in a code/text editor and around line 147 you’ll see thats where the title being displayed is currently set. To display the time for the event you’ll want to use the date template tags (https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-date-functions/) something like this:
Replace line 147 with the following: http://pastebin.com/cdS4gpqw
I hope that helps,
JonahFebruary 29, 2012 at 2:18 pm in reply to: Calendar Drop Down Menu Showing Last Month Instead of Current Month. #15945Jonah
ParticipantHi Dan, we’ve had this come up before: https://theeventscalendar.com/support/forums/topic/grid-calendar-showing-last-month-instead-of-current-month-in-the-drop-down/
Does that help?
Jonah
ParticipantAlright guys, here is a way to conditionally display or not display your sidebars in Thesis. Add this to your custom_functions.php file:
// Conditionally remove original sidebars
function no_sidebars() {if('tribe_events' == get_post_type()) {
if ( is_single() && !tribe_is_showing_all() ) { // single event
return true;
} elseif ( tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || (is_single() && tribe_is_showing_all()) ) { // list view
return true;
} else { // grid view
return false;
}
}}
add_filter('thesis_show_sidebars', 'no_sidebars');
If you want the sidebar to appear just set return true on.
Jonah
ParticipantHey Carlos, you can find the buttons in: /wp-content/plugins/the-events-calendar/views/gridview.php – remember, to override place a copy of the file in an ‘events’ folder in your theme. Does that help?
I’m working on a solution to the full page layout dilemma right now…
Jonah
ParticipantSounds good Nathan, just post back here when you have an update. I get email replies so I’ll see it.
Thanks,
JonahJonah
ParticipantHey Tom, it looks like you’ve got both these issues figured out. Am I wrong? Let me know if you need anything else with this.
Jonah
ParticipantHey David, perhaps this will help:
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();
}
Jonah
ParticipantHi Peter,
Depending on what setting you have for the Events Template in Settings > The Events Calendar, you’re going to want to add this code to either your page.php or ecp-page-template.php files.
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();
}
Does that help? What do you have for that setting?
Jonah
ParticipantSounds good Robert.
Jonah
ParticipantHey Nathan, I’m now wondering whether or not this is a plugin conflict or something going on with your theme. Can you try deactivating all other plugins to rule this out? If that doesn’t do it, can you try switching to the TwentyTen/Eleven theme?
Jonah
ParticipantHey Leonard, I’m thinking it may be a problem with the javascript being separate – if there is the Tri.be script in place, it tells the page to refresh with the new selected date events, but then you have your script which is probably not appending to current query and instead running a whole new query. That’s only my guess. Unfortunately we won’t be able to help you out with this customization. You’ll either need to figure it out on your own or hire a developer.
Good luck!
By the way, we are looking to add this type of filtering functionality in the future…
Jonah
ParticipantHi Nathan, hmmm, I’m trying to replicate the issue and am not able to. Does it always happen for you? Does it happen when adding a new venue when adding an event or actually going through the Venues menu? Are you doing something like clicking the update button twice or going back and clicking publish again or anything else specific like that that could be double creating venues. Tell me everything you can about what you’re doing or better yet, if you have the ability to do a quick screencast that would be awesome! Jing is a great free app for doing quick little screencasts if you want to give that a try…
Jonah
ParticipantHi Robert,
Are you sure you have upcoming events assigned to that venue? I pasted in your code and it works for me. Do you also have the latest version installed (2.0.4)?
Jonah
ParticipantGreat, in general to make more significant changes to the event related pages you’ll probably need to use similar conditional code to check if you’re on any of those pages.
March or April is the rumor now…
-
AuthorPosts
