vahiditor
Forum Replies Created
-
Forum: Plugins
In reply to: [Code Snippets] problem with stringsThere is another array nested in the mother array. I don’t see any problem with nested arrays.
Forum: Plugins
In reply to: [Code Snippets] problem with stringsthe code snippet is like below:
add_filter( ‘wpseo_schema_needs_review’, ‘__return_false’);
add_filter(‘woocommerce_structured_data_product’, function($schema, $product) {
$schema[‘gtin13’] = ‘NULL’;
$schema[‘aggregateRating’] = array(
‘bestRating’ => ‘5’,
‘worstRating’ => ‘1’,
);
$schema[‘review’] = array(
‘@type’ => ‘test’,
‘author’ => array(
‘@type’ => “Person”,
‘name’ => ‘mr karimi’,
),
‘reviewBody’ => ‘good quality procuct’,
);
return $schema;
}, 10, 2);
add_filter( ‘schema_wp_output_category_enabled’, ‘__return_false’ );Forum: Plugins
In reply to: [Football Pool] old points with new leagueanother thing you can do is to create additional rankings. From plugin options–> rankings you can create two rankings for two set of matches (e.g. world championship and euro2016). Then create two separate pages and by using shortcodes display one ranking in each page.
Forum: Plugins
In reply to: [Football Pool] Ranking more fields in columnsI want to add number of full scores, toto scores and no scores to the table. How is it possible?
Forum: Plugins
In reply to: [Football Pool] custom ranking table with no pointsI thought maybe I had to recalculate the scores and did so but the calculation interrupted with error. I disabled the custom ranking display by choosing default ranking in options and calculation was completed without an error. So I enabled wp-debug mode and the following error has been logged in wordpress:
Notice: Use of undefined constant FOOTBALLPOOL_TEXT_DOMAIN – assumed ‘FOOTBALLPOOL_TEXT_DOMAIN’ in /home/tamasha1/public_html/wp-content/plugins/fpextension/football-pool-add-match-result-to-user-page.php on line 27
Notice: Use of undefined constant FOOTBALLPOOL_TEXT_DOMAIN – assumed ‘FOOTBALLPOOL_TEXT_DOMAIN’ in /home/tamasha1/public_html/wp-content/plugins/fpextension/football-pool-add-match-result-to-user-page.php on line 37
Notice: Use of undefined constant FOOTBALLPOOL_TEXT_DOMAIN – assumed ‘FOOTBALLPOOL_TEXT_DOMAIN’ in /home/tamasha1/public_html/wp-content/plugins/fpextension/football-pool-extra-match-save-buttons.php on line 20
Notice: Use of undefined constant FOOTBALLPOOL_TEXT_DOMAIN – assumed ‘FOOTBALLPOOL_TEXT_DOMAIN’ in /home/tamasha1/public_html/wp-content/plugins/fpextension/football-pool-extra-match-save-buttons.php on line 30
I’m quite sure the error has nothing to do with the calculation error. because when I disable custom ranking display in plugin option the calculation goes through the end meanwhile the same error is being logged in wordpress.
Another issue is that the interruption takes at two different stages randomely. sometimes at recalculating scores (e.g. first stages) stage and sometimes at ranking tables stage (e.g. last stages)
the most odd thing is that it sometimes complete the calculation. The last calculation I did fixed the first problem of displaying points but I’m afraid it crashes again.sorry for the long note. Thanks.
Forum: Plugins
In reply to: [Football Pool] old points with new leagueyou have to create a new pool. I don’t see any option for that. you may have to create a new website or install a new wordpress.
Forum: Plugins
In reply to: [Football Pool] Change ranking orderif the plugin supports floating points in numbers you may just do the mathematics instead of coding. You have to assign an additional point for each match scoring criteria (e.g. full,toto,goal diff etc.). In case of your pool, if you add a sufficiently positive small 0.k to 3,4, and 6 to become 3.k, 4.m, and 6.n
Note: m and n should be also sufficiently small. I explain this “sufficiently small” in the end.your rules can be set by this parameters as below:
if n>m>k full score has advantage to goal diff and goal diff to toto
if k>m>n full score has less advantage to goal diff and goal diff to totothere can be 9 advantage formulas based on changing this parameter relations from being greater to equal or smaller.
sufficiently small rules:
rule #1: if your league has less than 100 matches your sufficiently small number would be 0.09 , and in general if M be number of matches your k must be greater than 1/(M*10) and smaller than 1/M
1/(10*M) < k < 1/M where M = number of total matches
rule #2: the two smallest among {k,m,n} must be less than k minus inverse difference of their relative criteria. In your case for example. sufficiently small k,m, and n would be k=0.09 (assuming your pool has less than 100 matches); m = 0.07 which is less than 0.009 – (4-3)/(4*3) = 0.007
and n = zero because 0.007 – (6-4)/(6*4) results in a negative number.Forum: Plugins
In reply to: [Football Pool] Group status not workingI found it. I had to configure win and draw points for group stage. I didn’t knew it.
Forum: Plugins
In reply to: [Football Pool] Group status not workingsame problem here. Tobi would you mind sharing what was the cause and what you did to resolve the problem?
Forum: Plugins
In reply to: [AccessPress Social Icons] Errorsame problem here and not a multisite. Also the icon set is shown but the icons and their properties are gone and are not available to be edited.