gunbunnysoulja
Forum Replies Created
-
Hmm I guess it’s not related to HTTPS, as I just disabled that and the formatting issues are still there. I have no idea what I did yesterday to cause that, as it’s new. I disabled all other plugins besides EM and FC, but it still looks like that. ??
Forum: Plugins
In reply to: [WordPress HTTPS (SSL)] WordPress HTTPS with Events Manager not workingI’m using HTTPS with EM. Works fine for me.. I submit via front-end page. I did however notice a separate issue with EM with HTTPS, mostly jquery formatting in conjunction with FullCalendar.
Hmm I guess I’m not understanding how to get this to work. Everything I enter either pulls in “array”, it’s blank, or I get error.. ??
I was thinking it was something like this, but I can tell it’s wrong (since it doesn’t do anything, lol)
<?php $category = get_the_category(); echo $category[0]->event_categories; ?>
I really need categories to display in the table, so I’m hoping I can figure it out.
[Moderator Note: No bumping, thank you.]
Awesome!
Would scope=all still work when using FullCalendar?
Saw the same color @ wp-fullcalendar/wp-fullcalendar.php
add_filter( 'posts_where', 'wpfc_temp_filter_where' ); $the_query = new WP_Query( $args ); remove_filter( 'posts_where', 'wpfc_temp_filter_where' ); //loop through each post and slot them into the array of posts to return to browser while ( $the_query->have_posts() ) { $the_query->the_post(); $color = "#A8D144";
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Didn’t resolve here either.
Hmm appears to be edit events (atleast that populates it for subscribers). This should work for me since they still can’t edit the event.
I am fine with either an iCal feed for each category, or a custom mix of categories. Biggest point is being able to filter out unrelated categories.
But I need to be able to subscribe, not just download. So /events/categories/category/ical doesn’t work. I would need the /events/categories/category/events.ics to be working, which it isn’t, as it just groups in everything (unless I use the filtering above, but I’d prefer ability to get individual category events.ics).
I guess for now (unless you have a better option), I will use this:
$EM_Events = EM_Events::get(apply_filters(’em_calendar_template_args’,array( ‘limit’=>get_option(‘dbem_ical_limit’),’category’=>’26,27,36′, ‘owner’=>false, ‘orderby’=>’event_start_date’, ‘scope’ => get_option(‘dbem_ical_scope’) )) );
Just change 26,27,36 for the categories you want to subscribe to for the events.ics file.
Tried someone else’s method with no luck:
/* Get the category ID */
$uri=$_SERVER[‘REQUEST_URI’];
$args=explode(‘/’,$uri);
/* handling different permalinks */
if ($args[1]==’index.php’) {
$start_index_URI=2;
}else{
$start_index_URI=1;
}
/* retrieve category ID from WP Events Manager DB */
if($args[$start_index_URI]==’events’ && $args[$start_index_URI + 1]==’categories’) {
$cat_name=$args[$start_index_URI + 2];
$cat_obj=get_term_by(‘name’, $cat_name , ‘event-categories’);
$cat_id=$cat_obj->term_id;
}plus….
$EM_Events = EM_Events::get(apply_filters(’em_calendar_template_args’,array( ‘limit’=>get_option(‘dbem_ical_limit’), ‘owner’=>false, ‘orderby’=>’event_start_date’, ‘scope’ => get_option(‘dbem_ical_scope’), ‘category’=>$cat_id )) );
I thoughts I got it working via…
/events/categories/category/events.ics
but this seems to add in all events.
Hmm Outlook doesn’t seem to like this subscription, like it did with the events.ics one. I can export it manually, but not update. Not sure if I’m doing something wrong.
Hmm maybe I rushed my question yet again.. I think I can use:
/events/categories/category/ical/
So I guess I would just get multiple feeds?
Edit: Found this, which seems to of resolved my issue:
// Filter to fix the Post Author Dropdown
add_filter(‘wp_dropdown_users’, ‘theme_post_author_override’);
function theme_post_author_override($output)
{
// return if this isn’t the theme author override dropdown
if (!preg_match(‘/post_author_override/’, $output)) return $output;// return if we’ve already replaced the list (end recursion)
if (preg_match (‘/post_author_override_replaced/’, $output)) return $output;// replacement call to wp_dropdown_users
$output = wp_dropdown_users(array(
‘echo’ => 0,
‘name’ => ‘post_author_override_replaced’,
‘selected’ => empty($post->ID) ? $user_ID : $post->post_author,
‘include_selected’ => true
));// put the original name back
$output = preg_replace(‘/post_author_override_replaced/’, ‘post_author_override’, $output);return $output;
}Awesome, narrowed it down to the plugin BP Labs causing the issue. I really liked having that for the @mentioned auto-suggest. Maybe I will see if I can tweak the code to allow it to still work without breaking the datepicker.