Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter tobil

    (@tobil)

    found!

    Thread Starter tobil

    (@tobil)

    I found the option value 🙂

    tobil

    (@tobil)

    Did you add the avatar script in the functions.php before ?

    <?php
    // Show number of predictions in the ranking table and also the user avatar.
    // If you want the page, shortcode or widget to have different layouts,
    // you can differentiate with the $type.
    add_filter( ‘footballpool_ranking_template_start’,
    function( $template_start, $league, $user, $ranking_id, $all_user_view, $type ) {
    // add a row with column headers
    $template_start .= sprintf( ‘<tr>
    <th></th>
    <th class=”user”>%s</th>
    <th class=”num-predictions”>%s</th>
    <th class=”score”>%s</th>
    %s</tr>’
    , __( ‘user’, ‘football-pool’ )
    , __( ‘predictions’, ‘football-pool’ )
    , __( ‘points’, ‘football-pool’ )
    , ( $all_user_view ? ‘<th></th>’ : ” )
    );
    return $template_start;
    }, null, 6 );
    add_filter( ‘footballpool_ranking_ranking_row_template’, function( $template, $all_user_view, $type ) {
    if ( $all_user_view ) {
    $ranking_template = ‘<tr class=”%css_class%”>
    <td style=”width:3em; text-align: right;”>%rank%.</td>
    <td>%user_avatar%%user_name%</td>
    <td class=”num-predictions”>%num_predictions%</td>
    <td class=”ranking score”>%points%</td>
    <td>%league_image%</td>
    </tr>’;
    } else {
    $ranking_template = ‘<tr class=”%css_class%”>
    <td style=”width:3em; text-align: right;”>%rank%.</td>
    <td>%user_avatar%%user_name%</td>
    <td class=”num-predictions”>%num_predictions%</td>
    <td class=”ranking score”>%points%</td>
    </tr>’;
    }
    return $ranking_template;
    }, null, 3 );
    ?>

    tobil

    (@tobil)

    Hi,

    Antoine said in topics before that you need to add a line in the wp-config.php:

    “I disabled the loading of avatars because these can slow down the ranking display tremendously (WP runs a couple of database queries for every user to get the avatar). If you extended the plugin to show the avatars in your ranking, you can enable the loading again by setting the FOOTBALLPOOL_NO_AVATAR constant to false in your wp-config.php. Note: my setting only affects the plugin, not the rest of your blog.”

    I am not sure, but just try it.

    define(‘FOOTBALLPOOL_NO_AVATAR’, ‘false’);

    Does it work?

    Thread Starter tobil

    (@tobil)

    I fixed the problem. It was a misunderstanding on my side.

    I created two folders “/wp-content/plugins/highcharts-js/highcharts.js”:
    highcharts-js and highcharts.js

    I put the highcharts.js file in the folder highcharts.js and not in the folder highcharts-js

    Sorry for wasted time and thanks for your fast support.

    Thread Starter tobil

    (@tobil)

    I deleted the fodler “/wp-content/plugins/highcharts-js/”.

    That is the same effekt as before. So I think the highcharts was not activated or in the correct folder or the server deny the highchart.

    The folder “highcharts-js” shall be in the same tier as the football pool plugin?!

    Please help me 🙂

    Thread Starter tobil

    (@tobil)

    In the beginning there was the note that after the first match the statistic will be available.

    Therefore I made a test and set the first match with data and bpsu the calucation button. BTW the rankings works and show me the actual ranking.

    Nowever I Can choose the player for a individual statistic.

    Below there is created a big range for the statistic graph which is not shown yet.

    Thread Starter tobil

    (@tobil)

    Do I need any jQuery plugin to use the charts?

    Thread Starter tobil

    (@tobil)

    Yes, for every standard theme. :S

Viewing 9 replies - 1 through 9 (of 9 total)