Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantIt’s possible but you need to modify plugins/the-events-calendar/resources/events.js and I’m not quite sure how to deregister that script first so you can register your own with modifications. Let me look into and get back to you.
– Jonah
Jonah
ParticipantHi Kyle,
It looks like you’ve got some script/plugin or code in your theme or in your site that is modifying the markup and not properly closing out tags. This is probably why you see the issue in the 2011 theme as well and I would take a look at your other plugins first.
The reason I say this is looking at the markup in this screenshot everything is fine: http://cl.ly/3o3K010E021C1c0Y1Y1f
But when I advance to the next month the markup is modified and looks indicative of improperly closed tags: http://cl.ly/3c1y3a3Z2t3y1K370340
See those ‘p’ and ‘br’ tags? There’s something going on with those that’s causing the problem.
I would suggest deactivating all other plugins and see if that fixes it and if so, reactivating one by one to try and find the culprit.
If you turn off all plugins, then perhaps you have some other code thats being inserted another way?
– Jonah
Jonah
ParticipantYou’re welcome. Yes, the event would be duplicated. But you could use tribe_update_event to update instead.
Jonah
ParticipantHi Bretta,
For some reason you’ve got a z-index value hardcoded into your calendar widget and the z-index for the days in the are higher than the tooltips. See this screenshot of the code showing the z-index: http://cl.ly/1b051y1O2q2P0v3M432U
That’s the problem but I don’t know how this z-index could have gotten in there. We’re not putting it in via the plugin.
Do you have another plugin or script that is modifying the z-index?
November 30, 2011 at 3:50 pm in reply to: Calendar not showing at all, page just stops loading #11555Jonah
ParticipantI’m done for the day and will have to take another look at this tomorrow. In my initial run through I could not find anything obvious. I’m going to need to go a little deeper by going through theme files and plugins to determine what’s causing the problem. It’s likely something with the theme as you’ve found but the question is what. I’ll start there later tonight and/or tomorrow.
– Jonah
November 30, 2011 at 2:21 pm in reply to: Calendar not showing at all, page just stops loading #11552Jonah
ParticipantI did, thank you. I’m also going to need WP admin access which I emailed Mike about but maybe you can get to him quicker.
– Jonah
Jonah
ParticipantHi Mathieu,
Here is an example of creating an event with the function and creating a new venue and organizer:
[php]
// Create post object
$my_post = array(
‘post_title’ => ‘My post’,
‘post_content’ => ‘This is my post.’,
‘post_status’ => ‘publish’,
‘post_author’ => 1,
‘EventStartDate’ => ”,
‘EventEndDate’ => ”,
‘EventStartHour’ => ‘2’,
‘EventStartMinute’ => ’29’,
‘EventStartMeridian’ => ‘pm’,
‘EventEndHour’ => ‘4’,
‘EventEndMinute’ => ’20’,
‘EventEndMeridian’ => ‘pm’,
‘Venue’ => array(
‘Venue’ => ‘test’,
‘Country’ => ‘US’,
‘Address’ => ‘1 W. Washington Ave.’,
‘City’ => ‘Madison’,
‘State’ => ‘WI’
),
‘Organizer’ => array(
‘Organizer’ => ‘Jonah West’,
‘Email’ => ‘[email protected]’
)
);// Insert the post into the database
tribe_create_event( $my_post );
[/php]You can also map to an existing venue and/or organizer by simply using the same name of an existing venue or organizer.
There are more options that you can pass too as documented here:
https://theeventscalendar.com/support/documentation/the-events-calendar-advanced-functions-event-post-type/You can also pass the same args that can be passed to the native WP function wp_insert_post: http://codex.wordpress.org/Function_Reference/wp_insert_post
– Jonah
Jonah
ParticipantHi Kevin/Tom,
This is possible and you will want to follow the tutorial posted by Rob above but instead create a duplicate copy of the TribeEventsCalendarWidget located in plugins/events-calendar-pro/lib/widget-calendar.class.php
Then around line 26 you’ll want to use something like this:
I hope that helps,
JonahJonah
ParticipantHi Brandon,
I believe what you’re looking for is something along these lines:
if(term_exists('fundraising', 'tribe_events_cat')) {
//different description
}
This was also talked about here: https://theeventscalendar.com/support/forums/topic/event-category-specific-sidebars/#post-11186
I hope that helps,
JonahJonah
ParticipantHi Robert,
Probably the easiest way to do this now is to use:
if(strpos($_SERVER['REQUEST_URI'], "calendar/upcoming")) {
//do something
}
You will need to change ‘calendar’ to the string for your events page. This way you can conditionally display your sidebar and also add/modify your container markup to increase the width, i.e: http://pastebin.com/1hqzxjD3
I hope that helps,
JonahJonah
ParticipantHi Tilo,
What I would recommend doing is follow my tutorial on Customizing Widgets (https://theeventscalendar.com/how-to-completely-customize-widgets/) but do the customizing for the TribeEventsListWidget found in plugins/the-events-calendar/lib/widget-list.class.php – I would create another separate copy of the widget (still keep the old one).
Then, all you need to do is change the query there so line 43 reads:
$posts = tribe_get_events( 'eventDisplay=past&numResults=' . $limit .'&eventCat=' . $category );
instead of:
$posts = tribe_get_events( 'eventDisplay=upcoming&numResults=' . $limit .'&eventCat=' . $category );
Hope that helps.
– Jonah
November 30, 2011 at 8:45 am in reply to: Calendar not showing at all, page just stops loading #11539Jonah
ParticipantHi Jamie,
I’d be happy to help with this. Can you please email me FTP info to jonahcoyote [at] gmail [dot] com
Is it ok if I turn debugging messages on? It will help me troubleshoot what’s happening.
Thanks,
JonahJonah
ParticipantHi Anthony,
It turns out there’s a new tag to check for an all day event: tribe_get_all_day()
So just use:
if(tribe_get_all_day()) {
instead of:
if(get_post_meta($e->ID, 'EventAllDay', true) == 'yes') {
Regards,
– JonahJonah
ParticipantHi Julien,
Thanks for pointing this out. I believe it should only be marked as is_tax (Events categories are taxonomies) and not is_post_type_archive. Rob, can you please pass this on?
Thanks,
JonahJonah
ParticipantHi Kelly,
Unfortunately I cannot think of an easy solution to this and my initial thought is is will likely involve digging into the database to figure out what’s going on. I’m guessing its related to the Typepad migration but cannot say for sure… I think it would be helpful for us to take a closer look. Let me check with Rob to determine how to proceed.
Thanks,
Jonah -
AuthorPosts
