Martina Maurer
Forum Replies Created
-
Forum: Plugins
In reply to: [Salon Booking System] Date in .ics File is different to the booking timeThe newest version 8.6.2 has it fixed. It’s not in a calendar .ics file anymore, but I guess the customers can work with the link at the bottom to add the date into their calendar.
Forum: Plugins
In reply to: [Salon Booking System] Date in .ics File is different to the booking timeNo, it was 8.4. because 3 weeks ago there was no newer version.
Just updated, and the issue is still there. It’s correct in the content and the titles, but not in the dates.
I already checked timezones of the website and the plugin, as well on my own PC. They are all set correctly.
Hi again,
I fixed the error. Still have some warnings/notices from other plugins and wordpress core in the debug.log but nothing serious anymore. However hustle does still not show and the JS errors are still there.
Uncaught ReferenceError: inc_opt is not defined at log-view.js:7 at log-view.js:1
Cheers
Martina
Good morning
Thank you for your help. There is one error from a selfmade plugin and a lot of warnings and notices. I will fix the error and report back if this fixed my hustle problem as well.
Cheers
Martina
Updated to PHP 7.2 now. Still the slide-in is not shown in the frontend.
Heya
Ah, yes. It’s just a frontend problem. They are not shown.
PHP Version: 5.6.38
WordPress Version: 4.9.8
Hustle Version: 6.0.5I’m testing on Chrome (71.0.3578.80), Firefox (63.0.3), Internet Explorer (11.407.17134.0) and Edge (42.17134.1.0). None of them shop the currently active Slide-in.
Could it be PHP is not in 7.2 yet?
Forum: Plugins
In reply to: [Qtranslate Slug] how to display taxonomy slugs?Alright, I see the problem:
When using qts_get_slug() the plugin code uses the WP-function get_post_meta() in class-qtranslate-slug.php line 629 while for taxonomies I would need get_term_meta().
For anyone with the same issue, to get this working do something like this:
// get the current active language $lang = qtrans_getLanguage(); $args = array( 'taxonomy' => 'your-taxonomy-name' ); $taxonomies = get_categories($args); foreach ($taxonomies as $taxonomy) { $category_name = $taxonomy->name; $category_slug = get_term_meta($taxonomy->term_id, '_qts_slug_'.$lang); // do something with your variables here! }
Forum: Plugins
In reply to: [Qtranslate Slug] how to display taxonomy slugs?Update:
I deleted one of the categories (it’s a custom taxonomy btw) and redid it.Name de : 5 Endverankerung
Slug de : EndverankerungName fr : 5 Armatures d’ancrage
Slug fr : Armatures d’ancrageResult from $taxonomy->slug in both languages: 5-endverankerung
In the navigation the correct slugs are used.
So, what can I do? ??
aaand resolved because never was a problem ??
Cheers Tobias
Forum: Plugins
In reply to: [Category Posts in Custom Menu] order by page-attributesHello Diana
Yes that’s exactly what I needed. I just tested the newest version and it works perfect now!
Thank you very much.
Best regards
Martina
Forum: Plugins
In reply to: [Contact Form 7] on_sent_ok hook working but _gaq.push tracking isn'they!
I don’t know if help is still needed but if someone is looking for a solution this is what I did:
on_sent_ok: "_gaq.push(['_trackEvent', 'Form', 'Form-Submission']);"
Instead of tracking a Pageview it’s now an Event, so you should adjust your Google Analytics Settings: https://www.searchingsam.com/wordpress-tracking-contact-form-7-conversions-in-google-analytics/#.Ul-Xg1C-18H
Tested with:
WP v3.6.1
CF7 v3.5.3Forum: Plugins
In reply to: [Multisite Language Switcher] Custom Flags: Swiss German / GermanThank you soo much! This was the final step.
For everyone who’ll have a similar problem, here is my complete code to add two new languages with custom flags.
functions.php
if(class_exists('MslsLink')): // if the plugin isn't activated on all sites class MslsFlexibleLink extends MslsLink { protected $format_string = '<img src="{src}" alt="{alt}" />'; public function __toString() { $path = get_stylesheet_directory_uri() . '/images/flags/'; // change get_stylesheet_directory_uri to get_template_directory_uri if you're not working with Child Themes $temp = $this->get_arr(); $this->format_string = str_replace( '{alt}', $temp['txt'], $this->format_string ); switch($temp['alt']){ // add your needed languages here case 'de_CH': return str_replace( '{src}', $path . 'ch-de.png', $this->format_string ); break; case 'fr_CH': return str_replace( '{src}', $path . 'ch-fr.png', $this->format_string ); break; case 'de_DE': return str_replace( '{src}', $path . 'de-de.png', $this->format_string ); break; case 'hu_HU': return str_replace( '{src}', $path . 'hu-hu.png', $this->format_string ); break; default: return str_replace( '{src}', $path . 'ch-de.png', $this->format_string ); break; } } } function get_flexible_link($display) { return new MslsFlexibleLink(); } add_filter('msls_link_create', 'get_flexible_link'); endif; // Use this to add more languages into the Settings-Dropdown function add_de_ch($output, $lang_files, $current) { array_unshift($output, '<option value="de_CH"'.selected($current, 'de_CH', false).'>'.__('Schweiz DE').'</option>'); return $output; } add_filter('mu_dropdown_languages', 'add_de_ch', 10, 3); function add_fr_ch( $output, $lang_files, $current) { array_unshift($output, '<option value="fr_CH"'.selected($current, 'fr_CH', false).'>'.__('Schweiz FR').'</option>'); return $output; } add_filter('mu_dropdown_languages', 'add_fr_ch', 10, 3);
The language files .mo and .po are in the normal language folder ‘/wp-content/languages/’
Forum: Plugins
In reply to: [Multisite Language Switcher] Custom Flags: Swiss German / GermanOk, that’s completely new for me.
I’ve copied de_DE.mo and de_DE.po, changed their names and uploaded them again in the same folder. I even put them into the ‘themes/<mytheme>/languages/’ folder but I don’t get ‘German (Switzerland)’ or anything like it as a language to select in WordPress.
I don’t know what to change in the .po file with poEdit. I changed the Settings (Alt + Enter) > Project Name (German (Switzerland)) and Settings (Alt + Enter) > Language (de_CH), but this didn’t do the trick. I deleted de_CH.mo and saved de_CH.po again for a new compilation for the .mo file. Uploaded this again on the two folders but nothing changed -.-
I’m sorry to disturb you with that ??
Forum: Plugins
In reply to: [Multisite Language Switcher] Custom Flags: Swiss German / GermanThank you for the snippet.
When I
print_r($temp['alt'])
I get following arrays for the three launguages:
[txt] => ancotech GmbH Deutschland [src] => https://ch-fr.ancotech.com/wp-content/plugins/multisite-language-switcher/flags/de.png [alt] => de_DE[txt] => ancotech AG Schweiz [src] => https://ch-fr.ancotech.com/wp-content/plugins/multisite-language-switcher/flags/de.png [alt] => de_DE
[txt] => anotech SA Suisse [src] => https://www.ancotech.de/wp-content/plugins/multisite-language-switcher/flags/fr.png [alt] => fr_FR
There are no yx_CH languages, otherwise there wouldn’t be a problem -.- So I changed the ‘txt’ of each language (de-de, ch-de and ch-fr) and ajusted the code:
class MslsFlexibleLink extends MslsLink { protected $format_string = '<img src="{src}" alt="{alt}" />'; public function __toString() { $path = get_stylesheet_directory_uri() . '/images/flags/'; $temp = $this->get_arr(); $this->format_string = str_replace( '{alt}', $temp['txt'], $this->format_string ); // echo $temp['alt']; if ( 'ch-de' == $temp['txt'] ) { return str_replace( '{src}', $path . 'ch-de.png', $this->format_string ); } else if ('ch-fr' == $temp['txt']) { return str_replace( '{src}', $path . 'ch-fr.png', $this->format_string ); } else if ('hu-hu' == $temp['txt']) { return str_replace( '{src}', $path . 'hu-hu.png', $this->format_string ); }else { return str_replace( '{src}', $path . 'de-de.png', $this->format_string ); } } } function get_flexible_link( $display ) { return new MslsFlexibleLink(); } add_filter( 'msls_link_create', 'get_flexible_link' );
This works for now ??
While testing the snippet I found another problem ?? I can’t assign a page of the same language. e.g. If I connect a ch-de page to a de-de page, it won’t happen (here is only ch-fr connected but de-de not). Same happens the other way round (connect de-de to ch-de). When trying to make the connections from ch-fr it makes some strange things with the form (one field remains empty) but sometimes both sites are correctly connected (both sites are ok here vs. de-de is correct connected but the ch-de page is not the one I wanted)
I don’t get it. Maybe it’s better to just make connections between ch-de and ch-fr and deactivate de-de.
Forum: Plugins
In reply to: [Multisite Language Switcher] network with two different language connectionssorry, forgot to mark the topic as resoved ^^