Forum Replies Created
-
AuthorPosts
-
graham barnes
ParticipantHi hunter,
No your mis understanding I am referring to the mini calendar grid, I have tracked it down to this function: tribe_events_the_mini_calendar_day_link() in src/widgets/template-tags/widgets.phpfunction tribe_events_the_mini_calendar_day_link() { $day = tribe_events_get_current_month_day(); $args = tribe_events_get_mini_calendar_args(); if ( $day['total_events'] > 0 ) { // there are events on this day if ( $args['count'] > 0 ) { // there is an event list under the calendar $html = '<a href="#" data-day="' . $day['date'] . '" class="tribe-mini-calendar-day-link">' . $day['daynum'] . '</a>'; } else { // there are no events under the calendar if ( tribe_events_is_view_enabled( 'day' ) ) { // day view is enabled ob_start(); tribe_the_day_link( $day['date'], $day['daynum'] ); $html = ob_get_clean(); } else { // day view is disabled, just show that there are events on the day but don't link anywhere $html = '<a href="javascript:void(0)">' . $day['daynum'] . '</a>'; } } } else { $html = '<span class="tribe-mini-calendar-no-event">' . $day['daynum'] . '</span>'; } echo apply_filters( 'tribe_events_the_mini_calendar_day_link', $html ); }Note this bit: $html = ‘<a href=”#” data-day=”‘ . $day[‘date’] ‘#’ I want it to link to the actual event, so how can i modify the code to do this?
For now I have just modified the code to be:
function tribe_events_the_mini_calendar_day_link() { $day = tribe_events_get_current_month_day(); $args = tribe_events_get_mini_calendar_args(); if ( $day['total_events'] > 0 ) { // there are events on this day if ( $args['count'] > 0 ) { // there is an event list under the calendar ob_start(); tribe_the_day_link( $day['date'], $day['daynum'] ); $html = tribe_the_day_link(); //$html = '<a href="'.tribe_the_day_link().'" data-day="' . $day['date'] . '" class="tribe-mini-calendar-day-link">' . $day['daynum'] . '</a>'; } else { // there are no events under the calendar if ( tribe_events_is_view_enabled( 'day' ) ) { // day view is enabled ob_start(); tribe_the_day_link( $day['date'], $day['daynum'] ); $html = ob_get_clean(); } else { // day view is disabled, just show that there are events on the day but don't link anywhere $html = '<a href="javascript:void(0)">' . $day['daynum'] . '</a>'; } } } else { $html = '<span class="tribe-mini-calendar-no-event">' . $day['daynum'] . '</span>'; } echo apply_filters( 'tribe_events_the_mini_calendar_day_link', $html ); }showing the link to that date using: tribe_the_day_link();
-
This reply was modified 10 years, 1 month ago by
graham barnes. Reason: found a suitable solution for now
graham barnes
ParticipantHi,
Thanks for your reply, I don’t know if its a bug or not that is why I came here, I checked the console but no errors there, do you know what the template is that displays the grid and then I can look?graham barnes
ParticipantGreat that helped loads, thanks.
graham barnes
ParticipantI managed to fix it, there was only 1 event which was in draft format, i have now published this and changed the view to show all the months events, and it all shows fine for me, I will show it to the client as this isn’t my website and she will know more about it than me, thank you for taking the time to look at it.
I have updated to both versions now, when i first posted about the issue although it said 3.9.1, if i clicked on update at the top in the black bar it said it needed updating.
Graham
graham barnes
ParticipantThis reply is private.
graham barnes
ParticipantThis reply is private.
graham barnes
ParticipantI forgot to mention, even by deactivating all the other plugins, the events calendar still displays no events.
graham barnes
ParticipantHi George,
I can only leave the website like that for the next 3 hours.No errors show as I have deactivated all the plugins except events calendar and events calendar pro, however when the other plugins are activated, the following errors show:
Notice: Undefined variable: addr in /home/ispeakwi/public_html/wp-content/plugins/byrev-gallery-pagination-for-wordpress/byrev-gallery-pagination.php on line 262
Notice: Use of undefined constant WPRBLVERSION – assumed ‘WPRBLVERSION’ in /home/ispeakwi/public_html/wp-content/plugins/wp-render-blogroll-links/WP-Render-Blogroll.php on line 19
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method IvyCatTestimonials::start() should not be called statically in /home/ispeakwi/public_html/wp-includes/plugin.php on line 496
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method IvyCatTestimonials::register_widgets() should not be called statically in /home/ispeakwi/public_html/wp-includes/plugin.php on line 496
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method IvyCatTestimonials::init() should not be called statically in /home/ispeakwi/public_html/wp-includes/plugin.php on line 496
and lots more on the site.
Graham
graham barnes
ParticipantHi George,
Unfortunately I have tried those but still no events show on the frontend.thanks
Grahamgraham barnes
ParticipantHi George,
In order of the questions you asked:1. The exact problems is no events are showing on the page, there are events in the system so I am unsure why they are showing, this is why I went and created a events page (ant it allowed me to create one with the same slug).
2. The plugin versions are: The Events Calendar – 3.9.1, The Events Calendar Pro – 3.9.1
3. Yes there are lots of events which can be seen from the admin, do you want access to it?Shall I delete the page I made – despite it having the same slug /events/
Thanks
Grahamgraham barnes
ParticipantI just saw when I went to the updates the plugin was out of date so managed to update it despite before it was saying it was up-to-date, that has since resolved the errors on the events page in the admin and the message:
The following plugins are out of date: Events Calendar PRO 3.0.5. All add-ons contain dependencies on The Events Calendar and will not function properly unless paired with the right version. Learn More.
No longer shows 🙂 my main issue is the events are not showing in the calendar on the events page and also it says page not found despite me making a events page: http://www.italkwithspirits.com/events/
-
This reply was modified 10 years, 1 month ago by
-
AuthorPosts
