kjetilwaage
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Can’t change view on event calendar pageWOOW! I got it working now!
Here is what i did..
I had Norwegian as the main language on the page.
I went in and deactivated the GTranslate plugin without the error being resolved.
After that I deactivated GTranslate and changed the page language to English. Then the links suddenly worked fine.
Then I set the language back to Norwegian and then activated the GTranslate plugin again and now it seems to work fine? ??
Thanks for your helpForum: Plugins
In reply to: [The Events Calendar] Can’t change view on event calendar pageI have done everything you wrote above, but the same problem occurs.
I’ve changed my password back, so you can log in and look again if you want?
WordPress: 6.7.2
PHP: 8.2
Site Language: Norsk, Nynorsk (nn_NO)Forum: Plugins
In reply to: [The Events Calendar] Can’t change view on event calendar pageThanks for the answer ??
I have now tested everything in that guide without it working.I changed to the default theme.
Deactivated all plugins except the calendar.
Cleared cache.
Tried opening the page in incognito mode.
I did some experimenting under Permalinks, and if I changed the Permalink structure to “Plain” it worked fine.
If I change back to “Post name” the links are broken again?Forum: Plugins
In reply to: [The Events Calendar] Can’t change view on event calendar pageStill not working….
https://nedstrandinfo.wpenginepowered.com/arrangement/User: nedstrandinfo Pass: nedstrandinfo
I have the same problem with 3 columns
Resizable thumbnails is set to “Yes”https://vestbris.no/tjenester/gallery-demo/
- This reply was modified 1 year, 3 months ago by kjetilwaage.
- This reply was modified 1 year, 3 months ago by kjetilwaage.
Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedThanks!
Can you please send me a mail to: kjetil(a)vestbris.no ?
You can help me directly on my site if it’s possible?Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedNo, still not working…
A little help would have been fantastic! ??Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedSorry, can’t get it to work! ??
I think i might look for another solution?Your code that i added in Custom jQuery Code:
jQuery( function() {
var dateFormat = “dd.mm.yy”,
from = jQuery( “#haaheim_date_in” )
.datepicker({
defaultDate: “+1w”,
changeMonth: true,
numberOfMonths: 1
})
.on( “change”, function() {
to.datepicker( “option”, “minDate”, getDate( this ) );
}),
to = jQuery( “#haaheim_date_out” ).datepicker({
defaultDate: “+1w”,
changeMonth: true,
numberOfMonths: 1
})
.on( “change”, function() {
from.datepicker( “option”, “maxDate”, getDate( this ) );
});function getDate( element ) {
var date;
try {
date = jQuery.datepicker.parseDate( dateFormat, element.value );
} catch( error ) {
date = null;
}
return date;
}
} );jQuery( function() {
var dateFormat = jQuery( “#haaheim_date_in” ).datepicker( “option”, “dateFormat” );
jQuery( “#haaheim_date_in” ).datepicker( “option”, “dateFormat”, “dd.mm.yy” );
var dateFormat = jQuery( “#haaheim_date_out” ).datepicker( “option”, “dateFormat” );
jQuery( “#haaheim_date_out” ).datepicker( “option”, “dateFormat”, “dd.mm.yy” );//getter
var firstDay = jQuery(‘#haaheim_date_in’).datepicker(‘option’, ‘firstDay’);
//setter
jQuery(‘#haaheim_date_in’).datepicker(‘option’, ‘firstDay’, 0);
//getter
var firstDay = jQuery(‘#haaheim_date_out’).datepicker(‘option’, ‘firstDay’);
//setter
jQuery(‘#haaheim_date_out’).datepicker(‘option’, ‘firstDay’, 0);My input fields in my form:
<div class=”con”>
<label for=”ankomstdato”>Ankomstdato</label><input id=”haaheim_date_in” type=”text” class=”dato” name=”arrive” /></div><div class=”con”>
<label for=”avreisedato”>Avreisedato</label><input id=”haaheim_date_out” type=”text” class=”dato” name=”depart” /></div>Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedok, sorry..
I’ve tried to remove the second id’s, still not working.
I don’t think i understand this? :pDo i use WP Datepicker and jQuery UI Widgets plugin together or just jQuery UI Widgets plugin alone?
Link to test form: https://www.haaheimgaard.no/test_date/
Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedok, thanks! ??
I tried but no luck ??Here is your code edited:
jQuery( function() {
var dateFormat = “dd.mm.yy”,
from = jQuery( “#haaheim_date_in” )
.datepicker({
defaultDate: “+1w”,
changeMonth: true,
numberOfMonths: 1
})
.on( “change”, function() {
to.datepicker( “option”, “minDate”, getDate( this ) );
}),
to = jQuery( “#haaheim_date_out” ).datepicker({
defaultDate: “+1w”,
changeMonth: true,
numberOfMonths: 1
})
.on( “change”, function() {
from.datepicker( “option”, “maxDate”, getDate( this ) );
});function getDate( element ) {
var date;
try {
date = jQuery.datepicker.parseDate( dateFormat, element.value );
} catch( error ) {
date = null;
}
return date;
}
} );jQuery( function() {
var dateFormat = jQuery( “#haaheim_date_in” ).datepicker( “option”, “dateFormat” );
jQuery( “#haaheim_date_in” ).datepicker( “option”, “dateFormat”, “dd.mm.yy” );
var dateFormat = jQuery( “#haaheim_date_out” ).datepicker( “option”, “dateFormat” );
jQuery( “#haaheim_date_out” ).datepicker( “option”, “dateFormat”, “dd.mm.yy” );//getter
var firstDay = jQuery(‘#haaheim_date_in’).datepicker(‘option’, ‘firstDay’);
//setter
jQuery(‘#haaheim_date_in’).datepicker(‘option’, ‘firstDay’, 0);
//getter
var firstDay = jQuery(‘#haaheim_date_out’).datepicker(‘option’, ‘firstDay’);
//setter
jQuery(‘#haaheim_date_out’).datepicker(‘option’, ‘firstDay’, 0);And my input fields:
<div class=”con”>
<label for=”ankomstdato”>Ankomstdato</label><input id=”haaheim_date_in” type=”text” class=”dato” id=”ankomstdato” name=”arrive” />
</div><div class=”con”>
<label for=”avreisedato”>Avreisedato</label><input id=”haaheim_date_out” type=”text” class=”dato” id=”avreisedato” name=”depart” />
</div>- This reply was modified 6 years ago by kjetilwaage.
Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedThanks!
Do you have ab example and info how to do this?Hey!
Thanks for adding the if condition ??
Tried to fix the email field with your code, but did not make it work?I think this is possible with at simple javascript?
I will try to explain it again.Look here: https://www.vestbris.no/emabestilling/
I have a dropdown menu with a list of names and i have a email field that the user have to type in their email every time they post a order.
My users are lazy and do not bother to enter their e-mail whenever they have to send an order.
So when a user pick their name from the list i want the email field to automaticly put in their email adress.Thanks ??
Thanks!
Where do i add this code ?Thanks!
1. Ok, then I see and see what’s coming later2. Yes I thought maybe something like that would work.
How do i make the formula ?Thanks for replay!
Was not exactly what I was thinking about.
I will try to explain a little better.1. If a person leaves a field blank, eg “Address:” (see image)
I want this line hidden in the email.
Could maybe be done like this?[if field adresse]
Adresse: [field adresse]
[/field adresse]2. Yes almost ??
I want to change “From email address” field depending on what they select in the dropdown