Forum Replies Created
-
AuthorPosts
-
Tony
ParticipantHi 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.
Tony
ParticipantHi 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.
April 14, 2015 at 6:47 am in reply to: Customizing the Saved Venue and Organizer menu areas on the Submission form #955372Tony
ParticipantI 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.
April 14, 2015 at 6:44 am in reply to: Pre-selecting a category on the community submission form #955366Tony
ParticipantThat’s perfect, thank you.
Tony
ParticipantJonny,
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.
Tony
ParticipantI too would like to know the answer to this question
-
AuthorPosts
