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

    (@antoineh)

    There is an !important declaration in the pool.css for the td.goals. That shouldn’t be there (I will remove it in the next version). If you remove the !important, you can use the following css in your own stylesheet to change the font-size

    table.ranking td.goals { font-size: 200%; }

    There is a shortcode for the group ranking [fp-group]. But not one that will automatically generate the matches for a group. But if you look up the match ID’s (hover your mouse above a match to see the match ID), you can pass those to the [fp-matches] shortcode. E.g. [fp-matches match=”`1,2,16,20,35,36″] for group A (in my install).

    Plugin Author AntoineH

    (@antoineh)

    I’ve updated the fp-matches shortcode with support for a ‘group’ parameter. Wait for the next version or update your shortcodes file with this function (replace the old one).

    //[fp-matches]
    	//    Displays a matches table for a given collection of matches or match types.
    	//    All arguments (except group) can be entered in the following formats (example for matches:
    	//        match 1               -> match="1"
    	//        matches 1 to 5        -> match="1-5"
    	//        matches 1, 3 and 6    -> match="1,3,6"
    	//        matches 1 to 5 and 10 -> match="1-5,10"
    	//    If an argument is left empty it is ignored. If group is given, all other arguments are ignored.
    	//
    	//    match     : collection of match ids
    	//    matchtype : collection of match type ids
    	//    group     : a group ID
    	public function shortcode_matches( $atts ) {
    		extract( shortcode_atts( array(
    					'match' => null,
    					'matchtype' => null,
    					'group' => null,
    				), $atts ) );
    
    		$output = '';
    
    		$matches = new Football_Pool_Matches;
    		$the_matches = array();
    
    		if ( is_numeric( $group ) ) {
    			$groups = new Football_Pool_Groups;
    			$the_matches = $groups->get_plays( (int) $group );
    		} else {
    			// extract all ids from the arguments
    			$match_ids = Football_Pool_Utils::extract_ids( $match );
    			$matchtype_ids = Football_Pool_Utils::extract_ids( $matchtype );
    			// add all matches in the match types collection to the match_ids
    			$match_ids = array_merge( $match_ids, $matches->get_matches_for_match_type( $matchtype_ids ) );
    
    			foreach ( $matches->matches as $match ) {
    				if ( in_array( $match['id'], $match_ids ) ) $the_matches[] = $match;
    			}
    		}
    
    		if ( count( $the_matches ) > 0 ) $output .= $matches->print_matches( $the_matches );
    		return apply_filters( 'footballpool_shortcode_html_fp-matches', $output );
    	}
    Thread Starter rvdl

    (@rvdl)

    Thnx a lot, i’ve used the first option.
    For everyone who want’s a page like this, here are the shortcodes

    Again, great support and a great plugin!

    [fp-group]

    [fp-matches match=”`1,2,16,20,35,36″]

    [fp-group id=”2″]

    [fp-matches match=”3,4,18,19,33,34″]

    [fp-group id=”3″]

    [fp-matches match=”5,8,21,23,39,40″]

    [fp-group id=”4″]

    [fp-matches match=”6,7,22,24,37,38″]

    [fp-group id=”5″]

    [fp-matches match=”9,10,25,26,43,44″]

    [fp-group id=”6″]

    [fp-matches match=”11,13,27,29,41,42″]

    [fp-group id=”7″]

    [fp-matches match=”12,14,28,32,45,46″]

    [fp-group id=”8″]

    [fp-matches match=”15,17,30,31,47,48″]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Styling’ is closed to new replies.