Support » Plugin: Football Pool » Charts Icon Bonus Question

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AntoineH


    Which shortcode do you use and what charts icon are you missing?

    Im using this short code for the bonus questions: [fp-predictionform question=”1″] I would like to show the icon that links to this page in every question “?view=bonusquestion&question=1” (the page when you see all users answers).

    Plugin Author AntoineH


    The prediction form (both shortcode and prediction page) miss this functionality. I will fix it in the next version (2.4.0). If you can’t wait, change lines 804-808 in class-football-pool-pool.php to:

    $points = $question['points'] == 0 ? __( 'variable', FOOTBALLPOOL_TEXT_DOMAIN ) : $question['points'];
    $output .= sprintf( '<span class="bonus points">%s %s'
    					, $points
    					, __( 'points', FOOTBALLPOOL_TEXT_DOMAIN )
    if ( ! $this->question_is_editable( $question['question_timestamp'] ) ) {
    	$output .= sprintf( '<a title="%s" href="%s">',
    						__( 'view other users answers', FOOTBALLPOOL_TEXT_DOMAIN )
    						, esc_url(
    								array( 'view' => 'bonusquestion', 'question' => $question['id'] ),
    								Football_Pool::get_page_link( 'statistics' )
    	$output .= sprintf( '<img alt="%s" src="%sassets/images/site/charts.png" />',
    						__( 'view other users answers', FOOTBALLPOOL_TEXT_DOMAIN ), FOOTBALLPOOL_PLUGIN_URL );
    	$output .= '</a>';
    $output .= '</span></p>';

    Hi Antoine.

    I did replace the lines and still can’t see the icon to go to the page with all users answers.

    Should I do some change to the shortcode file?

    If it helps, when you go to an user page (?user=1) there you have the link to check all user answers in the bonus questions.

    Hope you can help me.

    Plugin Author AntoineH


    I did a quick test yesterday and everything seemed to work just fine. Did you check if the question is closed? Because the code above doesn’t show the icon when the answer can still be changed.

    You are right… the questions were not closed. I tested closing questions and it worked perfect! Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Charts Icon Bonus Question’ is closed to new replies.