• Resolved juliepayne76

    (@juliepayne76)


    Hi,

    I’m on WordPress 4.1.4 and today I installed ‘OpenTickets Community Edition’ (for WooCommerce). This will be ideal for my purposes if it works.

    I am using the Suffusion theme with plugins ‘WooCommerce’ and ‘Suffusion Commerce Pack’ (this adds support for WooCommerce).

    I published an event (following the video instructions) but this did not appear on the Event Calendar page.

    Also, the Datepicker (on the admin screen used to create the event) was not using a UK date format.

    And the Event Calendar breaks the formatting of my theme (the right margin appears under the Calendar and down the left side of the screen).

    I noticed that the OpenTickets plugin had been updated very recently (within the past 24 hours) and so I thought I would try an older version just in case the new version is broken for me. But on the WordPress developer support page there are no older versions available for download.

    Please can I try a stable older version?

    Many thanks.

    https://wordpress.org/plugins/opentickets-community-edition/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author loushou

    (@loushou)

    Hey @juliepayne76,

    To answer your question about previous versions, you can find us on github, and specifically if you are looking for downloads of previous versions, you can find most of them on the releases page now. That being said, it sounds like you have a few questions here that are leading you to believe that the current version on WP.org is not the stable version. In fact, the one that is on WP.org is the current stable version. Let me address your questions to clear up any confusion.

    You published an event, but it did not show on your calendar page. This could be caused by a number of things, most of which are covered in the video you mentioned. The most common problems that usually occur to produce this outcome, is understanding that the child events can be (and must be) individually published or unpublished. During the event creation process, in the ‘Event Settings’ box (below the calendar), when you select the settings for each of the child events (or all at once, since you can select multiple at a time), double check that the ‘Status’ is set to ‘Published’. If it is not, change it to published and save the parent event. Next double check that the ‘Visibility’ of the child events are set to ‘Public’. There are various visibility levels, each allowing distinctive groups of users to see an event, ‘public’ being the one with the most access allowing the most users to see it (which is the only one that allows logged out users to see it). If those things are not the problem, then we may need to go through additional troubleshooting steps to figure out why they are not showing for you. Let me know if we do.

    The Datepickers all use the date format specified in the loaded language translation file. Currently, en_US is the only English variant that is included with the software. Using a tool called POEdit, you can create a language translation file for en_GB (UK), and change the data formats to match what they should be for the UK (as well as any other language changes). If you do that, perhaps you would be willing to share it with the community, so that others in the UK could have proper date formats. If that interests you, email the resulting PO and MO files to info@opentickets.com, and we will get that added in. It is up to you, but this is how the datepicker formats get changed, the language files. And the community thanks you in advance, if you decide to make a UK translation file.

    As for the Calendar page, that one is a bit more tricky. Each theme is different in the way that it defines the layout of the page. The plugin itself handles the formatting needed to make the calendar visible in at least the core WP themes and in the ‘Canvas’ theme, a WooThemes theme. It does however add the ability to define your own calendar page template, which gives you the power to change the ‘shell’ of the calendar, so that the calendar fits nicely in your theme. I described the basic process for this as an answer to the same question for a different theme, a while back. The steps are basically the same, but the specific changes I tell him to make would likely be different for you. If you can provide me with a link to your calendar, I could probably point you in the right direction of the potential changes you would need to make.

    I am about to release a new version in a few minutes; however, it only provides the addition of the German translation, graciously provided by H.T. (@ht-2). I would do similar for the UK translation once it becomes available. Hopefully, these answer your questions. If you really need to try an older version, you now have the resources to find those. Finally, as mentioned above, if you need specific help about fitting the calendar into your theme, reach out here with your url, and I will give a shot at helping you figure out the needed modifications.

    Loushou

    Thread Starter juliepayne76

    (@juliepayne76)

    Hi,

    Thank you for all the info – it’s very much appreciated 🙂

    I’ll have to investigate creating a translation file. I’m guessing this is either something specific to OpenTickets, or it is a very new open mechanism with only a few translations in place. It is a shame there is not already an open approach to date formats that works for Europe as well as the US.

    Regarding the event, it was just my first ever event, it had no child events and it did not have a parent event. Strangely though I’ve just had a look and it has magically appeared – I’ve made no changes at all. I have a strong suspicion that this is something to do with the ‘Publish date’. As instructed in the video, I simply clicked ‘ok’ to the default date that this setting presented to me. Again this was a US date, and I suspect that the time it was actually published was latter than when I wanted it published, which was right away.

    Regarding the theme layout, I suspected I might have to amend the template. I can’t post a link just yet (to show you the problem) because I don’t want the general public (& especially robots) visiting the site whilst it is under development. It is a sports club (triathletes) website through which we want to sell club kit and tickets to sporting events.

    I’ll be working on it again tomorrow and so I’ll definitely be following the links you have kindly provided and I’ll be following your advice very closely.

    Many thanks once again.

    Plugin Author loushou

    (@loushou)

    No problem. Also as a side note, if you do want to provide a link, you can actually send it to info@opentickets.com, and I can take a peak from there, assuming it is a public site. That way nobody else will get the link.

    As for the language file, it is actually a pretty common feature in wordpress. Plugins are encouraged to have their own multi language translations, just like core wordpress. Here is another link that will explain what tool to get and how to setup your own language file. Hopefully that link will provide enough information to push you in the right direction.

    Let me know if I can help any other way,
    Loushou

    Thread Starter juliepayne76

    (@juliepayne76)

    Hi @loushou,

    I’ve got past 2 of my 3 problems. Your link describing template changes was very useful. I placed the amended template in my child theme and it worked fine. In case you are interested, this is what I changed it to:

    <?php
    /*
    Template Name: OpenTickets Calendar
    */

    get_header();
    ?>
    <div id=”main-col”>
    <?php do_action( ‘qsot-before-calendar-content’ ); ?>
    <div id=”content”>
    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <div class=”calendar event-calendar calendar-content-wrap”>
    <div class=”remove-if-js non-js-calendar-page-wrapper”><?php if (is_active_sidebar(‘qsot-calendar’)): ?>
    <div class=”calendar-widget-area”><?php dynamic_sidebar(‘qsot-calendar’); ?></div>
    <?php endif; ?></div>
    </div>
    <script> if (typeof jQuery == ‘function’) (function($) { $(‘.remove-if-js’).remove(); })(jQuery);</script>
    </article>
    </div></div>
    <?php do_action( ‘qsot-after-calendar-content’ ); ?>

    <?php
    get_footer();

    Regarding the delay in publishing, that was my fault I’m afraid. If I chose the default date and time then it would change the status to ‘scheduled’ and wait 1 hour before publishing. Here in the UK we have advanced the clocks by 1 hour for British Summer Time. After installing WordPress I checked the settings but the date setting was set to UTC+0 by default. I changed this to London and this has now fixed the BST problem.

    Regarding the language template, from my investigation into this it appears that in WordPress v4.0 and above you simply select the language via Settings > General > Site Language. It is only in previous versions where you need to update wp-config.php and have .mo and .po files. There are also date format settings on the WordPress ‘general’ page. Changing these had no effect on the date format on the ‘Add Event’ screen. Could these possibly be hard coded in the US format (i.e. month before day)?

    Many thanks.

    Plugin Author loushou

    (@loushou)

    Hey @juliepayne76,

    Glad to head that 2/3’s of the problem is resolved. As for the remaining 1/3, I have some comments. You are correct that for Core WordPress you no longer need PO and MO files; however, for plugins, you still do need PO and MO files. This is because of the nature of how the translation system works. Every time there is a ‘string’ that needs translating (like the date format string), a mapped list is consulted by the software. This mapped list shows the software that the date format (or US english words), for instance ‘m-d-Y’ (US date format), should be translated to the UK equivalent ‘d-m-Y’ (UK date format).

    For Core WordPress, when you select the Site Language and save those settings, what is actually happening is the software is reaching out to WordPress.org and asking for the proper PO and MO files. Those are then stored somewhere, and used later as that mapped list I talked about. With that in mind, the PO and MO files that you receive when following that procedure, is only for the ‘strings’ that WordPress knows needs to be translated (basically, any displayed words int he core WordPress software when you do not have any plugins installed).

    In other words, once you change that setting, WordPress’s PO and MO files (the ones downloaded in the background) allow WordPress to know that the the word ‘Pages’ should be displayed as the word ‘Pagine’ when Italian is the language you selected. Conversely, WordPress has no idea that the word ‘Events’ should be displayed as ‘Eventi’, because Core WordPress does not know what an ‘Event’ is in the first place. This word ‘Events’ only comes into play once you install a plugin like OpenTickets.

    Thankfully, Core WordPress allows any plugin kind of Piggyback this process. When you change that Site Language setting in the Settings page, plugins use that setting internally to determine which translation file they load for themselves. The plugin’s own translation PO and MO files are usually packaged with the software (our plugin currently works this way). Some plugins have employed a thirdparty service to distribute their PO and MO files (like WooCommerce) in a similar method to that of Core WordPress (the process you hinted towards in your message and that I described in detail above).

    Basically, for most plugins, individual PO and MO files are a requirement. Many plugins already have a vast spectrum of different translations that they package with their software. Our translations are still in their infancy. As of today, we only have two complete translations, US English and German. We have partial Italian translations too. UK translations would be awesome to add to the collection, especially because of the date formats that you bring up. In order to do that though, we must follow the guidelines for plugins, which requires that each plugin provide it’s own translation for it’s own strings.

    Hopefully this clears up why we have to have a UK translation and core wordpress does not require one,
    Loushou

    Plugin Author loushou

    (@loushou)

    Hey @juliepayne76,

    After writing that last post, I realized, while it is pretty informative and accurate, it is probably a little overwhelming. I am not really up on what the proper date formats are for the UK, but after some research, it seems that d-m-Y style formats are probably close enough. Thus, I just made a new release which includes a PO and MO for en_GB (UK translation). These PO and MO files have all the date formats translated into my best UK approximations. It would be awesome if a person who actually lives in the UK could verify them / correct them, and make any needed adjustments to verbiage in the other strings, but I think this will suffice until such a person does so. In the mean time, if you update to the latest version, you will see your datepickers and various other parts of the software have updated date formatting, which will change based on the Site Language, if the language chosen is either UK English, UK English or German.

    Thanks,
    Loushou

    Thread Starter juliepayne76

    (@juliepayne76)

    Hi @loushou,

    That’s brilliant – many thanks. The date looks fine to me now.
    If I come across any date formats that don’t look quite right I’ll let you know, but your assumptions about d-m-Y style are probably spot-on.

    I expect there are little or no verbiage changes required. We get so much US TV, films, and other influences that we are used to Americanisms now. The one thing that springs to mind that I often notice is the spelling of ‘color’ (I don’t know if this appears in any of your text strings), but we spell it ‘colour’. But most people don’t even complain about this these days.

    Once again many thanks for your help.

    Plugin Author loushou

    (@loushou)

    No problem @juliepayne76. Glad I was able to help.

    Loushou

    Thread Starter juliepayne76

    (@juliepayne76)

    Hi @loushou,

    I’ve been getting in a muddle and I need a lot of help.

    When adding a new event, I want to add the same venue and ‘event area’ as I have used before. But when I try to choose ‘event area’ it pre-populates the choice with the date and price from a previous event. I would expect the date and price to be entered against the event, but they are not. Maybe I have some settings wrong?

    Also, I selected categories of ‘events’ and ‘training’ when adding an event, but when I view posts with these categories, these posts are nowhere to be seen.

    I’m entering event descriptions but these do not appear to be displayed anywhere. If I go to the event calendar and click on an event then it displays the featured images from the event and the ‘event area’ but I cannot see my event description anywhere. Also, the ‘event area’ image is huge for some reason.

    And so in short, my event descriptions do not appear anywhere, the ‘event area’ image appears huge, assigning categories to event posts does not work, and I cannot seem to figure out how to enter a second event at the same venue and same ‘event area’ but with a different date and different price.

    I think I am going wrong in a big way. Any help to steer me down the right path would be very much appreciated, thanks.

    Thread Starter juliepayne76

    (@juliepayne76)

    Hi,
    I noticed this thread is flagged as resolved, and so I started a new thread for these problems.
    Many thanks.

    Plugin Author loushou

    (@loushou)

    Hey @juliepayne76,

    Thanks for doing that. Accordingly, I have responded on those threads to the questions in each.

    Loushou

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Previous versions please?’ is closed to new replies.