Calendar – Month Separation
-
Hi Malcolm,
Towards the end of each month, the StageShow calendar begins to show the dates of the next month in the previous month.
For example, if January 1 is a Wednesday, it will appear in the last week in the December month on the Wednesday, instead of beginning in the January table.
I hope this makes sense. Is there any way to fix this?
Thanks!
-
If I understand you correctly, you would rather have empty “cells” in the first and last rows of the month so each month block only contains dates in that month.
It is possible, but will need a change to the plugin code and would probably need an extra option somewhere (settings admin age, shortcode attribute or PHP define).
I’ll see what is involved.
Correct!
Thankyou – I hope it is possible.
Fixed in v6.6.2. Add separate=true to shortcode.
Thanks so much Malcolm! I appreciate your prompt fixes.
I’ve got a few customisations here and there – just so I know which files to backup, what files did you alter in v6.6.2?
Thanks again.
Here’s a list of the files changes in this version:
stageshowgold_trolley.php
stageshowplus_main.php
admin/stageshow_manage_overview.php
admin/stageshowplus_manage_overview.php
admin/stageshowplus_manage_settings.php
include/stageshow_sales.php
include/stageshowgold_dbase_api.php
include/stageshowlib_calendar.php
include/stageshowlib_sales_trolley_dbase_api.php
include/stageshowlib_simulator_gateway.php
include/stageshowplus_dbase_api.php
templates/emails/stageshowgold_HTMLEMail_Tickets.php
templates/emails/stageshowplus_HTMLEMail.php
templates/emails/stageshowplus_HTMLEMail_NoBorder.php
templates/emails/stageshowplus_ReserveEMail.php… however they may be an easier way!
What I would do is as follows:
Before you do an update, download a copy of the plugin to a local folder (i.e. on the HDD of your own computer). You can use a WP File Manager or a FTP client (such as FileZilla).
Now do the plugin update in the usual way.
Do another download (of the updated plugin) to a new local folder.
Compare the two versions. I use WinMerge for this sort of work. It allows you to compare the two versions and copy your customisations across to the new version.
Now use FileZilla to upload any updated files back to the server.
Thankyou!! Lifesaver – much more efficient than how I was doing it.
Can I make one more request? *pretty please*
Would you be able to make the following titles variables on the user end? We use StageShow for booking cooking classes, not theatre events, but there are a lot of places we have to make the change to say “classes” instead of “shows”. I’m not concerned about the backend – but I’d appreciate being able to change what the users see.- Show
- Ticket type (is it also possible to hide this?)
- Quantity/seat
- Message to seller
- Your shopping trolley
I appreciate your fast help! 10/10
The ‘Show’, ‘Ticket Type’ and ‘Qty/Seat’ text can all be changed by STAGESHOW_BOXOFFICECOL_************ defines (see in samples/stageshow_wp-config_sample.php for examples) which can be added to your uploads/stageshow-wp-config.php file.
The “Message to seller” and “Your shopping trolley” are hard-coded (although they are sunject to translations) so you’ll need to use a WP filter for this (in this case the stageshow_filter_trolley filter). You can find examples in samples/stageshow-filters-sample.php. Again this can be added to your uploads/stageshow-wp-config.php file.
Note that the strings that you match against are case sensitive.Thanks! Back to the topic of the month separation…
It seems to be separating the months correctly now, yay! Thanks!
However, events are appearing in the wrong months. With the separation set to false, they all work fine. However when set to true, everything that’s in January 2018 moves into February 2018, but the title “January” appears on both months – even though the second month is showing the layout for February.
I hope this makes sense? Otherwise can I contact you via email?
Sorry for being such a pain! I appreciate all of your help.
I see what you mean about the month titles, it’s taking the month for the date at the start of the first line of the block. That’s fixed ready to include in the next update. However, I don’t get a problem with dates appearing in the wrong place.
Please contact me here so I can get further details.
The topic ‘Calendar – Month Separation’ is closed to new replies.