Forum Replies Created
-
AuthorPosts
-
dsb cloud services GmbH & Co. KGParticipant
Hi Victor,
great thing!! The Event Categories finally work as intended. 🙂
But sadly I got a problem with the venues.
The venue-field gets labeld as requiered, but this will not be checked.
I hope it’s visible in my screenshot.Greetings Patrick
dsb cloud services GmbH & Co. KGParticipantHi Courtney,
thank’s for the information.
I just updated our website and gave it a try. Sadly it seems, nothing have chanced 🙁
I got still the same problem.Greetings
Patrickdsb cloud services GmbH & Co. KGParticipantHi Victor,
in my theme folder there ist a file called tooltip.php under/wp-content/themes/Divi-child/tribe-events/pro/week/
with the following content:<script type="text/html" id="tribe_tmpl_tooltip"> <div id="tribe-events-tooltip-[[=eventId]]" class="tribe-events-tooltip"> <h4 class="entry-title summary">[[=title]]</h4> <div class="tribe-events-event-body"> <div class="duration"> <abbr class="tribe-events-abbr updated published dtstart">[[=dateDisplay]] </abbr> </div> [[ if(imageTooltipSrc.length) { ]] <div class="tribe-events-event-thumb"> <img src="[[=imageTooltipSrc]]" alt="[[=title]]" /> </div> [[ } ]] [[ if(excerpt.length) { ]] <p class="entry-summary description">[[=raw excerpt]]</p> [[ } ]] [[ if(venue) { ]] <p class="entry-venue"><u>Raum: </u><a href="[[=venue_link]]">[[=venue_title]]</a></p> [[ } ]] <p><u>Verantwortlicher: </u><font color="green"><a> <?php $author_ID = get_post_field( 'post_author', $event_id); echo the_author_meta( 'display_name', $author_ID ); ;?></a></font></p> <span class="tribe-events-arrow"></span> </font> </b> </div> </div> </script>
I made the requested changes, but they didn’t help.
Greetings
Patrickdsb cloud services GmbH & Co. KGParticipantHi Victor,
sorry for my late reply. I didn’t receive an notification email that someone wrote an answer.
My function.php looks like this:<?php # 2017-07-25, fries: Funktion für Anzeige der Event-Kategorien hinzugefügt # 2017-06-21, fries: Wörter im Kalender-Plugin ändern #$custom_text = array( #'Related %s' => 'Similar %s', #'category' => 'Raum', #'taxonomy' => 'Raum', #'TAXONOMY' => 'Raum', #'Kategorien' => 'Raum', #); # 2015-06-01, schoch: Schlagworte mit the_tags eingefuegt function et_divi_post_meta() { $postinfo = is_single() ? et_get_option( 'divi_postinfo2' ) : et_get_option( 'divi_postinfo1' ); if ( $postinfo ) : echo '<p class="post-meta">'; et_postinfo_meta( $postinfo, et_get_option( 'divi_date_format', 'M j, Y' ), esc_html__( '0 comments', 'Divi' ), esc_html__( '1 comment', 'Divi' ), '% ' . esc_html__( 'comments', 'Divi' ) ); echo ' | '; the_tags(); echo '</p>'; endif; } function remove_google_fonts_from_theme() { //get rid of those google fonts //remove_action('et_head_meta','et_add_google_fonts'); //remove_action( 'wp_head', 'et_set_font_properties' ); remove_action( 'wp_enqueue_scripts', 'et_divi_load_fonts' ); } add_action( 'after_setup_theme', 'remove_google_fonts_from_theme' ); if ( class_exists('Tribe__Events__Main') ){ /* get event category names in text format */ function tribe_get_text_categories ( $event_id = null ) { if ( is_null( $event_id ) ) { $event_id = get_the_ID(); } $event_cats = ''; $term_list = wp_get_post_terms( $event_id, Tribe__Events__Main::TAXONOMY ); foreach( $term_list as $term_single ) { $event_cats .= $term_single->name . ', '; } return rtrim($event_cats, ', '); } } ?> <?php add_filter( 'tribe_events_community_required_fields', 'my_community_required_fields', 10, 1 ); function my_community_required_fields( $fields ) { if ( ! is_array( $fields ) ) { return $fields; } $fields[] = 'tax_input'; $fields[] = 'venue'; return $fields; } add_filter( 'tribe_events_community_required_venue_fields', 'my_venue_community_required_fields', 10, 1 ); function my_venue_community_required_fields( $fields ) { if ( ! is_array( $fields ) ) { return $fields; } $fields[] = 'Venue'; return $fields; } ?>
I can’t get it work that the fields Event-Categories and venues are requiered. I uploaded a screenshot for a better understanding, which fields I mean.
Sadly I can’t send you a link to the community-link because the website is only internal accessable.Greetings
Patrickdsb cloud services GmbH & Co. KGParticipantOk, I was able to get things back to work. The “loading faild” is gone and ones again I get my categories. I had to reinstall the whole core Plugin.
Sadly the remaining problems stay 🙁dsb cloud services GmbH & Co. KGParticipantHi Victor,
initial I had the code in my theme/trive-events/community/edit-event.php
But now I moved it into my theme’s function.php.
And now, some of them are working but the both I need don’t
Even more, now I can’t search for categories anymore, I get an “loading faild” error. Even if I undo my changes the problem remains. I already installed the newest updates. It also didn’t helped.I don’t use any plugin for modifying my function.php. I manually copy & paste the code 😉
Greetings
Patrickdsb cloud services GmbH & Co. KGParticipantHi Victor,
for testing purpose I’ve added all possible requiered fields
add_filter( 'tribe_events_community_required_fields', 'my_community_required_fields', 10, 1 ); function my_community_required_fields( $fields ) { if ( ! is_array( $fields ) ) { return $fields; } $fields[] = 'post_content'; $fields[] = 'event_image'; $fields[] = 'EventStartDate'; $fields[] = 'EventStartHour'; $fields[] = 'EventStartMinute'; $fields[] = 'EventStartMeridian'; $fields[] = 'EventEndDate'; $fields[] = 'EventEndMinute'; $fields[] = 'EventEndHour'; $fields[] = 'EventEndMeridian'; $fields[] = 'is_recurring'; $fields[] = 'EventCurrencySymbol'; $fields[] = 'tax_input (for event categories)'; $fields[] = 'venue'; $fields[] = 'organizer'; $fields[] = 'EventShowMapLink'; $fields[] = 'EventURL'; return $fields; } add_filter( 'tribe_events_community_required_venue_fields', 'my_venue_community_required_fields', 10, 1 ); function my_venue_community_required_fields( $fields ) { if ( ! is_array( $fields ) ) { return $fields; } $fields[] = 'Venue'; $fields[] = 'Address'; $fields[] = 'City'; $fields[] = 'Province'; $fields[] = 'State'; $fields[] = 'Zip'; $fields[] = 'Phone'; $fields[] = 'URL'; return $fields; } add_filter( 'tribe_events_community_required_organizer_fields', 'my_organizer_community_required_fields', 10, 1 ); function my_organizer_community_required_fields( $fields ) { if ( ! is_array( $fields ) ) { return $fields; } $fields[] = 'Organizer'; $fields[] = 'Phone'; $fields[] = 'Website'; $fields[] = 'Email'; return $fields; }
None of them is working
Greetings
Patrickdsb cloud services GmbH & Co. KGParticipantHi Cliff,
thanks, that help a lot to understand how the events work. Maybe now I can get up with a solution.
The point is, I don’t use the delete button in wp-admin, to get the single events in the trash I use a mysql script.Greetings
Patrickdsb cloud services GmbH & Co. KGParticipantHi Victor,
thanks for letting me know. 🙂
I just installed the updates.
Sadly there are no changes at all.Greetigns
Patrickdsb cloud services GmbH & Co. KGParticipantHi Shelby,
I managed to get my “problem” solved.
<?php $author_ID = get_post_field( 'post_author', $post_id ); echo the_author_meta( 'display_name', $author_ID ); ?>
Did the trick 🙂
Thanks for your help.Greetings
Patrickdsb cloud services GmbH & Co. KGParticipantHi Courtney,
thank you for the hint with the plugin.
Sadly it doesn’t cover up what I wanted. 🙁
Now I managed to handle my problem with a good old cronjob and sql-query to “move” all old events in the trash.Greetings
Patrickdsb cloud services GmbH & Co. KGParticipantThis reply is private.
dsb cloud services GmbH & Co. KGParticipantHi Courtney,
thanks for the advise. I’ve tried that. But sadly it did not work 🙁
Greetings
Patrickdsb cloud services GmbH & Co. KGParticipantOk I just spoke to the customer, she doesn’t need that anymore, she will use the backend-overview for that.
Thanks for your help.dsb cloud services GmbH & Co. KGParticipantHi Cliff,
thank you for your post. It is nice to know, that you can see all shotcodes arguments in the code.
But sadly this doesn’t solve my problem 🙁
Even in the widget you can only filter the list after categories but don’t show them.Greetings
Patrick -
AuthorPosts