Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantFYI, I also just replied to an email Matthew sent to us on this topic and sent him a fresh copy of widget-calendar.class.php here: http://cl.ly/code/3I3O0z1N3a41
Matthew, please follow up here in the thread vs. via email so we can stay on the same page and keep things organized.
Thanks,
JonahJonah
ParticipantHey Ken,
You can filter the params for the Google Calendar button like this (add this to your functions.php file): https://gist.github.com/3791894
All I did was wrap get_the_content() in strip_shortcodes() to strip any shortcodes. Does that work for you?
– Jonah
September 26, 2012 at 7:39 pm in reply to: Next Event Widget – no longer showing full event details. #25774Jonah
ParticipantHi Derek,
Ok, I think I see what’s going on. We did change some code in the widget. I apologize for this. Try this, make a copy of /wp-content/plugins/events-calendar-pro/views/widget-featured-display.php and place in an ‘events’ folder in your theme. Then, find lines 67-69 that look like this:
$content = apply_filters('the_content', strip_shortcodes( $post->post_content ));
$content = str_replace(']]>', ']]>', $content);
echo wp_trim_words( $content, apply_filters( 'excerpt_length', 55 ), apply_filters('excerpt_more', ' ' . '[...]') );
…and change to:
the_content();
That will make it so the widget displays the full content including images.Let me know how that looks.
Regards,
– JonahSeptember 26, 2012 at 11:43 am in reply to: HOW to disable "show all events" under the widget #25760Jonah
ParticipantSweet, let us know if you need anything else!
– Jonah
Jonah
ParticipantHi Sarah,
Using the Default Events Template you’ll want to find /wp-content/plugins/the-events-calendar/views/ecp-page-template.php and place a copy in an ‘events’ folder in your active theme. Then, modify the code so it includes a call to the sidebar template like so: http://snippi.com/s/q56i5i8
Does that work?
– Jonah
Jonah
ParticipantAwesome, glad that helped. Let me know if you need anything else.
– Jonah
September 26, 2012 at 10:33 am in reply to: HOW to disable "show all events" under the widget #25756Jonah
ParticipantHi Marcin,
The easiest way to do this is to simply hide it with CSS like so:
.tribe-view-all-events {
display: none;
}
Add that to your themes style.css file and you should be good to go.Cheers,
– JonahSeptember 26, 2012 at 10:31 am in reply to: Next Event Widget – no longer showing full event details. #25754Jonah
ParticipantHi Derek,
The Next Events Widget by default never displayed an image. It sounds like you must have customized the widget display but did not make your customizations in the right place. The file to make changes is in /wp-content/plugins/events-calendar-pro/views/widget-featured-display.php and if you make changes, you need to make a copy of that file and place in an ‘events’ folder in your active theme.
Did you make a backup of your files before you updated? You should always do this so you can revert back. Unfortunately there is no switch available in our plugin to be able to revert back. You’ll either need to dig around for a backup (maybe through your web host?) or modify the widget code again.
I hope that helps.
Regards,
– JonahJonah
ParticipantHi Kyle,
This might be possible by using pre_get_posts like so but you’ll need to figure out the specific logic to check for the current user:
add_action( 'pre_get_posts', 'show_posts_for_user' );
function show_posts_for_user( $query ) {
//if were on the gridview/calendar
if ( $query->query_vars['eventDisplay'] == 'month' && $query->query_vars['post_type'] == TribeEvents::POSTTYPE && !is_tax(TribeEvents::TAXONOMY) && empty( $query->query_vars['suppress_filters'] ) ) {
$query->set('author', 1);
}
return $query;
}
You would place that in your themes functions.php file and change the author to whatever you want. More on the author parameter can be found here: http://codex.wordpress.org/Class_Reference/WP_Query#Author_ParametersI hope that helps!
– Jonah
Jonah
ParticipantThat’s awesome Ray! Thanks for the contribution!
– Jonah
Jonah
ParticipantHey CLA,
We don’t have a 2.3.10 verison. Are you sure you’re using our plugin? The Events Calendar / The Events Calendar PRO
– Jonah
Jonah
ParticipantHi guys,
It’s beyond me too so I’ve ran it up the flagpole. Sit tight and we’ll get you a response soon.
Thanks,
JonahSeptember 25, 2012 at 2:15 pm in reply to: update 1.0.2 incorrect times… import picture error – plugin useless #25707Jonah
ParticipantHi Thomas,
We are aware of and are trying to figure out a workaround or solution to the event import times but at the moment this is a limitation of FB’s API because they are using Pacific Time for all events via import.
What is the problem you are having with the picture?
– Jonah
Jonah
ParticipantHi Thomas,
Our plugin does not do this at the moment so you will need to build something separate. My suggestion would be a new post type for the artists and then to related to events, use http://www.advancedcustomfields.com/ or http://wordpress.org/extend/plugins/posts-to-posts/
I hope that helps!
– Jonah
Jonah
ParticipantHi Marcus,
On #1, please try the fix in this FAQ: https://theeventscalendar.com/faq/my-calendar-navigation-buttons-become-misplaced-on-months-with-no-events-what-gives/
On #2, there’s two things you can try.
1. Change the Events Template option in Events > Settings > Template to something other than the default.
2. Conditionally change the page titles in your theme’s page.php template using code like this: https://gist.github.com/aad337b8f0662d4df1b6
I hope that helps!
– Jonah
-
AuthorPosts
