Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author ThemeBoy

    (@themeboy)

    Hi Mike,

    Thanks for your question! Yes, SportsPress supports outcome variations by adding multiple outcomes.

    To do this, first go to SportsPress > Settings > Configure and add a new Outcome called “Overtime”. Make sure you also have “Win” and “Loss”.

    Now, you can select multiple outcomes in an event. Go to the event and select 2 teams, then Publish. This creates a match preview.

    Once the match is over, go to the Results section at the top and click on the Outcome column for each team. Select “Win” and “Overtime” for the winning team. Publish.

    To award an extra point for overtime, you’ll need to modify the scoring system. Go to SportsPress > Settings > Configure. Go to the Columns section and edit Points (or add a new column). In the equation builder, add “+” followed by “Overtime”, which will automatically add 1 point for each event that team had OT in their outcome.

    Hope this helps!

    Thread Starter GoFishDK

    (@gofishdk)

    Hi.

    Thank you very much for the help.
    Creates OT Win and OT Loss for 2 and 1 point each ??

    Love the idea of stats on the players. Can I get the stats on one page from all the players on one team.
    Hope, that you understand what I mean by it.

    Kind regards,

    Mike Larsen

    Plugin Author ThemeBoy

    (@themeboy)

    Hi Mike,

    Definitely. To create a player stats page, go to Players > Player Lists and create a new player list. Then, select your team from the Details section (and any other details if you want to narrow down your selection). You can now click “Select All” to select all of the players from your team. Also be sure have the “Statistics” checkbox selected under “Columns”.

    Once you publish the page, you’ll see all of the players and their statistics. Enable individual columns via the checkbox next to the labels, and save changes to see your player list in action.

    Thread Starter GoFishDK

    (@gofishdk)

    Thanks a million…

    When I create a player page or a team page, then it says f.ex. 22. maj 2014 Posted in | Edit
    Can I remove that?

    Perhaps though code?
    But Then I need some help ??

    Kind regards,

    Mike Larsen

    Thread Starter GoFishDK

    (@gofishdk)

    F.ex.

    https://www.icing.dk/players/magnus-aakerlund/
    https://www.icing.dk/teams/esbjerg-energy/

    Just been playing with the plugin so far, but hope, that you can help..

    /Mike Larsen

    Plugin Author ThemeBoy

    (@themeboy)

    Hi Mike,

    Thanks for your question.

    The way to remove this is to create a copy of the single post template for SportsPress to use. In your theme folder, you should see a file called single.php. Copy that file into a new folder called sportspress with the names single-player.php and single-team.php.

    The folder structure should now be:

    wp-content/themes/__your_active_theme__/sportspress/single-player.php
    wp-content/themes/__your_active_theme__/sportspress/single-team.php

    Then, edit these files and remove the code between <p class=”post-meta”> and the next </p>.

    Hope this helps ??

    Thread Starter GoFishDK

    (@gofishdk)

    Hey again…

    I can’t find the thing in the code, that you write.
    Have found the single.php file

    Only text in it is:

    <?php
    global $SMTheme;

    get_header();

    get_template_part(‘theloop’);

    the_tags(“<div class=’tags’><span>”.$SMTheme->_( ‘tags’ ).”:  </span>”, “, “,”</div>”);

    get_template_part(‘relatedposts’);

    comments_template();

    get_template_part(‘navigation’);

    get_footer();
    ?>

    Any help?

    Plugin Author ThemeBoy

    (@themeboy)

    Hi again!

    It looks like the main loop (theloop.php) contains the content output and the meta tags that you want to remove.

    It might be easier to edit the loop directly. You can add conditions before outputting the post meta, for example:

    <?php if ( ! is_singular( 'sp_team', 'sp_player' ) ): ?>
    <p class="post-meta">
    
    ...
    
    </p>
    <?php endif; ?>

    Hope this helps ??

    Thread Starter GoFishDK

    (@gofishdk)

    Thx..

    I have tried to remove it, but it removes it on all news, that I put on the site.
    Can I do it, so it only is on the sportspress sites?

    Really big thx for the help so far.

    Kind regards,

    Mike Larsen

    Plugin Author ThemeBoy

    (@themeboy)

    Hi Mike,

    Try this:

    <?php if ( ! is_singular( array( 'sp_team', 'sp_player' ) ) ): ?>
    <p class="post-meta">
    
    ...
    
    </p>
    <?php endif; ?>

    (I forgot to wrap the post types in an array in my previous reply)

    Hope this helps!

    Thread Starter GoFishDK

    (@gofishdk)

    Argh…

    I just can’t get it to work (code is not my strong side). Can I perhaps the file to you, and you can edit the few lines, that it seems to be?

    Or is there another way, that I can remove the meta for sportpress sites only?
    I can also post the intire theloop file here, and you can show me, where to edit?

    If possible, please mail me on mike at hockeycorner.dk

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Icehockey’ is closed to new replies.