Title: Mad Max's Replies | WordPress.org

---

# Mad Max

  [  ](https://wordpress.org/support/users/mad_max/)

 *   [Profile](https://wordpress.org/support/users/mad_max/)
 *   [Topics Started](https://wordpress.org/support/users/mad_max/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mad_max/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mad_max/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mad_max/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mad_max/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mad_max/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 158 total)

1 [2](https://wordpress.org/support/users/mad_max/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/mad_max/replies/page/3/?output_format=md)…
[9](https://wordpress.org/support/users/mad_max/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/mad_max/replies/page/10/?output_format=md)
[11](https://wordpress.org/support/users/mad_max/replies/page/11/?output_format=md)
[→](https://wordpress.org/support/users/mad_max/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FastPixel Cache - Optimize Page Speed: Compress Images, Minify, Clean Database & CDN] lazy load problems with background images](https://wordpress.org/support/topic/lazy-load-problems-with-background-images/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/lazy-load-problems-with-background-images/#post-18856887)
 * It seems it works just fine now.
 * Thanks a lot for your support!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FastPixel Cache - Optimize Page Speed: Compress Images, Minify, Clean Database & CDN] lazy load problems with background images](https://wordpress.org/support/topic/lazy-load-problems-with-background-images/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 months ago](https://wordpress.org/support/topic/lazy-load-problems-with-background-images/#post-18850514)
 * **Update:**
   Scratch that — the issue has already reappeared. I’m testing using
   a Chrome incognito window.Could you please take another look at it? Thanks again
   for your support.
 * Thanks,
   Daniele
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FastPixel Cache - Optimize Page Speed: Compress Images, Minify, Clean Database & CDN] lazy load problems with background images](https://wordpress.org/support/topic/lazy-load-problems-with-background-images/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 months ago](https://wordpress.org/support/topic/lazy-load-problems-with-background-images/#post-18850512)
 * I’ve just updated to the latest version of your plugin and reactivated it on 
   [https://www.sormaniolistico.it/](https://www.sormaniolistico.it/). It seems 
   to be working fine so far. I’m not sure whether this update includes a fix for
   the issue I reported, but everything looks good at the moment.
   I’ll keep an eye
   on it and let you know if anything comes up.Thanks,Daniele
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FastPixel Cache - Optimize Page Speed: Compress Images, Minify, Clean Database & CDN] lazy load problems with background images](https://wordpress.org/support/topic/lazy-load-problems-with-background-images/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 months ago](https://wordpress.org/support/topic/lazy-load-problems-with-background-images/#post-18846305)
 * At the moment I had to disable FastPixel on that site because the client was 
   in a hurry to go online. The issue didn’t occur on every page load, and sometimes
   not on all background images. The ones that were displayed, however, had the `
   fpo-visible` class, while the others didn’t.
   I use your plugin on several websites
   and it’s updated to the latest version. As soon as I notice the same issue again
   on one of them, I’ll report it here. Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Download Monitor] Programmatically get file path from id](https://wordpress.org/support/topic/programmatically-get-file-path-from-id/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/programmatically-get-file-path-from-id/#post-16568712)
 * Thank you very much for pointing me in the right direction!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Download Monitor] Programmatically get file path from id](https://wordpress.org/support/topic/programmatically-get-file-path-from-id/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/programmatically-get-file-path-from-id/#post-16567004)
 * Hello [@raldea89](https://wordpress.org/support/users/raldea89/) and thanks for
   the super quick reply! 
   I’ve tried the method `parse_file_path( $file_path )`
   of class **DLM_File_Manager**, but it always return an array with 2 empty elements,
   if called with my file url that is like this
 *     ```wp-block-code
       https://mysite.ext/download/2378/?tmstv=1678986055
       ```
   
 * where obviously “download” is the configured endpoint for downloads and the links
   correctly starts the download of the file when pasted in a browser address bar.
 * Any advice?
 * Regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Make Section & Column Clickable For Elementor] Links are opening in a new tab](https://wordpress.org/support/topic/links-are-opening-in-a-new-tab-2/)
 *  [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/links-are-opening-in-a-new-tab-2/#post-16547876)
 * you’re welcome!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Make Section & Column Clickable For Elementor] Links are opening in a new tab](https://wordpress.org/support/topic/links-are-opening-in-a-new-tab-2/)
 *  [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/links-are-opening-in-a-new-tab-2/#post-16535400)
 * The target blank is set on links no matter the option you set in elementor “wrappable”
   panel, so I’ve fixed the code; just replace the _before\_section\_render(Element\
   _Base $element)_ function, starting on line 77 and ending on line 91 in make-
   section-clickable-elementor.php , with this version:
 *     ```wp-block-code
       public static function before_section_render(Element_Base $element) {
           $link_settings = $element->get_settings_for_display('ra_element_link');
           if ($link_settings && !empty($link_settings['url'])) {
           	$target = ( isset( $link_settings['is_external']  ) && $link_settings['is_external']  =='on' ) ? '_blank' : '_self';
             $element->add_render_attribute(
               '_wrapper',
               [
                 'data-ra-element-link' => json_encode($link_settings),
                 'style' => 'cursor: pointer',
               	'target' => $target,
                 'onClick' => 'window.open("' . $link_settings['url'] . '", "'. $target .'")',
               ]
             );
           }
         }
       ```
   
 * You can find the formatted code in this pastebin
 * [https://pastebin.com/3BUsGbMM](https://pastebin.com/3BUsGbMM)
    -  This reply was modified 3 years, 3 months ago by [Mad Max](https://wordpress.org/support/users/mad_max/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Hidden required fields prevent submitting form](https://wordpress.org/support/topic/hidden-required-fields-prevent-submitting-form/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/hidden-required-fields-prevent-submitting-form/#post-16235339)
 * I got it!
    While I was trying to explain the problem better, I came up with the
   solution!
 * The problem arises when you select the first radio option in {radio-2}, i.e the
   online payment with Paypal or Credit card. Only in that case, the {checkbox-1}
   element (that is checked by default) is hidden by this rule:
 *     ```
       SHOW IF {radio-2}
       IS NOT "ONLINE: Paypal..."
       ```
   
 * and cascading, the fields that depend on its display state (name-3, name-4, text-
   8, text-9 etc.), are hidden with a rule like this:
 *     ```
       SHOW IF {checkbox-1} 
       IS NOT <checkbox-value>
       ```
   
 * That’s because only when {checkbox-1} is visible and unchecked, I need to show
   theese fields.
 * But I found that this combination of rules is ambiguous. What’s the value of 
   an hidden checkbox, that is checked by default? And how other fields depending
   on it, behave when checking for its value?
 * Adding the same {checkbox-1} visibility rule to all the other fields depending
   on its state, and so better specifying the visibility cases, fixes the problem.
 * I don’t know if I managed to explain myself, so [here](https://pastebin.com/TueedgCS)
   you will find the fixed and working form in case you want to check the solution.
 * Thank you so much for the time you spent on this for me! I really appreciate 
   it.
 * Daniele
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Hidden required fields prevent submitting form](https://wordpress.org/support/topic/hidden-required-fields-prevent-submitting-form/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/hidden-required-fields-prevent-submitting-form/#post-16233470)
 * Hi Zafer (@wpmudevsupport15),
    thanks for the quick reply!
 * In the forum post I’ve linked above, your staff hint was to use the code as a
   guide, so I figured it needs to be customized in some way to work. Actually I
   already applied the code in the theme functions.php file with no success.
 * I added an error_log() statement at the very start of the _wpmudev\_forminator\
   _fix\_can\_not\_submit\_on\_nest\_required\_fields\_func()_ to be sure it runs
   and so it does, but when I submit the payment with Paypal, the form notifies 
   errors on hidden fields as you can see looking to the ajax response [here](https://ibb.co/0yCHdBB)
   and [here](https://pastebin.com/iP5CAd3x)
 * I can post the page url with the form, if you need to see it in action, and share
   sandbox paypal credentials of a test buyer to test the process.
 * Regards,
    Daniele.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Elementor Website Builder - more than just a page builder] After update last version show error all page](https://wordpress.org/support/topic/after-update-last-version-show-error-all-page/)
 *  [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/after-update-last-version-show-error-all-page/#post-16038865)
 * Same issue here when I update from 3.7.6 to 3.7.7 on PHP 7.3.4. I also have elementor
   pro 3.7.7
 * There’s an open issue on github about this with atemporary fix, changing only
   one line of code
 * [https://github.com/elementor/elementor/issues/19894](https://github.com/elementor/elementor/issues/19894)
    -  This reply was modified 3 years, 8 months ago by [Mad Max](https://wordpress.org/support/users/mad_max/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Favorites] Is it possible to create different lists of favorite posts ?](https://wordpress.org/support/topic/is-it-possible-to-create-different-lists-of-favorite-posts/)
 *  [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/is-it-possible-to-create-different-lists-of-favorite-posts/#post-15995662)
 * I’ve just made a pull request on plugin github repository, adding 2 parameters
   to [user_favorites] shortcode that enable filtering by taxonomy terms also. This
   way you can have different lists of favorites on the same post_type, filtering
   them by taxonomy.
 * [https://github.com/kylephillips/favorites/pull/166](https://github.com/kylephillips/favorites/pull/166)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Yearly Archive] add class “current” to year link](https://wordpress.org/support/topic/add-class-current-to-year-link/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/add-class-current-to-year-link/#post-15758995)
 * It works great, thanks a lot!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Yearly Archive] add class “current” to year link](https://wordpress.org/support/topic/add-class-current-to-year-link/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/add-class-current-to-year-link/#post-15753356)
 * Hi [@alphawolf](https://wordpress.org/support/users/alphawolf/), and thanks for
   your time, really appreciate it.
 * In the functions.php code you sent me, I’ve replaced the IF test with this:
 * `if (is_integer( get_query_var('year') ) && get_query_var('year') > 0 && get_query_var('
   year') == $post->post_year ){`
 * to get the currently viewed archive year value. Now, with this code and the new
   version of the plugin file, the class “current-link” is added in to the `<ul>
   <li>`, on every post link listed under the currently viewed year of posts, as
   you can see in [this screenshot](https://i.snipboard.io/qrCmXg.jpg). In this 
   case, all `<ul></li>` are hidden because I’m not using “Collapsible years” in
   the plugin options, and each year is linked as I’m using **linked years** option
   turned on.
 * Indeed, what I actually need to do, is to add the class “current” (or “current-
   link”) to the Year link ([see screenshot](https://i.snipboard.io/UPoytI.jpg)),
   not to the listed posts within.
    You can see the yearly archive pages I’m talking
   about [here](https://www.assc.it/notizie/bacheca/year/2022/). If you click on
   year links, you can see what I got with my change to your plugin. Specifically,
   what I did was change line 285 from this
 * `$output .= $before . '<a id="year' . $year . '"></a>' . $linkyears_prepend .
   $year . $linkyears_append;`
 * to this
 *     ```
       $current = (is_integer( get_query_var('year') ) && get_query_var('year') > 0 && get_query_var('year') == $year )?'current':'';
       $output .= $before . '<a id="year' . $year . '" class="'.$current.'"></a>' . $linkyears_prepend . $year . $linkyears_append;
       ```
   
 * So, to sum up it up, I’d need to have a filterable string of classes, added to
   every `<a id="year' . $year . '"></a>` links.
    Something like:
 *     ```
       $yearclasses = "";
       $yearclasses = apply_filters("sya_yearlink", $yearclasses, $year);
       $output .= $before . '<a id="year' . $year . '" class="'.$yearclasses.'"></a>' . $linkyears_prepend . $year . $linkyears_append;
       ```
   
 * Then in my function.php, I can use:
 *     ```
       function sya_modify_year_classes( $yearclasses, $year ) {
       	if (is_integer( get_query_var('year') ) && get_query_var('year') > 0 && get_query_var('year') == $year ){
       		$classes = explode(" ", $yearclasses);
       		$classes[] = "current";
       		$yearclasses = implode( " ", $classes);
       	}
       	return $yearclasses;
       }
       add_filter( 'sya_yearlink', 'sya_modify_year_classes', 10, 3 );
       ```
   
 * Sorry for the low level of details in my previoius post. Hope the issue is more
   clear now.
 * Daniele
    -  This reply was modified 3 years, 12 months ago by [Mad Max](https://wordpress.org/support/users/mad_max/).
    -  This reply was modified 3 years, 12 months ago by [Mad Max](https://wordpress.org/support/users/mad_max/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Yearly Archive] add class “current” to year link](https://wordpress.org/support/topic/add-class-current-to-year-link/)
 *  Thread Starter [Mad Max](https://wordpress.org/support/users/mad_max/)
 * (@mad_max)
 * [4 years ago](https://wordpress.org/support/topic/add-class-current-to-year-link/#post-15711564)
 * Hi [@alphawolf](https://wordpress.org/support/users/alphawolf/), thanks for your
   replay. I’ve modified one line in your plugin to add the class “current” to generated
   links, based on the query_var “year” value.
    I’m wondering if you could add a
   filter for the links in an upcoming version of your plugin, so I can modify links
   the same way, but without touching your source code.
 * Thanks, Daniele.

Viewing 15 replies - 1 through 15 (of 158 total)

1 [2](https://wordpress.org/support/users/mad_max/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/mad_max/replies/page/3/?output_format=md)…
[9](https://wordpress.org/support/users/mad_max/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/mad_max/replies/page/10/?output_format=md)
[11](https://wordpress.org/support/users/mad_max/replies/page/11/?output_format=md)
[→](https://wordpress.org/support/users/mad_max/replies/page/2/?output_format=md)