Home › Forums › Calendar Products › Events Calendar PRO › Moving from 2.0.11 to 3.9.3 Missing "View as List" page
- This topic has 15 replies, 2 voices, and was last updated 10 years, 10 months ago by
Brian.
-
AuthorPosts
-
May 6, 2015 at 11:58 am #960915
sunvalleycenter
ParticipantJust made the update from 2.0.11 to 3.9.3.
I can see events-calendar at http://test.sunvalleycenter.org/events-calendar/2015-05/ but when click on View As List http://test.sunvalleycenter.org/events-calendar/list/?tribe-bar-date=2015-05 I get Sorry No posts match your criteria.*removed by admin
You can see calendar pages we are trying to mimic at current site using version 2.0.11 at http://sunvalleycenter.org/events-calendar/upcoming/
We have four files in theme/svca/events that are not translating to new version: gridview.php, list.php, single.php and table.php. Is there an easy way for you to take a look at these files so I can determine what needs to be updated for new views. Is there any place in your docs that defines css changes for new versions.
Sorry I know this is a very old version that we are trying to upgrade from but client kept putting it off because plugin update was breaking their pages and now they are finally ready to make the move.
May 6, 2015 at 12:38 pm #960938sunvalleycenter
ParticipantOkay I have made some progress. Figured out events folder in theme is now tribe-events and so list view is working.
I do notice that there is no longer a view for table.php and gridview.php so can you tell me what view those have become in new version? Single.php is not working either but that may be single-event.php now?THANKS for any help.
May 6, 2015 at 12:59 pm #960950Brian
MemberHi,
I can help out here.
The table.php and gridview.php and most likely are part of the month view templates now.
Unfortunately, none of the 2.xx templates can be used in 3.xx and it is best to start with the themer’s guide to redo any customizations with the updated functions.
Please follow our themer’s guide for customizing templates in 3.xxx
https://theeventscalendar.com/knowledgebase/themers-guide/
Let me know if you have any follow up questions.
Thanks
May 6, 2015 at 3:17 pm #960985sunvalleycenter
ParticipantOkay but my list.php is working with the new version except that the date is coming up Thursday January 1 12 am for all events.
http://test.sunvalleycenter.org/events-calendar/list/
*removed by adminhere is code for date:
<?php if (!tribe_get_all_day()):?> <h3><?php echo date('l, F j, g:i a', strtotime(tribe_get_start_date())); ?></h3> <?php else :?> <h3><?php echo date('l, F j', strtotime(tribe_get_start_date())); ?></h3> <?php endif; ?>Could you please tell me what this has changed to?
It seems very strange to me that you would not carry over any of the templates from 2.x to 3.x. My client spent a lot of money to get their events working just the way they wanted and then your upgrade basically broke all their templates. Just saying that I hope I don’t have to redo EVERYTHING.
May 6, 2015 at 4:02 pm #960996Brian
MemberSorry for the issues. I was not here 2 years ago for the upgrade from 2.xx to 3.xx.
I found this article we created that may help tell you what changed:
http://tri.be/the-events-calendar-3-0-preview-talking-templates-with-jessica/
I am looking for anything else we have, but so far that is all I turned up.
May 7, 2015 at 10:24 am #961218sunvalleycenter
ParticipantI kind of figured you were not around for previous version but thanks for trying. Is there any support person who does know the changes a bit better? I have been able to get actual coding help on this in the past so hoping I can still get that level of support?
I have fixed the date problem.
Next issue: I am able to pull up upcoming events but not previous. Here is my old navigation which is not working as it used to.
http://test.sunvalleycenter.org/events-calendar/list/?tribe_event_display=past/
user: svca pass: 052015
<div id="tribe-events-nav-below" class="tribe-events-nav clearfix"> <div class="tribe-events-nav-previous"><?php // Display Previous Page Navigation if( tribe_is_upcoming() && get_previous_posts_link() ) : ?> <?php previous_posts_link( '<span>'.__('« Previous Events', 'tribe-events-calendar').'</span>' ); ?> <?php elseif( tribe_is_upcoming() && !get_previous_posts_link( ) ) : ?> <a href='<?php echo tribe_get_past_link(); ?>'><span><?php _e('« Previous Events', 'tribe-events-calendar' ); ?></span></a> <?php elseif( tribe_is_past() && get_next_posts_link( ) ) : ?> <?php next_posts_link( '<span>'.__('« Previous Events', 'tribe-events-calendar').'</span>' ); ?> <?php endif; ?> </div> <div class="tribe-events-nav-next"><?php // Display Next Page Navigation if( tribe_is_upcoming() && get_next_posts_link( ) ) : ?> <?php next_posts_link( '<span>'.__('Next Events »', 'tribe-events-calendar').'</span>' ); ?> <?php elseif( tribe_is_past() && get_previous_posts_link( ) ) : ?> <?php previous_posts_link( '<span>'.__('Next Events »', 'tribe-events-calendar').'</span>' ); // a little confusing but in 'past view' to see newer events you want the previous page ?> <?php elseif( tribe_is_past() && !get_previous_posts_link( ) ) : ?> <a href='<?php echo tribe_get_upcoming_link(); ?>'><span><?php _e('Next Events »', 'tribe-events-calendar'); ?></span></a> <?php endif; ?> </div> </div>May 7, 2015 at 10:56 am #961242sunvalleycenter
ParticipantI am unable to get past events with my list.php or if I remove list.php from the tribe-events folder and use your code the previous events do not show up either?? Please help.
May 7, 2015 at 11:53 am #961261sunvalleycenter
ParticipantUpdate to previous events issue. If I use the link http://test.sunvalleycenter.org/events-calendar/list/?action=tribe_list&tribe_paged=1&tribe_event_display=past I can get the past events to display.
1. I would like to display past events from most recent to latest
2. wondering how to fix this url – would be nice if link was http://test.sunvalleycenter.org/events-calendar/past instead. Any possible way to do this??May 7, 2015 at 1:27 pm #961282Brian
MemberOk glad you made some progress, here is some information based off your last posts.
This is the file with the List View Previous and Upcoming Event Links:
the-events-calendar\views\list\nav.php
That will show the new previous event link and unfortunately, there is no setting to change that to just /past. It could be possible, but would take customizing the plugin itself which is not recommended.
As for reversing the Past Events, see if this snippet entered into your theme’s function.php works:
https://gist.github.com/elimn/0be6c4cbcf80b3721c81
Let me know how that works out and any other issues you find.
May 11, 2015 at 9:16 am #961826sunvalleycenter
ParticipantThanks snippet seems to have worked to reverse the order.
I am having some trouble pulling up the specific posts that I want. If I use the link http://test.sunvalleycenter.org/events-calendar/list/?action=tribe_list&tribe_paged=1&tribe_event_display=upcoming then I can get the upcoming posts as well as http://test.sunvalleycenter.org/events-calendar/list/?action=tribe_list&tribe_paged=1&tribe_event_display=past to get the past posts list.
Upcoming post list is correct with above link however past posts list is missing the very last past post.
See http://sunvalleycenter.org/events-calendar/past/ (Old plugin – this works!) versus
http://test.sunvalleycenter.org/events-calendar/list/?action=tribe_list&tribe_paged=1&tribe_event_display=past (missing Sat May 9 post).I can clean up these links using htaccess if needed unless there is another way to get past and upcoming posts to appear?
May 11, 2015 at 10:26 am #961856sunvalleycenter
ParticipantI will probably still need help on other issues but have devised a work around for previous post.
May 11, 2015 at 11:01 am #961873sunvalleycenter
ParticipantSo I was using this function
<?php echo tribe_get_displayed_month(); ?>but it no longer returns the month. Could you please tell me what this has been changed to?May 11, 2015 at 2:54 pm #961975Brian
MemberThis is the start of month view:
the-events-calendar\views\month.php
And this is the content function start:
<?php tribe_get_template_part( 'month/content' ); ?>It will then go through these files to build the month view in this order:
the-events-calendar\views\month\content.php
the-events-calendar\views\month\loop-grid.php
the-events-calendar\views\month\single-day.php
the-events-calendar\views\month\single-event.php
Is that what your are looking for?
May 12, 2015 at 1:02 pm #962190sunvalleycenter
ParticipantNo, I can easily see how the templates work. The function I am asking about is deprecated so was hoping you could tell me what replaces it. Never mind as I have come up with my own solution. Maybe not pretty but its working. Sure would be a nice gesture to document what to do with deprecated functions.
May 13, 2015 at 6:43 am #962307Brian
MemberOh my bad. I misread the function.
I looked it up and it is actually from 1.xx version of the plugin. The documentation from that version was even worse then it is now.
-
AuthorPosts
- The topic ‘Moving from 2.0.11 to 3.9.3 Missing "View as List" page’ is closed to new replies.
