Tony

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Date format and picker in Community Submission form #955417
    Tony
    Participant

    Hi George,

    Thanks for that, I’ll dig into the JS. It’s a bit of a pain as I think having three months breaks the responsiveness of the page and should actually be considered a bug – have you tried using it on a small screen?

    With regards to “styling the date picker popup”…

    The filter bar calendar pop-up looks like this – http://screencast.com/t/IdDNbz2TJnQ

    The community submission form looks like this – http://screencast.com/t/oqSeBcefO

    I’d like them to look the same.

    in reply to: Date format and picker in Community Submission form #955389
    Tony
    Participant

    Hi George,

    Unfortunately this is needed for a site going live within the next 2 weeks (for a town council – so they’ll be picky and want UK dates).

    Does the patch also include styling the date picker popup the same way? And how do I limit it to one month on the community submission form (like the tribe bar filter)?

    Sorry for multiple questions in one thread, but it feels like they are probably related.

    Tony
    Participant

    I tried to unhook them but got a little lost in the code so have had to simply surround the offending table rows with a table tag and then hack the CSS to render the venue and organizer tables as ‘not-tables’.

    I would prefer to replace the mark-up as this solution feels dirty so if there is any further help (code examples?) available then that would be great.

    Tony
    Participant

    That’s perfect, thank you.

    in reply to: Default Venue Country #955340
    Tony
    Participant

    Jonny,

    If you have the Pro version of the plugin, go to Settings and under the Default Content tab in the Address section add ‘UK, United Kingdom’ to Use a custom list of countries – this will limit the list to just UK.

    Setting a default country is not needed if UK is the only option (which doesn’t work anyway – bug).

    There is also a bug that causes the US States select list to still display and the only way I know to get rid of this is to remove or comment it out by overriding the module file in your theme (see below).

    Initially I did not have the Pro version of the plugin, so to achieve getting UK as the default, I did the following…

    I created some folders in my theme to override the submission form without modifying the plugin files…

    /tribe-events/community/modules

    …in which I have placed a copy of venue.php taken from the equivalent folder in the plugin.

    In this file, there does appear to be an attempt to get the default country…

    $venue_country = empty( $venue_country ) ? tribe_get_option( 'defaultCountry' ) : $venue_country;

    …but it does not work.

    So I have replaced the code with…

    $venue_country = empty( $venue_country ) ? 'United Kingdom' : $venue_country;

    I also had to change the opening if statement from…

    if ( !tribe_get_venue_id() && tribe_get_option( 'defaultValueReplace' ) ) {

    to…

    if ( !tribe_get_venue_id() ) {

    This will at least set the default country to the UK.

    As there also seems to be a bug in the code that hides the US State select list, I have simply commented the select tag out of my page for now as it is not needed.

    I hope this helps.

    in reply to: Default Venue Country #953651
    Tony
    Participant

    I too would like to know the answer to this question

Viewing 6 posts - 1 through 6 (of 6 total)