WordPress.org

Support

Support » Plugins and Hacks » World Cup Predictor » [Resolved] Reset ranking for 2nd Phase

[Resolved] Reset ranking for 2nd Phase

  • Hi landoweb,

    I’m still using the version v1.8 and it’s working fine. For the 2nd phase, i would like to reset the ranking of my users. I saw in another post, that you said adding the shortcode playoff=1 but it’s not working for me. Any clue?
    Besides, what is the way to reset the ranking widget?
    Thanks for your help!

    jeffrey

    https://wordpress.org/plugins/world-cup-predictor/

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

    @landoweb

    This feature is only available in version 1.9.2.

    Is there anyway i can have the samething in v1.8? Modification in php for example?

    Plugin Author landoweb

    @landoweb

    You can edit the file world-cup-predictor.php, adding playoff on shotcode_atts and changing the call of user_ranking():

    if ($ranking) {
    			require_once(dirname(__FILE__).'/wcp-reports.class.php');
    			$r = new WorldCupReport();
    			$output =  $r->user_ranking($limit, $avatar, $highlight, $stage, $playoff);
    			return $output;
    		}

    And change the function user_ranking() on file wcp-reports.class.php, including the filter:

    if ($playoff) $stage_filter = "AND is_group = 0";

    Thank you Landoweb! I’ve been ableto add the feature manually.
    What about the ranking widget? Could you please advise?

    Plugin Author landoweb

    @landoweb

    You need to modify the file wcp-widgets.class.php

    Ya. Found it too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Reset ranking for 2nd Phase’ is closed to new replies.
Skip to toolbar