Angelo De Lorenzo
Forum Replies Created
-
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Conditional equations problemUnfortunately I always get zero as a result of the BD.
In the event I set:
Team1 4t and 3ms
Team2 3t and 4msThe result:
Team1: BO = 1, BD = 0.
Team2: BO = 0, BD = 0.I specify that I am using the free version 2.6.20
Checking on modules/sportspress-conditional-equations.php on line 80 I see that it does not handle the operation suggested by you (as it did not manage the one I created).
Code:
// Find all parentheses with conditional operators $re = '/([^[\(|\)]*[<=>][^[\(|\)]*)/'; if ( preg_match_all( $re, $equation, $matches ) ) { foreach ( $matches[1] as $match ) {etc…..
In this way it sees only the first equation ms>t, it does not handle the second operation.
Here you can see the evidence more clearly:
LINK TO PHP LIVE REGEX SCREENSHOTmy temporary solution:
In the file wp-content/plugins/gdpr/public/partials/privacy-preferences-modal.php
I emptied the <span> at line 85 and replacing it like this:<span class=”gdpr-always-active”>
<?php if(ICL_LANGUAGE_CODE==’hr’): ?> Required
<?php else : ?>
Potreban
<?php endif; ?> </span>I hope you solve… the static translation in the plugin file is not the best solution.