Forum Replies Created

Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • in reply to: ACCORDION, av-accordion-tab-sort-filter: sort order #1428839

    Hi,

    sure, do as you like!
    That was exactly the idea why I’ve posted it.

    I hope your holiday celebrations are full of lots of fun, surprises, and magic!

    Cheers,
    Jürgen

    in reply to: ACCORDION, av-accordion-tab-sort-filter: sort order #1428784

    Dear Günter,

    you’ve been definitely too fast for me! 😁
    Just used it, works like a charm. So thanks a lot for the quick response!

    Btw.: you can even use ksort() for sorting, if you set the correct locale in advance. E.g.

    /**
     * Avia toggle: Sort tags according to german rules (Umlauts are a problem otherwise)
     */
    function itcv_toggle_sort_tags( $tags, $toggle_atts ) {
    	setlocale (LC_COLLATE, 'de_DE.utf8');
    	ksort( $tags, SORT_LOCALE_STRING );
    	return $tags;
    }
    add_filter( 'avf_toggle_sorted_tags', 'itcv_toggle_sort_tags', 10, 2);
    
    • This reply was modified 9 months, 4 weeks ago by JVo.
    in reply to: Licensing #1428504

    Hi Rikard,

    works like a charm again!

    Thanks for the quick support, case closed.

    Merry christmas🎄 and all the best for the new year! 🎆
    Jürgen

    in reply to: Contact Form and Cloudflare’s Turnstile CAPTCHA #1400420

    Thanks Yigit!

    Yeah, I know the Turnstile dev docs.
    I was more interested in some hints on the Enfold side (e.g. what files to look in, is there a hook and so on). :-)
    Anyway, I’ll find my way through…

    Cheers,
    Jürgen

    in reply to: Enable Related Posts #1376557

    Got the same problem (Blog posts, created with ALB).
    Unfortunately, the plugin link from above doesn’t work anymore..

    Can you pls. let me know the actual link for the “Enfold Related Posts Element” plugin?

    Thx in advance,
    Jürgen

    • This reply was modified 1 year, 10 months ago by JVo.
    in reply to: Social Media Profiles – how to add another? #1350632

    I have already incorporated Mastodon social media icon on the KLIMA° vor acht homepage 3 times (in the middle of the page and in header & socket on every page) following your instructions above. So thanks for that!

    It is worth to add that you very likely need different versions of the SocialMedia icon b/c of different colors. I’ve used 3 SVG files.
    Also you might need to play around with icon size (height, width of a::before) and adjust positioning. For the latter, play a bit with margin-top/margin-bottom of the parent li element or the anchor element itself.

    Btw.: the color of the Mastodon icon is #2b90d9.

    Best,
    Jürgen

    Dear Rikard,

    perfect, works like a charm!
    The line will be included in the next version, I assume!?

    Thanks for taking care and thanks to the dev team for the solution!
    Best,
    Jürgen

    Hi Nikko,

    sorry for late reply.
    O.k., I see the problem. It has worked with the code block, for sure.

    Many thanks and best regards!
    Jürgen

    in reply to: Icon Grid: Link in Flip Box #1268392

    Hi Nikko,
    always at your disposal. :-)

    Question on the side: how about documentation of the icon grid feature? Couldn’t find any, everything about it is here in the forum.

    Best,
    Jürgen

    in reply to: icon grid second row issues #1268286

    Hi Vic,
    yes, that is exactly what I’ve stated above!
    If you make the browser window narrower, the blocks become narrower and thus the text lines shorter, resulting in more lines => bigger height.

    Upon resize event, apparently you recalculate the min-height attribute of each .article-icon-entry.
    BUT: Sometimes your calculation is WRONG, since the li ancestor can become taller than the .article-icon-entry! I have ANFI, why this happens.

    If I look for the tallest li element (in your example 351,19px) the min-height of the .article-icon-entry elements should also become 351,19px. But obviously it is 295.188px (since the outerHeight of tallest .article-icon-entry element is 295.188px).

    If I set min-height of the elements manually to the correct value by executing jQuery(‘.article-icon-entry’).css(‘min-height’, “351.19px”), all is good for the moment: the gap is closed (until I resize the browser window).

    Digging in your code in iconlist.js, I find these lines:

    
    				setMinHeight: function (els) {
    
    					if (els.length < 2) return;
    
    					var elsHeights = new Array();
    					els.css('min-height', '0').each(function (i) {
    						var current = $(this);
    						var currentHeight = current.outerHeight(true);
    						elsHeights.push(currentHeight);
    					});
    
    					var largest = Math.max.apply(null, elsHeights);
    					els.css('min-height', largest);
    

    Just calculate currentHeight from the outerHeight of the li parent (instead of the article element itself) like so:

    
    						var current = $(this).closest('li');
    

    That did the trick for me (and will do probably for everybody else running into that problem)!
    You can thank me later.

    Best, Jürgen

    in reply to: icon grid second row issues #1268022

    I have the same issue, except that I have a gap between rows.
    Apparently it’s depending on the viewport width (one will find out while resizing the browser window) and the height of the boxes (resulting from the content).

    Best, Jürgen

    • This reply was modified 3 years, 10 months ago by JVo.
    in reply to: Icon Grid: Link in Flip Box #1267669

    Hi Nikko,
    works like a charm!

    I’ve completely overlooked the 3rd dimension. :-)
    You can close this ticket now, of course.

    Thanks a lot, best regards!
    Jürgen

    in reply to: Icon Grid: Link in Flip Box #1267161

    Hey Nikko,

    see private area.

    best, Jürgen

    Hi Ismael,

    please find ftp details in private content.

    Cheers,
    Jürgen

    Dear Ismael,

    very strange!

    For sure I can provide site access, please see the details in the `private section.

    Strangely, one cannot edit the functions.php file of my child theme from the admin panel via “Appearance > Editor”.
    So I have created a custom field named ‘fix_region_param’. In conjunction with a corresponding function, this works as a switch (whether you want to fix the error or not). The function looks like this:

    
    // fix HTML entity conversion error
    function dawn_content_filter( $content ) {
    	global $post;
    
    	$fixIt = get_post_meta($post->ID, 'fix_region_param', 'true');
    	if($fixIt='true')
        		$content = str_replace( 'amazon®ion=', 'amazon&region=', $content );
    
        	return $content;
    }
    add_filter( 'the_content', 'dawn_content_filter', 1 );
    

    By editing the value of ‘fix_region_param’ on the page in question, you can select to fix the misbehaviour or not (true/false).
    Currently the switch is set to ‘true’, so everything works properly. If you set it to false, you can see the erroneous output on the page.
    PLEASE DO NOT FORGET TO SET IT TO TRUE AGAIN!!!

    To reproduce the error in the editor, just do the following:

    • Open the page in the editor
    • Edit any text block and save it (no need to change anything)
    • Update the page

    The iframe in the text block you’ve just edited will still look good. If you scroll down to another text block containing an iframe, you will just see some dummy content in the iframe (content delivered by amzn because of now invalid src link).

    If you edit a text block with such a “broken” iframe, that one will look good again.
    Now update the page again (so it reloads in the editor). Result: the others will be broken now!

    In fact, you have to touch all the text blocks containing iframes before saving the page. That’s the only way to make them all look good when you open the editor next time.

    Best regards and many thanks in advance for your help.

    in reply to: Using soft hyphens (&shy) in Enfold Text-Blocks #1102749

    Hi,

    as my comment states, at least the parameter ‘entity_encoding’ is not at it’s default value as defined in the spec.

    Anyhow, you can close the topic, of course!

    Cheers,
    Jürgen

    in reply to: Using soft hyphens (&shy) in Enfold Text-Blocks #1102223

    Hey Mike,

    the problem is *not* the stripping in visual mode, but in text mode.
    Anyhow, thanks for pointing in the right direction!
    I’ve learned that my “problem” was basically caused by TinyMCE (and NOT Enfold!).

    Unfortunately the link you’ve posted is not what I would call a “clean solution”.
    Read about using the ‘entities’ element in tiny_mce_before_init here. As you can see, you always have to add value *pairs* (consisting of the character code and the character name).

    According to the TinyMCE spec, ‘entity_encoding’ must also be set to ‘named’ to show the defined names.
    This is the TinyMCE default, but apparently that gets changed to ‘raw’ somewhere before my tiny_mce_before_init filter function get’s called.
    So I ended up with the following code:

    
    /* Show &shy; and &nbsp; in TinyMCE editor's text mode */
    function override_mce_options($initArray) {
    	// Add entities to the default array (nbsp, shy) 
    	$initArray['entities'] .= ',160,nbsp,173,shy'; 
    	$initArray['entity_encoding'] = 'named';
    
    	return $initArray; 
    }
    add_filter('tiny_mce_before_init', 'override_mce_options');
    

    As the comment states, the code shows the two non-printable characters ‘soft hyphen’ and ‘non-breaking space’ as their corresponding HTML entities ‘&shy;’, resp. ‘&nbsp;’ in the editor’s text mode.

    My suggestion ist to display all non-printable characters (think of en space, em space, thin space, …) as their corresponding HTML entities by default: that’s the only chance to identify them again after one has inserted them.

    Best regards,
    Jürgen

    Her’s some more vital information for you!

    By using a WP filter (add_filter( ‘the_content’,…) incorporating a str_replace function in the function.php of my child theme, I’ve managed to have a workaround for the rendering of the publicly visible web page.
    In fact, there are TWO bytes need to be replaced: 0xC2 0xAE. The latter one is the trademark sign as expected. Dunno where the first one is coming from!?

    I’ve tried the same for the editor with add_filter( ‘the_editor_content’,…), but without any success!
    The behaviour there is a bit strange: I have the IFRAME code in a text block. When I open the page in ALA, the link is broken (so I don’t see the correct content).
    As soon as I click in the text block to edit the text, the content is rendered correctly in the editor pane, but I don’t see anything in the preview pane on the right.

    I guess you have your own parser to render the contents in ALA. Eventually you can provide some hooks I can use there!?

    Thanks in advance,
    Juergen

    • This reply was modified 5 years, 5 months ago by JVo.

    Don’t worry, I’ve disabled logging of PHP notices at that particular line.
    So just solve it whenever it suits you guys.

    Removing all logs by a cron job is not a good idea: normally you want to see the errors (and notices, since there you’ll find e.g. hints of deprecated PHP functions being used, which might be not available in a future version) on the page.

    Best,
    Jürgen

    Hi Rikard,

    I’m a software developer, so I know that the notices don’t affect anything. It’s just annoying, because it’s fills the disk quota for nothing and you might easily miss a real problem between all this garbage.

    Please find the login details in the Private content section.

    Cheers,Jürgen

    Hi Basilis,

    we’re using PHP 7.1.27.

    Regards,
    Jürgen

    Well… To avoid any GDPR implications, in the end I’ve opted for a redirection plugin, which handles the forwarding locally.
    Anyway, thanks again for the initial spark, Victoria!

    Excellent idea! :-)
    THX!
    Jürgen

    in reply to: Switches in cookie consent #1065183

    Hi Victoria,

    yes, I’m talking about the wording of the label beside the switches in the cookies notice!
    In German, it says e. g. “Hier klicken, um Google Analytics Tracking zu aktivieren/deaktivieren.”

    The switch has two states:
    – “On” state: Left/green
    – “Off” state: Right/gray

    So my question is: does “on” mean “Google Analytics Tracking is activated”?

    One of the basic rules in UX design is “Provide concise, non-neutral labels”. I would consider the current label as 100% neutral, so the opposite of what it should be.
    Please see https://www.nngroup.com/articles/toggle-switch-guidelines/ for further reading.

    I guess no link to a website needed anymore. :-)

    Have a nice Sunday evening!
    Jürgen

    in reply to: Accordion element needs some makeover #1064957

    Regarding the custom styles issue, it might be a good idea to mention, that the developer options must be switched on in the layout builder. ;-)
    Since I’ve changed that, it remembers the custom class.

    in reply to: Please contribute and translate Enfold #1047005

    Hey guys, seems there is a general misunderstanding re. the [av_privacy_link] shortcode.
    Apparently this doesn’t need a closing tag!?

    The translation source text currently looks like this:
    I agree to the terms and conditions laid out in the [av_privacy_link]Privacy Policy[/av_privacy_link]

    If I translate that like for like it doesn’t look nice. Also, if you google for “[/av_privacy_link]“, you’ll see plenty of pages comprising the error.

    To make it work, I translated it (into formal German) like this:
    Ich stimme den Bedingungen zu, die in der [av_privacy_link] dargelegt sind

    So I guess [av_privacy_link] is replaced by the anchor with the href attribute and the translated text (probably coming straight from WordPress itself).
    Therefore you have to change the source text eventually since it’s misleading.

    Accidentally encountered another bug when googling for that: there’s also another error on some pages! There the shortcode looks like [av_privacy_privacy_link] – which obviously won’t be replaced.

    Cheers,
    Juergen

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